|
You last visited: Today at 06:30
Advertisement
[Help] Target Packet
Discussion on [Help] Target Packet within the SRO Private Server forum part of the Silkroad Online category.
06/09/2015, 22:30
|
#1
|
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
|
[Help] Target Packet
Hi everyone ,
i got a small problem but i think it hasn't a solution
so here is my problem ,
Target packet its need a unknown parameter its called object id of monster or npc or character .. etc.
from where i can select this id ? cuz its changed every time i target a character after relog.
i mean every login each character get a new object id and i want to make a system using target a characters by text box (Character Name)
this is a simple parser for target object opcode analyzing :
[C -> S][7045]
7E B5 01 00 ~...............
[S -> C][B045]
01 ................
7E B5 01 00 ~...............
01 ................
05 ................
04 ................
i wait any help :/
|
|
|
06/10/2015, 01:18
|
#2
|
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
|
It's called "unique ID". You can get it from :
1-self ID (self-spawn packet)
2-for other players/mobs/objects (using single/group spawn packets)
For players, the ID changes upon teleporting. For NPCs, it doesn't change (even after server restart) as long as you don't edit anything with NPC/mobs spawn.
As for mobs, it doesn't change for the SAME mob until it dies. But it's different for different mobs in the field.
P.S. Parsing group-spawn packet is extremely difficult, but there are some parsed examples released already, Search for them.
|
|
|
06/10/2015, 01:54
|
#3
|
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
|
Quote:
Originally Posted by magicanoo
It's called "unique ID". You can get it from :
1-self ID (self-spawn packet)
2-for other players/mobs/objects (using single/group spawn packets)
For players, the ID changes upon teleporting. For NPCs, it doesn't change (even after server restart) as long as you don't edit anything with NPC/mobs spawn.
As for mobs, it doesn't change for the SAME mob until it dies. But it's different for different mobs in the field.
P.S. Parsing group-spawn packet is extremely difficult, but there are some parsed examples released already, Search for them.
|
i already parsed this incoming single spawn packet 0x3015
but i want to select character name (Test) and object id (B5 B5 01 00) in variables string & uint ,
i tried to do it but its failed every time.
here is the full packet
Code:
[S -> C][3015]
73 07 00 00 s...............
22 "...............
10 ................
00 ................
00 ................
6D m...............
08 ................
6E 98 00 00 n...............
08 ................
74 98 00 00 t...............
08 ................
71 98 00 00 q...............
08 ................
7A 98 00 00 z...............
08 ................
77 98 00 00 w...............
08 ................
7D 98 00 00 }...............
08 ................
5C 98 00 00 \...............
FA ................
6B 98 00 00 k...............
FA ................
05 ................
01 ................
5B 5F 00 00 [_..............
06 ................
00 ................
B5 B5 01 00 ................
EC 63 .c..............
00 40 80 44 0A E1 EC 3A 00 C0 5F 44 58 AE [email protected]...:.._DX...
00 ................
01 ................
00 ................
58 AE X...............
01 ................
00 ................
00 ................
00 ................
00 00 80 41 ...A............
00 00 48 42 ..HB............
00 00 C8 42 ...B............
00 ................
04 00 ................
54 65 73 74 Test............
01 ................
01 ................
00 ................
00 ................
00 ................
00 ................
00 ................
00 ................
00 00 ................
00 00 00 00 ................
00 00 ................
00 00 00 00 ................
00 00 00 00 ................
00 00 00 00 ................
00 ................
00 ................
00 ................
FF ................
01 ................
is there a method to ignore the bytes that i don't need it while reading packet parameters ?
|
|
|
06/10/2015, 12:21
|
#4
|
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
|
Quote:
Originally Posted by ramy_11_1
i already parsed this incoming single spawn packet 0x3015
but i want to select character name (Test) and object id (B5 B5 01 00) in variables string & uint ,
i tried to do it but its failed every time.
here is the full packet
Code:
[S -> C][3015]
73 07 00 00 s...............
22 "...............
10 ................
00 ................
00 ................
6D m...............
08 ................
6E 98 00 00 n...............
08 ................
74 98 00 00 t...............
08 ................
71 98 00 00 q...............
08 ................
7A 98 00 00 z...............
08 ................
77 98 00 00 w...............
08 ................
7D 98 00 00 }...............
08 ................
5C 98 00 00 \...............
FA ................
6B 98 00 00 k...............
FA ................
05 ................
01 ................
5B 5F 00 00 [_..............
06 ................
00 ................
B5 B5 01 00 ................
EC 63 .c..............
00 40 80 44 0A E1 EC 3A 00 C0 5F 44 58 AE [email protected]...:.._DX...
00 ................
01 ................
00 ................
58 AE X...............
01 ................
00 ................
00 ................
00 ................
00 00 80 41 ...A............
00 00 48 42 ..HB............
00 00 C8 42 ...B............
00 ................
04 00 ................
54 65 73 74 Test............
01 ................
01 ................
00 ................
00 ................
00 ................
00 ................
00 ................
00 ................
00 00 ................
00 00 00 00 ................
00 00 ................
00 00 00 00 ................
00 00 00 00 ................
00 00 00 00 ................
00 ................
00 ................
00 ................
FF ................
01 ................
is there a method to ignore the bytes that i don't need it while reading packet parameters ?
|
You can use ReadUIntArray8(x), where x = number of bytes you want to skip.but take care, since spawn packets are dynamic, not static.
|
|
|
06/10/2015, 14:43
|
#5
|
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
|
Thnx alot brother
i know that this packet is dynamic
to select ID i must select the red values first and put it in cases by if , else if
73 07 00 00 s............... // Normal Char for GM = 7A 07 00 00
22 "............... // Static
10 ................ // Static
00 ................ // Static
00 ................ // Static
6D m............... // Static
08 ................ // dynamic inventory items count between 0 & 8
6E 98 00 00 n............... // item 1
08 ................ // plus 1
74 98 00 00 t............... // item 2
08 ................ // plus 2
71 98 00 00 q............... // item 3
08 ................ // plus3
7A 98 00 00 z............... // item 4
08 ................ // plus4
77 98 00 00 w............... // item 5
08 ................ // plus 5
7D 98 00 00 }............... // item 6
08 ................ // plus 6
5C 98 00 00 \............... // item 7
FA ................ // plus 7
6B 98 00 00 k............... // item 8
FA ................ // plus 8
05 ................ // static
01 ................ // dynamic inv avatar slots between 0 & 5
5B 5F 00 00 [_.............. // item 1
06 ................ // plus 1
00 ................ // static
B5 B5 01 00 ................ // ObjID
Done i did thanks for everything <3
|
|
|
 |
Similar Threads
|
[Help] Target Packet
06/10/2015 - SRO Coding Corner - 6 Replies
Hi everyone ,
i got a small problem but i think it hasn't a solution :(
so here is my problem ,
Target packet its need a unknown parameter its called object id of monster or npc or character .. etc.
from where i can select this id ? cuz its changed every time i target a character after relog.
i mean every login each character get a new object id and i want to make a system using target a characters by text box (Character Name)
this is a simple parser for target object opcode analyzing :
|
How to get out the Target ID from this packet
10/16/2009 - CO2 Private Server - 13 Replies
hello there ,
this is for
actually i have 2 things need help with
1-Getting the target id from a packet Solved
2-The string type id for nobility screen or how to r8 names to it
i had the Nobi Donation screens 1,2 but with no names now i wanna send the names to it , how is that will be done ?
|
[Frage]Packet 0x3E, Target und Attacker
07/11/2009 - Kal Online - 7 Replies
Hi, will einen simplen bot machen, bin nun auch langsam am "verstehen".. nun meine frage: ich will erstmal nur die mobs angeifen, die mich attacken..
das Packet 0x3E sagt ja irgendwas greift irgendwen an..
nun wie bekomme ich das raus, dass ich angegriffen werde?!
DWORD attacker=0;
DWORD target=0;
WORD dmg;
WORD dmg2;
memcpy((void*)&attacker,(void*)((DWORD)buf2+3 +1) ,4);
memcpy((void*)&target,(void*)((DWORD)buf2+3+1 +4) ,4);
|
All times are GMT +1. The time now is 06:31.
|
|