Techn0fev3r
June 17th, 2010, 21:29
Welcome to My Tutorial on adding shops to your server
I will try to make this as easy as possible
Classes Modified: Autospawn.cfg, Shops.cfg, Client.java
AUTOSPAWN.CFG
Step 1: Open Autospawn cfg and scroll down to the bottom
Add this code above [ENDOFSPAWN] or whatever yours says
spawn = 28 2308 9827 0 0 0 0 0 1
The 28 is the ID of the NPC you wish to host the shop
Change the Purple Numbers to your X Coordinates
Change the Red Numbers to Your Y Coordinates
CLIENT.JAVA
Step 2: Open client.java and search for
wanneshop
Until you find something like this
if(NPCID == 710){
PutNPCCoords = true;
WanneShop = 5;
Change the NPC ID to the one you put in autospawn
DONT Close client.java until you read the next part
SHOPS.CFG
Step 3: Open Shops.cfg
Scroll to the bottom of the file
you will see something like this
shop = 50 Woodcutting_SuperStore 2 2 6739 100 1349 100 1351 100 1353 100 1355 100 1357 100 1359 100 1361 100
shop = 51 Miners_Galore 1 1 1265 100 1267 100 1269 100 1271 100 1273 100 1275 100 436 100 438 100 440 100 442 100 444 100 447 100 449 100 451 100 668 100 2892 100
After Number 51 or your last shop add this
I would have mine as 52 because its the next shop id i can use. If you choose Shop 51 or 52, Go into Client.java again and change
WanneShop = 5;
to
WanneShop = 52;
shop = 52 Name_Here 1 1 1265 100
The 1's after the name Represent the Role of the shop
1 = Buy and Sell Anything even if its not in that store (General Store)
2 = Cannot Sell other items to the store. Cannot sell bought items back again
I would reccomend having it 2 [Tab] 1
The 1265 is the item ID . The 100 is the amount you are selling
-Techn0fev3r
I will try to make this as easy as possible
Classes Modified: Autospawn.cfg, Shops.cfg, Client.java
AUTOSPAWN.CFG
Step 1: Open Autospawn cfg and scroll down to the bottom
Add this code above [ENDOFSPAWN] or whatever yours says
spawn = 28 2308 9827 0 0 0 0 0 1
The 28 is the ID of the NPC you wish to host the shop
Change the Purple Numbers to your X Coordinates
Change the Red Numbers to Your Y Coordinates
CLIENT.JAVA
Step 2: Open client.java and search for
wanneshop
Until you find something like this
if(NPCID == 710){
PutNPCCoords = true;
WanneShop = 5;
Change the NPC ID to the one you put in autospawn
DONT Close client.java until you read the next part
SHOPS.CFG
Step 3: Open Shops.cfg
Scroll to the bottom of the file
you will see something like this
shop = 50 Woodcutting_SuperStore 2 2 6739 100 1349 100 1351 100 1353 100 1355 100 1357 100 1359 100 1361 100
shop = 51 Miners_Galore 1 1 1265 100 1267 100 1269 100 1271 100 1273 100 1275 100 436 100 438 100 440 100 442 100 444 100 447 100 449 100 451 100 668 100 2892 100
After Number 51 or your last shop add this
I would have mine as 52 because its the next shop id i can use. If you choose Shop 51 or 52, Go into Client.java again and change
WanneShop = 5;
to
WanneShop = 52;
shop = 52 Name_Here 1 1 1265 100
The 1's after the name Represent the Role of the shop
1 = Buy and Sell Anything even if its not in that store (General Store)
2 = Cannot Sell other items to the store. Cannot sell bought items back again
I would reccomend having it 2 [Tab] 1
The 1265 is the item ID . The 100 is the amount you are selling
-Techn0fev3r