in your example 0E 06 is the x pos.
now you have to reverse it and change it to decimal.
with autoit it would be Dec("060E")
now you have to reverse it and change it to decimal.
with autoit it would be Dec("060E")
09 00 // Packet Size. Remember the silkroad header is 6 bytes this is the data size 21 70 // Opcode 62 18 // Security bytes 01 // Movement flag 1 for groundwalk and 0 for skywalk 4C // X Section 6A // Y Section 0E 06 // X Position 01 00 // Z Position BE 02 // Y Position
Thanks for replyQuote:
09 00 21 70 62 18 01 4C 6A 0E 06 01 00 BE 02
Code:62 18 // Security bytes
[S -> C][B150] 01 02 01 11 00 00 00 00 D8 2A 00 00 01 <<< result. its +1. 05 CA 97 52 03 00 00 00 D2 00 00 00 06 35 00 00 00 06 00 00 00 49 00 00 00 08 00 00 00 4F 00 00 00 08 00 00 00 67 00 00 00 3C 00 00 00 73 00 00 00 64 00 00 00 5B 00 00 00 78 00 00 00 01 00 02 00 01
;If $opcode = "B150" then ;Alchemy Result If $opcode = $result_packet then $ok = ParseByte() ;->01 if $ok= "01" then $dummy = ParseByte() ;->02 $dummy = ParseByte() ;->01 $iPos = ParseByte() ;->11 $dummy = ParseDWord() ; 00 00 00 00 $iId = ParseDWord() ; Global $plus = ParseByte() ;->01 GUICtrlCreateListViewItem(@HOUR&":"&@MIN&":"&@SEC&" - Item is +"&$plus, $liste) _GUICtrlListView_Scroll($liste,0,20)
[S -> C][B151] 01 02 01 0D 00 00 00 00 66 39 00 00 05 6D 01 00 00 00 00 00 00 00 00 00 00 06 49 00 00 00 08 00 00 00 4F 00 00 00 08 00 00 00 A9 00 00 00 14 00 00 00 B5 00 00 00 0A 00 00 00 BB 00 00 00 05 00 00 00 AF 00 00 00 14 00 00 00 <<<< result of alchemy (20%), if counting from hex > ASCII, 14 = 20. And its only spot that it changes. 01 00 02 00 And here is another item, same stone! [S -> C][B151] 01 02 01 0D 00 00 00 00 18 3A 00 00 05 AD 01 00 00 00 00 00 00 00 00 00 00 06 17 00 00 00 0A 00 00 00 <<<< result of alchemy (10%) 29 00 00 00 01 00 00 00 49 00 00 00 08 00 00 00 4F 00 00 00 08 00 00 00 A9 00 00 00 14 00 00 00 BB 00 00 00 14 00 00 00 01 00 02 01 00 D0 65 00 00 02 00 00 00