Initiate Mage
- Joined
- Mar 23, 2008
- Messages
- 2
- Reaction score
- 1
To start off you need an npc i think you get npc's id's best by going on moparscape client and search there.
When you finded your npc that you want to be the shop keeper
Add the npc to autospawn.cfg
So it would be like this:
First ### is NPC's id, next ones is coords and you dont have to edit the last numbers.
And to get coords for the npc just go to spot you want the npc to be and type ::mypos (Should be in all sources)
Next you need to add items to the shop
So open shops.cfg
Heres an example:
"Herb shop" is the name of the shop wich will see when you open the shop
And last part. Open client.java and search for
And if you dont find that, search for
And scroll down for few secs until you see alot of wanneshops.
Then just add
So you put npc's id to NPCID == ####) {
And Shops id to WanneShop = ##; (Put the same number what you putted in shops.cfg to this:
Please post if i missed some part and i edit.
Comment's would be nice.
And im G0D on runelocus, Godz on rs-server.
My second tut, dont flame/spam pl0x.
When you finded your npc that you want to be the shop keeper
Add the npc to autospawn.cfg
So it would be like this:
Code:
spawn = 619 2843 3675 0 0 0 0 0 2 seller
And to get coords for the npc just go to spot you want the npc to be and type ::mypos (Should be in all sources)
Next you need to add items to the shop
So open shops.cfg
Heres an example:
Code:
shop = ## Herb Shop 2 2 (itemid) (amount) (itemid) (amount) (ect) (ect)
"Herb shop" is the name of the shop wich will see when you open the shop
And last part. Open client.java and search for
Code:
WanneShop = 30;
And if you dont find that, search for
Code:
case 155: //first Click npc
And scroll down for few secs until you see alot of wanneshops.
Then just add
Code:
else if (NPCID == ####) { // Id of Npc
PutNPCCoords = true;
WanneShop = ##; //Id of shop
}
So you put npc's id to NPCID == ####) {
And Shops id to WanneShop = ##; (Put the same number what you putted in shops.cfg to this:
Code:
shop = -->[b]##[/b]<-- Herb Shop 2 2
Please post if i missed some part and i edit.
Comment's would be nice.
And im G0D on runelocus, Godz on rs-server.
My second tut, dont flame/spam pl0x.
Last edited: