Suggested it before going to suggest it again, I highly recommend you use Eclipse. I have a left a link below on a guide on how to use it.
https://www.moparscape.org/smf/index.php?topic=636090.0
|
So i tried adding this donor point shop but i get 81 errors
if(c.myShopId == 29 || c.myShopId == 30 || c.myShopId == 31) {
if (c.playerItemsN[Slot1] >= TotPrice2) {
if (c.getItems().freeSlots() > 0) {
buyDelay = System.currentTimeMillis();
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;
}
}
}
else if(c.myShopId == 544) {
if (c.DonorPoints >= TotPrice2) {
if (c.getItems().freeSlots() > 0) {
buyDelay = System.currentTimeMillis();
c.DonorPoints -= 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 Donator Points.");
break;
}
}
Here is the error!
Suggested it before going to suggest it again, I highly recommend you use Eclipse. I have a left a link below on a guide on how to use it.
https://www.moparscape.org/smf/index.php?topic=636090.0
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |