DIR Return Create A Forum - Home
---------------------------------------------------------
Xydia V2.0
HTML https://xydia.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Programming
*****************************************************
#Post#: 1301--------------------------------------------------
Beginner Delta Tutorial - How To add a shop to your game #2
By: Dan Date: August 14, 2012, 10:48 pm
---------------------------------------------------------
Difficulty: 1/10
Credits: 100% me
This is very easy, but it does come in handy.
Open up client.java
Search: Zeke
you will see something like this:
[code]} else if (NPCID == 519) {
PutNPCCoords = true;
WanneShop = 26;[/code]
Now Copy And Paste it and put the NPCID to whichever npc you
want but it must have a trade option on them. And For the
[code]wanneshop = 26;[/code] Change the 26 to a number that
hasn't been used for a wanneshop.
Now save and close
Go to config and open up shops.cfg
Now you should have codes like this:
[code]shop = 9
Okay Change the [code]shop = 9[/code] to [code]shop = WHATEVER
YOU SET THE WANNESHOP ID NUMBER TOO[/code]. Now for
Varrock_Swordshop change it to whatever title you want, now
don't worry about the two 2's and the [code]4161[/code] is an
item id. Change that to whatever item you want to be sold in the
shop and the [code]500[/code] is the amount that you want to put
in the shop. You can keep adding these.
Thanks
Dan
#Post#: 1311--------------------------------------------------
Re: Beginner Delta Tutorial - How To add a shop to your game #2
By: Colotsalot Date: August 15, 2012, 12:16 pm
---------------------------------------------------------
oooooo... i like this... Now i know how to add a shop!
Thanks sooo much... even though all of this is pretty simple.
*****************************************************