[GUIDE] adding an item to itemtype.dat

05/01/2009 16:28 louise32#1
ok here goes open your itemtype.dat in your hexeditor, i use winhex but you can use whatever works for you. in the top left corner u see 4 hex numbers this is the amount of items you have in ur itemtype.dat u need to edit this number to add the new item. remember all hex needs to be done backwards.[Only registered and activated users can see links. Click Here To Register...]


ok as u can see in pic 2 i have copied from the beginning of this casual to the last 00 before the start of my next item, you need to copy this into a new file to edit it, this might not be the way that everyone does this but it's easier i think.[Only registered and activated users can see links. Click Here To Register...]

ok in the next pic u can see the price of the item if you want to add it to your mall the gender of the item IE: male/female 01 being male 02 female edit those numbers to suit ur needs, also in the top left corner u will see 6 hex numbers this is the item id, you will need to change this number to the id you have created for your new casual[Only registered and activated users can see links. Click Here To Register...]

once u have edited the new item in the other file go back to your itemtype.dat and find the beginning of your items this will be where you see BlueCrestHelmet hex id is 98 B1 01 at the 00 right before the 98 B1 01 you need to right click and click paste zero bytes in the box that pops up put a 4 and click ok this makes room for you to add the new item id in the 00 00 00 spaces i have circled in the pic.
[Only registered and activated users can see links. Click Here To Register...]

ok so you have added the new item in 1 place now to finish. go back to the other file that has your edited casual in and highlight all then right click and click copy normally this time.[Only registered and activated users can see links. Click Here To Register...]


then go back to your itemtype.dat and go right to the bottom as u see in the next pic and at the last 00 click paste and then ok to the boxes that pop up and then save all. [Only registered and activated users can see links. Click Here To Register...]

hope this helps a few people out there who have a hard time with this i know i'm not great at instructions lol so if u need anything further please let me know and i will try to help. :)
05/01/2009 18:53 rexes13#2
really so much thamks....i was w8ing for sth like it a long time....ty very very much louise32....
05/01/2009 18:54 louise32#3
np your very welcome :)
05/01/2009 20:50 magewarior2#4
Thankyou, now i can start learning hex editing :)
05/02/2009 09:35 rexes13#5
great work now that u added the pics too...keep up...i will put ur guide in my sticked topic..
05/02/2009 11:40 X-ShaDo-X#6
so confusing i am noob in the server developing
05/02/2009 11:44 hio77#7
Quote:
Originally Posted by X-ShaDo-X View Post
so confusing i am noob in the server developing
this is hex editing not sever dev
05/02/2009 18:43 ahayh#8
great guide , step by step , there is no easyer than that.
Thanks alot
05/03/2009 15:37 funhacker#9
suggestion

use the "data interpreter" built in with winhex you can set for all types of integers and edit straight decimal values

it is under tools i beleive
05/03/2009 17:13 PhantomNyte#10
thank u so f**king much i was wating for this guide so much thx thx and some more thx
05/03/2009 17:25 rexes13#11
Also louise32...if u want u can refresh ur guide with more pics ...here i give u some stuff that Killin released for the itemtype....
Quote:
61 blocks
Each block consists of four bytes example "00 00 00 00"
All must be entered using hex.

1st block: ItemID

2nd - 5th block: ItemName

6th Block: (Profession) 00 (Required Level) 00 "Profession will be Mage = 0A Warrior = 14 Palidan = 1E "Required level will be the hex version of the level IE level 25 = 19"

7th Block: Unknown Yet

8th Block: Unknown Yet

9th Block: Monopoly In Hex, Example 12 = 0C

10th Block: Price

11th Block: Action Id

12th Block: (attack Max) 00 (Attack Min) 00 "All in hex"

13th Block: Defense

14th Block: Dodge (Dodge) 00 00 00

15th Block: Amount in the form of "00 00 (amount)"

16th Block: Amount max in the form of (amount) 00 00"

17th Block: Unknown Yet

18th Block: Magic Defense

19th Block: Attack Speed 00 00 (Attack Speed)

20th Block: Hit Rate (Hit Rate) 00 00 00

21st Block: Target All tests were "14 00 00 00"

22nd Block: Cost In EP 00 (Emoney) 00 00

23rd Block: Official1 00 Official2 00

24th Block: Official3 00 Official4 00

25th Block: Official5 00 Official6 00

26th Block: Official7 00 Official8 00

27th Block: Official9 00 Official10 00

28th Block: Official11 00 00 00

29th Block: Soul (Soul) 00 00

30th - 61st Blocks: Description of Item
05/15/2009 14:44 rexes13#12
is there any way to show us how to add new pets??if so i would be grateful...
05/15/2009 21:35 hio77#13
Quote:
Originally Posted by rexes13 View Post
is there any way to show us how to add new pets??if so i would be grateful...

use the tool to see what different to a normal item then go from there :rolleyes:
05/16/2009 10:21 rexes13#14
i wont use the tool...i just wanna learn if i have to add many ids for the same pet like in the cq_itemtype...
05/17/2009 06:27 hio77#15
Quote:
Originally Posted by rexes13 View Post
i wont use the tool...i just wanna learn if i have to add many ids for the same pet like in the cq_itemtype...

only reason i said use the tool is to see the different changes made so you know what you must edit in hex to do it correctly :)