Wow, Nice tutorial helped me out! I didn't know about adding the WanneShop = ##
Thanks heaps!
|
Hello!
Since I haven't seen any tutorials like this around on rune-server i thought I would make my own tutorial on how to make shops.
** This tutorial is 100% by Me, Fluro. If you see it anywhere else please tell me! **
Purpose: To add shops to your server
Difficulty: 1/10 Not hard at all
Assumed Knowledge: Normal 8 year old + brain standards
Files Modified: shops.cfg & client.java
-- This tutorial will add 150 rune scims to a shop when you trade the drogo dwarf --
First, open up your shops.cfg file.
There should already be a few things in there, they will look like this:
Ok, so go down to the end of the list and find out what number it is. For me, the last number is 29. So we need to now add this:shop = 3 Falador_General_Store 1 1 1931 5 1935 2 1735 2 1925 3 1923 2 1887 2
Where it says <tab> that means you need to press tab in shops.cfgshop = 30<tab>@dre@Shop Name Here<tab2>1<tab>1<tab>1333<tab>150
In the pink is the shop number
In the blue is the name of the shop ( you don't have to have @dre@ )
In the green is the object id
In the orange is the amount of the object before
Now save shops.cfg
Open client.java and search:
You will get to something like this:WanneShop =
In the red is the Id for the npc which the shop is going to be located to} else if (NPCID == 548) { //Thessalia
PutNPCCoords = true;
WanneShop = 8;
In the green is the shop id.
So now add this underneath
So now, when you the drogo dwarf ( 579 ) he will open up shop 30. You can add any items into shops.cfg. Just make sure you hit tab between each different section so like:} else if (NPCID == 579) { //drogo dwarf
PutNPCCoords = true;
WanneShop = 30;
ItemID<tab>Amount<tab>2ndItemID<tab>Amount and so on..
You can make any npc open up the same shop as another npc. So you could make the drogo dwarf open up shop 1.
End Result:
Thanks for reading! Hope it works for you!!
Last edited by Fluro; 06-13-2008 at 05:29 PM. Reason: Double posting is not allowed!
Wow, Nice tutorial helped me out! I didn't know about adding the WanneShop = ##
Thanks heaps!
No probs
This have been made 100 times rofl wy keep posting it?
Clearly i said i haven't seen it before?? ( on rune-server )
Um for runejava based sources:
http://www.rune-server.org/showthread.php?t=57647
Normal:
http://www.rune-server.org/showthread.php?t=32413
That was only at tut list lol i just searched for "shops" and like 20 dif pages but about 2 were for adding shops
I'm sure you've posted something thats already been done.
Please add steps and/or the official layout
Have made only 5 tuts so Nah
I love inside sins avatar and sig they are the best!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |