Adding items?

07/29/2009 18:12 killermickle#1
Anyone mind helping me on adding an item...
ATM im trying to make a new Scroll. I've added it to Shop.dat and make it in my database, but when i open the shop it comes up with an error and nothing appears in the shop
07/29/2009 19:13 f0am#2
i think in each shop there is a itemamount make sure its always 1 higher then your last item so like . sec ill get to show u ...

Code:
[Shop25]
ID=2888
Name=VIPSHOP
Type=1
MoneyType=1
ItemAmount=67
Item0=1088000
Item1=1088001 
Item2=723700
Item3=700073
Item4=1200005
Item5=723017 
Item6=730003
Item7=730004
Item8=730005
Item9=730006
Item10=721259
Item11=723583
Item12=723584
Item13=1200000
Item14=1200001
Item15=1200002
Item16=2100025 
Item17=2100045 
Item18=723701
Item19=700012
Item20=700002
Item21=700032 
Item22=700062
Item23=700052
Item24=700022
Item25=700042
Item26=723087
Item27=182365
Item28=182325
Item29=181385
Item30=182335
Item31=182345
Item32=182385
Item33=181375
Item34=182305
Item35=181365
Item36=181345
Item37=182315
Item38=181335
Item39=191305
Item40=181305
Item41=181405
Item42=181505
Item43=181605
Item44=181705
Item45=181805
Item46=181905
Item47=181315
Item48=181415
Item49=181515
Item50=181615
Item51=181715
Item52=181815
Item53=181915
Item54=181325
Item55=181425
Item56=181525
Item57=181625
Item58=181725
Item59=181825
Item60=181925
Item61=181355
Item62=1060020
Item63=1060023
Item64=1060022
Item65=1060021
Item66=1060024
VIPSHOP is the shopping mall...

anyway you see it says Item66 = 1060024 so
ItemAmount must = 67
07/29/2009 19:31 killermickle#3
Ah, well i wasnt adding a scroll to the shop i was just changing one
07/29/2009 21:16 blade911#4
I wish I knew how to code
07/29/2009 21:41 killermickle#5
If im adding the scroll do i need to add an icon in my client or anything?
07/30/2009 00:53 Incariuz#6
If it's a completely new item, you'll need to create an itemminicon, and mapitemicon, aswell as adding it into the itemtype.dat

It should be self explanatory once opening the files, goodluck.
07/30/2009 04:54 killermickle#7
Quote:
Originally Posted by Incariuz View Post
If it's a completely new item, you'll need to create an itemminicon, and mapitemicon, aswell as adding it into the itemtype.dat

It should be self explanatory once opening the files, goodluck.
Okay erm...

I was going to copy the itemminiicon and mapitemicon but i cant find which ones match to a scroll. When i opened itemtype.dat it was all random characters too...
07/30/2009 06:14 Incariuz#8
I believe you need a decryptor for the itemtype.dat

I believe it's called DatCryptor. Should be able to find it on the forum somewhere.

You can also search a wdfbatcher, to extract all images for items from the itemminicon and mapitemicon ani files. That way you can find an image you find appropriate for your item. Otherwise, you can always add your own item images.
07/30/2009 06:24 killermickle#9
Sorry to be annoying xD,
but could you upload DatCryptor, the maker has been banned so I can't find a link
07/30/2009 06:44 Incariuz#10
Here you go.

[Only registered and activated users can see links. Click Here To Register...]

All credits to the original creator.

Simply drag a copy of the ItemType.dat onto it, it'll decrypt it into a notepad doc. When you're done making changes, drag it again, and it'll make it a .dat file again.

Make sure to keep a backup of the original ItemType.dat incase.
07/30/2009 18:38 killermickle#11
Okay, so im pretty much done... Although i dont know how to assign the icons to the scroll...

So i have a lovely working scroll that appears as a flower.
07/31/2009 03:53 Incariuz#12
Well just as an example. Open ItemMinIcon.ani and you will see stuff similar to...

Code:
[Item1100024]
FrameAmount=1
Frame0=data/ItemMinIcon/723117.dds
You'll want to add your item into this, with a path to the image you would like to be used.

Code:
[Item[COLOR="Red"]YourItemID[/COLOR]]
FrameAmount=1
Frame0=data/ItemMinIcon/[COLOR="red"]ImageToBeUsed.dds[/COLOR]
Simply find the Image for a scroll in your data/ItemMinIcon folder in the client.

Now open the MapItemIcon.ani, it's pretty much the same deal. As you can see below, the only difference is, the first line doesn't have "Item" before the ID.

Code:
[136303]
FrameAmount=1
Frame0=data/MapItemIcon/136700.dds
07/31/2009 04:02 killermickle#13
Thank you so much for that!
I would recommend you combine all of the posts into a tutorial, it would help alot of noobs like me xD!
07/31/2009 04:44 Incariuz#14
I had already released a tutorial in the past, but it didn't get much attention so I removed it. Figured it works better to help as people ask.