[QUESTION]Selecting mob & Using skill packets

09/20/2015 01:54 Kardil#1
i have an issue with these packets they aren't working i don't know if i did something wrong and here they are

Selecting mob ( sure of mob id )

Code:
Packet p = new Packet(0x7045);
            p.WriteUInt16(1963);
            Agent.Send(p);
Using skill ( iam sure of skill id )

Code:
 Packet p2 = new Packet(0x7074);
            p2.WriteUInt8(0x01);
            p2.WriteUInt8(0x04);
            p2.WriteUInt32(11219);
            p2.WriteUInt8(0x01);
            p2.WriteUInt16(1963);
            Agent.Send(p2);
thanks in advance
09/20/2015 02:00 ​Exo#2
Actually selecting a mob uses the UniqueID not the RefID. = You need to parse the spawn packets to get them.

Objects' UniqueID is dynamic, there's no way you can fetch it without parsing dem packets.

It's not so hard tho.
09/20/2015 02:50 Kardil#3
i used the packet for a certain unique id of 1 mob and worked

like
Code:
 Packet p = new Packet(0x7045);
            p.WriteUInt32(33130300);
            Agent.Send(p);
but i don't know how to get the unique id for any mob arround me
i mean i can't parse the spawn , i found the spawnparsing code but i don't know how to use it.

#EDIT
I noticed that parsing spawn going through using 3015 .. but mob must be appear/spawn , not already existing one .. i wanna make it parsing the mob while it's already spawned
09/20/2015 13:20 ​Exo#4
Quote:
Originally Posted by Kardil View Post
i used the packet for a certain unique id of 1 mob and worked

like
Code:
 Packet p = new Packet(0x7045);
            p.WriteUInt32(33130300);
            Agent.Send(p);
but i don't know how to get the unique id for any mob arround me
i mean i can't parse the spawn , i found the spawnparsing code but i don't know how to use it.

#EDIT
I noticed that parsing spawn going through using 3015 .. but mob must be appear/spawn , not already existing one .. i wanna make it parsing the mob while it's already spawned
I am not sure about this but: when the mobs are moving the server sends some packet and it probably contains the uID.
09/20/2015 17:23 sarkoplata#5
Here's the deal:
If mob just "appears" near you, you get singlespawn.
If you enter an area full of mobs that already "spawned", you get them buy groupspawn.
(should be like this, or vice-versa since it's been a long time i dont remember)

SingleSpawn = 0x3015
SingleDeSpawn = 0x3016
GroupSpawnCount = 0x3017
GroupSpawnEnd = 0x3018
GroupSpawnStart = 0x3019
09/21/2015 07:55 magicanoo#6
I got an advice for you. Parsing groupspawn is an extreme pain in the ass, so I would recommend getting an already-parsed class. Check ZBot's source code, it might help you.