Jump to content

Search the Community

Showing results for tags 'shop'.



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 214 results

  1. Ok so I am pretty new to the private server seen and I am having trouble with my SkillCape shop. I can't purchase any capes. I have 7 99's, enough money, and inventory space but still doesn't let me buy it. When I try to buy a cape it does nothing. Something I did notice was that when I click on value it returns 113849 or 113k as the price needed but in the code it says 99,000 coins. Can someone please help me. This is my buyitem code: public boolean buyItem(int itemID, int fromSlot, int amount) { //if(!shopSellsItem(itemID) && c.myShopId != 50 && c.myShopId != 60) // return false; if (c.myShopId == 14) { skillBuy(itemID); return false; } else if (c.myShopId == 15) { buyVoid(itemID); return false; }else if(!shopSellsItem(itemID)) { return false; } if (amount > 0) { if (amount > Server.shopHandler.ShopItemsN[c.myShopId][fromSlot]) { amount = Server.shopHandler.ShopItemsN[c.myShopId][fromSlot]; } //double ShopValue; //double TotPrice; int TotPrice2 = 0; //int Overstock; int Slot = 0; int Slot1 = 0;//Tokkul int Slot2 = 0;//Pking Points if (c.myShopId == 17 || c.myShopId == 18 || c.myShopId == 50 || c.myShopId == 60) { handleOtherShop(itemID); return false; } for (int i = amount; i > 0; i--) { TotPrice2 = (int)Math.floor(getItemShopValue(itemID, 0, fromSlot)); Slot = c.getItems().getItemSlot(995); Slot1 = c.getItems().getItemSlot(6529); if (Slot == -1 && c.myShopId != 29 && c.myShopId != 30 && c.myShopId != 31) { c.sendMessage("You don't have enough coins."); break; } if(Slot1 == -1 && c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) { c.sendMessage("You don't have enough tokkul."); break; } if(TotPrice2 <= 1) { TotPrice2 = (int)Math.floor(getItemShopValue(itemID, 0, fromSlot)); TotPrice2 *= 1.66; } if(c.myShopId != 29 || c.myShopId != 30 || c.myShopId != 31) { if (c.playerItemsN[Slot] >= TotPrice2) { if (c.getItems().freeSlots() > 0) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), TotPrice2); c.getItems().addItem(itemID, 1); Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1; Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0; if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) { Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0; } } else { c.sendMessage("You don't have enough space in your inventory."); break; } } else { c.sendMessage("You don't have enough coins."); break; } } if(c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) { if (c.playerItemsN[Slot1] >= TotPrice2) { if (c.getItems().freeSlots() > 0) { c.getItems().deleteItem(6529, c.getItems().getItemSlot(6529), TotPrice2); c.getItems().addItem(itemID, 1); Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1; Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0; if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) { Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0; } } else { c.sendMessage("You don't have enough space in your inventory."); break; } } else { c.sendMessage("You don't have enough tokkul."); break; } } } c.getItems().resetItems(3823); resetShop(c.myShopId); updatePlayerShop(); return true; } return false; } This is my skillbuy code: public void skillBuy(int item) { int nn = get99Count(); if (nn > 1) nn = 1; else nn = 0; for (int j = 0; j < skillCapes.length; j++) { if (skillCapes[j] == item || skillCapes[j]+1 == item) { if (c.getItems().freeSlots() > 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } } /*if (skillCapes[j][1 + nn] == item) { if (c.getItems().freeSlots() >= 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } break; }*/ } c.getItems().resetItems(3823); } and this is my setup skillcape: public void openSkillCape() { int capes = get99Count(); if (capes > 1) capes = 1; else capes = 0; c.myShopId = 14; setupSkillCapes(capes, get99Count()); } /*public int[][] skillCapes = {{0,9747,4319,2679},{1,2683,4329,2685},{2,2680,4359,2682},{3,2701,4341,2703},{4,2686,4351,2688},{5,2689,4347,2691},{6,2692,4343,2691}, {7,2737,4325,2733},{8,2734,4353,2736},{9,2716,4337,2718},{10,2728,4335,2730},{11,2695,4321,2697},{12,2713,4327,2715},{13,2725,4357,2727}, {14,2722,4345,2724},{15,2707,4339,2709},{16,2704,4317,2706},{17,2710,4361,2712},{18,2719,4355,2721},{19,2737,4331,2739},{20,2698,4333,2700}};*/ public int[] skillCapes = {9747,9753,9750,9768,9756,9759,9762,9801,9807,9783,9798,9804,9780,9795,9792,9774,9771,9777,9786,9810,9765,9948,12169,18508}; public int get99Count() { int count = 0; for (int j = 0; j < c.playerLevel.length; j++) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { count++; } } return count; } public void setupSkillCapes(int capes, int capes2) { synchronized(c) { c.getItems().resetItems(3823); c.isShopping = true; c.myShopId = 14; c.getPA().sendFrame248(3824, 3822); c.getPA().sendFrame126("Skillcape Shop", 3901); int TotalItems = 0; TotalItems = capes2; if (TotalItems > Server.shopHandler.MaxShopItems) { TotalItems = Server.shopHandler.MaxShopItems; } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(3900); c.getOutStream().writeWord(TotalItems); int TotalCount = 0; for (int i = 0; i < 21; i++) { if (c.getLevelForXP(c.playerXP[i]) < 99) continue; c.getOutStream().writeByte(1); c.getOutStream().writeWordBigEndianA(skillCapes[i] + 2); TotalCount++; } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); } }
  2. Ok so I am pretty new to the private server seen and I am having trouble with my SkillCape shop. I can't purchase any capes. I have 7 99's, enough money, and inventory space but still doesn't let me buy it. When I try to buy a cape it does nothing. Something I did notice was that when I click on value it returns 113849 or 113k as the price needed but in the code it says 99,000 coins. Can someone please help me. This is my buyitem code: public boolean buyItem(int itemID, int fromSlot, int amount) { //if(!shopSellsItem(itemID) && c.myShopId != 50 && c.myShopId != 60) // return false; if (c.myShopId == 14) { skillBuy(itemID); return false; } else if (c.myShopId == 15) { buyVoid(itemID); return false; }else if(!shopSellsItem(itemID)) { return false; } if (amount > 0) { if (amount > Server.shopHandler.ShopItemsN[c.myShopId][fromSlot]) { amount = Server.shopHandler.ShopItemsN[c.myShopId][fromSlot]; } //double ShopValue; //double TotPrice; int TotPrice2 = 0; //int Overstock; int Slot = 0; int Slot1 = 0;//Tokkul int Slot2 = 0;//Pking Points if (c.myShopId == 17 || c.myShopId == 18 || c.myShopId == 50 || c.myShopId == 60) { handleOtherShop(itemID); return false; } for (int i = amount; i > 0; i--) { TotPrice2 = (int)Math.floor(getItemShopValue(itemID, 0, fromSlot)); Slot = c.getItems().getItemSlot(995); Slot1 = c.getItems().getItemSlot(6529); if (Slot == -1 && c.myShopId != 29 && c.myShopId != 30 && c.myShopId != 31) { c.sendMessage("You don't have enough coins."); break; } if(Slot1 == -1 && c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) { c.sendMessage("You don't have enough tokkul."); break; } if(TotPrice2 <= 1) { TotPrice2 = (int)Math.floor(getItemShopValue(itemID, 0, fromSlot)); TotPrice2 *= 1.66; } if(c.myShopId != 29 || c.myShopId != 30 || c.myShopId != 31) { if (c.playerItemsN[Slot] >= TotPrice2) { if (c.getItems().freeSlots() > 0) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), TotPrice2); c.getItems().addItem(itemID, 1); Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1; Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0; if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) { Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0; } } else { c.sendMessage("You don't have enough space in your inventory."); break; } } else { c.sendMessage("You don't have enough coins."); break; } } if(c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) { if (c.playerItemsN[Slot1] >= TotPrice2) { if (c.getItems().freeSlots() > 0) { c.getItems().deleteItem(6529, c.getItems().getItemSlot(6529), TotPrice2); c.getItems().addItem(itemID, 1); Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1; Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0; if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) { Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0; } } else { c.sendMessage("You don't have enough space in your inventory."); break; } } else { c.sendMessage("You don't have enough tokkul."); break; } } } c.getItems().resetItems(3823); resetShop(c.myShopId); updatePlayerShop(); return true; } return false; } This is my skillbuy code: public void skillBuy(int item) { int nn = get99Count(); if (nn > 1) nn = 1; else nn = 0; for (int j = 0; j < skillCapes.length; j++) { if (skillCapes[j] == item || skillCapes[j]+1 == item) { if (c.getItems().freeSlots() > 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } } /*if (skillCapes[j][1 + nn] == item) { if (c.getItems().freeSlots() >= 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } break; }*/ } c.getItems().resetItems(3823); } and this is my setup skillcape: public void openSkillCape() { int capes = get99Count(); if (capes > 1) capes = 1; else capes = 0; c.myShopId = 14; setupSkillCapes(capes, get99Count()); } /*public int[][] skillCapes = {{0,9747,4319,2679},{1,2683,4329,2685},{2,2680,4359,2682},{3,2701,4341,2703},{4,2686,4351,2688},{5,2689,4347,2691},{6,2692,4343,2691}, {7,2737,4325,2733},{8,2734,4353,2736},{9,2716,4337,2718},{10,2728,4335,2730},{11,2695,4321,2697},{12,2713,4327,2715},{13,2725,4357,2727}, {14,2722,4345,2724},{15,2707,4339,2709},{16,2704,4317,2706},{17,2710,4361,2712},{18,2719,4355,2721},{19,2737,4331,2739},{20,2698,4333,2700}};*/ public int[] skillCapes = {9747,9753,9750,9768,9756,9759,9762,9801,9807,9783,9798,9804,9780,9795,9792,9774,9771,9777,9786,9810,9765,9948,12169,18508}; public int get99Count() { int count = 0; for (int j = 0; j < c.playerLevel.length; j++) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { count++; } } return count; } public void setupSkillCapes(int capes, int capes2) { synchronized(c) { c.getItems().resetItems(3823); c.isShopping = true; c.myShopId = 14; c.getPA().sendFrame248(3824, 3822); c.getPA().sendFrame126("Skillcape Shop", 3901); int TotalItems = 0; TotalItems = capes2; if (TotalItems > Server.shopHandler.MaxShopItems) { TotalItems = Server.shopHandler.MaxShopItems; } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(3900); c.getOutStream().writeWord(TotalItems); int TotalCount = 0; for (int i = 0; i < 21; i++) { if (c.getLevelForXP(c.playerXP[i]) < 99) continue; c.getOutStream().writeByte(1); c.getOutStream().writeWordBigEndianA(skillCapes[i] + 2); TotalCount++; } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); } }
  3. Hi, I'm looking for their correct configs and how they'd work if anyone figured those out? Daemonheim map's interfaceId: 942 Smuggler shop's interfaceId: 956 Daemonheim map's blank when using it in a dungeon. (configs related?) You can't click nor right-click on the smuggler shop's interface. (also configs related?) Thanks in advance.
  4. EDIT: Fixed it, I'm just an idiot and didn't update shops.cfg I'm new to this... My source came with a pk point shop terrible for the economy so I decided to go in and change the items in it. I removed all the stupid items and replaced most of them with untradeables, I did this in *ShopAssistant.java and saved the changes, restarted the server, and reloaded my client, but nothing in the shop has changed. Here's the code: /* * Begin pk shop points */ public int getPkPoints(int id) { switch (id) { case 7462: // barrow gloves return 20; case 12954: // dragon defender return 100; case 10551: // fighter torso return 80; case 10548: // fighter hat return 35; case 10547: // healer hat return 35; case 8849: // addy defender return 5; case 8850: // rune defender return 15; case 7460: // rune gloves return 5; case 7461: // dragon gloves return 12; case 6570: // fire cape return 40; case 3144: // karambwan return 1; case 11517: // super combat potion return 3; case 2528: // 1m xp lamp return 175; case 4447: // 35k xp lamp return 5; } return 10000; }
  5. no longer need help
  6. fallen2dc

    pi shop help

    Can anyone help me fix when i buy runes it buys them like 1 at a time [img]http://i.gyazo.com/38a90d7bb4adbfe2ba2e33b20209ee1a.gif[/img]
  7. Hey guys so today I tried to edit the prices of items on my old rsps. So what I did is changed price of ags to 1B it shows on shop but if you right click on it or wanna buy it. it still says its 75M! [attachment=29:xeb3AxL.jpg] [attachment=30:PCvV0IM.jpg] [attachment=31:9X1jpM6.jpg] Also changed it shop.java The buy/sell price [attachment=32:yYzUFPl.png] Please some1 help me <3 its zenith cache aka matrix
  8. I need a background for it, but all the grunge stocks I found/had interest in weren't all that great, so what do you suggest I use as a background? Or would simple be better? [img]http://i.imgur.com/ugYyF2j.png[/img]
  9. Hi, So I'm using the Chronicscape source by Baki. It's an amazing source but.. butbutbubtut... xD. I can't change the shop prices ;( I've tried everything.. In unpacked shops, It doesn't give me the option to change prices. only Item ID and quantity. I've tried to use Item Def Editor, But that thing wont run for me .. it give me some CMD error. and I've edited the .bat to change the java location to my current java location... :/ This is annoying lol. please help :) thankss
  10. hey, runelocus community I am coding a very long time 317's and never had problems whit adding a new npc with a shop but somehow i do now a problem whit it, i think i fergot something but i have no idea so here i am looking for help. i am added the npc and the shop he need's to open all works fine. Also i put items in the shops, no problems untill here. now i want to buy from my shop, but that won't work somehow. what i did? [CODE]actionhandler.java case 543://karim - pure shop c.getShops().openShop(33); break;[/CODE] shops.cfg [CODE]shop = 33 pure_shop 2 2 11694 10][/CODE] shop assistant.java [CODE]} else if (c.myShopId == 15) { buyVoid(itemID); return false; } else if (c.myShopId == 33) { buyVoid(itemID); return false; } else if (c.myShopId == 1) { buyVoid(itemID); return false; }[/CODE] the way how it stands about buy/sell, in shopassistant.java [CODE]} elsepublic void buyFromShopPrice(int removeId, int removeSlot){ int ShopValue = (int)Math.floor(getItemShopValue(removeId, 0, removeSlot)); ShopValue *= 1; String ShopAdd = ""; if (c.myShopId == 18) { c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> " + getMageItemValue(removeId) + "</col> PC Points."); return; } if (c.myShopId == 15) { c.sM("This item current costs " + c.getItems().getUntradePrice(removeId) + "</col> coins."); return; } if (c.myShopId == 48) { c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> " + getSlayerItemValue(removeId) + "</col> SlayerPoints."); return; } if (c.myShopId == 28 || c.myShopId == 29) { c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> " + getSlayerItemValue(removeId) + "</col> PkPoints."); return; } if (c.myShopId == 84) { c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> " + getSpecialItemValue(removeId) + "</col> Dungeoneering Points."); return; } if (c.myShopId == 85) { c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> " + getSpecialItemValue(removeId) + "</col> Dungeoneering Points."); return; } if (c.myShopId == 26) { c.sM(c.getItems().getItemName(removeId)+": currently costs: <col=255> " + getDonatorItemValue(removeId) + "</col> DonatorPoints"); return; } if (c.myShopId == 27) { c.sM(c.getItems().getItemName(removeId)+": currently costs: <col=255> " + getVoteItemValue(removeId) + "</col> Vote Points"); return; } if (c.myShopId == 30 || c.myShopId == 31 || c.myShopId == 32) { c.sM(c.getItems().getItemName(removeId)+": currently costs <col=255>" + getTokkulItemValue(removeId) + "</col> Tokkuls."); return; } if (ShopValue >= 1000 && ShopValue < 1000000) { ShopAdd = " (" + (ShopValue / 1000) + "k)"; } else if (ShopValue >= 1000000 && ShopValue < 1000000000) { ShopAdd = " (" + (ShopValue / 1000000) + " million)"; } else if (ShopValue >= 1000000000) { ShopAdd = " (" + (ShopValue / 1000000000) + " billion)"; } c.sM(c.getItems().getItemName(removeId)+" currently costs: <col=255> "+ShopValue+"</col> coins"+ShopAdd); } }[/CODE] also on "spawn-config" it did spawn the npc, else i coudn't even open the shop. but it just wont sell his items, the greedy fkr :P ps, i can sell my items to him. i am really having trouble for the first time with this and i cant fix it. all help is welcome. Note: I am did put this same post on ************ for help but i dont get any response i hope here i get, since i really need to know what's wrong all 90% of the shops did work already but all new shops and the other 10% dont work somehow. What i am missing please help?!
  11. Dungeoneering Shop based off my Arrow Project. Enjoy. [CODE]package arrow.system.engine.player.content.dungeoneering; import java.util.HashMap; import java.util.Map; import arrow.system.cache.parser.ItemDefinitions; import arrow.system.engine.player.Player; import arrow.system.engine.player.Skills; /** * * [MENTION=52317]auth[/MENTION]or Tylerr * Skype: tylerr.rsps * RuneLocus: Tylerr * */ public class DungeonRewards { public enum DungeonReward { BONECRUSHER(18337, 0, 21, 34000), HERBICIDE(19675, 5, 21, 34000), SCROLL_OF_LIFE(18336, 15, 25, 10000), SCROLL_OF_CLEANSING(19890, 40, 49, 20000), SCROLL_OF_EFFICIENCY(19670, 105, 55, 20000), SCROLL_OF_AUGURY(18344, 150, 77, 153000), SCROLL_OF_RIGOUR(18839, 145, 74, 140000), SCROLL_OF_RENEWAL(18343, 125, 65, 107000), MERCENARY_GLOVES(18347, 140, 73, 48500), TOME_OF_FROST(18346, 80, 48, 43000), ARCANE_PULSE_NECKLACE(18333, 20, 30, 6500), GRAVITE_SHORTBOW(18373, 70, 45, 40000), GRAVITE_LONGSWORD(18367, 55, 45, 40000), GRAVITE_RAPIER(18365, 50, 45, 40000), GRAVITE_STAFF(18371, 65, 45, 40000), GRAVITE_2H(18369, 60, 45, 40000), ARCANE_BLAST_NECKLACE(18334, 90, 50, 15500), RING_OF_VIGOUR(19669, 120, 62, 50000), ARCANE_STREAM_NECKLACE(18335, 130, 70, 30500), CHAOTIC_RAPIER(18349, 155, 80, 200000), CHAOTIC_LONGSWORD(18351, 160, 80, 200000), CHAOTIC_MAUL(18353, 165, 80, 200000), CHAOTIC_STAFF(18355, 170, 80, 200000), CHAOTIC_CROSSBOW(18357, 175, 80, 200000), CHAOTIC_KITESHIELD(18359, 180, 80, 200000), EAGLE_EYE_KITESHIELD(18361, 185, 80, 200000), FARSEER_KITESHIELD(18363, 190, 80, 200000), SNEAKERPEEPER(19894, 195, 80, 85000), TWISTEDNECKLACE(19886, 25, 30, 8500), DRAGONTOOTHNECKLACE(19887, 115, 60, 17000), DEMONHORNNECKLACE(19888, 200, 90, 35000); private static Map<Integer, DungeonReward> monsters = new HashMap<Integer, DungeonReward>(); public static DungeonReward forId(int id) { return monsters.get(id); } static { for (DungeonReward monster : DungeonReward.values()) monsters.put(monster.slotId, monster); } private int id; private int req; private int cost; private int slotId; private String name; private DungeonReward(int id, int slotId, int req, int cost) { this.id = id; this.req = req; this.cost = cost; this.slotId = slotId; this.name = ItemDefinitions.getItemDefinitions(id).getName(); } public int getId() { return id; } public String getName() { return name; } public int getCost() { return cost; } public int getSlotId() { return slotId; } public int getRequirement() { return req; } } public static void openRewardsShop(Player player) { player.getInterfaceManager().sendInterface(940); player.getPackets().sendIComponentSettings(940, 2, 0, 205, 1278); refresh(player); } public static void refresh(Player player) { player.getPackets().sendIComponentText(940, 31, ""+player.dungTokens); } public static void handleButtons(Player player, int componentId, int slotId, int packetId) { if (componentId == 64 && packetId == 14) { if (player.getTemporaryAttributtes().get("dungReward") != null) { DungeonReward reward = (DungeonReward) player.getTemporaryAttributtes().get("dungReward"); if (reward != null) { if (player.getSkills().getLevelForXp(Skills.DUNGEONEERING) < reward.getRequirement()) { player.getPackets().sendGameMessage("You need "+reward.getRequirement()+" dungeoneering to buy this reward."); return; } if (player.dungTokens < reward.getCost()) { player.getPackets().sendGameMessage("You need "+reward.getCost()+" dungeoneering tokens to buy this reward."); return; } player.getDialogueManager().startDialogue("DungRewardConfirm", reward); } else { player.getPackets().sendGameMessage("You must choose a reward before trying to buy something."); } } return; } if (componentId == 2) { DungeonReward reward = DungeonReward.forId(slotId); if (reward == null) { player.getPackets().sendGameMessage("That reward is not added yet. "+slotId); return; } else { player.getTemporaryAttributtes().put("dungReward", reward); player.getPackets().sendGameMessage(reward.getName()+" requires "+ reward.getRequirement() +" dungeoneering and costs "+reward.getCost()+" dungeoneering tokens."); } } } } [/CODE] [CODE]package arrow.system.engine.player.dialogues; import arrow.system.engine.player.content.dungeoneering.DungeonRewards; import arrow.system.engine.player.content.dungeoneering.DungeonRewards.DungeonReward; /** * * [MENTION=52317]auth[/MENTION]or Tylerr * Skype: tylerr.rsps * RuneLocus: Tylerr * */ public class DungRewardConfirm extends Dialogue { DungeonReward item; [MENTION=15855]Over[/MENTION]ride public void start() { item = (DungeonReward) parameters[0]; player.getInterfaceManager().sendChatBoxInterface(1183); player.getPackets().sendIComponentText(1183, 12, "It will cost "+ item.getCost() +" for "+item.getName()+"."); player.getPackets().sendItemOnIComponent(1183, 13, item.getId(), 1); player.getPackets().sendIComponentText(1183, 7, "Are you sure you want to buy this?"); player.getPackets().sendIComponentText(1183, 22, "Confirm Purchase"); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { player.getPackets().sendGameMessage("COMPONENTID: "+componentId); if (componentId == 9) { if (player.getInventory().getFreeSlots() >= 1) { player.dungTokens -= item.getCost(); player.getInventory().addItem(item.getId(), 1); DungeonRewards.refresh(player); } else { player.getPackets().sendGameMessage("You need more inventory space."); } } end(); } [MENTION=15855]Over[/MENTION]ride public void finish() { } } [/CODE] [CODE]handledDialogues.put("DungRewardConfirm", (Class<Dialogue>) Class.forName(DungRewardConfirm.class.getCanonicalName()));[/CODE] [CODE]else if (npc.getId() == 9711) DungeonRewards.openRewardsShop(player);[/CODE] [CODE]} else if (interfaceId == 940) { DungeonRewards.handleButtons(player, componentId, slotId, packetId);[/CODE] [CODE]public int dungTokens;[/CODE] [img]http://i.imgur.com/Pq4Dnfx.png[/img] [img]http://i.imgur.com/mpl1RsW.png[/img] [img]http://i.imgur.com/YeRJJc9.png[/img]
  12. Driesli

    Shop problem

    Hi, I got some problems with my shops. First problem: I made a custom shop, but when i click on the items it says 'this item costs 0 points', so i can't buy it. The second problem: when a click on a item in the fish shop, it says the price, but when i buy it, nothing happens. Thanks for your help! Driesli
  13. 317 PI I have the whole donator shop down, but I have two issues. 1. Donator points aren't saving, and I don't know how to fix this. 2. You can't buy more than one item at a time, which soon becomes extremely tedious. Please Help! Thanks Guys!
  14. Hi:) problem is my crowns, They hide my name and are like really weird. Here i have a pic, if you can help me please <3 i would really appriciate it. [img]http://i.imgur.com/K6DC76i.jpg[/img] Thanks :))))
  15. Zephrokht

    Modify Shop Rsps

    Hello everyone ! I need some help here ... Im a newbie in java and I have a question. How i can modify shop in a 718 rsps ( Lost Realm ). Thank you ! P.S: I want to add mithril seeds to my general store
  16. Hey all, I've been running a little short on cash lately... So with that said, I'd like to offer my web-development services. I wanted to stick primarily to custom shops (as seen below), but I guess you can message me with other inquiries for implementing custom vote systems or any custom server to website integrated plugin you might want. I can customize whatever you'd like and make the functionality however you choose. Whatever you pay me for, if it involves integration, I will code it on your server as well. Ex: Add to Cart shopping system. [URL="http://i.gyazo.com/e727348c8323194a4868a07727686ee3.png"][IMG]http://i.gyazo.com/e727348c8323194a4868a07727686ee3.png[/IMG][/URL] Ex: Voting System [URL="http://i.gyazo.com/c8ae6b05ff7474b5d9ad69e83c754e51.png"][IMG]http://i.gyazo.com/c8ae6b05ff7474b5d9ad69e83c754e51.png[/IMG][/URL] If Interested: You can add my skype: worldofclayton Or you can reply to this thread with any questions.
  17. When i tried to add Donor points shop I got these errors on compiler [url]http://prntscr.com/55qzjf[/url] How do i fix them?
  18. [IMG]http://i.imgur.com/ZO8BNZx.png[/IMG] [spoiler=Service] *Logos *Backgrounds *Advertise template's/thread layouts *Banners *Signatures [/spoiler] [spoiler=Contact] Skype: Gfxdesign.sanchez [/spoiler] [IMG]http://i.imgur.com/4btOacb.png[/IMG] [spoiler=Hit me] [url=http://sanchezdesign.crevado.com/#1400162]Previous Work - Sanchez[/url] [IMG]http://i.imgur.com/t4LXhxe.png[/IMG] [IMG]http://i.imgur.com/hnHuoxr.png[/IMG] [IMG]http://i.imgur.com/6SPUq0J.png[/IMG] [url=http://sanchezdesign.crevado.com/#1400162]Previous Work - Sanchez[/url] [/spoiler]
  19. Hey guys, i've been trying to make a new shop, the Lowe's Archery Imperium. I have already added the shop in shops.cfg and named it shop 9 (it didn't exist before) I have also added Lowe in Spawn-config.cfg. But when i meet Lowe in Varrock and I click on him it doesn't open the shop. Here's some of my code: [CODE]shop = 9 Lowe's Archery Imperium 1 1 882 2000 884 1500 886 1000 888 800 890 600 892 0 841 4 843 3 849 2 853 1 837 2 877 1500 [/CODE] [CODE]spawn = 550 3231 3424 0 0 0 0 0 Lowe's Archery Imperium[/CODE] [CODE]case 550: c.getShops() .openShop(9); break; [/CODE] I am using the Clean PI v2 (Project Insanity). Can someone please help me with this?
  20. I moved the shop from its old home to the new one I made but when I try to view shop it says "You can only view shops in home". Can anyone help? Thanks
  21. Ok, so it doesn't happen very often, but i need help again guys. One of my players informed me that my skillcape shop wasnt working(this was yesterday). So i checked it out, and it doesnt let you buy the cape, regardless of whether or not you have the skill for it. I looked over my coding for it and neither i nor Eclipse see anything wrong with it. Maybe one of you can tell me whats wrong here? Shopassistant.java(skillcape related part only.) [CODE] public int[] skillCapes = { 9747, 9753, 9750, 9768, 9756, 9759, 9762, 9801, 9807, 9783, 9798, 9804, 9780, 9795, 9792, 9774, 9771, 9777, 9786, 9810, 9765 }; public int get99Count() { int count = 0; for (int j = 0; j < c.playerLevel.length; j++) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { count++; } } return count; } public void setupSkillCapes(int capes, int capes2) { synchronized (c) { c.getItems().resetItems(3823); c.isShopping = true; c.myShopId = 14; c.getPA().sendFrame248(3824, 3822); c.getPA().sendFrame126("Skillcape Shop", 3901); int TotalItems = 0; TotalItems = capes2; if (TotalItems > ShopHandler.MaxShopItems) { TotalItems = ShopHandler.MaxShopItems; } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(3900); c.getOutStream().writeWord(TotalItems); for (int i = 0; i < 23; i++) { if (c.getLevelForXP(c.playerXP[i]) < 99) continue; c.getOutStream().writeByte(1); c.getOutStream().writeWordBigEndianA(skillCapes[i] + 2); } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); } } public void skillBuy(int item) { int nn = get99Count(); if (nn > 1) nn = 1; else nn = 0; for (int j = 0; j < skillCapes.length; j++) { if (skillCapes[j] == item || skillCapes[j] + 1 == item) { if (c.getItems().freeSlots() > 1) { if (c.getItems().playerHasItem(995, 99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn, 1); c.getItems().addItem(skillCapes[j] + 2, 1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } } } c.getItems().resetItems(3823); } public void openVoid() { } public void buyVoid(int item) { } } [/CODE] Thanks in advance, Zelda
  22. Hello, I've been trying to change the prices on the server I'm working on but I can't seem to do it, I've got a itemdef editor and have edited the price through that but it doesn't change, I compiled the cache and it wont change, How could I change price I also tried to add items in my shop but it won't allow me I tried to do that through unpackedshops but it doesn't work.. Can someone tell me how to do these things correctly pleasE?
  23. deathlypvpz

    Shop Help

    Hello, on some shops it works to buy stuff. But on other shops i doesn't work at all to buy or sell. Yes i've checked the CFG file and there is no problem with it, Any ideas?
  24. Hello, I got a linux (centos) vps today. Sadly if I run my source on the vps, the contents of the shops in-game are missing. When I ran it before on my own computer, the shops were just working. I got no errors while running my source on the vps. Further it is just working fine. I hope someone can reply the fix here. If you can't, I can provide you my source zipped and if you want you can fix it for me and give the source back. I hope you can help me!
  25. xifer8121

    Shop Troubles

    on one of my shops, i want the items bought from it to be able to be sold back for the same price. for example: in my shop claws are 250m. but when i sell them back their 150k. lmfao any help?
×