---Para 7.6!
Apenas crie uma action chamada money.lua:
function onUse(cid, item, frompos, item2, topos)if item.itemid == 2148 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2152,1)
doSendMagicEffect(frompos,12)
end
if item.itemid == 2152 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2160,1)
doSendMagicEffect(frompos,12)
elseif item.itemid == 2152 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2148,100)
doSendMagicEffect(frompos,12)
end
if item.itemid == 2160 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2152,100)
doSendMagicEffect(frompos,12)
end
return 1
end
No actions.xml, no lugar de:
<action itemid="2148" script="gold.lua" /><action itemid="2152" script="platinum.lua" />
<action itemid="2160" script="crystal.lua" />
Coloque:
<action itemid="2148" script="money.lua" /><action itemid="2152" script="money.lua" />
<action itemid="2160" script="money.lua" />
Flws!