local coin = 11192
local lever = {
[6001] = {15,12606},
[6002] = {15,12603},
}
function onUse(cid,item,fromPosition,itemEx,toPosition)
if not doPlayerRemoveItem(cid, coin, lever[item.actionid][1]) then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa de "..lever[item.actionid][1] .." ".. getItemNameById(coin))
end
doItemSetAttribute(doPlayerAddItem(cid, lever[item.actionid][2]), "description", "Comprado por ".. getCreatureName(cid) ..".")
doPlayerSendTextMessage(cid, 22, "Você comprou um " .. getItemNameById(lever[item.actionid][2]))
doSendMagicEffect(getCreaturePosition(cid), math.random(28,30))
return doTransformItem(item.uid, item.itemid == 1748 and 1748 or 1748)
end
Quem Está Navegando
0 membros estão online
Nenhum usuário registrado visualizando esta página.