Jump to content

Search the Community

Showing results for tags 'store'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 21 results

  1. Payza autodonation and a custom store page for 718 Help me i need this to be done asap add my skype: kenneth.rsps
  2. Hello Runelocus, I need some help trying to add this to my pk shop... currently players are able to buy with pk points but if you want to sell them, it gives you coins not pk points. if anyone can help me with this i will be very thankful for your help!
  3. Well, I can buy items from my general store, but it won't buy my items. already tried the 1 1 1 2 2 1 things
  4. [CENTER]Hello Rune-Locus, today I am bringing you my twitter followers, favorites, and retweets offer. The picture below will give me info about the prices and our goal here at SocialExpress. If you need anymore info, please private message me here or look at picture for more info. Also in case you can't read the skype name its "socialexpressltd". [img]http://i1323.photobucket.com/albums/u600/Dxllan/socialexpress_zps688aab7b.png[/img] Also selling Custom Source + Client with Tweening. Add me on skype or pm me here for pictures etc.[/CENTER]
  5. Permanens

    Store error?

    Client freezes when I try to open any store with coins in my inventory. The stores open and load with out coins in the inventory. Here is the error. [CODE]Insta-Scape is loading.. Loaded 525 graphics... Testing Loaded the flo. 602 NPC Amount: 11257 Error: T1 - 123,0 - 36,36 2 Exception in thread "Thread-4" java.lang.ArrayIndexOutOfBoundsException: 32895 at ItemDef.forID(ItemDef.java:12) at ItemDef.getSprite(ItemDef.java:637) at client.drawInterface(client.java:9532) at client.draw3dScreen(client.java:10228) at client.method146(client.java:14154) at client.drawGameScreen(client.java:9323) at client.processDrawing(client.java:10161) at RSApplet.run(RSApplet.java:108) at client.run(client.java:5752) at java.lang.Thread.run(Thread.java:744) [/CODE] Any suggestions.
  6. Hey guys, whenever I click "Buy 10" in my stores, it only sells me 1 of the item, how do I fix this? Cheers :)
  7. Hey, on my new source I have a problem where the items I sell to the general store disappear instead of being placed in the store's inventory. On my old source items would go into the shop when sold. I tried replacing the shop handler.java and got an error at the server start. Even if the items that the general store has in stock are bought, and sold back, the stock does not go back up. Also, if the shop.java value for the shop is "1 1", all items are bought by the store for 0 coins. If the shop value is "1 0" then it functions as a normal store. This may be because of the interference of the PK points system that was present before. If someone could help me figure out a way to make general stores add items to their shop when sold that'd be awesome! I don't know which file controls that, but could someone give me a replacement file if they know which one it is? Thank you!
  8. [B][B][I][SIZE=4][FONT=Comic Sans MS][COLOR="#FFA07A"]Welcome to my WebDeveloping Shop.[/COLOR][/FONT][/SIZE] So Basically I'll Be Developing Sites For Paypal Money Or RSGP. Note: I've been Developing PHP, HTML, SQL, CCS+, JAVA, PS, Scripting For 4 Years. NOTE: 0.25$ = 1M Website Highscores Any Source Version: 1$/4m RSGP Vote4Cash Any Source Version: 0.50$/2m RSGP Auto Donate System: 1.50$/6m RSGP IPBoard Paid Forums 100% Coded And Setup With Boards Ready, Crown....ETC: 2.25$/9m RSGP Added Server Status With Players Online To Website: 0.50$/2m RSGP Banners Any Size And Good Effects: 0.50$/2m RSGP I Can Add Anything To Website With Request From The Payer But Still You Have To Pay For Anything. Terms of service: [QUOTE] 1. You Always Go First Or Use Middleman. 2. You Wont Be Refunded After You Confirm That I've Done My Work. 3. If You Fucked Up Anything On Files I Added For You, You Have To Pay Again For Me To Fix it. 4. You Have To Leave A Feedback.[/QUOTE] My Skype: Ahmed.diab1998 Note: Always Ask For A PM Before Paying For Any Service. Note: You Can Find My Name On Other Communities As Darkn3ss, Joker678, Mr Joker678, My Real Name Is Ahmed Diab.[/I][/B][/B]
  9. I want to buy my computer pieces either on Internet or in store, but I'm not sure which one is better. Some prices are lower on Internet, but it can be harder to exchange pieces if one break. Give opinions below :)
  10. owner blade

    Store

    runelocus toplist has lost its value.
  11. General Store buys items at 0GP. Don't tell me to search... I already did... I am trying to improve my coding so help me out or give a tip or something.
  12. Mr Torva

    PI General Store

    Why would i be able to sell items to the General Store that he sells, but it will not allow me to buy anything from him? I've gone over the shop at least 25 times and i cannot figure out why its doing this. [code]shop = 1 @[email protected]_Shop 2 2 1540 100 1733 100 590 100 2347 100 1755 100 946 100 952 100[/code]
  13. Here is what you're adding, we do not need any interface its done by a item called a collection bag. [IMG]http://i50.tinypic.com/281hbmv.png[/IMG] [IMG]http://i50.tinypic.com/345n2xf.png[/IMG] [IMG]http://i45.tinypic.com/6z8wn6.png[/IMG] [IMG]http://i46.tinypic.com/2v2ihpv.png[/IMG] There are no dupes with this. It checks for all max values, i can't count i think its 900 trillion. MoneyPouch.java [CODE]package server.model.content; import server.Config; import server.model.mobile.players.Client; /** * * [MENTION=52317]auth[/MENTION]or Arrowzftw */ public class MoneyPouch { private long storedCoins = 0; private boolean isWithdrawing = false; private Client c; public static final int MONEY_ITEM = 10525; public MoneyPouch(Client c) { this.c = c; } /** * @return the storedCoins */ public long getStoredCoins() { return storedCoins; } /** * [MENTION=75098]Para[/MENTION]m storedCoins the storedCoins to set */ public void setStoredCoins(long storedCoins) { this.storedCoins = storedCoins; } /** * @return the isStoring */ public boolean isWithdrawing() { return isWithdrawing; } /** * [MENTION=75098]Para[/MENTION]m isStoring the isStoring to set */ public void setWithdrawing(boolean isWithdrawing) { this.isWithdrawing = isWithdrawing; } public void storeCoins(long amount) { if(c.playerRights != 3) { c.sendMessage("Feature has been disabled, you can only withdraw money."); return; } if (!c.getItems().playerHasItem(MONEY_ITEM)) { c.getPA().closeAllWindows(); return; } if (Long.MAX_VALUE == getStoredCoins()) { c.sendMessage("You cannot store anymore coins."); return; } if (c.inWild()) { c.sendMessage("You cannot do this in the wilderness."); c.getPA().closeAllWindows(); return; } if(c.isBanking || c.isDead || c.duelStatus >= 1 || c.inTrade) { c.sendMessage("You cannot do this in you're current state."); c.getPA().closeAllWindows(); return; } if(amount > Config.MAXITEM_AMOUNT) { amount = Config.MAXITEM_AMOUNT; } if (c.getItems().getItemAmount(995) < amount) { amount = c.getItems().getItemAmount(995); } if (amount <= 0) { c.getPA().closeAllWindows(); return; } int a1 = (int) amount; c.getItems().deleteItem2(995, a1); setStoredCoins(getStoredCoins() + amount); c.sendMessage("You have stored [MENTION=231]red[/MENTION]@" + amount + " [MENTION=24291]bla[/MENTION]@coins."); c.sendMessage("You currently now have [MENTION=231]red[/MENTION]@" + getStoredCoins() + " [MENTION=24291]bla[/MENTION]@coins in you're bag."); c.getPA().closeAllWindows(); } public void removeCoins(long amount) { if (!c.getItems().playerHasItem(MONEY_ITEM)) { c.getPA().closeAllWindows(); return; } if (c.inWild()) { c.sendMessage("You cannot do this in the wilderness."); c.getPA().closeAllWindows(); return; } if(c.isBanking || c.isDead || c.duelStatus >= 1 || c.inTrade) { c.sendMessage("You cannot do this in you're current state."); c.getPA().closeAllWindows(); return; } if(amount > Config.MAXITEM_AMOUNT) { amount = Config.MAXITEM_AMOUNT; } long coinInvAmount = c.getItems().getItemAmount((int) 995); if (getStoredCoins() < amount) { amount = getStoredCoins(); } if (amount <= 0) { c.getPA().closeAllWindows(); return; } if((coinInvAmount - Config.MAXITEM_AMOUNT) == 0) { c.sendMessage("You cannot withdraw any more coins."); return; } if (coinInvAmount >= 1) { if (coinInvAmount == Config.MAXITEM_AMOUNT) { c.sendMessage("You cannot withdraw any more coins."); c.getPA().closeAllWindows(); return; } if ((amount + coinInvAmount) > Config.MAXITEM_AMOUNT) { amount = (Config.MAXITEM_AMOUNT - coinInvAmount); } } else { if (c.getItems().freeSlots() <= 0) { c.sendMessage("Not enough inventory space."); c.getPA().closeAllWindows(); return; } } c.sendMessage("You withdraw "+amount+" coins."); setStoredCoins(getStoredCoins() - amount); c.getItems().addItem(995, (int) amount); c.getPA().closeAllWindows(); } public void handleClicks(int clickType) { if (!c.getItems().playerHasItem(MONEY_ITEM)) { return; } switch (clickType) { case 1: c.getDH().sendItemChat2("Collection bag", "You currently have "+getStoredCoins()+" coins stored.", "Click continue to see further options.", MONEY_ITEM, 150); c.nextChat = 6001; break; } } } [/CODE] Add this to client.java: [CODE] private MoneyPouch moneyPouch = new MoneyPouch(this); public MoneyPouch getPouch() { return moneyPouch; }[/CODE] Add this to DialogueHandler.java [CODE] case 6001: c.getDH().sendOption2("Withdraw coins", "Store coins"); c.dialogueAction = 6001; c.nextChat = 0; break;[/CODE] Declare this in DialogueHandler.java too: [CODE]public void sendItemChat2(String header, String one, String two, int item, int zoom) { c.getPA().sendFrame200(311, 591); c.getPA().sendFrame126(two, 312); c.getPA().sendFrame126(one, 313); c.getPA().sendFrame126(header, 4885); c.getPA().sendFrame246(311, zoom, item); c.getPA().sendFrame164(310); c.nextChat = 0; }[/CODE] Find case 9057 in ClickingButtons.java under it add: [CODE] if(c.dialogueAction == 6001) { c.getPouch().setWithdrawing(true); c.getOutStream().createFrame(27); return; }[/CODE] Find case 9058 in ClickingButtons.java under it add: [CODE] if(c.dialogueAction == 6001) { c.getPouch().setWithdrawing(false); c.getOutStream().createFrame(27); return; }[/CODE] Go to bankX2.java and under: [CODE] if (Xamount < 0) { return; }[/CODE] Add: [CODE] if(c.dialogueAction == 6001) { if(c.getPouch().isWithdrawing()) { c.getPouch().removeCoins(Xamount); } else { c.getPouch().storeCoins(Xamount); } }[/CODE] Go to itemonitem and add this: [CODE] if(useWith == MoneyPouch.MONEY_ITEM || itemUsed == MoneyPouch.MONEY_ITEM) { if(useWith == 995 || itemUsed == 995) { c.getPouch().storeCoins(c.getItems().getItemAmount(995)); } }[/CODE] In PlayerAssistant.java replace closeAllWindows with: [CODE]public void closeAllWindows() { if(c != null) { if (c.getOutStream() != null) { c.isBanking = false; c.getOutStream().createFrame(219); c.flushOutStream(); if(c.dialogueAction == 6001) { c.dialogueAction = -1; } } } }[/CODE] Finally add this to first clickItem: [CODE] case MoneyPouch.MONEY_ITEM: c.getPouch().handleClicks(1); break;[/CODE] Here is the PlayerSave rubbish: [CODE]} else if (token.equals("storedCoins")) { p.getPouch().setStoredCoins(Long.parseLong(token2));[/CODE] [CODE] characterfile.write("storedCoins = ", 0, 14); characterfile.write(Long.toString(p.getPouch().getStoredCoins()), 0, Long.toString(p.getPouch().getStoredCoins()).length()); characterfile.newLine();[/CODE] To use spawn item 10525 and interact with it.
  14. InsanityPk

    General Store

    Hi everyone, I'm trying to add a general store to my server. I want to be able to sell and buy items from it... I followed this tutorial: [url]http://www.runelocus.com/forums/showthread.php?25810-562-General-Store-562[/url] But when I compiled and ran my server, I tried to sell an item to the General Store.... It said: "Sorry but you can't sell this item!" Here is my shophandler.java: [CODE]package com.rs2hd.content; import com.rs2hd.content.minigames.FightPits; import com.rs2hd.model.*; import com.rs2hd.GameEngine; import com.rs2hd.net.Packet; /** * Created by IntelliJ IDEA. * User: Serenty * Date: 3-march-2009 * Project: Boneyard * Time: 19:51:15 */ public class ShopHandler { public int maxItems = 40; public int[] pitsI = {18349, 18351, 18353, 4447}; public int[] items = new int[maxItems]; public int[] itemsN = new int[maxItems]; public int[] maxItemAmount = new int[maxItems]; public boolean generalStore = true; public long lastRestock = System.currentTimeMillis(); int shopid = 0; public boolean mainstock = true; /***************************************************************************************************************/ /* DO NOT TOUCH THIS! */ /***************************************************************************************************************/ public ShopHandler() { for (int i = 0; i < 40; i++) { items[i] = -1; } maxItemAmount = itemsN; } public void process(Player p) { if (System.currentTimeMillis() - lastRestock >= 60000) { clearSlots(p); for (int i = 0; i < items.length; i++) { if (itemsN[i] < maxItemAmount[i]) itemsN[i]++; } lastRestock = System.currentTimeMillis(); } } public void sell(Player p, int item, int amnt){ boolean shopShouldBuy = generalStore || isItemOnShop(item); if (!shopShouldBuy) { p.sm("You cannot sell this item to this shop."); return; } if (item == 995) { p.sm("You can't sell coins to a shop"); return; } int free = findFreeSlot(); if (!isItemOnShop(item) && generalStore) { if (free == -1) { p.sm("This shop is full."); return; } items[free] = item; itemsN[free] = 0; } int slot = findItemSlot(item); if(amnt<=p.getInventory().numberOf(item)) { if (itemStacks(item)) { items[slot] = item; itemsN[slot] += amnt; p.getInventory().deleteItem(item, amnt); p.getInventory().addItem(995,amnt*GameEngine.prices.getMinimumPrice(item)); } else { items[slot] = item; for (int notused = amnt; notused > 0; notused--) { p.getInventory().deleteItem(item, 1); p.getInventory().addItem(995, GameEngine.prices.getMinimumPrice(item)); itemsN[slot]++; } } } sendShopItems(p); sendPlayerInventory(p); } public static int donateValue(Player player, int itemId) { switch(itemId) { case 15441: //example to test return 4; case 15442: return 4; case 15443: return 4; case 15444: return 4; case 15701: return 4; case 15702: return 4; case 15703: return 4; case 15704: return 4; case 16689: return 4; case 16711: return 4; case 17259: return 4; case 17361: return 4; case 16359: return 2; case 13738: return 2; case 13744: return 2; case 13740: return 4; case 13742: return 4; } return -1; } public static int PkShop(Player player, int itemId) { switch(itemId) { case 11235: //example to test return 125; case 11724: return 200; case 11694: return 100; case 4151: return 15; case 13899: return 50; case 6570: return 150; case 11283: return 120; case 11726: return 200; case 11728: return 100; case 14484: return 150; } return -1; } public static int DonatorShop(Player player, int itemId) { switch(itemId) { case 16755: return 3; case 17237: return 3; case 16865: return 3; case 17017: return 3; case 17171: return 3; case 16931: return 3; case 17061: return 3; case 17193: return 3; case 17339: return 3; case 17215: return 3; case 17317: return 3; case 16711: return 3; case 17259: return 3; case 16689: return 3; case 16667: return 3; case 16293: return 3; case 16359: return 3; } return -1; } public static int VoteShop(Player player, int itemId) { switch(itemId) { case 1037: return 350; case 1038: return 350; case 1040: return 350; case 1042: return 350; case 1044: return 350; case 1046: return 350; case 1048: return 350; case 1050: return 350; case 1961: return 250; case 1419: return 300; case 1053: return 250; case 1055: return 250; case 1057: return 300; case 15332: return 1; case 7462: return 5; case 4812: return 1; case 20929: return 300; } return -1; } public static int Pitscost(Player player, int itemId) { switch(itemId) { case 18357: case 18349: case 18351: case 18353: case 18359: case 18355: case 18361: case 18363: case 18369: case 17273: case 15403: } return -1; } private void buystock(Player p, int item, int amnt) { if(true) { if(p.shopid == 24) { if(p.DonatorPoints >= donateValue(p, item)) { p.DonatorPoints -= donateValue(p, item); p.getInventory().addItem(item, 1); } else { p.getActionSender().sendMessage("You need Donator Points to buy this."); } return; } if(p.shopid == 29) { if(p.PkPoints >= PkShop(p, item)) { p.PkPoints -= PkShop(p, item); p.getInventory().addItem(item, 1); } else { p.sm("Not enough PKpoints to buy that many."); } return; } if(p.shopid == 30) { if(p.votes >= VoteShop(p, item)) { p.votes -= VoteShop(p, item); p.getInventory().addItem(item, 1); } else { p.sm("Not enough vote points to buy that many."); } return; } if(p.shopid == 33) { if(p.DonatorPoints >= DonatorShop(p, item)) { p.DonatorPoints -= DonatorShop(p, item); p.getInventory().addItem(item, 1); } else { p.sm("Not enough donator points to buy that many."); } return; } if(p.shopid == 32) { if (p.getInventory().contains(8851, 200)){ p.getInventory().deleteItem(8851, 200); p.getInventory().addItem(item, 1); } else { p.getActionSender().sendMessage("Not enough pk points to buy that many."); } return; } if (p.getInventory().getFreeSlots() < 0) { p.sm("Not enough space on inventory"); return; } if (p.getInventory().numberOf(995) < (amnt * GameEngine.prices.getMaximumPrice(item))) { p.sm("Not enough coins to buy that many."); return; } boolean b = p.getInventory().addItem(item, amnt); if (p.getInventory().getFreeSlots() < 0) { p.sm("Not enough space on inventory"); return; } long value = amnt * GameEngine.prices.getMaximumPrice(item); if (p.getInventory().numberOf(995) < value) { p.sm("Not enough coins to buy that many."); return; } if(b) p.getInventory().deleteItem(995, (int) value); return; } /*clearSlots(p); int slot = findItemSlot(item); if (slot == -1) { return; } if (itemsN[slot] < amnt) amnt = itemsN[slot]; if (amnt == 0) { items[slot] = -1; p.sm("That item's stock has run out."); return; } if (itemStacks(item)) { // item stackable, easier... if (p.getInventory().getFreeSlots() < 0) { p.sm("Not enough space on inventory"); return; } if (p.getInventory().numberOf(995) < (amnt * GameEngine.prices.getMaximumPrice(item))) { p.sm("Not enough coins to buy that many."); return; } p.getInventory().deleteItem(995, amnt * GameEngine.prices.getMaximumPrice(item)); p.getInventory().addItem(item, amnt); itemsN[slot] -= amnt; } else { // item not stackable for (int i = amnt; i > 0; i--) { int price = GameEngine.prices.getMaximumPrice(item); clearSlots(p); if (p.getInventory().numberOf(995) < price) { p.sm("Not enough coins to buy that many."); break; } if (itemsN[slot] < 1) { clearSlots(p); p.sm("The shop has run out of stock from this item!"); break; } if(p.getInventory().hasRoomFor(items[slot], amnt)) { itemsN[slot]--; p.getInventory().deleteItem(995, price); p.getInventory().addItem(item, 1); clearSlots(p); } else { p.sm("Not enough space on inventory."); break; } } } sendShopItems(p); sendPlayerInventory(p); clearSlots(p);*/ } public int findItemSlot(int item) { for (int i = 0; i < items.length; i++) if (item == items[i]) return i; return -1; } public int findFreeSlot() { for (int i = 0; i < items.length; i++) if (items[i] == -1) return i; return -1; } public void clearSlots(Player p) { for (int i = 0; i < items.length; i++) if (items[i] < 1) { items[i] = -1; } else { } } public void sendShopItems(Player p) { p.getActionSender().sendItems( -1, 63746, 556,items, itemsN); } public boolean isItemOnShop(int item) { return findItemSlot(item) != -1; } public void sendPlayerInventory(Player p) { p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer()); } public boolean itemStacks(int item) { ItemDefinition def = ItemDefinition.forId(item); return def.isStackable(); } public void handleoption(Player p, int interfaceId, int buttonId, int buttonId2, int packetId) { switch (interfaceId) { case 620: switch(buttonId) { case 18: p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseInventoryInterface(); break; default: int itemid = returnItemId(p.shopid, buttonId2); switch (packetId) { case 216: /* Value. */ if(p.shopid == 23) { p.sm("This item costs 140 tokkul."); } else if(p.shopid == 24) { p.sm("The number next to the item is how many points it is"); }else p.sm("This item costs " + GameEngine.prices.getMaximumPrice(itemid) + " coins."); break; case 19: /* Buy 1. */ buystock(p, itemid, 1); break; case 193: /* Buy 5. */ buystock(p, itemid, 5); break; case 76: /* Buy 10. full inventory*/ buystock(p, itemid, 10); break; case 173: /* Buy 50. gives 500 gotta add*/ buystock(p, itemid, 500); break; case 3: /*Examine. */ ItemDefinition def = ItemDefinition.forId(itemid); p.sm(""+def.getExamine()); break; } } break; case 621: if (buttonId == 0) { Item def = p.getInventory().getContainer().get(buttonId2); int itemid = def.getId(); switch (packetId) { case 216: /*Value.*/ p.sm( "This item is worth " + GameEngine.prices.getMinimumPrice(itemid) + " coins."); break; case 19: /* * Buy 1. */ sell(p, itemid, 1); break; case 193: /* * Buy 5. */ sell(p, itemid, 5); break; case 76: /* * Buy 10. */ sell(p, itemid, 10); break; case 173: /* * Buy 50. */ sell(p, itemid, 50); break; case 3: /* * Examine. */ p.sm(""+def.getDefinition().getExamine()); break; } } break; } } public void shopopen(Player p, int shopId) { p.getActionSender().sendConfig(199, -1); p.getActionSender().sendConfig2(118, 17); p.getActionSender().sendInterface(620, true); p.getActionSender().sendInventoryInterface(621); p.getActionSender().sendTab(146, 449); p.shopid = shopId; Object[] sellOptions = new Object[]{"Sell 500", "Sell 10", "Sell 1", "Value", -1, 1, 7, 4, 93, 40697856}; Object[] invparams = new Object[]{"", "", "", "", "Sell 50", "Sell 10", "Sell 5", "Sell 1", "Value", -1, 0, 7, 4, 93, 40697856}; //Object[] shopsampleparams = new Object[]{"", "", "", "", "Buy 50", "Buy 10", "Buy 5", "Buy 1", "Value", -1, 0, 4, 10, 7, 40632346}; Object[] shopparams = new Object[]{"", "", "", "", "Buy 500", "Buy 10", "Buy 5", "Buy 1", "Value", -1, 0, 4, 10, 556, 40632345}; p.getActionSender().sendRunScript(149, sellOptions, "IviiiIsssss"); p.getActionSender().sendRunScript( 150, invparams, "IviiiIsssssssss"); //player.getPackets().sendRunScript( 150, shopsampleparams, "IviiiIsssssssss"); p.getActionSender().sendRunScript( 150, shopparams, "IviiiIsssssssss"); p.getActionSender().sendAccessMask(1278, 621, 0, 0, 28); p.getActionSender().sendAccessMask(1278, 620, 25, 0, 40); p.getActionSender().sendAccessMask(1278, 620, 26, 0, 40); } /***************************************************************************************************************/ /* ONLY EDIT THIS! */ /***************************************************************************************************************/ public int returnItemId(int shopid, int buttonId2) { switch (shopid) { case 100: switch (buttonId2) { case 0:return 590; case 1:return 1933; case 2:return 946; case 3:return 1925; case 4:return -1; case 5:return -1; case 6:return -1; case 7:return -1; case 8:return -1; case 9:return -1; case 10:return -1; case 11:return -1; case 12:return -1; case 13:return -1; case 14:return -1; case 15:return -1; case 16:return -1; case 17:return -1; case 18:return -1; case 19:return -1; case 20:return -1; case 21:return -1; case 22:return -1; case 23:return -1; case 24:return -1; case 25:return -1; case 26:return -1; case 27:return -1; case 28:return -1; case 29:return -1; case 30:return -1; case 31:return -1; case 32:return -1; case 33:return -1; case 34:return -1; case 35:return -1; case 36:return -1; case 37:return -1; case 38:return -1; case 39:return -1; } break; case 2: switch (buttonId2) { case 0:return 1755; case 1:return 590; case 2:return 5605; case 3:return 1925; case 4:return -1; case 5:return -1; case 6:return -1; case 7:return -1; case 8:return -1; case 9:return -1; case 10:return -1; case 11:return -1; case 12:return -1; case 13:return -1; case 14:return -1; case 15:return -1; case 16:return -1; case 17:return -1; case 18:return -1; case 19:return -1; case 20:return -1; case 21:return -1; case 22:return -1; case 23:return -1; case 24:return -1; case 25:return -1; case 26:return -1; case 27:return -1; case 28:return -1; case 29:return -1; case 30:return -1; case 31:return -1; case 32:return -1; case 33:return -1; case 34:return -1; case 35:return -1; case 36:return -1; case 37:return -1; case 38:return -1; case 39:return -1; } break; case 3: switch (buttonId2) { case 0:return 590; case 1:return 1933; case 2:return 946; case 3:return 1925; case 4:return -1; case 5:return -1; case 6:return -1; case 7:return -1; case 8:return -1; case 9:return -1; case 10:return -1; case 11:return -1; case 12:return -1; case 13:return -1; case 14:return -1; case 15:return -1; case 16:return -1; case 17:return -1; case 18:return -1; case 19:return -1; case 20:return -1; case 21:return -1; case 22:return -1; case 23:return -1; case 24:return -1; case 25:return -1; case 26:return -1; case 27:return -1; case 28:return -1; case 29:return -1; case 30:return -1; case 31:return -1; case 32:return -1; case 33:return -1; case 34:return -1; case 35:return -1; case 36:return -1; case 37:return -1; case 38:return -1; case 39:return -1; } break; case 4://pvpshop switch (buttonId2) { case 0:return 4151; case 1:return 10828; case 2:return 11730; case 3:return 4087; case 4:return 1079; case 5:return 1093; case 6:return 1113; case 7:return 1127; case 8:return 1147; case 9:return 1163; case 10:return 1201; case 11:return 1067; case 12:return 1081; case 13:return 1101; case 14:return 1115; case 15:return 1137; case 16:return 1153; case 17:return 1191; case 18:return 1323; case 19:return 11732; case 20:return 6737; case 21:return 9183; case 22:return 4587; case 23:return 6585; case 24:return 15272; case 25:return 5698; case 26:return 6528; case 27:return 7459; case 28:return 7460; case 29:return 7461; case 30:return 5667; case 31:return 5574; case 32:return 5575; case 33:return 5576; case 34:return 4155; } break; case 5: //dwarf pickaxe shop switch (buttonId2) { case 0:return 6739; case 1:return 1355; case 2:return 1353; case 3:return 1361; case 4:return 1359; case 5:return 1349; case 6:return 590; case 7:return 526; case 8:return 532; case 9:return 1265; case 10:return 1267; case 11:return 1269; case 12:return 1271; case 13:return 1273; case 14:return 1275; case 15:return 1755; case 16:return 1625; case 17:return 1627; case 18:return 1629; case 19:return 1623; case 20:return 1621; case 21:return 1619; case 22:return 1617; case 23:return 1631; case 24:return 2347; case 25:return 311; case 26:return 303; case 27:return 301; case 28:return 305; case 29:return 307; case 30:return 313; case 31:return 15263; } break; case 6: switch (buttonId2) {//summoning shop case 0:return 12155; case 1:return 12183; case 2:return 12158; case 3:return 12159; case 4:return 12160; case 5:return 12161; case 6:return 12162; case 7:return 12163; case 8:return 12164; case 9:return 12165; case 10:return 12166; case 11:return 12167; case 12:return 12168; case 13:return 1119; case 14:return 2859; case 15:return 2138; case 16:return 6291; case 17:return 3363; case 18:return 2134; case 19:return 6032; case 20:return 9976; case 21:return 3325; case 22:return 12156; case 23:return 6010; case 24:return 12134; case 25:return 6319; case 26:return 2351; case 27:return 2353; case 28:return 2359; case 29:return 2361; case 30:return 2363; case 31:return 3138; case 32:return 1635; case 33:return 2132; case 34:return 9978; case 35:return 1444; case 36:return 7939; case 37:return 1438; } break; case 7: switch (buttonId2) {//Range shop case 0:return 887; case 1:return 878; case 2:return 881; case 3:return 8882; case 4:return 9140; case 5:return 9141; case 6:return 9142; case 7:return 9144; case 8:return 9242; case 9:return 9243; case 10:return 9244; case 11:return 9245; case 12:return 13280; case 13:return 886; case 14:return 837; case 15:return 839; case 16:return 843; case 17:return 845; case 18:return 849; case 19:return 853; case 20:return 857; case 21:return 861; case 22:return 1065; case 23:return 1135; case 24:return 1099; case 25:return 2487; case 26:return 2489; case 27:return 2491; case 28:return 2493; case 29:return 2495; case 30:return 2497; case 31:return 2499; case 32:return 2501; case 33:return 2503; case 34:return 11235; case 35:return 11212; case 36:return 884; case 37:return 888; case 38:return 890; case 39:return 892; } break; case 8: switch (buttonId2) {//skillcapes case 0:return 9747; case 1:return 9748; case 2:return 9749; case 3:return 9750; case 4:return 9751; case 5:return 9752; case 6:return 9753; case 7:return 9754; case 8:return 9755; case 9:return 9756; case 10:return 9757; case 11:return 9758; case 12:return 9759; case 13:return 9760; case 14:return 9761; case 15:return 9781; case 16:return 9763; case 17:return 9764; case 18:return 9765; case 19:return 9766; case 20:return 9767; case 21:return 9768; case 22:return 9769; case 23:return 9770; case 24:return 9771; case 25:return 9772; case 26:return 9773; case 27:return 9774; case 28:return 9778; case 29:return 9787; case 30:return 9808; case 31:return 9793; case 32:return 9799; case 33:return 9805; case 34:return 9949; case 35:return 9790; case 36:return 12170; case 37:return 9784; case 38:return 9796; case 39:return 9802; } break; case 9: //Herbolore switch (buttonId2) { case 0:return 227; case 1:return 249; case 2:return 251; case 3:return 253; case 4:return 255; case 5:return 257; case 6:return 259; case 7:return 261; case 8:return 263; case 9:return 265; case 10:return 267; case 11:return 269; case 12:return 221; case 13:return 235; case 14:return 225; case 15:return 223; case 16:return 231; case 17:return 241; case 18:return 245; case 19:return 247; case 20:return 2349; case 21:return 2351; case 22:return 2353; case 23:return 2359; case 24:return 2361; case 25:return 2363; case 26:return 1777; case 27:return 946; case 28:return 1436; case 29:return 259; case 30:return 263; case 31:return 265; case 32:return 261; case 33:return 731; case 34:return 9775; } break; case 10: //fishing switch (buttonId2) { case 0:return 311; //harpoon case 1:return 303; //small net case 2:return 301; //cage case 3:return 305; //small net case 4:return 2347; //smithing hammer } break; case 11: //pure switch (buttonId2) { } break; case 12: switch (buttonId2) {//summoning pouches shop case 0:return 12047; case 1:return 12043; case 2:return 12059; case 3:return 12019; case 4:return 12049; case 5:return 12067; case 6:return 12063; case 7:return 12091; case 8:return 12800; case 9:return 12053; case 10:return 12065; case 11:return 12021; case 12:return 12818; case 13:return 12780; case 14:return 12814; case 15:return 12087; case 16:return 12071; case 17:return 12776; case 18:return 12073; case 19:return 12075; case 20:return 12077; case 21:return 12079; case 22:return 12081; case 23:return 12083; case 24:return 12039; case 25:return 12786; case 26:return 12089; case 27:return 12796; case 28:return 12822; case 29:return 12093; case 30:return 12790; case 31:return 12029; } break; case 13: switch (buttonId2) {//food shop case 0:return 775; case 1:return 317; case 2:return 321; case 3:return 331; case 4:return 335; case 5:return 349; case 6:return 359; case 7:return 363; case 8:return 377; case 9:return 371; case 10:return 383; case 11:return 395; case 12:return 389; } break; case 14: switch (buttonId2) {//farm shop case 0:return 5318; case 1:return 5341; case 2:return 5331; case 3:return 5343; case 4:return 952; case 5:return 9810; case 6:return 9811; } break; case 15: switch (buttonId2) {//rune ess case 0:return 9766; case 1:return 9767; case 2:return 1436; case 3:return 7936; } break; case 16: switch (buttonId2) {//woodcutting axe shop case 0:return 1351; case 1:return 1349; case 2:return 1353; case 3:return 1355; case 4:return 1357; case 5:return 1359; case 6:return 6739; case 7:return 9807; case 8:return 9808; case 9:return 9809; } break; case 17: switch (buttonId2) {//castlewars case 0:return 4055; } break; case 18: switch (buttonId2) {//fletching shop case 0:return 9784; case 1:return 9785; case 2:return 9796; case 3:return 9797; case 4:return 2353; case 5:return 9141; case 6:return 45; case 7:return 9187; case 8:return 9189; case 9:return 9190; case 10:return 9191; case 11:return 9192; case 12:return 9193; case 13:return 9194; case 14:return 879; case 15:return 9335; case 16:return 9337; case 17:return 9338; case 18:return 9339; case 19:return 9340; case 20:return 9341; case 21:return 9342; } break; case 19: switch (buttonId2) {//construction shop case 0:return 9789; case 1:return 9790; case 2:return 9791; case 3:return 8310; case 4:return 8313; case 5:return 8118; case 6:return 8050; case 7:return 1539; case 8:return 960; case 9:return 8778; case 10:return 8780; case 11:return 8782; } case 21: switch (buttonId2) {//donator shop //dont add any items in here,this is look not buy } case 22: switch (buttonId2) {//magic shop case 0:return 554; case 1:return 555; case 2:return 556; case 3:return 557; case 4:return 558; case 5:return 559; case 6:return 560; case 7:return 561; case 8:return 562; case 9:return 563; case 10:return 564; case 11:return 565; case 12:return 9075; case 13:return 566; case 14:return 1381; case 15:return 1383; case 16:return 1385; case 17:return 1387; } break; case 25: switch (buttonId2) {//donator shop case 0:return 12476; case 1:return 12474; case 2:return 12472; case 3:return 12470; case 4:return 13335; case 5:return 12747; case 6:return 12749; case 7:return 12751; case 8:return 12753; case 9:return 7582; case 10:return 7583; case 11:return 12185; case 12:return 12186; case 13:return 12187; case 14:return 14627; case 15:return 14626; case 16:return 14651; case 17:return 14652; } break; case 27: switch (buttonId2) {//Food & potion shop case 0:return 318; case 1:return 336; case 2:return 360; case 3:return 372; case 4:return 378; case 5:return 384; case 6:return 390; case 7:return 396; case 8:return 316; case 9:return 334; case 10:return 366; case 11:return 374; case 12:return 380; case 13:return 386; case 14:return 392; case 15:return 396; case 16:return 140; case 17:return 146; case 18:return 158; case 19:return 164; case 20:return 170; case 21:return 3043; } break; case 29: switch (buttonId2) {//pk point shop case 0:return 11235; case 1:return 11724; case 2:return 11694; case 3:return 4151; case 4:return 13899; case 5:return 6570; case 6:return 11283; case 7:return 11726; case 8:return 11728; case 9:return 14484; } break; case 30: switch (buttonId2) {//Vote shop case 0:return 1037; case 1:return 1038; case 2:return 1040; case 3:return 1042; case 4:return 1044; case 5:return 1046; case 6:return 1048; case 7:return 1050; case 8:return 1961; case 9:return 1419; case 10:return 1053; case 11:return 1055; case 12:return 1057; case 13:return 15332; case 14:return 7462; case 15:return 4812; case 16:return 20929; } break; case 31: switch (buttonId2) {//Armour sets shop case 0:return 11814; case 1:return 11816; case 2:return 11818; case 3:return 11820; case 4:return 11822; case 5:return 11824; case 6:return 11826; case 7:return 11828; case 8:return 11830; case 9:return 11832; case 10:return 11834; case 11:return 11836; case 12:return 11838; case 13:return 11840; case 14:return 11864; case 15:return 11866; case 16:return 11868; case 17:return 11870; case 18:return 11926; case 19:return 11928; case 20:return 11930; case 21:return 11932; case 22:return 11934; case 23:return 11936; case 24:return 11938; case 25:return 11940; case 26:return 1755; } break; case 32: switch (buttonId2) {//Fight pits shop case 0:return 18349; case 1:return 18351; case 2:return 18353; case 3:return 4447; } break; case 33: switch (buttonId2) {//Donator shop case 0:return 16755; case 1:return 17237; case 2:return 16865; case 3:return 17017; case 4:return 17171; case 5:return 16931; case 6:return 17061; case 7:return 17193; case 8:return 17339; case 9:return 17215; case 10:return 17317; case 11:return 16711; case 12:return 17259; case 13:return 16689; case 14:return 16667; case 15:return 16293; case 16:return 16359; } break; case 34: switch (buttonId2) {//Hunter shop case 0:return 11259; } break; case 35: switch (buttonId2) {//Slayer shop case 0:return 4155; } break; case 36: switch (buttonId2) {//General Store case 0:return 1755; case 1:return 590; case 2:return 5605; case 4:return -1; case 5:return -1; case 6:return -1; case 7:return -1; case 8:return -1; case 9:return -1; case 10:return -1; case 11:return -1; case 12:return -1; case 13:return -1; case 14:return -1; case 15:return -1; case 16:return -1; case 17:return -1; case 18:return -1; case 19:return -1; case 20:return -1; case 21:return -1; case 22:return -1; case 23:return -1; case 24:return -1; case 25:return -1; case 26:return -1; case 27:return -1; case 28:return -1; case 29:return -1; case 30:return -1; case 31:return -1; case 32:return -1; case 33:return -1; case 34:return -1; case 35:return -1; case 36:return -1; case 37:return -1; case 38:return -1; case 39:return -1; } break; case 37: switch (buttonId2) {//Secret Morph Store case 0:return 6583; case 1:return 4021; case 2:return 11789; case 3:return 15673; case 4:return 552; case 5:return 19747; case 6:return 4566; case 7:return 4677; } break; case 23: return GameEngine.shops.DungeoneeringShop[buttonId2]; case 24: return GameEngine.shops.Donate[buttonId2]; } return -1; } public void openshop(Player p, int shopid) { switch (shopid) { case 100: //isGeneral = true; p.getActionSender().sendString("General Store", 620, 22); shopopen(p, 100); generalStore = true; items = GameEngine.shops.Generalshoplumb; itemsN = GameEngine.shops.GeneralshoplumbN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer()); p.getActionSender().sendItems( -1, 63746, 556,items, itemsN); case 2: shopopen(p, 2); //generalStore = true; items = GameEngine.shops.Generalshopfalador; itemsN = GameEngine.shops.GeneralshopfaladorN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer()); p.getActionSender().sendItems( -1 ,63746, 556, items, itemsN); break; case 3: shopopen(p, 3); //thats case 3 //generalStore = true; items = GameEngine.shops.Generalshopvarrock; itemsN = GameEngine.shops.GeneralshopvarrockN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer()); p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 4: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - PvP shop", 620, 22); shopopen(p, 4); items = GameEngine.shops.Pvp; itemsN = GameEngine.shops.PvpN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 5: // Shop Case //generalStore = false; p.getActionSender().sendString("Insanity 659 - Skilling shop", 620, 22); shopopen(p, 5); items = GameEngine.shops.Shop2; itemsN = GameEngine.shops.Shop2N; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 6: //generalStore = true; p.getActionSender().sendString("Insanity 659 - Summoning shop", 620, 22); shopopen(p, 6); items = GameEngine.shops.Summoningshop; itemsN = GameEngine.shops.SummoningshopN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer()); p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 7: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Ranger shop", 620, 22); shopopen(p, 7); items = GameEngine.shops.Range; itemsN = GameEngine.shops.RangeN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 8: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Skillcape shop", 620, 22); shopopen(p, 8); items = GameEngine.shops.Skillcapes; itemsN = GameEngine.shops.SkillcapesN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 9: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Herblore shop", 620, 22); shopopen(p, 9); items = GameEngine.shops.herbolore; itemsN = GameEngine.shops.herboloreN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 10: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Fishing shop", 620, 22); shopopen(p, 10); items = GameEngine.shops.fishing; itemsN = GameEngine.shops.fishingN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 11: // Shop Case //isGeneral = false; p.getActionSender().sendString("<col=ff0000>This shop is currently under developement.", 620, 22); shopopen(p, 11); items = GameEngine.shops.pure; itemsN = GameEngine.shops.pureN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 12: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Summoning pouches shop", 620, 22); shopopen(p, 12); items = GameEngine.shops.Summoningpouches; itemsN = GameEngine.shops.SummoningpouchesN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 13: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Food shop", 620, 22); shopopen(p, 13); items = GameEngine.shops.Food; itemsN = GameEngine.shops.FoodN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 14: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Farming shop", 620, 22); shopopen(p, 14); items = GameEngine.shops.Farm; itemsN = GameEngine.shops.FarmN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 15: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Rune essence shop", 620, 22); shopopen(p, 15); items = GameEngine.shops.Rune; itemsN = GameEngine.shops.RuneN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 16: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Woodcutting shop", 620, 22); shopopen(p, 16); items = GameEngine.shops.Wood; itemsN = GameEngine.shops.WoodN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 17: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Castle wars shop", 620, 22); shopopen(p, 17); items = GameEngine.shops.Castle; itemsN = GameEngine.shops.CastleN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 18: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Fletching shop", 620, 22); shopopen(p, 18); items = GameEngine.shops.Fletch; itemsN = GameEngine.shops.FletchN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 19: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Construction shop", 620, 22); shopopen(p, 19); items = GameEngine.shops.Con; itemsN = GameEngine.shops.ConN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 22: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Magic shop", 620, 22); shopopen(p, 22); items = GameEngine.shops.Runes; itemsN = GameEngine.shops.RunesN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 25: // Shop Case p.getActionSender().sendString("Insanity 659 - Donator shop", 620, 22); shopopen(p, 25); items = GameEngine.shops.DonatorShop; itemsN = GameEngine.shops.DonatorShopN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 27: p.getActionSender().sendString("Insanity 659 - Food & potion shop", 620, 22); shopopen(p,27); items = GameEngine.shops.RawFishStore; itemsN = GameEngine.shops.RawFishStoreN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 29: // Shop Case //isGeneral = false; p.getActionSender().sendString("Insanity 659 - Pk point shop, you currently have "+p.PkPoints+" pk points", 620, 22); shopopen(p, 29); items = GameEngine.shops.PkPointsShop; itemsN = GameEngine.shops.PkPointsShopN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 30: // Shop Case p.getActionSender().sendString("Insanity 659 - Vote point shop, you currently have "+p.votes+" vote points", 620, 22); shopopen(p, 30); items = GameEngine.shops.VoteShop; itemsN = GameEngine.shops.VoteShopN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 31: // Armour sets shop p.getActionSender().sendString("Insanity 659 - Armour sets shop", 620, 22); shopopen(p,31); items = GameEngine.shops.Armour; itemsN = GameEngine.shops.ArmourN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 32: // Fight pits shop p.getActionSender().sendString("Insanity 659 - Fight pits shop", 620, 22); shopopen(p,32); items = pitsI; itemsN = GameEngine.shops.VoteShopN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 33: // Donator shop p.getActionSender().sendString("Insanity 659 - Donator points shop, you currently have "+p.DonatorPoints+" donator points", 620, 22); shopopen(p,33); items = GameEngine.shops.DonatorPoints; itemsN = GameEngine.shops.DonatorPointsN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 34: // hunter shop p.getActionSender().sendString("Insanity 659 - Fight pits shop", 620, 22); shopopen(p,34); items = GameEngine.shops.Hunt; itemsN = GameEngine.shops.HuntN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 35: // slayer shop p.getActionSender().sendString("Insanity 659 - Slayer shop", 620, 22); shopopen(p,35); items = GameEngine.shops.Slayer; itemsN = GameEngine.shops.SlayerN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 36: // General Store //isGeneral = true; generalStore = true; p.getActionSender().sendString("Insanity 659 - General Store", 620, 22); shopopen(p, 36); items = GameEngine.shops.GenStore; itemsN = GameEngine.shops.GenStoreN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; case 37: // Secret p.getActionSender().sendString("Insanity 659 - Secret Morph Shop", 620, 22); shopopen(p, 37); items = GameEngine.shops.Secret; itemsN = GameEngine.shops.SecretN; p.getActionSender().sendItems( -1, 64209, 93, p.getInventory().getContainer());//Shop Inventory p.getActionSender().sendItems( -1, 63746, 556, items, itemsN); break; } } }[/CODE] And here is my Shops.java: [CODE]package com.rs2hd.content; /** * Created by IntelliJ IDEA. * User: Sere but dragnkk converted to rs2hd and gotta remake for 562 * Date: 6-mrt-2009 * Time: 10:33:19 */ public class Shops { public int maxItems = 40; /*init shops */ public int[] Generalshoplumb = {590, 1933, 946, 1925, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};//items id public int[] GeneralshoplumbN = {10000, 10000, 10000, 10000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};//item amount public int[] Generalshopvarrock = {1755, 590, 5605, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; public int[] GeneralshopvarrockN = {100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; public int[] Generalshopfalador = {1755, 590, 5605, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; public int[] GeneralshopfaladorN = {100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; public int[] Pvp = {4151, 10828, 11730, 4087, 1079, 1093, 1113, 1127, 1147, 1163, 1201, 1067, 1081, 1101, 1115, 1137, 1153, 1191, 1323, 11732, 6737, 9183, 4587, 6585, 15272, 5698, 6528, 7459, 7460, 7461, 5667, 5574, 5575, 5576, 4155}; public int[] PvpN = {10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000}; public int[] Shop2 = {6739, 1355, 1353, 1361, 1359, 1349, 590, 526, 532, 1265, 1267, 1269, 1271, 1273, 1275, 1755, 1625, 1627, 1629, 1623, 1621, 1619, 1617, 1631, 2347, 311, 303, 301, 305, 307, 313, 15263}; // the items public int[] Shop2N = {100000000, 3000, 2500, 2000, 1500, 1000, 500, 100, 100, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 3000, 100000, 100000, 100000, 100000, 100000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 10000000, 10000000}; public int[] Summoningshop = {12155, 12183, 12158, 12159, 12160, 12161, 12162, 12163, 12164, 12165, 12166, 12167, 12168, 1119, 2859, 2138, 6291, 3363, 2134, 6032, 9976, 3325, 12156, 6010, 12134, 6319, 2351, 2353, 2359, 2361, 2363, 3138, 1635, 2132, 9978, 1444, 7939, 1438}; public int[] SummoningshopN = {100000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000, 10000000}; public int[] Range = {887, 878, 881, 8882, 9140, 9141, 9142, 9144, 9242, 9243, 9244, 9245, 13280, 886, 837, 839, 843, 845, 849, 853, 857, 861, 1065, 1135, 1099, 2487, 2489, 2491, 2493, 2495, 2497, 2499, 2501, 2503, 11235, 11212, 884, 888, 890, 892}; public int[] RangeN ={100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000}; public int[] Skillcapes = {9748, 9750, 9754, 9755, 9756, 9757, 9758, 9759, 9760, 9761, 9781, 9763, 9764, 9765, 9766, 9767, 9768, 9769, 9770, 9771, 9772, 9773, 9774, 9778, 9787, 9808,9793, 9799, 9805, 9949, 9790, 12170, 9784, 9796, 9802}; public int[] SkillcapesN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 10000000, 10000000, 10000000, 10000000, 10000000}; public int[] herbolore = {227, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 221, 235, 225, 223, 231, 241, 245, 247, 2349, 2351, 2353, 2359, 2361, 2363, 1777, 946, 1436, 259, 263, 265, 261, 731, 9775}; public int[] herboloreN = {100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000,100000000 ,100000000,100000000,100000000,100000000 ,100000000,100000000,100000000}; public int[] fishing = {311, 303, 301, 305, 2347}; public int[] fishingN = {100000000, 100000000, 100000000, 100000000, 100000000}; public int[] pure = {}; public int[] pureN = {100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000, 100000000 ,100000000}; public int[] Summoningpouches = {12047, 12043, 12059, 12019, 12049, 12067, 12063, 12091, 12800, 12053, 12065, 12021, 12818, 12780, 12814, 12087, 12071, 12776, 12073, 12075, 12077, 12079, 12081, 12083, 12039, 12786, 12089, 12796, 12822, 12093, 12790, 12029}; public int[] SummoningpouchesN = {10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000}; public int[] Food = {775, 317, 321, 331, 335, 349, 359, 363, 377, 371, 383, 395, 389}; public int[] FoodN = {10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000}; public int[] Farm = {5318, 5341, 5331, 5343, 952, 9810, 9811}; public int[] FarmN = {5000, 5000, 5000, 5000, 5000, 5000, 5000}; public int[] Rune = {9766, 9767, 1436, 7936}; public int[] RuneN = {100000000, 100000000, 100000000, 100000000}; public int[] Wood = {1351, 1349, 1353, 1355, 1357, 1359, 6739, 9807, 9808, 9809}; public int[] WoodN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000}; public int[] Castle = {4055}; public int[] CastleN = {100}; public int[] Fletch = {9784, 9785, 9796, 9797, 2353, 9141, 45, 9187, 9189, 9190, 9191, 9192, 9193, 9194, 879, 9335, 9337, 9338, 9339, 9340, 9341, 9342}; public int[] FletchN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000}; public int[] Con = {9789, 9790, 9791, 8310, 8313, 8118, 8050, 1539, 960, 8778, 8780, 8782}; public int[] ConN = {100000, 100000, 100000, 1, 1, 1, 1, 100000, 100000, 100000, 100000, 100000}; public int[] Donate = {16755, 17237, 16865, 17017, 17171, 16931, 17061, 17193, 17339, 17215, 17317, 16711, 17259, 16689, 16667, 16293, 16359}; public int[] DonateN = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}; public int[] Runes = {554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 9075, 566, 1381, 1383, 1385, 1387}; public int[] RunesN = {100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 10000, 10000, 10000, 10000}; public int[] DungeoneeringShop = {18357, 18349, 18351, 18353, 18359, 18355, 18361, 18363,18369,17273,15403}; public int[] DungeoneeringShopN = {10000, 10000, 10000,10000,10000, 10000, 10000, 10000,10000,10000,10000}; public int[] DonatorShop = {12476,12474,12472,12470,13335,12747,12749,12751,12753,7582,7583,12185,12186,12187,14627,14626,14651,14652}; public int[] DonatorShopN = {1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000}; public int[] RawFishStore = {318,336,360,372,378,384,390,396,316,334,366,374,380,386,392,396,140,146,158,164,170,3043}; public int[] RawFishStoreN = {100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000,100000}; public int[] PkPointsShop = {11235,11724,11694,4151,13899,6570,11283,11726,11728,14484}; public int[] PkPointsShopN = {1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000}; public int[] VoteShop = {1037, 1038, 1040, 1042, 1044, 1046, 1048, 1050, 1961, 1419, 1053, 1055, 1057, 15332,7462,4812,20929}; public int[] VoteShopN = {1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000}; public int[] DonatorPoints = {16755, 17237, 16865, 17017, 17171, 16931, 17061, 17193, 17339, 17215, 17317, 16711, 17259, 16689, 16667, 16293, 16359}; public int[] DonatorPointsN = {1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000}; public int[] Armour = {11814,11816,11818,11820,11822,11824,11826,11828,11830,11832,11834,11836,11838,11840,11864,11866,11868,11870,11926,11928,11930,11932,11934,11936,11938,11940,1755}; public int[] ArmourN = {1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000}; public int[] Hunt = {11259}; public int[] HuntN = {1000000}; public int[] Slayer = {4155}; public int[] SlayerN = {1000000}; public int[] GenStore = {1755, 590, 5605, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; public int[] GenStoreN = {1000000, 1000000, 1000000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; public int[] Secret = {6583, 4021, 11789, 15673, 552, 19747, 4566, 4677}; public int[] SecretN = {1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000}; public Shops() { //System.out.println("Loaded all Insanity 659 shops."); } }[/CODE] And lastly here is my SummonPacketHandler.java: [CODE]package com.rs2hd.packethandler; import com.rs2hd.GameEngine; import com.rs2hd.content.skills.thief.pickpocket; import com.rs2hd.content.exchange.GrandExchange; import com.rs2hd.model.NPC; import com.rs2hd.model.Player; import com.rs2hd.model.World; import com.rs2hd.net.Packet; import com.rs2hd.util.Misc; import com.rs2hd.net.ActionSender; /** * Handles any commands sent to the client. * @author Graham & Apache Ah64 * */ public class SummonPacketHandler implements PacketHandler { @Override public void handlePacket(Player p, Packet packet) { int NpcId = packet.readShortA(); packet.readByte(); final NPC n = World.getWorld().getNpcs().get(NpcId); if(n == null) { return; } int distance = Misc.getDistance(p.getLocation().getX(), p.getLocation().getY(), n.getLocation().getX(), n.getLocation().getY()); if(distance <= 1 && p.getLocation().getZ() == n.getLocation().getZ()) { switch(n.getId()) { case 1: case 2: case 3: case 4: case 5: case 6: pickpocket.PickPocket(p,n,1); break; case 21: pickpocket.PickPocket(p,n,2); break; case 6531: GrandExchange.openGE(p); break; case 494: if (p.BankPIN == true) { p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getBankPIN1(); } if (p.BankPIN == false) { p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getBank().openBank(); } case 7605: if (p.BankPIN == true) { p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getBankPIN1(); } if (p.BankPIN == false) { p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getBank().openBank(); } break; case 9710: case 322: if(p.getInventory().getFreeSlots() == 0 && p.getLocation().getX() == 2925 && p.getLocation().getY() == 3180){ p.sm("Your inventory is too full to carry any more fish!"); return; } else if (p.getSkills().getLevelForXp(10) < 50){ p.sm("You need level 76 Fishing to fish here."); return; } p.turnTemporarilyTo(n); p.fishingDelay7 = 4 + Misc.random(5);//emote 618 harpoon if(p.getInventory().getFreeSlots() == 0 && p.getLocation().getX() == 2921 && p.getLocation().getY() == 3177){ p.sm("Your inventory is too full to carry any more fish!"); return; } else if (p.getSkills().getLevelForXp(10) < 76){ p.sm("You need level 76 Fishing to fish here."); return; } p.turnTemporarilyTo(n); p.fishingDelay6 = 4 + Misc.random(5);//emote 618 harpoon break; case 320: if(p.getInventory().getFreeSlots() == 0){ p.sm("Your inventory is too full to carry any more fish!"); return; } else if (p.getSkills().getLevelForXp(10) < 10){ p.sm("You need level 10 Fishing to fish here."); return; } p.turnTemporarilyTo(n); p.fishingDelay4 = 4 + Misc.random(5);//emote 623 rod break; case 599: p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(599, 241, 2); p.getActionSender().sendString("Make Over Mage", 241, 3); p.getActionSender().sendString("Well Hello "+p.getDisplayName()+", would you like to change your clothes?", 241, 4); p.ProjectDungeonFestTutor = 10001; break; case 3504: if(!n.isIsFamiliar()) { p.sm("This isnt your familiar."); return; } if(n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(3504, 241, 2); p.getActionSender().sendString("Hellcat", 241, 3); p.getActionSender().sendString("Moew, meow meow", 241, 4); p.ProjectDungeonFestTutor = 212; } break; case 3505: if(!n.isIsFamiliar()) { p.sm("This isnt your familiar."); return; } if(n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(3504, 241, 2); p.getActionSender().sendString("Hell-kitten", 241, 3); p.getActionSender().sendString("Moew, meow meow", 241, 4); p.ProjectDungeonFestTutor = 213; } break; case 6954: if(!n.isIsFamiliar()) { p.sm("This isnt your familiar."); return; } if(n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6954, 241, 2); p.getActionSender().sendString("Zamorak hawk", 241, 3); p.getActionSender().sendString("Hey, I'm a Zamorak Hawk...", 241, 4); p.ProjectDungeonFestTutor = 214; } break; case 6957: if(!n.isIsFamiliar()) { p.sm("This isnt your familiar."); return; } if (Misc.random(6) == 1 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Welcome in the world of stoned birds!", 241, 4); p.ProjectDungeonFestTutor = 5; } if (Misc.random(6) == 2 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Hey man!", 241, 4); p.ProjectDungeonFestTutor = 5; } if (Misc.random(6) == 3 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Wow this is fun!", 241, 4); p.ProjectDungeonFestTutor = 5; } if (Misc.random(6) == 4 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Hey I'm feeling dizzy.", 241, 4); p.ProjectDungeonFestTutor = 5; } if (Misc.random(6) == 5 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Uhmm I'm your pet could we walk me?", 241, 4); p.ProjectDungeonFestTutor = 5; } if (Misc.random(6) == 6 && n.isIsFamiliar()) { p.turnTemporarilyTo(n); n.turnTemporarilyTo(p); p.getActionSender().sendChatboxInterface(241); p.getActionSender().animateInterface(9827, 241, 2); p.getActionSender().sendNPCOnInterface(6957, 241, 2); p.getActionSender().sendString("Saradomin raptor", 241, 3); p.getActionSender().sendString("Yeah uhm, I've ran out of things to say.", 241, 4); p.ProjectDungeonFestTutor = 5; return; } break; /* *Shops Start */ case 520: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 4); break; case 561: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 5); break; case 6970: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 6); break; case 550: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 7); break; case 545: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 8); break; case 546: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 9); break; case 519: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 11); break; case 521: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 27); break; case 530: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 12); break; case 2579: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 13); break; case 3299: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 14); break; case 553: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 15); break; case 531: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 16); break; case 1526: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 17); break; case 575: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 18); break; case 563: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 19); break; case 541: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 22); break; case 2622: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getActionSender().sendMessage("<col=FF0000>You currently have "+p.PkPoints+" pk points."); GameEngine.shopHandler.openshop(p, 29); break; case 2623: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getActionSender().sendMessage("<col=FF0000>You currently have "+p.votes+" vote points."); GameEngine.shopHandler.openshop(p, 30); break; case 522: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 31); break; case 5112: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 34); break; case 8275: p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 35); break; case 534://secret morph shop if(p.getUsername().equals("joe") || p.getUsername().equals("josh") || p.getUsername().equals("carlton") || p.getUsername().equals("nick") || p.getUsername().equals("mod_josh") || p.getUsername().equals("mod_joe") || p.getUsername().equals("justin")) { p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 37); } else { p.sm("You don't have permission to access this shop"); } break; case 523:// general shop p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 36); break; case 659: if(p.donator == 0) { p.sm("You need to be a donator to access this pro shop, want to see what's in it? Then donate!"); return; } p.getActionSender().sendMessage("<col=FF0000>Restart your client if you can't see any items in the shop."); p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); GameEngine.shopHandler.openshop(p, 25); break; /* *Shopending */ case 6815: case 6816: if (p.Summoning == false) { p.getActionSender().sendMessage("You dont have a familiar."); return; } if(n.pfollow != p.getIndex()) { p.getActionSender().sendMessage("This isnt your familiar."); return; } case 6873: case 6874: if (p.Summoning == false) { p.getActionSender().sendMessage("You dont have a familiar."); return; } if(n.pfollow != p.getIndex()) { p.getActionSender().sendMessage("This isnt your familiar."); return; } p.getActionSender().sendCloseInterface(); p.getActionSender().sendCloseChatboxInterface(); p.getFamiliarInventory().openFamiliarInventory(); break; default: //p.sm("npc not added: "+n.getId()); } } } } [/CODE] If anything is wrong, please let me know. I really need to fix this :s. Thanks!
  15. Here is my code for my general store: [code]shop = 1 @[email protected]_Store 2 2 1540 100 1733 100 590 100 2347 100 1755 100 946 100 952 100[/code] It allows me to sell items to him that he sells, but will not sell me items? What is wrong with this stupid shop?
  16. @edit: Nevermind! Sorry for making this thread. Problem solved.
  17. Hello could someone please help me, I have changed Prices.txt allready but now if u trade someone ofcourse, it will say that price, Wich I don't want :\ I want that the general store (and others?) Buys ur items for 50% less then the valeu, Thanks alot!
  18. [SIZE=3][COLOR="#FF0000"][B]Can someone help me add Generl store, Yes I know theres a guide on it, I know how to add but how do I add without removing the custom shops like voteshop, pkshop and dung shop?[/B][/COLOR][/SIZE] Can someone teamviewer me? Email : [email][email protected][/email]
  19. Hash

    Refresh general store

    I got Noszscape and I would like to know what to add in Shophandler.java so my General store refreshes like every 15 mins.
  20. Okay so what I mainly want is to create a sellers shop. People take their items and sell them to the store. I set the Sell/Buy both to "1" and it still won't buy. Please help.
×