LU
action

Actions Addons Lotería

Por luizmachado1, 10 de mar. de 2016 em Actions e Talkactions

1
1k
10 de março de 2016 às 13:15
[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*]

By Luizmachado1

Editado Março 10 por luizmachado1