try this Rune-Server Official Pastebin
|
Base: DSPK [PI]
Problem: cant buy items from pk shop
Errors(Compiling Errors):none
Other Information/Media(Pictures, etc):none
my ShopAssistant.java Java - Rune-Server Official Pastebin
it says "you do not have enough coins". shop id is 23
tried many diffrent ways but doesn't seem to work.
will rep
post if you need any more info.
i have a feeling this isnt pi then lol lemme re-do it.
http://paste.rune-server.org/1591 ok try this i re-read ur post and double checked evrtything
no errors but it still says "You don't have enough coins."
Gahh last try... lol.. If this doesnt work idk u got somthing wrogn with urs cause i had the coins error yestrday and i fixed it using the last one i sent u so try this.
Rune-Server Official Pastebin
Nop now it doesn't say anything, thanks anyway.
Add this
to the void above handleothershopCode:else if(c.myShopId == 23) { if (c.pkPoints >= TotPrice2) { if (c.getItems().freeSlots() > 0) { buyDelay = System.currentTimeMillis(); c.pkPoints -= 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 pk points."); break; } }
IF THAT DOESNT WORK USE THIS!!! http://paste.rune-server.org/1593
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |