Register for your free account! | Forgot your password?

You last visited: Today at 12:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Parsing

Discussion on Parsing within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
12345armin12345's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 7
Received Thanks: 1
Parsing

Hey, can anyone please parse that packet(3013), its for my bot, but I got problem when I'm trying to parse charname and X,Y cords, others I know probably. Thanks...

Here it is:

Code:
[S->C] [1823] [0x3013] 
4d e8 62 2b 79 07 00 00 44 37 37 4d db be 00 00    M.b+y...D77M....
00 00 00 57 01 00 00 a4 cd 92 00 00 00 00 00 aa    ...W............
05 00 00 00 00 05 00 00 00 00 8f 09 00 00 d1 17    ................
00 00 00 00 00 00 00 00 00 00 00 00 37 2d 00 00    ............7-..
00 00 00 03 75 00 00 00 00 00 00 00 00 00 00 00    ....u...........
30 00 00 00 00 01 00 02 00 03 00 04 00 01 00 00    0...............
00 00 6f 75 00 00 00 00 00 00 00 00 00 00 00 2f    ..ou.........../
00 00 00 00 01 00 02 00 03 00 04 00 02 00 00 00    ................
00 4e 75 00 00 00 00 00 00 00 00 00 00 00 35 00    .Nu...........5.
00 00 00 01 00 02 00 03 00 04 00 03 00 00 00 00    ................
b8 75 00 00 00 00 00 00 00 00 00 00 00 35 00 00    .u...........5..
00 00 01 00 02 00 03 00 04 00 04 00 00 00 00 91    ................
75 00 00 00 00 00 00 00 00 00 00 00 35 00 00 00    u...........5...
00 01 00 02 00 03 00 04 00 05 00 00 00 00 dc 75    ...............u
00 00 00 00 00 00 00 00 00 00 00 38 00 00 00 00    ...........8....
01 00 02 00 03 00 04 00 07 00 00 00 00 a0 65 00    ..............e.
00 06 00 00 00 00 00 00 00 00 3b 00 00 00 00 01    ..........;.....
00 02 00 03 00 04 00 09 00 00 00 00 48 64 00 00    ............Hd..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00    ................
02 00 03 00 04 00 0a 00 00 00 00 6a 64 00 00 00    ...........jd...
00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02    ................
00 03 00 04 00 0b 00 00 00 00 25 64 00 00 00 00    ..........%d....
00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00    ................
03 00 04 00 0c 00 00 00 00 25 64 00 00 00 00 00    .........%d.....
00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 03    ................
00 04 00 0d 00 00 00 00 4a a1 00 00 04 00 0e 00    ........J.......
00 00 00 d9 a0 00 00 02 b4 5a 00 00 00 00 42 bb    .........Z....B.
07 00 00 0f 00 00 00 00 40 1d 00 00 03 21 18 00    ........@....!..
00 00 00 48 00 10 00 00 00 00 da a0 00 00 2c 00    ...H..........,.
11 00 00 00 00 db a0 00 00 1d 00 13 00 00 00 00    ................
86 5e 00 00 27 00 14 00 00 00 00 40 60 00 00 22    .^..'......@`.."
00 15 00 00 00 00 3f a1 00 00 05 00 16 00 00 00    ......?.........
00 43 a1 00 00 01 00 17 00 00 00 00 41 a1 00 00    .C..........A...
04 00 18 00 00 00 00 42 a1 00 00 05 00 19 00 00    .......B........
00 00 dc a0 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 01 00 02 00 03 00 04 00 1a 00 00 00    ................
00 40 65 00 00 00 00 00 00 00 00 00 00 00 3b 00    .@e...........;.
00 00 00 01 00 02 00 03 00 04 00 1b 00 00 00 00    ................
5b 98 00 00 62 00 1c 00 00 00 00 95 27 00 00 07    [...b.......'...
00 1d 00 00 00 00 17 00 00 00 32 00 1e 00 00 00    ..........2.....
00 17 00 00 00 28 00 1f 00 00 00 00 17 00 00 00    .....(..........
32 00 20 00 00 00 00 17 00 00 00 31 00 21 00 00    2..........1.!..
00 00 50 98 00 00 88 01 22 00 00 00 00 54 98 00    ..P....."....T..
00 f5 00 23 00 00 00 00 f4 5e 00 00 fa 00 24 00    ...#.....^....$.
00 00 00 f4 5e 00 00 b7 00 25 00 00 00 00 60 0e    ....^....%....`.
00 00 01 00 26 00 00 00 00 a6 65 00 00 00 00 00    ....&.....e.....
00 00 00 00 00 00 2a 00 00 00 01 03 00 00 00 2a    ......*........*
00 00 00 01 00 02 00 03 00 04 00 27 00 00 00 00    ...........'....
69 0e 00 00 01 00 2d 00 00 00 00 4d 98 00 00 23    i.....-....M...#
00 2e 00 00 00 00 4f 98 00 00 03 00 2f 00 00 00    ......O...../...
00 4e 98 00 00 04 00 30 00 00 00 00 72 75 00 00    .N.....0....ru..
00 00 00 00 00 00 00 00 00 3f 00 00 00 00 01 00    .........?......
02 00 03 00 04 00 32 00 00 00 00 3e 60 00 00 01    ......2....>`...
00 33 00 00 00 00 06 75 00 00 00 00 00 00 00 00    .3.....u........
00 00 00 3e 00 00 00 00 01 00 02 00 03 00 04 00    ...>............
34 00 00 00 00 94 75 00 00 00 00 00 00 00 00 00    4.....u.........
00 00 3f 00 00 00 00 01 00 02 00 03 00 04 00 36    ..?............6
00 00 00 00 31 9f 00 00 0e 00 05 00 00 0b 00 00    ....1...........
01 01 01 00 00 00 01 02 01 00 00 00 01 03 01 00    ................
00 00 01 14 01 00 00 00 01 15 01 00 00 37 02 00    .............7..
01 61 00 00 00 01 01 83 00 00 00 01 01 6c 04 00    .a...........l..
00 01 01 74 04 00 00 01 01 81 04 00 00 01 01 bc    ...t............
04 00 00 01 01 c3 04 00 00 01 01 d5 04 00 00 01    ................
01 f7 04 00 00 01 01 f9 04 00 00 01 01 fb 04 00    ................
00 01 01 24 05 00 00 01 01 2c 05 00 00 01 01 36    ...$.....,.....6
05 00 00 01 01 46 05 00 00 01 01 48 05 00 00 01    .....F.....H....
01 50 05 00 00 01 01 61 05 00 00 01 01 69 05 00    .P.....a.....i..
00 01 01 6d 05 00 00 01 01 82 05 00 00 01 01 8e    ...m............
05 00 00 01 01 95 05 00 00 01 01 af 05 00 00 01    ................
01 bc 05 00 00 01 01 de 05 00 00 01 01 8d 4c 00    ..............L.
00 01 01 92 4c 00 00 01 02 22 00 01 00 00 00 dc    ....L...."......
00 00 00 9d 01 00 00 9e 01 00 00 3c 04 00 00 3d    ...........<...=
04 00 00 3e 04 00 00 3f 04 00 00 40 04 00 00 41    ...>[email protected]
04 00 00 42 04 00 00 44 04 00 00 45 04 00 00 46    ...B...D...E...F
04 00 00 47 04 00 00 48 04 00 00 49 04 00 00 4a    ...G...H...I...J
04 00 00 4c 04 00 00 4d 04 00 00 4e 04 00 00 4f    ...L...M...N...O
04 00 00 50 04 00 00 51 04 00 00 52 04 00 00 54    ...P...Q...R...T
04 00 00 55 04 00 00 56 04 00 00 57 04 00 00 58    ...U...V...W...X
04 00 00 59 04 00 00 69 04 00 00 6f 04 00 00 a0    ...Y...i...o....
04 00 00 06 dd 00 00 00 00 01 00 00 18 07 01 01    ................
01 1b 00 53 4e 5f 43 4f 4e 5f 51 53 50 5f 57 43    ...SN_CON_QSP_WC
5f 45 58 49 4e 56 45 4e 54 4f 52 59 5f 32 01 07    _EXINVENTORY_2..
00 00 00 8e 01 00 00 00 03 00 00 18 01 01 01 01    ................
17 00 53 4e 5f 43 4f 4e 5f 51 53 50 5f 41 4c 4c    ..SN_CON_QSP_ALL
5f 50 4f 54 49 4f 4e 5f 34 01 b1 01 00 00 a0 01    _POTION_4.......
00 00 00 01 00 00 58 01 01 01 01 17 00 53 4e 5f    ......X......SN_
43 4f 4e 5f 51 45 56 5f 41 4c 4c 5f 42 41 53 49    CON_QEV_ALL_BASI
43 32 5f 34 01 00 00 00 00 05 e5 07 00 00 39 24    C2_4..........9$
00 00 3a 24 00 00 8a 27 00 00 65 1d 00 00 a1 01    ..:$...'..e.....
00 00 00 01 00 00 18 01 01 01 01 17 00 53 4e 5f    .............SN_
43 4f 4e 5f 51 45 56 5f 41 4c 4c 5f 42 41 53 49    CON_QEV_ALL_BASI
43 32 5f 35 01 00 00 00 00 a2 01 00 00 00 01 00    C2_5............
00 18 01 01 01 01 17 00 53 4e 5f 43 4f 4e 5f 51    ........SN_CON_Q
45 56 5f 41 4c 4c 5f 42 41 53 49 43 32 5f 36 01    EV_ALL_BASIC2_6.
00 00 00 00 5a 04 00 00 00 01 00 00 58 08 01 01    ....Z.......X...
00 1e 00 53 4e 5f 43 4f 4e 5f 51 4e 4f 5f 4c 56    ...SN_CON_QNO_LV
5f 41 43 43 45 53 53 4f 52 59 5f 43 48 5f 37 5f    _ACCESSORY_CH_7_
31 01 00 00 00 00 03 fd 96 00 00 f6 97 00 00 f5    1...............
97 00 00 00 00 00 00 00 98 b8 64 00 01 80 00 c0    ..........d.....
e3 44 bd 37 06 b7 00 40 df c4 5c 7f 00 01 00 5c    .D.7...@..\....\
7f 00 00 00 00 00 9a 99 99 41 01 00 70 42 00 00    .........A..pB..
c8 42 00 08 00 49 6e 64 69 6a 61 6e 63 00 00 00    .B...Indijanc...
00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 ff d7 0b e1 03 00 00 00 00 8d 12 ed    ................
00 00 07 14 01 49 48 05 00 00 02 49 6d 05 00 00    .....IH....Im...
03 49 c3 04 00 00 04 49 bc 05 00 00 05 49 2c 05    .I.....I.....I,.
00 00 06 49 bc 04 00 00 07 49 af 05 00 00 0b 49    ...I.....I.....I
74 04 00 00 0c 49 fb 04 00 00 0d 49 36 05 00 00    t....I.....I6...
0e 49 82 05 00 00 0f 49 95 05 00 00 10 49 92 4c    .I.....I.....I.L
00 00 1f 4a eb 03 00 64 20 4a ee 03 00 64 21 4a    ...J...d.J...d!J
f1 03 00 64 25 46 11 00 00 00 26 46 0e 00 00 00    ...d%F....&F....
27 46 14 00 00 00 28 46 15 00 00 00 00 00 00 00    'F....(F........
00 00 00 00 00 00 00 00 00 00 00 01 0a 00 52 33    ..............R3
42 33 4c 5f 51 33 33 4e 00 01 00 01 00 00 01       B3L_Q33N........
Charname is "Indijanc", Analyzed with phConnector and phAnalyzer...
12345armin12345 is offline  
Old 01/31/2013, 14:19   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 313
Received Thanks: 667
It's old but it could help you to figure out your packet. Don't every think someone will fully parse it for you

Code:
== Description ==
This packet is from rSRO v1.027 and may not compatible with other versions.
Its not finished yet and may contains some mistakes

== Packet Data ==

== Character ==

  [Dword] 8B CD 07 40                                      Unknown
  [Dword] 8F 39 00 00                                      ObjectID
  [Byte] 22                                                Volume
  [Byte] 32                                                Level
  [Byte] 32                                                HighestLevel
  [Qword] 84 B5 2B 00 00 00 00 00                          Current Exp
  [Dword] F3 00 00 00                                      SP Exp (0-400)
  [Qword] 40 04 5E 01 00 00 00 00                          Gold
  [Dword] 9A 24 00 00                                      SP
  [Word] 00 00                                             Attribute Points
  [Byte] 05                                                HwanLevel (Berserk Orbs)
  [Dword] 00 00 00 00                                      Unknown
  [Dword] 1C 07 00 00                                      Current HP
  [Dword] 43 16 00 00                                      Current MP
  [Byte] 00                                                NoobFlag
  [Byte] 00                                                Daily PK
  [Word] 00 00                                             PK Level
  [DWord] 00 00 00 00                                      Murder Level
  [Byte] 00                                                Title

=== ItemData ===

'''Inventory'''
 3B                                                Size
 25                                                Item Count
 ForEach Item
    
    '''Equipment'''
    if(ItemType == Equipment)
    {
       00                                                Slot
       E8 34 00 00                                       ItemID
       00                                                Plus
       00 00 00 00 00 00 00 00                           WhiteStats
       2D 00 00 00                                       Durability
       00                                                BlueCount
       ForEach Blue
          [DWORD] BlueID
          [DWORD] BlueValue
       EndFor
       01                                                Advance A
       00                                                Not used
       02                                                Advance B
       00                                                Not used  
    }
    
    '''Growth Pet'''
    if(ItemType == GrowthPet)
    {
       35                                                Slot
       40 1D 00 00                                       ItemID
       03                                                Status
       02 18 00 00                                       ModelID (From CharacterData)
       00 00                                             Name Length
       [STRING]                                          Name
       00                                                ................
    }
   
    '''Other Item''' 
    if(ItemType == ETC)
    {
       3A                                                Slot
       43 1D 00 00                                       ItemID
       01 00                                             Amount
    }
 
 EndFor

''' Inventory Avatar '''
 05                                                Avatar Inventory Size
 01                                                Avatar Inventory Count
 
 ForEach Avatar 
    00                                                Slot
    02 5B 00 00                                       ItemID
    01                                                Plus - Yea from WebEvent(rSRO)
    00 00 00 00 00 00 00 00                           Modifire
    00 00 00 00                                       Durability
    04                                                BlueCount
    ForEach Blue
       74 01 00 00                                       BlueType 
       01 00 00 00                                       BlueValue
    EndFor
    01                                                Advance A
    00                                                Not used
    02                                                Advance B
    00                                                Not used
 EndFor


=== Duplicate List ===

 [BYTE]                                       Duplicate List (00 - None) (01 - Duplicate)
 if Duplicate List = 1
   if_player
     [DWORD]                                  Character Model
     [BYTE]                                   Volume + Height
     [BYTE]                                   Number of Items
     ForEach Item
       [DWORD]                                Item ID
     EndFor
   if_mob
     [DWORD]                                  Character Model

=== Mastery ===
 01                                                NextMastery
 01 02 00 00                                       MasteryID
 00                                                Level
 01                                                NextMastery
 02 02 00 00                                       MasteryID
 00                                                Level
 ...read until...
 02                                                MasteryEnd

 00                                                ................

=== Skills ===

 01                                                NextSkill
 09 21 00 00                                       SkillID
 01                                                SkillEnabled
 01                                                NextSkill
 0F 21 00 00                                       SkillID
 01                                                SkillEnabled
 ...read until...
 02                                                SkillEnd

=== Quest ===

'''Done Quests'''
 19 00                                             DoneQuestsCount 
 ForEach DoneQuest
 | 
 |    01 00 00 00                                       QuestID 
 | 
 EndFor

'''Active Quests'''
 01                                                ActiveQuestCount
 ForEachActiveQuest
 |  
 |   17 00 00 00                                       QuestID
 |   10                                                Repetition Amount = Bit && Completetion Amount = Bit
 |   00                                                ................
 |   18                                                QuestType 
 |   if(QuestType = 0x1C)
 |   {
 |   |   00 80 B0 03                                       Time
 |   }  
 |   07                                                ................
 |   01                                                Objective Count
 |   ForEachObjective
 |   |   01                                                Objective Order Number
 |   |   01                                                Status (00 - Done) (01 - On)
 |   |   1B 00                                             ObjectiveNameLength
 |   |   [STRING]                                          ObjectiveName
 |   |   01                                                TaskCount
 |   |   ForEachTask
 |   |   |
 |   |   55 00 00 00                                       TaskValue (Kills or Collected Items)
 |   |   |
 |   |   EndFor
 |   EndFor
 |   
 |   if(QuestType = 0x1C) //A list of NPCs you can talk with for the they.
 |   {
 |   |   0C                                                NPC Count
 |   |   ForEach NPC
 |   |   |   EB 07 00 00                                       NPC ID
 |   |   |   E4 07 00 00                                       NPC ID
 |   |   |   FE 07 00 00                                       NPC ID
 |   |   |   11 08 00 00                                       NPC ID
 |   |   |   0E 08 00 00                                       NPC ID
 |   |   |   1E 08 00 00                                       NPC ID
 |   |   |   25 08 00 00                                       NPC ID
 |   |   |   70 1D 00 00                                       NPC ID
 |   |   |   72 1D 00 00                                       NPC ID
 |   |   |   4D 1D 00 00                                       NPC ID
 |   |   |   50 1D 00 00                                       NPC ID
 |   |   |   62 1D 00 00                                       NPC ID
 |   |   EndFor
 |   }
 | 
 EndFor
 00                                                Quest List End

=== Other Stuff ===

 76 0F 8A 00                                       UniqueID
 A8                                                XSector
 62                                                YSector
 CB 16 E0 43                                       XOffset
 00 00 20 42                                       ZOffset
 3D FD AB 44                                       YOffset
 7E CC                                             Angle
 01                                                have_destination
 01                                                WalkFlag(0=Walking,1=Running)
 if(have_destination = 0)
 {
        00                                                no source
        0B 08                                             Angle
 }
 else
 {
        A8                                                DestXSec
        62                                                DestYSec
        01 01                                             DestX
        28 00                                             DestZ
        5D 05                                             DestY
 } 
 01                                                DeadFlag(1=Alive,2=Dead)
 00                                                ActionFlag(0=Standing,2=Walking,3=Running,4=Sitting)
 00                                                ZerkFlag
 9A 99 99 41                                       WalkSpeed
 01 00 70 42                                       RunSpeed
 00 00 C8 42                                       ZerkSpeed
 00                                                ActiveBuff Count
 ForEach ActiveBuff
 [Dword]                                           Skill ID
 [Dword]                                           ''Duration ms'' or ''UniqueBuff'' ID ?!
 EndFor

 09 00                                             NameLength
 [STRING]                                          Name
 00 00                                             Job NameLen
 [STRING]                                          Job Name
 00                                                JobType(0=None,1=Trader,2=Tief,3=Hunter)
 01                                                JobLevel(1-7)
 00 00 00 00                                       CurrentJobPoints
 00 00 00 00                                       ................
 00 00 00 00                                       ................
 00                                                ................
 00                                                ................
 00                                                ................
 FF                                                PK Flag(255=Disbale,34 = Enable)
 D7 33 E1 03 00 00 00 00                           .3..............
 D3 7A 04 00                                       AccountID
 00                                                GM Flag (Name Color & Console)
 07                                                ................

=== Hotkey Settings ===

 14                                                HotkeyCount
 ForEach Hotkey
   00                                                Slot
   4A                                                Type(70=InvItem,71=EquipedItem,73=Skill,78=EquipedAvatar,74=Action,37=COS Action)
   [Dword] Item Id
 EndFor

=== Auto Potion Settings ===

 41                                                HP Slot(FValue * 10 + Slot)
 B2                                                HP Value(Enabled = 128 + Value)
 42                                                MP Slot(FValue * 10 + Slot)
 B2                                                MP Value(Enabled = 128 + Value)
 43                                                Universal Slot(FValue * 10 + Slot)
 80                                                Universal Value(Enabled = 128,0 = Disabled)
 0A                                                Potion Delay(Enabled = 128 + Value)

=== Blocked Players ===

 00                                                BlockedPlayersAmout
 ForEach BlockedPlayer
    [Word] Playername Length
    [String] Playername
 EndFor

 01 00 01 00                                       ................
 00                                                ................
 01                                                ................
DaxterSoul is offline  
Thanks
1 User
Old 02/24/2013, 18:24   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 144
Received Thanks: 36
Wish I could help dude
[GM]Obvlision is offline  
Reply

Tags
parse isro bot


Similar Threads Similar Threads
Packet parsing continue..
07/19/2012 - SRO Coding Corner - 3 Replies
Hello, I just have problems with packets again -.-" 01 ................ 02 ................ 01 ................ 0D ................ 00 00 00 00 ................
Parsing GCR Replay Files
10/12/2011 - Grand Chase - 0 Replies
I was wondering if anyone would have any idea how to get data from the replay files that Grand Chase creates. I would like to create a nice parser, however I have no idea how to extract the data from the replay. I know that WC3 replays use DEFLATE compression algorithm, so I tried to inflate a GCR file with zlib but that didn't get me anywhere. Any help is appreciated. Thanks
Parsing EliteSro Chardata [ mostly done ]
07/07/2011 - SRO Coding Corner - 1 Replies
Ok .. Well guys , i mostly parsed the elitesro chardata. But i can't find out x and y coords , and im not sure if my quests part is true. Here we go , i paste my code : Dim Pos As sPos Dim glr As UInt32 Dim type As Byte bn.ReadBytes(9) ' ? , model , volume Dim Level As Byte = bn.ReadByte bn.ReadByte() ' highest mastery level Dim EXP As UInt64 = bn.ReadUInt64
DMap File Parsing
03/02/2008 - Conquer Online 2 - 12 Replies
I finished the app, it correctly parses the DMap files and renders them to the screen (from what i could tell on the ones i tried, its slow because its using PSet plus its in vb, but at this point, i dont care about efficiency, i'll worry about that later, the fact is it works. Refer to: http://www.elitepvpers.com/forum/co2-main-discussio ns-questions/112647-new-bot-development.html for the COBot Project which this is part of. I took this from my reply i made on my new bot i'm developing,...



All times are GMT +2. The time now is 12:36.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.