Postado Julho 12, 2016 8 anos Solução Tente assim: function onUse(cid, item, position) if item.itemid == 1945 then doTransformItem(item.uid, 1946) else doTransformItem(item.uid, 1945) end local removeItem1 = 11192 local removeItem2 = 7772 local AddItem = 7753 -- o item que o player vai ganhar if getPlayerItemCount(cid, removeItem1) >= 10 and getPlayerItemCount(cid, removeItem2) >= 1 then doPlayerRemoveItem(cid, removeItem1, 10) doPlayerRemoveItem(cid, removeItem2, 1) local add = doPlayerAddItem(cid, AddItem, 1) doItemSetAttribute(add, "description", "Este item foi comprado por " .. getPlayerName(cid) .. ".") doPlayerPopupFYI(cid, "Voce realizou seu upgrade com sucesso!") else doPlayerPopupFYI(cid, "voce precisa de: \n *10 pontos \n *arma +7 \n \n para relizar o upgrade.") return false end end ➥ Regras | Seções OTServ | Seções BOT
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.