Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TIPS]How to decode ITEM Binary

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 2, 2006
Messages
78
Reaction score
9
Woot Woot after many hours of works with my honey (grumly ^^) we have (maybe) found the "logic":)poster_do) of the hexa.

Well, for explain my self i'll illustrating by an example, different point and gay color :)

I: The Remaining Time
Taking an item: Osmium Blade (ItemID : 68 ItemOpt: 0)

For the example i have took new characters called "test" with in inventory only an Osmium Blade +0 Clean no slot.

First get the ID of the char by this command in GAMEDB:
Code:
SELECT CharacterIdx FROM cabal_character_table WHERE Name = '[COLOR="DarkOrange"]test[/COLOR]'
Server send: 20

Now we get the inventory of this Char

Code:
exec dbo.cabal_tool_GetInventory [COLOR="Orange"]20[/COLOR]

Server send: CharacterIdx: 20 Data: 0x440047000028000000000000896B4685

We keep the Data Value: 0x440047000028000000000000896B4685
Time to decode it... (gay color enter in the party ^^)
0x440047000028000000000000896B4685
  • 0x 0x are alltime in the start of line, that normal, that because this is a "Binary" table ^^
  • 4400: This is the ITEM ID, you nees to read it in the Asian way <= so it's not 4400 but 0044 and if you convert 0044 in decimal you got 68 (Item of the Blade Osmium)
  • 896B4685: This is the REMAINING TAG so if you want to convert your item to unlimited item just replace this number by "00000000"

So for do that it's easy. The new line code was now: 44004700002800000000000000000000

Code:
exec dbo.cabal_tool_SetInventory [COLOR="Orange"]20[/COLOR], [COLOR="Lime"]0x440047000028000000000000[COLOR="Cyan"]00000000[/COLOR][/COLOR]

II: Put +X on an item or/and put "Binding Item" effect on it
We keep the reference of the last point
44004700002800000000000000000000 <= unlimited Osmium Blade +0 clean 0 slot.

Now let see what is the binary used for describe the +0 +1 +2 etc..
44004700002800000000000000000000
Just replace this number by one of this list:
  • 0: +0 with no binding
  • 1: +0 with binding
  • 2: +1 with no binding
  • 3: +1 with binding
  • 4: +2 with no binding
  • 5: +2 with binding
  • 6: +3 with no binding
  • 7: +3 with binding
  • 8: +4 with no binding
  • 9: +4 with binding
  • A: +5 with no binding
  • B: +5 with binding
  • C: +6 with no binding
  • D: +6 with binding
  • E: +7 with no binding
  • F: +7 with binding

For the example we going to make the Blade +5 with no bind

Code:
exec dbo.cabal_tool_SetInventory [COLOR="Orange"]20[/COLOR], 0x44[COLOR="Lime"]A[/COLOR]04700002800000000000000000000


III: Put a craft effect to an item
Now you have an Osmium Blade +5 0 slot Clean. That cool but we can do more damage with a Craft effect.

Retake the code of the blade : 44A04700002800000000000000000000

The part of this number who define the craft effect are this one:
44A0470000280000XY00000000000000
For put a craft effect on this blade just replace this by what you want:
for X:
  • 9="3%(amp/deathblow rate) +4%(Deathblow dmg) or +4(Destruction) or 1(Luck/Adept) or +100(Destruction attk rate)"
  • A="4%(amp/deathblow rate) +7%(Deathblow dmg) or +8(Destruction) or 2(Luck/Adept) or +175(Destruction attk rate)"
  • B="5%(amp/deathblow rate) +10%(Deathblow dmg) or +16(Destruction) or 4(Luck/Adept) or +300(Destruction attk rate)"
  • C="8%(amp/deathblow rate) +16%(Deathblow dmg) or +24(Destruction) or 5(Luck/Adept) or +400(Destruction attk rate)"
  • D="8%"
  • E="9%"
  • F="10%"
for Y:
  • 1="of Desctruction (Attak)"
  • 2="of Destruction(Magic)"
  • 3="of Destruction (Attack rate)
  • 4="of Deathblow (Dmg)"
  • 5="of Deathblow (Rate)"
  • 6="of Luck (2slot item drop)"
  • 7="of Adept (Skill EXP)"
  • 8="of Amp (Sword)"
  • 9="of Amp (Magic)"

For this example i have decided to put more Sword Amp on my blade :p hummm... 3%
so X need to be "9" and Y need to be "8"

So final code was:
44A04700002800009800000000000000

reinject the code with the same procedure has point I or II ^^

IV: Put slot on item and put upgrade in it
Ok, continue to keep the same code
44A04700002800009800000000000000 so for your little memory, and because you read so fast without remember anythink ^^ i resume what is this line,

this line was an Osmium Blade of Amp (3% Sword Amp) +5 without slot.

What ? This blade have no slot ? ok ok i'll going to fix that :)

for edit the slot and what they have in it, this is this number:
44A04700002800009800000000000000
COLOR="Red"]00[/COLOR]: This number define what upgrade you have in the 1st slot
00: This number define what upgrade you have in the 2nd slot
00: Define how many slot you have on the item (0 1 or 2)
if you want 1 slot change 00 by 10, if you want 2 edit 00 by 20.

The list of the code depends of what kinf of part you edit. The upgrade code are different between Blade, Suit, Helmet, etc... etc.. (We don't have make all list so stay tuned ^^)

For this exemple the item was a Blade:
  • 10 = Clean
  • 11 = Attack + 2
  • 12 = Magic +2
  • 13 = Attack Rate +??? (I have Forgot :p)
  • 14 = Critical Dmg +10%
  • 15 = Critical RAte +5%
  • 16 = 2slot item Drop 2.0times
  • 17 = Skill EXP +4
  • 18 = Sword Amp +7%
  • 19 = Magic Amp +7%

/!\ TAKE CARE !!! IF YOU WANT 2SLOT ITEM WITH SAME UPGRADE IN BOTH SLOT DON'T USE 1414XX20 for example but use: 2400XX20/!\

So for the example, i'll going to put 2 slot on my blade, first slot with Critical Rate +5% (15) and the second one with Sword Amp +7% (18)

44A04700002815189820000000000000

Reinject this code with the same method has Point I or II :)

V: Conclusion
440047000028000000000000896B4685
  • 4400: Item ID in hexa (/!\ Read it in reverse not 4400 but 0044/!\)
  • 0: Define the +X and Binding option
  • 47: Define the serial of the item
  • 00: Define the upgrade in the first slot of the item
  • 00: Define the upgrade in the second slot of the item
  • 00: Define the craft bonus on it, first digit define the effect, second define the power
  • 00: Define how many slot have the item 00 = 0 slot - 10 = 1 slot - 20 = 2 slot
  • 0000: Define where the item was situate in your inventory First and second degit define the line and last 2 digit define the column
  • 896B4685: Define the remaining time before expiration of the item, 00000000 for unexpireable item.
VI: "I'M TOTALY NERD I WANT MORE !!!!!:scratch:"
Humm ok honey calm down, you want more? You try to find the BONUS of the How to ?

Allright, this is for you ! :cupidarro

Has you know, editing inventory with binary make us nervous, so now for you (yes you only you behind your screen) i'll give to you, the method for get the ItemOpt for directly get in game the item with all option you want !

For explain myself be attentive :)

I'm keeping my Osmium Blade for most facility

ItemId: 68
ItemOpt: 0
for Clean one no slot.

But you want Osmium Blade of Deathblow (5% Rate) +3 2 slots with Critical Rate +5% in the first one and Critical Dmg +5% in the second
So if you have read the how to on the top you going to understand rapidly :)

You want a Blade +3 and the number who define the +3 effect are in the ItemNumber octect.
So Item Number in decimal was 68 = 44 in hexa, so 4400 (if you refer @ part I)
Now you need to put 3td digit to A for give the +3 on the Blade.

So the new Hexa of the Bladewas 44A0. (Don't forget to read it in reverse not 44A0 but A044) Convert A044 into decimal = 41028 (This is your Item number) Keep it and go to next stage.

Now calc the ItemOpt for the bonus craft and slot

You need to have 1514B520 (cf PART III IV V if you are totaly lost)
/!\ Read it in this way for calc your Opt: 201514B5 convert this hexa in decimal: 538252469 /!\

Resuming: Item Number: 41028 Opt: 538252469 TADAM ! ^^ (cf Thumb Picture)

VII: Thanks
"Merci" @ Grumly, nothing can do without him :)
I hope i'll be clear for us

And excuse my English :s

VIII: Note
This is the same system for Wharehouse.

And the same base for Skill and Quest but for this we need to know all Hexa code for all quest and skill. Very very hard and long work for get all code. But if one day someone get it, the base was the same.

Still under dev: ugly but be usefull in a couple of day
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Jul 13, 2008
Messages
1
Reaction score
0
Re: [TIPS]How to decode ITEM Binary(Not Finish)

now whith this go create your new ubber stuff :)
 
Banned
Banned
Joined
Sep 6, 2007
Messages
834
Reaction score
167
Re: [TIPS]How to decode ITEM Binary(Not Finish)

really nice, thank you
 
Game Developer
Joined
Oct 1, 2005
Messages
420
Reaction score
47
nice analize(economized time to me to analize it) now a can edita start items for new characters or add.
 
Newbie Spellweaver
Joined
Feb 2, 2006
Messages
78
Reaction score
9
Great job :)

Now we need Deathway to make a super editor like CzFEditor ^^

Yep, i'm totaly tired so i'll go to sleep :p

But i have start this:


Craft option not still impletented but other option look to works.. Use with caution :)

I'll finish it in phiew hours after a little time in my bed :)
 
Newbie Spellweaver
Joined
Aug 2, 2006
Messages
36
Reaction score
0
------> I love u *0*. Thk Clust3r
 
Newbie Spellweaver
Joined
Jan 25, 2005
Messages
46
Reaction score
0
Re: [TIPS]How to decode ITEM Binary(Not Finish)

that's very nice ... ill keep this bookmarked for now
@offtopic
nice to see you in this section supaman! ^_~
been a while since i started to run priv servs again..
still hosting MuKidz?
and oh, btw, did you made the web for DukeGr?
as long as i remember, you rock on those stuffs :D
 
Custom Title Activated
Loyal Member
Joined
Feb 27, 2004
Messages
1,378
Reaction score
50
Re: [TIPS]How to decode ITEM Binary(Not Finish)

@offtopic
nice to see you in this section supaman! ^_~
been a while since i started to run priv servs again..
still hosting MuKidz?
and oh, btw, did you made the web for DukeGr?
as long as i remember, you rock on those stuffs :D

i nevver hosted mukidz.. i just managed it sometimes ... cause my friend Q is busy sometimes.

honestly i cant remember which and wat web i made .... but i see some of my work here and there... remade, edit and redone ^^

lol @ supaman .. good old times
 
Newbie Spellweaver
Joined
Jul 6, 2008
Messages
94
Reaction score
2


Sorry Clust3r but it dosen't work good...

Gives the wrong item ...

Did you have tested it ?

Keep the good jod dude =P
 
Newbie Spellweaver
Joined
Feb 2, 2006
Messages
78
Reaction score
9


Sorry Clust3r but it dosen't work good...

Gives the wrong item ...

Did you have tested it ?

Keep the good jod dude =P


Works great since i trying do add craft...

Fix in phiew hours :p
 
Status
Not open for further replies.
Back
Top