This thread is similar to my adding items to shopping mall thread, but instead you're now going to create your own shop.
I see so many people making NPC's selling stuff via controls and GC.MyChar.CPs -= Amount.
In my opinion it looks unprofessional so I am going to each you guys how to make your own shop.
First you are going to need an itemtype decryptor which is attached at the bottom of the thread.
No you are going to open the itemtype decryptor.
[Only registered and activated users can see links. Click Here To Register...]
Make a file called itemtype.txt. Place it where you want as long as you can find it.
In the first line of the itemtype decryptor you put in the destination of your itemtype.dat and in the second line the destination of your itemtype.txt
don't check for decryption. Click Do it.
Now open up itemtype.txt and it should be decrypted.
Now find the items you would like to put in your custom shop.
The line should look like this.
See the bolded/red number? The CPs cost of the item. Change it to whatever you want.
Now you can encrypt it again.
Open up the itemtype decryptor and in the first line put the destination of them itemtype.txt. The second line should be the destination of the itemtype.dat. Click the box under all that. Now Do it.
Now go to your items.txt or whatever its called in your OldCODB and then go to the item you changed in the other file.
Do the same thing for this file, except you don't need to do all the decrypting. Just change the little read number.
Now close it and save it.
Now open up your shop.dat in your OldCODB.
You're going to put something like that at the very bottom of your shop.dat.
Put whatever Items you want in it just make sure you change the price in the itemtype.dat and items.txt(Of your OldCODB of course.).
Now copy your new shop to the bottom of the shop.dat in your client.
Now place that npc wherever you want to, just make sure the npc flag is 1.
The reason the flag should be 1 is because that is that shop flag.
And make sure the npc id is the npc id you used in the shop.dat
Then start up your server and bam.
You have your own personal shop.
Credits to NoName for the itemtype decryptor.
Hope this helps.
[/COLOR]
I see so many people making NPC's selling stuff via controls and GC.MyChar.CPs -= Amount.
In my opinion it looks unprofessional so I am going to each you guys how to make your own shop.
First you are going to need an itemtype decryptor which is attached at the bottom of the thread.
No you are going to open the itemtype decryptor.
[Only registered and activated users can see links. Click Here To Register...]
Make a file called itemtype.txt. Place it where you want as long as you can find it.
In the first line of the itemtype decryptor you put in the destination of your itemtype.dat and in the second line the destination of your itemtype.txt
don't check for decryption. Click Do it.
Now open up itemtype.txt and it should be decrypted.
Now find the items you would like to put in your custom shop.
The line should look like this.
Code:
2100095 GoldCup 0 0 0 0 0 0 0 0 9 0 0 0 1000 1000 1000 0 0 1500 1500 10000 10000 0 0 0 0 0 0 1000 0 0 0 0 3 0 [COLOR="Red"][SIZE="5"]0[/SIZE] Talisman A~sign~of~great~honor.~Only~the~undefeated~may~possess~this. 5
Now you can encrypt it again.
Open up the itemtype decryptor and in the first line put the destination of them itemtype.txt. The second line should be the destination of the itemtype.dat. Click the box under all that. Now Do it.
Now go to your items.txt or whatever its called in your OldCODB and then go to the item you changed in the other file.
Do the same thing for this file, except you don't need to do all the decrypting. Just change the little read number.
Now close it and save it.
Now open up your shop.dat in your OldCODB.
Code:
[Shop40]<-----Shopnumber ID=5512<--------NPC Id Name=RandomShop<--------Just the shopname Type=1<--------Type of shop, shopping mall etc. MoneyType=1<----------What kind of money to use. CPs/Silvers ItemAmount=1<----------How many items in shop Item0=721080<-----------Item number and ID. ALWAYS start the first items as Item0
Put whatever Items you want in it just make sure you change the price in the itemtype.dat and items.txt(Of your OldCODB of course.).
Now copy your new shop to the bottom of the shop.dat in your client.
Now place that npc wherever you want to, just make sure the npc flag is 1.
The reason the flag should be 1 is because that is that shop flag.
And make sure the npc id is the npc id you used in the shop.dat
Then start up your server and bam.
You have your own personal shop.
Credits to NoName for the itemtype decryptor.
Hope this helps.
[/COLOR]