If it's a custom item that didn't come with your source, you'll need to
define the item in item.cfg, then prices.txt, then the shop.
|
So I wanted to edit the prices of items in the pkpoint shop so that they can protect over items like fury. But when I changed the prices it changed the amount of PkPoints you need to get them... I changed it to 25m and now you need 25m PkPoints just to buy them how can I make it 100 PkPoints but they sell for 25m Cash to general store? [This was all done in prices.txt] Someone please help?
Well its DSPK so I beleive it already had them...
Shopassistant.java
Search:
Under it add:public int getSpecialItemValue(int id) {
http://www.rune-server.org/runescape...oint-shop.htmlcase: ITEM ID
return; AMOUNT
Still confused
heres my codes...
And I edited the prices in prices.txt but it changed the PkPoint value in shop I just wanted it to change sell price to general store...Code:if (c.myShopId == 21) { c.sendMessage(c.getItems().getItemName(removeId)+": currently costs " + getSpecialItemValue(removeId) + " PVP points."); return; } if (ShopValue >= 1000 && ShopValue < 1000000) { ShopAdd = " (" + (ShopValue / 1000) + "K)"; } else if (ShopValue >= 1000000) { ShopAdd = " (" + (ShopValue / 1000000) + " million)"; } c.sendMessage(c.getItems().getItemName(removeId)+": currently costs "+ShopValue+" coins"+ShopAdd); } public int getSpecialItemValue(int id) { switch (id) { case 6889: case 6914: return 100; case 6916: case 6918: case 6920: case 6922: case 6924: return 50; case 11663: case 11664: case 11665: case 8842: return 30; case 8839: case 8840: return 75; case 10499: return 20; case 8845: return 5; case 8846: return 10; case 8847: return 15; case 8848: return 20; case 8849: case 8850: return 25; case 10551: return 50; case 6570: return 35; case 6585: return 15; case 15027: return 150; case 15055: return 1; case 15037: return 100; case 15038: return 100; case 15039: return 100; case 15040: return 100; case 15041: return 100; case 15004: return 80; case 15005: return 80; case 15006: return 100; case 15007: return 100; case 15008: return 80; case 15009: return 80; case 15011: return 80; case 15010: return 100; case 15012: return 80; case 15013: return 80; case 15014: return 80; case 15017: return 80; case 15018: return 80; case 15019: return 80; case 15020: return 100; case 15021: return 100; case 15022: return 100; case 15023: return 100; case 15026: return 100; case 15050: return 100; case 11696: return 150; case 11698: return 150; case 11694: return 150; case 11700: return 150; case 11730: return 130; case 4151: return 50; case 11235: return 60; case 11732: return 40; case 6737: return 30; case 6733: return 30; case 6735: return 30; case 6731: return 30; case 2438; return 10; } return 0; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |