function onUse(cid, item, frompos, item2, topos)
local Id_coin = 9927 -- id da sua coin vip
local quanty = 100 -- quantidade
if item.uid == 1666 and item.itemid == 1945 then
if(isInArray({9, 10, 11, 12}, getPlayerVocation(cid))) then -- id das vocation
if doPlayerRemoveItem(cid,Id_coin,quanty) then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
doTransformItem(item.uid,item.itemid+1)
doPlayerSendTextMessage(cid, 22, "Parabens você foi promovido.")
else
doPlayerSendCancel(cid,"Você precisa de " .. quanty .. " para poder ser promovido .")
end
else
doPlayerSendCancel(cid,"Voce ja tem promotion.")
end
elseif item.uid == 1666 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
actions.xml add tag:
<action actionid="1666" script="NOME DO SEU SCRIPT.lua" />






info
Grupo: Campones
Registrado: 16/07/10
Posts: 25
Reputação: 0
Char no Tibia: nem tenho kkk
Preciso de uma alavanca
promotion
das promo normal
para as editas
mas o player so podera comprar a promotion
se ele tiver moedas vip
id da promotion
13.14.15.16
alguem disponivel para poder me ajudar
flw vo dormir agora
amanha eu entro pra ver
posts ae
Obrigado tenham uma boa noite