Openkore.com
http://forums.openkore.com/

RO Structs
http://forums.openkore.com/viewtopic.php?f=38&t=10594
Page 3 of 4

Author:  Technology [ 21 Jul 2010, 11:40 ]
Post subject:  Re: RO Structs

in kRO RE sakray length of inner struct:
- CHARACTER_INFO_NEO_UNION changed from 112 to 128. (16 byte wide mapName field was added at the end of the struct)
- EQUIPMENTITEM_EXTRAINFO3 changed from 26 to 28 (a 2 byte wide datafield was added at the end of the struct).

Code:
// used in: (CharBlockSize 128)
// TODO: kLab's struct had (btw, look at its adress and the previous one): /* this+0x6e */ short bIsAccept; (i commented it out since in reality there is no such datafield)
// NOTE: added a mapname field at the end of the struct
struct CHARACTER_INFO_NEO_UNION {
  /* this+0x0 */ unsigned long GID;
  /* this+0x4 */ int exp;
  /* this+0x8 */ int money;
  /* this+0xc */ int jobexp;
  /* this+0x10 */ int joblevel;
  /* this+0x14 */ int bodystate;
  /* this+0x18 */ int healthstate;
  /* this+0x1c */ int effectstate;
  /* this+0x20 */ int virtue;
  /* this+0x24 */ int honor;
  /* this+0x28 */ short jobpoint;
  /* this+0x2a */ int hp;
  /* this+0x2e */ int maxhp;
  /* this+0x32 */ short sp;
  /* this+0x34 */ short maxsp;
  /* this+0x36 */ short speed;
  /* this+0x38 */ short job;
  /* this+0x3a */ short head;
  /* this+0x3c */ short weapon;
  /* this+0x3e */ short level;
  /* this+0x40 */ short sppoint;
  /* this+0x42 */ short accessory;
  /* this+0x44 */ short shield;
  /* this+0x46 */ short accessory2;
  /* this+0x48 */ short accessory3;
  /* this+0x4a */ short headpalette;
  /* this+0x4c */ short bodypalette;
  /* this+0x4e */ unsigned char name[24];
  /* this+0x66 */ unsigned char Str;
  /* this+0x67 */ unsigned char Agi;
  /* this+0x68 */ unsigned char Vit;
  /* this+0x69 */ unsigned char Int;
  /* this+0x6a */ unsigned char Dex;
  /* this+0x6b */ unsigned char Luk;
  /* this+0x6c */ unsigned char CharNum;
  /* this+0x6d */ unsigned char haircolor;
  /* this+0x6e */ short bIsChangedCharName;
//  /* this+0x6e */ short bIsAccept;
  /* this+0x70 */ unsigned char mapName[16];
}


EDIT: added latest test plugin updated with kLab's latest structs

Attachments:
RO_struct_plugin_1.tar.gz [59.58 KiB]
Downloaded 189 times

Author:  Technology [ 25 Jul 2010, 14:33 ]
Post subject:  Re: RO Structs

spec's will go here: http://wiki.openkore.com/index.php?title=Project/Network

Author:  EternalHarvest [ 03 Nov 2010, 11:45 ]
Post subject:  Re: RO Structs

What is type in 07E1?

Code:
// packet 0x7e1
struct PACKET_ZC_SKILLINFO_UPDATE2 {
  /* this+0x0 */ short PacketType
  /* this+0x2 */ unsigned short SKID
  /* this+0x4 */ int type
  /* this+0x8 */ short level
  /* this+0xa */ short spcost
  /* this+0xc */ short attackRange
  /* this+0xe */ bool upgradable
}

Author:  kLabMouse [ 03 Nov 2010, 13:36 ]
Post subject:  Re: RO Structs

EternalHarvest wrote:
What is 'type' in 07E1?


Same as for any 'SKILLINFO' packet (bitflag):
Code:
typedef enum <unnamed-tag> {
  SKILLTYPE_PASSIVE =  0x0,
  SKILLTYPE_TOCHARACTER =  0x1,
  SKILLTYPE_TOGROUND =  0x2,
  SKILLTYPE_TOME =  0x4,
  SKILLTYPE_TOITEM =  0x8,
  SKILLTYPE_TOALL =  0x10,
  SKILLTYPE_TOSKILL =  0x20,
} <unnamed-tag>;


Also. I think, that kore need to use this Flag, and not that static tables.

Author:  EternalHarvest [ 21 Nov 2010, 06:01 ]
Post subject:  Re: RO Structs

Code:
  struct CHARACTER_INFO_NEO_UNION charInfo[...] { // CharBlockSize 112
...
    /* this+0x6e */ short bIsChangedCharName;
    /* this+0x6e */ short bIsAccept;

Both 0x6e?

Author:  kLabMouse [ 21 Nov 2010, 10:09 ]
Post subject:  Re: RO Structs

EternalHarvest wrote:
Code:
  struct CHARACTER_INFO_NEO_UNION charInfo[...] { // CharBlockSize 112
...
    /* this+0x6e */ short bIsChangedCharName;
    /* this+0x6e */ short bIsAccept;

Both 0x6e?

that's Alias.

Author:  kLabMouse [ 29 Jan 2011, 14:09 ]
Post subject:  Re: RO Structs

New Structs.
http://www.mediafire.com/?1xtnhq2sq4ctcx8

For the new Enums. Please ASK.

P.S. Well, the info is still Aug/Sep 2010

Author:  kLabMouse [ 23 Apr 2011, 08:13 ]
Post subject:  Re: RO Structs

Little Update.
Oct 2010
http://www.mediafire.com/file/qx76bb23e ... cts_my.txt

Author:  kLabMouse [ 28 Aug 2011, 20:19 ]
Post subject:  Re: RO Structs

New Update. Packets up to Mar 2011.
http://www.mediafire.com/file/dga5ey0pa ... cts_my.txt

Author:  kLabMouse [ 07 Sep 2012, 11:49 ]
Post subject:  Re: RO Structs

New Update. 1 Sep 2012
http://www.mediafire.com/view/?j80cor4lql6mnk0

Page 3 of 4 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/