[spoiler*]
Tag
<action itemid="id_do_item" event="script" value="AddonsLoteria.lua"/>
[spoiler*]
criar 1 arquivo com nome AddonsLoteria.lua
[spoiler*]
function onUse(cid, item, fromPosition, itemEx, toPosition)
Local Remove = id quantidade-remove = quantidade
Local Additem = id quantidade = quantidade
if(doPlayerRemoveItem(cid, remove, quantidade-remove) == true) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns.")
doPlayerAddItem(cid, additem, quantidade)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Precisa De 30 Diamonds Pra Ganhar Addons Box.")
end
return TRUE
end
[spoiler*]
info
Grupo: Artesão
Registrado: 08/10/15
Posts: 103
Reputação: +34
criar 1 arquivo com nome AddonsLoteria.lua [spoiler*] function onUse(cid, item, fromPosition, itemEx, toPosition) Local Remove = id quantidade-remove = quantidade Local Additem = id quantidade = quantidade if(doPlayerRemoveItem(cid, remove, quantidade-remove) == true) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns.") doPlayerAddItem(cid, additem, quantidade) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Precisa De 30 Diamonds Pra Ganhar Addons Box.") end return TRUE end [spoiler*]By Luizmachado1
Editado Março 10 por luizmachado1