PDA

View Full Version : [317][508] Adding a *new* shop to your private server [317][508]



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

XxBryantD
June 20th, 2010, 16:28
thanks needed this

Dark bow199
June 20th, 2010, 17:50
Nice tut :)

Break
June 20th, 2010, 17:52
This isn't for 508, In the second time? o.o

Owner Pwnage
June 24th, 2010, 10:29
Thank you,very useful.I forgot how to make shops.Intill now.

Faab234
June 24th, 2010, 11:14
This isn't 508, but you can make a Shop.cfg Reader.

Elitekrull
June 28th, 2010, 22:32
Great Guide.

D Bow
July 12th, 2010, 19:04
Nice tut for 317 but not a tut for 508 but gj anyway

Charlie`
July 13th, 2010, 06:39
Nice tut, But what if you cant find

if(NPCID == 710){
PutNPCCoords = true;
WanneShop = 5;
On a blank delta source, what else should you look for? I think that will help out a few players if you find that out.

KoRn
July 14th, 2010, 08:50
Basic knowledge. Good for Beginners.

yorick007
July 19th, 2010, 15:44
SysCape v 3.0.
Exception in thread "main" java.lang.NumberFormatException: For input string: "4
5 Herblore Shop"
at java.lang.NumberFormatException.forInputString(Num berFormatException.
java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:499)
at ShopHandler.loadShops(ShopHandler.java:80)
at ShopHandler.<init>(ShopHandler.java:33)
at server.main(server.java:172)


Solution?

Ninga Nun
July 20th, 2010, 17:23
Nice Tut

Project Classic
September 19th, 2010, 22:49
Thank You this helped me greatly. Thank you once more.

-Turtle

zezeye1
October 1st, 2010, 08:29
i dont get the spawn = 2308 9827 0 0 0 0 0 1
is verry messy

k now i get it

daman25
October 5th, 2010, 21:11
when i click run.bat the CMD comes up then closes instantly...why is this? i cant even start the client for acrylix

Stiflex
November 24th, 2010, 16:22
Nice tut this will really help new coders (like meh ;P) can you add 1 thing. how to change the item's price in the shop.. would realy help :)
-Thankx for tut! :P

CometCarm
December 16th, 2010, 22:14
Nice tut this will really help new coders (like meh ;P) can you add 1 thing. how to change the item's price in the shop.. would realy help :)
-Thankx for tut! :P

This will help alot! I need help changing prices!

ashon
November 21st, 2011, 12:15
ok i dont no what the fuck is going on i just carnt find wanneshop in client.java is there any were als it could be i have done ever thing else just dont no what to do no please replay