Original guide here: http://forum.ragezone.com/showthread.php?t=430732
Full credits to Clust3r, this guide has been cleaned up for better English, that's the only changes.
1: Introduction
Our example item: Osmium Blade (ItemID: 68 ItemOpt: 0)
First, get the id of your character by this command in GAMEDB:
SELECT CharacterIdx FROM cabal_character_table WHERE Name = 'YourCharacterName'
MSSQL server outputs:
xx
We will call your character id "xx".
Now we get the inventory of your character.
exec dbo.cabal_tool_GetInventory xx
MSSQL server outputs:
CharacterIdx: xx Data: 0x440047000028000000000000896B4685
0x440047000028000000000000896B4685 is an example of what your inventory might look like.
Now we can decode our inventory and inject items into it.
It is wise to put all your items in your storage, or wear them, so that they don't get deleted in case you screw up.
0x440047000028000000000000896B4685
Now the inventory code is:
0x44004700002800000000000000000000
We can now inject our inventory code into the database:
exec dbo.cabal_tool_SetInventory xx, 0x44004700002800000000000000000000
2: Item degree and binding
Our inventory code should look like this:
0x44004700002800000000000000000000
Which is an unlimited Osmium Blade +0 in slot 0 of your inventory.
44004700002800000000000000000000
To mess with the item degree and binding, just replace this number by one of these:
We going to make the item have a +5 degree with no bind.
exec dbo.cabal_tool_SetInventory xx, 0x44A04700002800000000000000000000
3: Crafting effects
Now you have an Osmium Blade +5 with no bind. We can put a crafting effect on our item.
The part of this code that defines the crafting effect is:
0x44A0470000280000XY00000000000000
X:
For this example, I have put a 3% Sword Amp on my blade so X would be 9 and Y would be 8.
So the final code was:
0x44A04700002800009800000000000000
4: Item slots upgrades
Our item so far is an Osmium Blade of Amp (3% Sword Amp) +5 without any slots.
To edit the slots and what they have in it:
0x44A04700002800009800000000000000
00: This number defines what upgrade you have in the 1st slot.
00: This number defines what upgrade you have in the 2nd slot.
00: This number defines how many slots you have on the item. (0, 1, or 2)
If you want 1 slot, change 00 to 10.
If you want 2 slots, change 00 to 20.
Note: The upgrade code is different for other items.
Upgrades:
I am going to put 2 slots on my blade. The first slot will have Critical Rate +5% (15) and the second one will have Sword Amp +7% (18).
0x44A04700002815189820000000000000
5: Conclusion
0x440047000028000000000000896B4685
6: Bonus! Calculating the ItemOpt
Instead of going through all that inventory code, you can directly add the item to your inventory.
ItemID: 68
ItemOpt: 0
This is our normal Osmium Blade +0 with no slots.
We want to add an Osmium Blade of Deathblow (5% Rate) +3 with 2 slots. The slots will be filled with Critical Rate +5% in the first slot and Critical Damage +5% in the second slot.
The +3 degree can be achieved in the item id octet.
So the item id in decimal was 68. In hex, it was 44. (4400)
Now we add an "A" to the 3rd digit to give the +3 degree.
Now the hex of the item is 44A0. We read it backwards and get A044.
Convert A044 into decimal and you will get 41028. This is your new item id.
Now we calculate the ItemOpt for the crafting effect and slots.
You need to have 1514B520. (See parts 3, 4, and 5 if you are totally lost)
Convert 201514B5 to decimal and you will get 538252469.
Now we can add our new item.
ItemID: 41028
ItemOpt: 538252469
Full credits to Clust3r, this guide has been cleaned up for better English, that's the only changes.
1: Introduction
Our example item: Osmium Blade (ItemID: 68 ItemOpt: 0)
First, get the id of your character by this command in GAMEDB:
SELECT CharacterIdx FROM cabal_character_table WHERE Name = 'YourCharacterName'
MSSQL server outputs:
xx
We will call your character id "xx".
Now we get the inventory of your character.
exec dbo.cabal_tool_GetInventory xx
MSSQL server outputs:
CharacterIdx: xx Data: 0x440047000028000000000000896B4685
0x440047000028000000000000896B4685 is an example of what your inventory might look like.
Now we can decode our inventory and inject items into it.
It is wise to put all your items in your storage, or wear them, so that they don't get deleted in case you screw up.
0x440047000028000000000000896B4685
- 0x: 0x is the start of your inventory, you must always have this at the start of your inventory.
- 4400: This is the item id. You read this backwards so it's not 4400 but 0044, and if you convert 0044 to decimal you get 68, which is the id of the Osmium Blade.
- 896B4685: This is the remaining tag so if you want to convert your item to an unlimited item just replace this number by 00000000.
Now the inventory code is:
0x44004700002800000000000000000000
We can now inject our inventory code into the database:
exec dbo.cabal_tool_SetInventory xx, 0x44004700002800000000000000000000
2: Item degree and binding
Our inventory code should look like this:
0x44004700002800000000000000000000
Which is an unlimited Osmium Blade +0 in slot 0 of your inventory.
44004700002800000000000000000000
To mess with the item degree and binding, just replace this number by one of these:
- 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
We going to make the item have a +5 degree with no bind.
exec dbo.cabal_tool_SetInventory xx, 0x44A04700002800000000000000000000
3: Crafting effects
Now you have an Osmium Blade +5 with no bind. We can put a crafting effect on our item.
The part of this code that defines the crafting effect is:
0x44A0470000280000XY00000000000000
X:
- 9: 3% (amp/deathblow rate) +4% (Deathblow damage) or +4 (Destruction) or 1 (Luck/Adept) or +100 (Destruction attack rate)
- A: 4% (amp/deathblow rate) +7% (Deathblow damage) or +8 (Destruction) or 2 (Luck/Adept) or +175 (Destruction attack rate)
- B: 5% (amp/deathblow rate) +10% (Deathblow damage) or +16(Destruction) or 4 (Luck/Adept) or +300 (Destruction attack rate)
- C: 8% (amp/deathblow rate) +16% (Deathblow damage) or +24(Destruction) or 5 (Luck/Adept) or +400 (Destruction attack rate)
- D: 8%
- E: 9%
- F: 10%
- 1: of Destruction (Attack)
- 2: of Destruction (Magic)
- 3: of Destruction (Attack rate)
- 4: of Deathblow (Damage)
- 5: of Deathblow (Rate)
- 6: of Luck (2 slot item drop)
- 7: of Adept (Skill EXP)
- 8: of Amp (Sword)
- 9: of Amp (Magic)
For this example, I have put a 3% Sword Amp on my blade so X would be 9 and Y would be 8.
So the final code was:
0x44A04700002800009800000000000000
4: Item slots upgrades
Our item so far is an Osmium Blade of Amp (3% Sword Amp) +5 without any slots.
To edit the slots and what they have in it:
0x44A04700002800009800000000000000
00: This number defines what upgrade you have in the 1st slot.
00: This number defines what upgrade you have in the 2nd slot.
00: This number defines how many slots you have on the item. (0, 1, or 2)
If you want 1 slot, change 00 to 10.
If you want 2 slots, change 00 to 20.
Note: The upgrade code is different for other items.
Upgrades:
- 10: Clean
- 11: Attack +2
- 12: Magic +2
- 13: Attack Rate +???
- 14: Critical Damage +10%
- 15: Critical Rate +5%
- 16: 2 slot items drop chances doubled
- 17: Skill EXP +4
- 18: Sword Amp +7%
- 19: Magic Amp +7%
I am going to put 2 slots on my blade. The first slot will have Critical Rate +5% (15) and the second one will have Sword Amp +7% (18).
0x44A04700002815189820000000000000
5: Conclusion
0x440047000028000000000000896B4685
- 4400: Item ID in hex: 0044
- 0: Defines the degree and binding option
- 47: Defines the serial of the item
- 00: Defines the upgrade in the first slot of the item
- 00: Defines the upgrade in the second slot of the item
- 00: Defines the crafting effect on it (first digit defines the effect, second digit defines the power)
- 00: Defines how many slots item will have (00 = 0 slots, 10 = 1 slot, 20 = 2 slots)
- 0000: Defines where the item was be in your inventory (first and second digit define the line and last 2 digits define the column)
- 896B4685: Defines the remaining time before expiration of the item (00000000 = unlimited item)
6: Bonus! Calculating the ItemOpt
Instead of going through all that inventory code, you can directly add the item to your inventory.
ItemID: 68
ItemOpt: 0
This is our normal Osmium Blade +0 with no slots.
We want to add an Osmium Blade of Deathblow (5% Rate) +3 with 2 slots. The slots will be filled with Critical Rate +5% in the first slot and Critical Damage +5% in the second slot.
The +3 degree can be achieved in the item id octet.
So the item id in decimal was 68. In hex, it was 44. (4400)
Now we add an "A" to the 3rd digit to give the +3 degree.
Now the hex of the item is 44A0. We read it backwards and get A044.
Convert A044 into decimal and you will get 41028. This is your new item id.
Now we calculate the ItemOpt for the crafting effect and slots.
You need to have 1514B520. (See parts 3, 4, and 5 if you are totally lost)
Convert 201514B5 to decimal and you will get 538252469.
Now we can add our new item.
ItemID: 41028
ItemOpt: 538252469