So I need to make my shop take these tokens, not coins.
This is my coding:
Code:
if (Slot7 == -1 && MyShopID == 27) {
sM("You don't have enough Overkill Tokens.");
break;
}
Code:
if (MyShopID == 27) {
if (playerItemsN[Slot7] >= TotPrice2) {
if (freeSlots() > 0) {
deleteItem(3706, GetItemSlot(3706), TotPrice2);
addItem(itemID, 1);
server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1;
server.shopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0;
if ((fromSlot + 1)
> server.shopHandler.ShopItemsStandard[MyShopID]) {
server.shopHandler.ShopItems[MyShopID][fromSlot] = 0;
}
} else {
sM("Not enough space in your inventory.");
break;
}
} else {
sM("Not enough Overkill tokens for this item.");
}
}
Please help me!