Hello people, since no1 wants to help me i decided to register in here and hopefully i will get some help.
I made a donator shop, in that donator shop you should pay with ID 996. I did that with those codes:
Code:
if (MyShopID == 4) {
if (playerItemsN[Slot] >= TotPrice2) {
if (freeSlots() > 0) {
deleteItem(996, GetItemSlot(996), 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 donator coins for this item.");
}
}
Code:
if (MyShopID == 4) {
sM(getItemName(removeID)+": currently costs "+ShopValue+" donator coins"+ShopAdd);
}else{
But now, ingame i go to the shop, 996 in my inventory, try to buy something."You don't have enough coins" wdf? After trying some shit (dunno what anymore) It just let me buy whatever i wanted without donatorcoins (996) but IF i had 996, it removed it. I don't know what to do. Can somebody help me?
Thanks in advance.