Other versions of conquer do not use the same setup. You may need to use different encryption. Not looked into him
Quote:
Hi, my name is Leandro, im fairly new at C#. . . and im having some trouble. .
im tryin to set the proxy to Conquest Online (BR version of CO) . .
i did all the steps.. like changing the ips, the DB thing n stuff. .
but. . when i try to connect. . the CO client closes without a reason
and i get this message:
[Only registered and activated users can see links. Click Here To Register...]
the auth ip of my server is 187.17.71.196:9958 . .
i dont know if im having this problem cuz Conquest's version is different of CO's version. . so the encrypts or packets things r wrong . . .
maybe u guys give me some help. . cuz i already tried everything i could. . and keep getting this error
Thanks in advance![Only registered and activated users can see links. Click Here To Register...]
case "/useitem":
try
{
byte[] Pack = new byte[88];
Packets.WriteUInt16(80, 0, Pack);
Packets.WriteUInt16(1009, 2, Pack);
Packets.WriteUInt32(ushort.Parse(Cmd[1]), 4, Pack);
Packets.WriteUInt32(ushort.Parse(Cmd[2]), 8, Pack);
Packets.WriteUInt32(ushort.Parse(Cmd[3]),12, Pack);
Packets.WriteUInt32(Packets.GetStamp(C), 16, Pack);
Packets.WriteString("TQClient", 80, Pack);
C.ToServerQueue.Enqueue(Pack);
}
catch { }
break;
|
|
Yea, i was checking everytime. And i was jumping everytime. But does the server/client send you a certain packet when the FS is done? Because when i use C.infatalstrike it doesn't set it back to false (Because, when it arrives, the packet, it will be set to true, but never gets back to false)Quote:
You use items based on uid, not item id.
If not it doesn't know which item you are using (you can have more than 1 stancher but not more than 1 item of the same uid).
Not a bad job on your botting functionality. Looks like you just need to add in some random jump values.
Keep in mind that during fatal strike you don't need to jump to monster, the attack itself moves you (if you jump/atk/jump/atk etc you will dc) so just send attack and set your coords to the mobs location generally. Also keep in mind fatal will work across the whole screen which makes it easier (no need to code distance checks assuming you keep your locals updated based on range
That's what I've always done.Quote:
Yea, i was checking everytime. And i was jumping everytime. But does the server/client send you a certain packet when the FS is done? Because when i use C.infatalstrike it doesn't set it back to false (Because, when it arrives, the packet, it will be set to true, but never gets back to false)
So i could maybe set it back to false, if a certain time/packet passes.
Thank you, im going to code much this weekend, and i will post a video at the end. You can clearly see some changes then i think :)Quote:
That's what I've always done.
Fatal strike lasts 60 seconds so I did a 58 second timeout.
IE:
if(C.InFatal && DateTime.Now > C.FatalActivated.AddSeconds(58))
{
C.InFatal = false;
>>ToClient>>"Fatal Ending"
}
That's how I always handled it. Then if you activate a new fatal strike before it ends at 58 seconds you already updated when it was activated so this should never be called ^^.
For fatal strike what I tended to do was a proxy x/y (where proxy thinks it currently is) and then a seperate value for last server x/y (where server has last told me I am)
I update server x/y every time I receive a server confirmation of jump, attack, etcetc in response to one of my actions.
Proxy x/y I use for all my actions but I also run a check vs how far away that is from my last server x/y is and if it becomes to large I stop the hunting for a short time so it can catch up with responses and if that fails I do a jump to my last known location (or somewhere near it). That way server is forced to send me a confirmation of where I am and I don't run into issues of attacking too far away and dcing.
Basically just add in systems that double check EVERYTHING or you will run into issues over time. If you blindly attack things all over the place the proxy will easily lose track of where it ACTUALLY is in the game and you'll have loads of problems.
Seeing as there is no botting in the current version I assume you're talking about the one they are working on together? They just need to do aQuote:
Btw guys , there is a lil bug that doesnt stop hunt , even if it says it is false.
They copied my code, i did it on purpose, so i could saw who was using my source, but nvm :)Quote:
Seeing as there is no botting in the current version I assume you're talking about the one they are working on together? They just need to do a
if(!C.Hunting)
return true;
at the start of their hunt code and then in the hunt cmd just use what I already had lol.
mwhaha, i get such things to, i redid 2 exams because i was doing some javascripting that day i got em :)Quote:
There's a number of ways to do it..
#1: Use a path and find a valid coord that is the closest to it possible.
-Hint: I already added a 'weight' system to pull a list of coords with their distance from a target...
#2: chose a random valid location on your screen to jump to each time there is no monster in range and last jump time is passed.
#3: Combine the two so that if you have a recorded path it uses that (and cycles between points in the path) or if there is no recorded path it uses a random point on screen. That's how I coded it myself.
Random jump could be anything from chosing a random location and then checking if it's a valid dmap location or it could be something you write some sort of calculation into (IE: chose a random direction to jump in and then test the longest distance you can jump in that direction... if that fails lower the jump distance by 1... if it goes below a certain distance chose a different direction, etc.
Keep in mind there are 8 directions in total.
N, NE, E, SE, S, SW, W, NW
<edit>
Damn... now I kinda wanna try my hand at doing a radar type system to spit out local objects to a graph to display access level and objects on each coord lol!
Need to stop wanting to take on new mini projects during exam time
Always test packets on a blank character. Invalid packets are the fastest way to get botjailed xDQuote:
mwhaha, i get such things to, i redid 2 exams because i was doing some javascripting that day i got em :)
<Edit> Rofl, main just got botjailed for sending a wrong pot packed! mwahha! bye lvl 90 ninja :) I was trying to send a packet to DBUpgrade 'painkillers' How stupid! Let's try remove/equip item on a new acc :)