Guest User

Untitled

a guest
Oct 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. above } else if (c.myShopId == 47) {
  2.  
  3. add
  4. } else if (c.myShopId == 55) {
  5. if (c.randomPoints >= TotPrice2) {
  6. if (c.getItems().freeSlots() > 0) {
  7. buyDelay = System.currentTimeMillis();
  8. c.randomPoints -= TotPrice2;
  9. c.getItems().addItem(itemID, 1);
  10. ShopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
  11. ShopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
  12. if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[c.myShopId]) {
  13. ShopHandler.ShopItems[c.myShopId][fromSlot] = 0;
  14. }
  15. } else {
  16. c.sendMessage("You don't have enough space in your inventory.");
  17. break;
  18. }
  19. } else {
  20. c.sendMessage("You don't have enough Random Points.");
  21. break;
  22. }
  23.  
  24. shopassistant.java
Add Comment
Please, Sign In to add comment