I have this for the tokkul, 32 is my shop id.
Code:
for (int i = amount; i > 0; i--) {
TotPrice2 = (int) Math.floor(
GetItemShopValue(itemID, 0, fromSlot));
Slot = GetItemSlot(995);
Slot2 = GetItemSlot(6529);
Slot3 = GetItemSlot(6529);
if (Slot == -1 && MyShopID != 8 && MyShopID != 19) {
sM("You don't have enough coins.");
break;
}
if (Slot2 == -1 && MyShopID == 32) {
sM("You don't have enough tokkul.");
break;
}
The shop still sells the item for gp.
then, the tokkul code
Code:
if (MyShopID == 32) {
if (playerItemsN[Slot2] >= TotPrice2) {
if (freeSlots() > 0) {
deleteItem(6529, GetItemSlot(6529), 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 tokkul for this item.");
}
}
So yeah, confused...
Edit: I did look at it, but it doesn't work...?