- Joined
- Nov 1, 2009
- Messages
- 842
- Reaction score
- 276
ok i will explain,
this issue never been discussed here.
first you must know every item code have a default code or definite code.
in client side item.edf, all item have a definite code.
ok, we start for analyze the code
example, iyyyy23
we need to separate all code like this
when we see the code at the top iy is 20, now we have analyze for y-y-y-23
all alphabet have a number for decimal
Now we sort all these figures
so y-y-y-23 will like this 24-24-24-23,
first number we need to add with 192
and you will see like this
and we got
216-24-24-23
convert all number code from alphabet to hex, except, the rearmost from two numbers
like this
now we got Client Code for iyyyy23 is $D8181823
and now for SQL Code number, just Convert Hex Number to Decimal From $D8181823
Will be Like This
Hope this will be help you..
Thx, Great novanakal
Here's i put the table for Item Code from Bin Source
Original Source
this issue never been discussed here.
first you must know every item code have a default code or definite code.
in client side item.edf, all item have a definite code.
Code:
if = 0
iu = 1
il = 2
ig = 3
is = 4
ih = 5
iw = 6
id = 7
ik = 8
ii = 9
ia = 10
ib = 11
im = 12
ip = 13
ie = 14
it = 15
io = 16
ir = 17
ic = 18
in = 19
iy = 20
iz = 21
iq = 22
ix = 23
ij = 24
gt = 25
tr = 26
sk = 27
ti = 28
ey = 29
re = 30
bx = 31
fi = 32
un = 33
rd = 34
lk = 35
cu = 36
ok, we start for analyze the code
example, iyyyy23
we need to separate all code like this
Code:
[B]iy-y-y-y-23[/B]
when we see the code at the top iy is 20, now we have analyze for y-y-y-23
all alphabet have a number for decimal
Code:
a = 0
b = 1
c = 2
..
..
..
..
z = 25
Now we sort all these figures
so y-y-y-23 will like this 24-24-24-23,
first number we need to add with 192
and you will see like this
Code:
[B](192+24)24-24-23 [/B]
and we got
216-24-24-23
convert all number code from alphabet to hex, except, the rearmost from two numbers
like this
Code:
[B] D8-18-18-23[/B]
now we got Client Code for iyyyy23 is $D8181823
and now for SQL Code number, just Convert Hex Number to Decimal From $D8181823
Will be Like This
Code:
[B]3625457699[/B]
Hope this will be help you..
Thx, Great novanakal
Here's i put the table for Item Code from Bin Source
Item Equip | Item Code |
CDPT_FACE | 0 |
CDPT_UPPER | 1 |
CDPT_LOWER | 2 |
CDPT_GLOVES | 3 |
CDPT_SHOES | 4 |
CDPT_HELMET | 5 |
CEPT_WEAPON | 6 |
CEPT_SHIELD | 7 |
CEPT_CLOAK | 8 |
IEPT_RING | 9 |
IEPT_AMULET | 10 |
IEPT_BULLET | 11 |
IEPT_WORKTOOL | 12 |
IEPT_POTION | 13 |
IEPT_ETC | 14 |
IEPT_BATTERY | 15 |
IEPT_ORE | 16 |
IEPT_INGOT | 17 |
IEPT_FORCE | 18 |
IEPT_UNIT | 19 |
IEPT_LOOT | 20 |
IEPT_MAP | 21 |
IEPT_RETURN | 22 |
IEPT_DUNGEON | 23 |
IEPT_ANIMUS | 24 |
IEPT_GUARD_TOWER | 25 |
IEPT_UNIT_HELMET | 26 |
IEPT_UNIT_UPPER_PART | 27 |
IEPT_UNIT_LOWER_PART | 28 |
IEPT_UNIT_ARMS | 29 |
IEPT_UNIT_SHOULDER | 30 |
IEPT_UNIT_BACKPACK | 31 |
IEPT_UNIT_BULLET | 32 |
IEPT_ITEM_WORK | 33 |
Original Source
Code:
// Character Default Part Type
#define MAX_DEFAULT_PART ( 6 )
#define CDPT_FACE 0
#define CDPT_UPPER_PART 1
#define CDPT_LOWER_PART 2
#define CDPT_GLOVES 3
#define CDPT_SHOES 4
#define CDPT_HELMET 5
//------------------------------------------------------------------------------
// Character Equip Part Type
#define MAX_EQUIP_PART ( 9 )
#define CEPT_FACE CDPT_FACE
#define CEPT_UPPER_PART CDPT_UPPER_PART
#define CEPT_LOWER_PART CDPT_LOWER_PART
#define CEPT_GLOVES CDPT_GLOVES
#define CEPT_SHOES CDPT_SHOES
#define CEPT_HELMET CDPT_HELMET
#define CEPT_WEAPON 6
#define CEPT_SHIELD 7
#define CEPT_CLOAK 8
#define CEPT_HAIR MAX_EQUIP_PART // hair는 클라이언트에서만 사용됨 => IEPT_RING과 값이 겹치지만 캐릭터의 생성시 데이터 세팅에만 사용하므로 상관없음 => 단순히 플레이어의 렌더링과 애니메이션시에만 쓰인다.
//------------------------------------------------------------------------------
// Item Equip or Possession Type ( 아이템의 장착 혹은 소유 형태에 따른 타입 )
#define MAX_ITEM_TYPE ( 26 + 8 ) // 항상 + 8 이다.
#define IEPT_FACE CEPT_FACE
#define IEPT_UPPER_PART CEPT_UPPER_PART
#define IEPT_LOWER_PART CEPT_LOWER_PART
#define IEPT_GLOVES CEPT_GLOVES
#define IEPT_SHOES CEPT_SHOES
#define IEPT_HELMET CEPT_HELMET
#define IEPT_WEAPON CEPT_WEAPON
#define IEPT_SHIELD CEPT_SHIELD
#define IEPT_CLOAK CEPT_CLOAK
#define IEPT_RING 9
#define IEPT_AMULET 10
#define IEPT_BULLET 11
#define IEPT_WORKTOOL 12
#define IEPT_POTION 13
#define IEPT_ETC 14
#define IEPT_BATTERY 15
#define IEPT_ORE 16
#define IEPT_INGOT 17
#define IEPT_FORCE 18
#define IEPT_UNIT 19
#define IEPT_LOOT 20
#define IEPT_MAP 21
#define IEPT_RETURN 22
#define IEPT_DUNGEON 23
#define IEPT_ANIMUS 24
#define IEPT_GUARD_TOWER 25
#define IEPT_UNIT_HELMET 26 // Unit Part 데이터부터는 클라이언트 전용임.
#define IEPT_UNIT_UPPER_PART 27
#define IEPT_UNIT_LOWER_PART 28
#define IEPT_UNIT_ARMS 29
#define IEPT_UNIT_SHOULDER 30
#define IEPT_UNIT_BACKPACK 31
#define IEPT_UNIT_BULLET 32
#define IEPT_ITEM_WORK 33 // 아이템 제작 데이터는 항상 제일 마지막 ( 원래는 아이템 데이터가 아니지만, 편의상! )