aimbot

03/11/2014 20:37 kakamankoko#1
hey , i`m making an aimbot and i need to get the player x,y and uid but i cant do so this code gives me the uid and x y if i`m using any skill but not fb/ss in fb/ss it returns the uid 0 here`s the code :
Code:
  ushort SpellID = 0, X = 0, Y = 0;
            uint Target = 0;
                #region GetSkillID
            SpellID = Convert.ToUInt16(((long)Packet[24 +4]  & 0xFF) | (((long)Packet[25 + 4] & 0xFF) << 8));
            SpellID ^= (ushort)0x915d;
            SpellID ^= (ushort)role.UID;
            SpellID = (ushort)(SpellID << 0x3 | SpellID >> 0xd);
            SpellID -= 0xeb42;

            if (SpellID == role.AimbotSkillToReplace)
            {
            #endregion
                #region GetCoords
                X = (ushort)((Packet[16+4] & 0xFF) | ((Packet[17+4] & 0xFF) << 8));
                X = (ushort)(X ^ (uint)(role.UID & 0xffff) ^ 0x2ed6);
                X = (ushort)(((X << 1) | ((X & 0x8000) >> 15)) & 0xffff);
                X = (ushort)((X | 0xffff0000) - 0xffff22ee);

                Y = (ushort)((Packet[18+4] & 0xFF) | ((Packet[19+4] & 0xFF) << 8));
                Y = (ushort)(Y ^ (uint)(role.UID & 0xffff) ^ 0xb99b);
                Y = (ushort)(((Y << 5) | ((Y & 0xF800) >> 11)) & 0xffff);
                Y = (ushort)((Y | 0xffff0000) - 0xffff8922);
                #endregion
                #region GetTarget
                Target = ((uint)Packet[12 + 4] & 0xFF) | (((uint)Packet[13 + 4] & 0xFF) << 8) | (((uint)Packet[14 + 4] & 0xFF) << 16) | (((uint)Packet[15 + 4] & 0xFF) << 24);
                Target = ((((Target & 0xffffe000) >> 13) | ((Target & 0x1fff) << 19)) ^ 0x5F2D2463 ^ role.UID) - 0x746F4AE6;
                #endregion
so, can anyone tell me how to do it ?
03/11/2014 22:14 pro4never#2
That's decryption for a skill packet.

You want to know where a player is so instead record spawn, walk and jump packets to update player locations.
03/11/2014 22:35 kakamankoko#3
I can do so and I can get the nearest monesters Id and x and y but I don't know what packet to get player uid and x y so can u tell me it I'm using your bot(proxyparadise) BTW and I'm glad you replayed
03/12/2014 01:22 Aceking#4
Packet offsets vary by patches. So without knowing what patch you are on, we really can't help you.

UID, X and Y is contained within the SpawnEntityPacket.
Which is 1014 for older patches, and 10014 for newer patches.
As far as what offset, you might be better off checking a public source that's close to your patch to find it.
03/12/2014 15:27 kakamankoko#5
i have all the offsets for the patch i need and the patch is 5870 but what offset i need i have all of them from a puplic source
03/12/2014 15:30 phize#6
Log the packets and figure it out..?
03/13/2014 14:55 kakamankoko#7
i now got all the players that spawn but the x,y do not update if they jump,walk i know that 10005 is the entity move but i dont know how to get the x,y and uid from it
03/13/2014 23:30 pro4never#8
Look at any pserver to see how a server handles those packets. By mimicking the same processes then you will know where the server things the target is.
03/14/2014 00:02 kakamankoko#9
I just need to know how to update the jump packet of other players example 10015 when target walk I can get uid and direction north , south etc... So what is the packet of other players jumping and I have another question too if I have a player uid can I get his x y
03/14/2014 03:56 Y u k i#10
Quote:
Originally Posted by kakamankoko View Post
I just need to know how to update the jump packet of other players example 10015 when target walk I can get uid and direction north , south etc... So what is the packet of other players jumping and I have another question too if I have a player uid can I get his x y
the spawn packet tells you the current location. Now if you get the dir from walking you can calculate the new X and Y.
03/14/2014 06:23 kakamankoko#11
what about jumping ?
03/14/2014 11:45 Aceking#12
As its been stated, you need to look at public sources to see how they handle those packets.
Its not a hard process, infact if you actually looked, they will pretty much show you how to do it.
03/14/2014 13:37 kakamankoko#13
Quote:
Originally Posted by Aceking View Post
As its been stated, you need to look at public sources to see how they handle those packets.
Its not a hard process, infact if you actually looked, they will pretty much show you how to do it.
i`v looked at 5870 source code but i cant find anything that update the x,y of the players near me when they jump i found only when they run/walk
03/14/2014 15:27 Aceking#14
Quote:
Originally Posted by kakamankoko View Post
i`v looked at 5870 source code but i cant find anything that update the x,y of the players near me when they jump i found only when they run/walk
Packet 10010 is the jump packet.
You are clearly not looking hard enough.
03/14/2014 17:24 kakamankoko#15
Quote:
Originally Posted by Aceking View Post
Packet 10010 is the jump packet.
You are clearly not looking hard enough.
Oh god, packet 10010 is jump packet for my current char not players near me