qual a versão do ot?
tenta isso
function onUse(cid, item, frompos, item2, topos)
if doPlayerRemoveMoney(cid, 35000) == true then
lever = {[1945] = {1946}, [1946] = {1946}}
bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 8892, 1)
doTransformItem(item.uid, lever[item.itemid][1])
else
doPlayerSendCancel(cid, "Sorry, you don't have enough money!")
end
return 1
end
vc só ganha a bag com o item se tiver 35k (35000gold coind) com vc


info
Grupo: Campones
Registrado: 15/03/09
Posts: 22
Reputação: 0
Char no Tibia: Nem 1
eae galere . entao o seguinte é que meu script pra comprar uma ethno coat em 1 alavanca ta falhando ,eu clico na alavanca e so vem á bag mas era pra vir a ethno coat dentro dessa bag ! bem aqui vai o script e ele no actions
<!-- Alavanca de Items -->
<action uniqueid="8000" script="ethnocoat.lua"/>
function onUse(cid, item, frompos, item2, topos)
container = doPlayerAddItem(cid, 1987, 1)
if item.itemid == 1945 and doPlayerRemoveMoney(cid,35000) == 1 then
doAddContainerItem(container, 8892, 1)
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 and doPlayerRemoveMoney(cid,35000) == 1 then
doAddContainerItem(container, 8892, 1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, you don't have enough money!")
end
return 1
end