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. wasolsdpker

    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. 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
  12. 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!
  13. 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 :))))
  14. 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.
  15. 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?
  16. [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]
  17. 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?
  18. 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
  19. 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?
  20. 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!
  21. 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?
  22. 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?
  23. I made a shop and i can buy and sell at the right prices but the listed price in the shop interface is wrong. Does any one know how i can fix this? [ATTACH=CONFIG]9976[/ATTACH]
  24. [center][img]http://i.imgur.com/0T33Az5.png[/img][/Center] [b]Notes:[/b] [img]http://i.imgur.com/4UGu9Yo.png[/img] This is a long-term project. [img]http://i.imgur.com/4UGu9Yo.png[/img] Please don't forget to vote on our current poll. [img]http://i.imgur.com/4UGu9Yo.png[/img] I apologize for any grammatical errors. [img]http://i.imgur.com/4UGu9Yo.png[/img] If you have any feedback about our progress, please let us know. :) [b]Introduction:[/b] Avarrocka is expected to be a new revolution in terms of RSPS. Avarrocka is an advanced server that rivals all others. We will provide the community with an interactive, friendly, and professional team of staff members. This is nothing like before. As we're based on Rune-Source, we plan on providing nothing but quality work for all who follow us. [b]Team:[/b] The official team consists of two parts(development & management). Development [list] [*]Artem - Game Developer [*]Rob - Game Developer [*]IYAOYAS - Game Developer [/list] Management [list] [*]John - Community Manager [*]Andrew - Community Manager [/list] [b]Avarrocka I, II & III Explanation:[/b] [img]http://i.imgur.com/4UGu9Yo.png[/img] [b]Avarrocka I[/b] - This was where it all began. Our primary focus was client-sided work. Our team took the client apart piece by piece and rebuilt it with a few innovative features. Our goal was providing efficiency and increased power. The client now boasts plenty of interesting features like an advanced error detection system, game-frame component listener, threaded cache loader system, an advanced rendering loop system and much more. [img]http://i.imgur.com/4UGu9Yo.png[/img] [b]Avarrocka II[/b] - This is the current stage of our development. Now, our focus is on game content rather than visual appeal. The server is based off of Rune-Source, and we plan to go far with it. We focus on bringing all skills and an advanced combat system, as well as some interesting custom content. Avarrocka is proud to have a storyline to work a large portion of our game's content off of, while still providing a game that players can create their own legacy with. [img]http://i.imgur.com/4UGu9Yo.png[/img] [b]Avarrocka III[/b] - This stage is our goal. This stage is highly anticipated by Avarrocka's developers. At this stage, Avarrocka will boast a functional and beautiful website, a community forum, game webclient, and of course highscores. Our own unique and epic trailer will be launched as well, and our team will be doing everything we can to get the word out. Our goal is to see a steady playerbase of 100 players - [i]within the first month[/i]. Do you think it's possible for us? Watch our introduction to the game [url=http://www.youtube.com/watch?v=fn7WFwZt6VI]here[/url]! [b]Beta Testing ( Estimated Time: March 10 )[/b] Beta testing will be open for all. However, Avarrocka is in search for those few who would report any bug found during our beta testing. Their time won't go unappreciated, and at the end of Beta testing awaits an exclusive gift. The gift will be given to those who show exceptional effort to provide a steady flow of quality bug reports and suggestions during this testing phase. [b]Current list:[/b] - Artem543 - Clawz Fury - Flame_ - ox Random xi - Bubletan - AtomicInt_ - Arham 4 - Sk8rdude461 - KroniKz_ - Munien - furyking50 - Null Amount - Loveandpower - noland2131 - Ambokile - angelfallen - supernova_ - scape-JAVA - TheIronDoorProject [img]http://i.imgur.com/J0GmiSu.gif[/img] [b]Please Note that:[/b] these images aren't in high quality. The colors might be off the original gameplay. This being said, the image quality was reduced to have a more fluid internet browsing(memory reduced). [b]Development Progress:[/b] [list] [*][color=red]Haven't started yet.[/color] [*][color=orange]Currently in progress.[/color] [*][color=green]Finished[/color] [/list] [img]http://i.imgur.com/qgWE7EH.png[/img][list] [*][b]Melee[/b][list] [*][color=green]Combat Formulas ( Accuracy and Max Hit )[/color] [img]http://i.imgur.com/yZo9dFS.gif[/img] [*][color=green]Correct Animations, Delays.[/color] [*][color=orange]Special Attacks[/color][list] [*][color=red]Dragon dagger[/color] [*][color=red]Abyssal whip[/color] [*][color=red]Dragon longsword[/color] [*][color=red]Dragon mace[/color] [*][color=red]Barrelchest anchor[/color] [*][color=red]Granite maul[/color] [*][color=red]Dragon mace[/color] [*][color=green]Armadyl Godsword[/color] [*][color=red]Bandos Godsword[/color] [*][color=red]Zamorak Godsword[/color] [*][color=red]Saradomin Godsword[/color] [*][color=red]Saradomin sword[/color] [*][color=red]Guthan's special[/color] [*][color=red]Dharok's special[/color] [*][color=red]Torag's special[/color] [*][color=red]Verac's special[/color] [*][color=red]Dragon claws[/color][/list] [*][b]Ranged[/b][list] [*][color=red]Accuracy/Max hit Formula[/color] [img]http://i.imgur.com/xVAuoSp.gif[/img] [*][color=red]Ava's accumulator[/color] [*][color=red]Ammo dropping in combat[/color] [*][color=red]Weapons[/color] [*][color=red]Bows[/color] [*][color=red]Crossbows[/color] [*][color=red]Darts[/color] [*][color=red]Throwing knives[/color] [*][color=red]Throwing axes[/color] [*][color=red]Chinchompas[/color] [*][color=red]Javelins[/color] [*][color=red]Seercull[/color] [*][color=red]Dark bow[/color] [*][color=red]Crystal bow[/color] [*][color=red]Toktz-xil-ul[/color] [*][color=red]Special Attacks[/color][list] [*][color=red]Ruby Bolt[/color] [*][color=red]Diamond Bolt[/color] [*][color=red]Emerald Bolt[/color] [*][color=red]Dragon Bolt[/color] [*][color=red]Onyx Bolt[/color] [*][color=red]Karil's special[/color] [*][color=red]Magic bows[/color] [*][color=red]Seercull[/color] [*][color=red]Darkbow[/color][/list][/list] [*][b]Magic[/b][list] [*][color=green]Auto-casting[/color] [img]http://i.imgur.com/gkNCVxp.gif[/img] [*][color=red]Defensive casting[/color] [*][color=green]Accuracy/Max hit Formula[/color] [*][color=red]Special Attacks[/color] [*][color=red]Ahrim's special[/color] [*][color=red]Staff of light special[/color] [*][color=red]Spells[/color][list] [*][color=red]Basic combat spells[/color] [*][color=red]Vengeance[/color] [*][color=red]Vengeance other[/color] [*][color=red]All Ancient Magic effects[/color] [*][color=red]God Staff Spells/Charge[/color] [*][color=red]Crumble Undead[/color] [*][color=red]Iban Blast[/color] [*][color=red]Magic Dart[/color] [*][color=red]Entangle/Bind[/color] [*][color=red]Tele-block[/color][/list][/list] [*][b]Miscellaneous[/b][list] [*][color=red]Determining killer[/color] [*][color=red]Food[/color] [*][color=red]Potions[/color] [*][color=red]Attack styles[/color] [*][color=red]Entity based[/color] [*][color=red]Mob vs Mob combat[/color] [*][color=red]Multi-combat areas[/color] [*][color=red]Projectiles[/color] [*][color=red]NPC sizes for combat[/color] [/list][/list] [img]http://i.imgur.com/HeSWRr2.png[/img] [list] [*][b]Prayer[/b][list] [*][color=red]Burying bones[/color] [*][color=red]Bones on altar[/color] [*][color=red]Prayer bonus effects drain[/color][/list] [*][b]Runecraft[/b][list] [*][color=red]Crafting runes[/color] [*][color=red]Multipliers[/color] [*][color=red]Pouches[/color][/list] [*][b]Agility[/b][list] [*][color=red]Gnome Course[/color] [*][color=red]Wildness Course[/color] [*][color=red]Barbarian Course[/color] [*][color=red]Apel Tool Course[/color] [*][color=red]Brihavem Course[/color][/list] [*][b]Herblore[/b][list] [*][color=red]Herb Cleaning[/color] [*][color=red]Herb identifying[/color] [*][color=red]Mixing unfinished potions[/color] [*][color=red]Mixing finished potions[/color] [*][color=red]Tars Creation[/color] [*][color=red]Grinding[/color][/list] [*][b]Thieving[/b][list] [*][color=red]Picking pockets[/color] [*][color=red]Thieving stalls[/color] [*][color=red]Chest lockpicking[/color] [*][color=red]Door lockpicking[/color] [*][color=red]Stunning[/color][/list] [*][b]Crafting[/b][list] [*][color=red]Gem Cutting[/color] [*][color=red]Hide Tanning[/color] [*][color=red]Leather Crafting[/color] [*][color=red]Glass Blowing[/color] [*][color=red]Jewellry Moulding[/color] [*][color=red]Spinning[/color] [*][color=red]Stringing Amulets and Necklaces[/color] [*][color=red]Pottery[/color][/list] [*][b]Fletching[/b][list] [*][color=red]Log carving[/color] [*][color=red]Add Strings to unfinished items[/color] [*][color=red]Ammo creation[/color][/list] [*][b]Slaying[/b][list] [*][color=red]Task Receiving[/color] [*][color=red]Experience on death[/color] [*][color=red]Task levels - Easy, Medium, Hard and Elite[/color] [*][color=red]Multi masters support[/color] [*][color=red]Stores - Points and Required items[/color] [*][color=red]All Monsters spawned around the map[/color] [*][color=red]Masters[/color][list] [*][color=red]Duradel[/color] [*][color=red]Mazchna[/color] [*][color=red]Vannaka[/color] [*][color=red]Chaeldar[/color] [*][color=red]Sumona[/color] [*][color=red]Kuradal[/color][/list][/list] [*][b]Mining[/b][list] [*][color=red]Mining all rocks[/color] [*][color=red]Success formula with tools[/color] [*][color=red]Prospecting[/color] [*][color=red]Rock golem random[/color] [*][color=red]Mining gems[/color] [*][color=red]Pickaxe breaking[/color][/list] [*][b]Smithing[/b][list] [*][color=red]Ore Smelting[/color] [*][color=red]Anvil Smithing[/color] [*][color=red]Misc Items[/color][list] [*][color=red]DFS[/color] [*][color=red]Godsword blade[/color] [*][color=red]Godswords[/color] [*][color=red]Dragon Sq Shield[/color][/list][/list] [*][b]Fishing[/b][list] [*][color=red]Small Net fishing[/color] [*][color=red]Rod fishing[/color] [*][color=red]Fly fishing[/color] [*][color=red]Cage fishing[/color] [*][color=red]Big Net fishing[/color] [*][color=red]Harpoon fishing[/color] [*][color=red]Troll random event[/color] [*][color=red]Whirlpool event[/color][/list] [*][b]Cooking[/b][list] [*][color=red]Item Cooking ( Can be cooked on range / fire )[/color] [*][color=red]Item on Item, such as chocolate bar on cake = Chocolate cake[/color] [*][color=red]Burning Chance, with working cook gloves and depends on your cook level[/color][/list] [*][b]Firemaking[/b][list] [*][color=red]Making fires[/color] [*][color=red]Clipped[/color] [*][color=red]Can't make on fires on other fires[/color][/list] [*][b]Woodcutting[/b][list] [*][color=green]Cutting trees[/color] [*][color=green]Success formula with axes[/color] [*][color=green]Adding and removing stumps[/color][/list] [img]http://i.imgur.com/onMVie8.gif[/img] [img]http://i.imgur.com/oEGRfRh.gif[/img] [img]http://i.imgur.com/VZPai5J.png[/img] [/list][list][*][b]Barrows[/b][list] [*][color=red]Digging[/color] [*][color=red]Barrows battles[/color] [*][color=red]Reward[/color][/list] [*][b]Warriors Guild[/b][list] [*][color=red]Animated armour[/color] [*][color=red]Token removal for cyclops[/color] [*][color=red]Cyclops definitions[/color] [*][color=red]Defender dropping[/color][/list] [*][b]Duel Arena[/b][list] [*][color=red]Every rule working[/color] [*][color=red]Staking items[/color] [*][color=red]Utilizes every dueling arena, finds an arena based on players dueling in each one[/color] [*][color=red]Second staking interface stacks items correctly[/color] [*][color=red]Duels can tie[/color] [*][color=red]Obstacle arenas and non-obstacle arenas[/color] [*][color=red]Checks inventory space to make sure you have space to make a stake[/color][/list] [*][b]TzHarr Fight Cave[/b][list] [*][color=red]63 waves[/color] [*][color=red]Fight cape reward[/color] [*][color=red]Wave saving[/color] [*][color=red]Combat definitions for NPCs[/color][/list] [*][b]TzHarr Fight Pits[/b][list] [*][color=red]Waiting lobby[/color] [*][color=red]Random starting positions (clipped)[/color] [*][color=red]Free-for-all[/color] [*][color=red]Winner can stay in the arena[/color][/list] [*][b]Pest Control[/b][list][/list] [*][b]Castle Wars[/b][list][/list] [/list] [img]http://i.imgur.com/fJwhrvC.png[/img][list] [*][color=green]Banking[/color][/list] [img]http://i.imgur.com/7t8XpWB.gif[/img] [list][*][color=green]Trading[/color][/list] [img]http://i.imgur.com/7xKYJr1.gif[/img] [list][*][color=red]Shoping[/color] [*][color=green]Fast switching[/color][/list] [img]http://i.imgur.com/KUZqQfb.gif[/img] [list][*][color=green]Skilling orbs[/color][/list] [img]http://i.imgur.com/lJqFs3s.gif[/img] [list][*][color=red]Random events[/color] [*][color=red]Sounds[/color] [*][color=red]Songs[/color] [*][color=red]server sided definitions[/color] [/list] [u]Previews:[/u] [center][url]http://www.youtube.com/watch?v=fn7WFwZt6VI[/url] [img]http://i.imgur.com/quJSZ1c.gif[/img] [img]http://i.imgur.com/lEvtRQh.png[/img] [img]http://i.imgur.com/18APGeE.png[/img] [img]http://i.imgur.com/ktixTa9.gif[/img] [img]http://i.imgur.com/IJ2n0gm.png[/img] [img]http://i.imgur.com/cdBgPJl.png[/img] [IMG]http://i.imgur.com/lpM3IhM.png[/img] [IMG]http://i.imgur.com/4DtAlAL.png[/img][/center] [img]http://i.imgur.com/TA2bauR.png[/img] [img]http://i.imgur.com/oD0XVw2.png[/img] [img]http://i.imgur.com/g0PTBLZ.png[/img] [img]http://i.imgur.com/VvhAdD3.png[/img] [img]http://i.imgur.com/2y1zwAL.png[/img] [img]http://i.imgur.com/FcGRiv3.png[/img] [img]http://i.imgur.com/vR8XGVC.png[/img] [img]http://i.imgur.com/ARc0WMX.png[/img] [img]http://i.imgur.com/RwyQwNV.png[/img] [img]http://i.imgur.com/XPNfkAr.png[/img] [img]http://i.imgur.com/wYNPSZX.png[/img] [img]http://i.imgur.com/hkInyAL.png[/img] [img]http://i.imgur.com/qTFmtPN.png[/img] [img]http://i.imgur.com/aZzDh9Q.png[/img] [img]http://i.imgur.com/qDpBjuK.png[/img] [img]http://i.imgur.com/1Wysv5M.png[/img] [img]http://i.imgur.com/WM06FXN.png[/img] [img]http://i.imgur.com/aZzDh9Q.png[/img] [img]http://i.imgur.com/FAjgS7Z.png[/img] [img]http://i.imgur.com/U1P13GX.png[/img] [img]http://i.imgur.com/AwKY198.png[/img] [img]http://i.imgur.com/TGOGyWC.png[/img] [img]http://i.imgur.com/FDI2tSP.png[/img] [img]http://i.imgur.com/yOXxPvP.png[/img] [img]http://i.imgur.com/5nfMn1N.png[/img] [b][u]Wondering what the community thinks?[/u][b] [i]Post your comments and they will be added in this section...[/i]
  25. Hello there, I've added a new shop where you need to pay with tokens. I already added a new slot (slot4). It does show you need to pay tokens and it does value in tokens. but when you click on buy item, it does not buy it. This is my shopassistant.java the shopid is 17, the tokens are dragon tokens, 7478 is the token id [code] } if(c.myShopId == 17) { if (c.playerItemsN[Slot4] >= TotPrice2) { if (c.getItems().freeSlots() > 0) { buyDelay = System.currentTimeMillis(); c.getItems().deleteItem(7478, c.getItems().getItemSlot(7478), 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 Dragon tokens."); break; }[/code] This is also in the file [code] if (c.myShopId == 17) { c.sendMessage(c.getItems().getItemName(removeId)+": currently costs " + getSpecialItemValue(removeId) + " Dragon Token."); return; } [/code] and [code] if (c.myShopId == 17) { handleOtherShop(itemID); return false; }[/code] and like i said, i made a slot4 [code] if(Slot4 == -1 && c.myShopId == 17) { c.sendMessage("You don't have enough dragon tokens."); break; }[/code] [code] Slot4 = c.getItems().getItemSlot(7478);[/code] Can someone help me and explain what i am doing wrong? It would help me out alot, i've been trying to fix this for ages! Thanks
×