How to create a struct of a packet

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Raizenx
Noob
Noob
Posts: 4
Joined: 10 May 2013, 10:47
Noob?: Yes

How to create a struct of a packet

#1 Post by Raizenx »

Well I'm wanting to create something for my openkore, however I need to get the packages and its struct for a client 2014. How is mounted the struct of a package like in the example below:

Code: Select all

// packet 0xa6
struct PACKET_ZC_STORE_EQUIPMENT_ITEMLIST {
  /* this+0x0 */ short PacketType
  /* this+0x2 */ short PacketLength
  /* this+0x4 */ struct EQUIPMENTITEM_EXTRAINFO itemInfo[...] { // Size 20
    /* this+0x0 */ short index
    /* this+0x2 */ unsigned short ITID
    /* this+0x4 */ unsigned char type
    /* this+0x5 */ bool IsIdentified
    /* this+0x6 */ unsigned short location
    /* this+0x8 */ unsigned short WearState
    /* this+0xa */ bool IsDamaged
    /* this+0xb */ unsigned char RefiningLevel
    /* this+0xc */ struct EQUIPSLOTINFO slot {
      /* this+0x0 */ unsigned short card1
      /* this+0x2 */ unsigned short card2
      /* this+0x4 */ unsigned short card3
      /* this+0x6 */ unsigned short card4
    }
  }
}
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: How to create a struct of a packet

#2 Post by 4epT »

which package do you need?
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
Raizenx
Noob
Noob
Posts: 4
Joined: 10 May 2013, 10:47
Noob?: Yes

Re: How to create a struct of a packet

#3 Post by Raizenx »

4epT wrote:which package do you need?
Thanks for replying 4epT, I'm looking for packages of new systems of the KRO as:

Roulette
Rodex
Achievement System

And also I wanted to obtain existing packet more than have been updated, so I wanted to know how it works to build the struct, how to obtain the name of the package where it is applied (zone, char, login), and how to get the values of the struct.
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: How to create a struct of a packet

#4 Post by 4epT »

it is impossible :)
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
Raizenx
Noob
Noob
Posts: 4
Joined: 10 May 2013, 10:47
Noob?: Yes

Re: How to create a struct of a packet

#5 Post by Raizenx »

4epT wrote:it is impossible :)
How is impossible? And these structs that exist in the Forum, were created out of nothing?