[Guide]Creating your own shop.

12/29/2009 13:24 Arcо#1
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.
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
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.
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
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]
12/29/2009 13:33 ~jochemke~#2
Nice release . It can be usefull (pretty sure it will be :p)

keep it up
12/29/2009 16:20 Sport#3
thank you so much .. i can use that :) .. i'm gonna try it . an +thanks for you
12/29/2009 17:31 Sport#4
ok . i done everything ...

but the npc doesnt work ......... :S ....

i didnt changed the price for the items . so i didnt had to edit the itemtype.dat

i just edited to shop.dat in both ( OldCODB ) and ( InI ) folders ..

that's what i done ..


[Shop40]
ID=456987
Name=newitems
Type=1
MoneyType=1
ItemAmount=6
Item0=181395
Item1=181495
Item2=182355
Item3=182375
Item4=182455
Item5=182475


that's the npc i made in Npc.txt

it's working , but i can't see any items on it ................ ????? ...

456987 1390 1 0 1002 427 378

.......... have i done anything wrong ?
12/30/2009 00:31 minakaram#5
i wonder how to make shop sell super 2soc +12 -7 stuff??
12/30/2009 01:41 Arcо#6
Quote:
Originally Posted by minakaram View Post
i wonder how to make shop sell super 2soc +12 -7 stuff??

You can make it sell super stuff just without socs, +, enchant, or bless.
12/30/2009 07:43 NukingFuts#7
woot nice bro keep it coming :D
12/30/2009 10:01 xScott#8
im having same problem >< probably a silly mistake.
I added the npc in NPC.txt in OldCODB
Changed the prices & encrypted back into client "itemtype.dat"
changed price on OldCODB in "item.txt"
Added the shop in both Client and OldCODB
it wont show any items in ShoppingMall either ><
12/30/2009 12:55 Sport#9
i guess that is not a complete release ................... or else tell me what i did wrong .. why you don't answer me ??? .. ( ?? ? )


ok . i thought i found out what's wrong ( the thing you didnt said in your post ) .

in the shop.dat

[Header]
Amount=40 <---- that was was there .. so if we add new shop we should make it

[Header]
Amount=41 <----

and even tho :D it still didn't show any items ...
12/30/2009 13:23 xScott#10
Quote:
Originally Posted by Sport View Post
i guess that is not a complete release ................... or else tell me what i did wrong .. why you don't answer me ??? .. ( ?? ? )
just wait there offline for a reason
12/30/2009 13:42 xScott#11
Quote:
Originally Posted by Sport View Post
ok . i done everything ...

but the npc doesnt work ......... :S ....

i didnt changed the price for the items . so i didnt had to edit the itemtype.dat

i just edited to shop.dat in both ( OldCODB ) and ( InI ) folders ..

that's what i done ..


[Shop40]
ID=456987
Name=newitems
Type=1
MoneyType=1
ItemAmount=6
Item0=181395
Item1=181495
Item2=182355
Item3=182375
Item4=182455
Item5=182475


that's the npc i made in Npc.txt

it's working , but i can't see any items on it ................ ????? ...

456987 1390 1 0 1002 427 378

.......... have i done anything wrong ?
i think we both put the direction as 1
456987 1390 1 0 1002 427 378


the number after that is the flag i think
ill try it out and tell you if it works XD
12/30/2009 14:21 Sport#12
okay . i did it ...

the npc.txt should be like that ..

500 1390 1 1 1002 427 378 <-------

500 is the ID
1390 is the shape and then you must put 1 1 <-- that's for shop
then 1002 is the map , and 427 378 is the location

:)
12/30/2009 14:27 xScott#13
Quote:
Originally Posted by Sport View Post
okay . i did it ...

the npc.txt should be like that ..

500 1390 1 1 1002 427 378 <-------

500 is the ID
1390 is the shape and then you must put 1 1 <-- that's for shop
then 1002 is the map , and 427 378 is the location

:)
yeah we put 1 for the direction xD so did it work?
12/30/2009 14:40 Sport#14
yes . it's working XScott

just do it like this in the npc.txt

500 1390 1 1 1002 427 378 . just change the location , and the npc ID and shape .
12/30/2009 15:06 xScott#15
haha got mine working, i fucked the itemtype.dat over luckily backed it up xD