Adding Shops!!!!
This is what I hear people ask for ALL the time you can download Shop Makers and they tell you what to do. But I do it manually the fun way! . So first we open Client.java and then search for
- Code:
-
WanneShop = 2If you dont find it remove the spaces. This is the aurbury magic shop!
- Code:
-
} else if (NPCID == 553) { //Aubury rune shop
PutNPCCoords = true;
WanneShop = 2; //Aubury Magic Shop
}Now we have the
NPC ID wich and the name of the shop. Now were done with that now we need to go into autospawn.java or .cfg either one. And look for something like Admin Town or High lvl Train or the spot you want the shop to be in. And then we see a bar something like this
Code:
- Code:
-
spawn = 2253 2336 3173 0 0 0 0 0 2 admin town announcer
This controls the NPC like its "walk type" and the "range" of it's walking square. The first number the "2253" thats the NPC ID and there you have ALMOST keyword ALMOST finished your shop. Now comes the tough stuff. Open up shops.cfg and press CTRL+F and put in
Code:
- Code:
-
shop = 2and thats your shop ID it doesn't matter. Now first we put it in this order.
Code:
- Code:
-
//-----ShopID---ShopName----------------------------------------Sell----Buy-----Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount