Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is all in shop.java ~~
- Declare this
- public static int pointShop = 50;
- Put this under the public boolean "is general store"
- public static int[][] EctoTokenPrices = {
- {20135, 500}, //This means {itemid, value}
- {20139, 200}};
- search for this
- int price = getBuyPrice(item);
- under that put this there
- if (money != 995) {
- for (int i11 = 0; i11 < EctoTokenPrices.length; i11++) {
- pointShop = 50;
- if (item.getId() == EctoTokenPrices[i11][0]) {
- if (money < EctoTokenPrices[i11][1] * quantity) {
- player.getPackets().sendGameMessage("You need " + EctoTokenPrices[i11][1] + " Ecto-Tokens to buy this item!");
- return;
- } else
- pointShop = 50;
- player.getPackets().sendGameMessage("You have bought a " + item.getDefinitions().getName() + " from the store.");
- player.getInventory().addItem(EctoTokenPrices[i11][0], 1);
- player.getInventory().deleteItem(EctoTokenPrices[i11][1], i11);
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement