Register for your free account! | Forgot your password?

You last visited: Today at 08:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide]Creating your own shop.

Discussion on [Guide]Creating your own shop. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
[Guide]Creating your own shop.

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.


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]
Attached Files
File Type: rar Itemtype Decryptor.rar (186.8 KB, 199 views)
Arcо is online now  
Thanks
18 Users
Old 12/29/2009, 13:33   #2
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
Nice release . It can be usefull (pretty sure it will be )

keep it up
~jochemke~ is offline  
Thanks
1 User
Old 12/29/2009, 16:20   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
thank you so much .. i can use that .. i'm gonna try it . an +thanks for you
Sport is offline  
Thanks
1 User
Old 12/29/2009, 17:31   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
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 ?
Sport is offline  
Old 12/30/2009, 00:31   #5
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 0
i wonder how to make shop sell super 2soc +12 -7 stuff??
minakaram is offline  
Old 12/30/2009, 01:41   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
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.
Arcо is online now  
Thanks
3 Users
Old 12/30/2009, 07:43   #7
 
NukingFuts's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 480
Received Thanks: 111
woot nice bro keep it coming
NukingFuts is offline  
Old 12/30/2009, 10:01   #8
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
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 ><
xScott is offline  
Old 12/30/2009, 12:55   #9
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
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 it still didn't show any items ...
Sport is offline  
Old 12/30/2009, 13:23   #10
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
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
xScott is offline  
Old 12/30/2009, 13:42   #11
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
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
xScott is offline  
Old 12/30/2009, 14:21   #12
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
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

Sport is offline  
Old 12/30/2009, 14:27   #13
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
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?
xScott is offline  
Old 12/30/2009, 14:40   #14
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
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 .
Sport is offline  
Old 12/30/2009, 15:06   #15
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
haha got mine working, i ****** the itemtype.dat over luckily backed it up xD
xScott is offline  
Reply


Similar Threads Similar Threads
[GUIDE].c3 files creating
07/10/2011 - CO2 Weapon, Armor, Effects & Interface edits - 85 Replies
As I've promised, I'm releasing .c3 files CREATING guide. Even thought nearly whole guide on creating them was around E*PvPers for years most of it's members never got to find it out... Tbh, I wouldn't get to find it out without other people's support but... Credits below. I'll eventually add "How to properly texture new weapons" guide somewhat in future either here on different thread, anywho... NOTE: This is not modelling tutorial.. My modelling ability is rather... none, so if you want...
[GUIDE].c3 files creating
07/20/2010 - EO Weapon, Armor, Effects & Interface edits - 19 Replies
I'm originally from CO2 forums so this post was made for it however I know that CO as well as EO are using same files type so even some parts of tutorial might not fit in, it should've been working for EO too. As I've promised, I'm releasing .c3 files CREATING guide. Even thought nearly whole guide on creating them was around E*PvPers for years most of it's members never got to find it out... Tbh, I wouldn't get to find it out without other people's support but... Credits below. I'll...
LF Wow cash creating guide!!!
04/26/2007 - World of Warcraft - 1 Replies
Anyone can give download direct linkor torrent to this guide? I think it's one of the best gold making guide.... Google pwned me :rolleyes: I found only some download link, but you have to pay to get access and download it. No search results here also. PrevieW text2schild.php?smilienummer=1&text=PLEASE HELP' border='0' alt='PLEASE HELP' />
Luke's Cash Creating Guide
03/20/2007 - World of Warcraft - 3 Replies
Hi i wanted to ask where can i get the "Luke's Cash Creating Guide" ???



All times are GMT +1. The time now is 08:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.