Answer:
1.)You need to go into configurations folder, find shops.cfg, and now open it. You should see a list of shops, item ids, amounts etc. Find the last shop in line go down one line and add something like this
Code:
shop = 55 Tutorial 2 2 35 1000
The shop number is the next shop, if u added it after 54 it would be 55, tutorial is the name of shop, u add 2 then 2 like I did, and then item id's and the amount of the item that you put before the amount, the 2's mean anything sold at that shop can be sold to it, if they are 1's then anything can be sold.
2.)You then find the npc you want your shop to be, it has to have a trade option, you then go into autospawn.cfg and put a code like such
Code:
spawn = 592 2322 3970 0 0 0 0 0 2
The 592 is the npc id, the 2322 and 3970 are the coordinates of where the npc will spawn after you compile and runserver, then add what follows after.
3.) Now go into client.java and search for wanneshop = 40, then scroll down until you find the shop you added yours after.
Code:
} else if (NPCID == 592) {
PutNPCCoords = true;
WanneShop = 55; // Tutorial
You put that after it, since it should be last of those it should have those spaces after; NPCID is self explanatory, you put WanneShop = (shop#), then after shop# add ";" so that it compiles right. Oh yeah and // is a note to yourself and shouldn't effect it.