Essa action faz com q se vc der use com o staff no Life Crystal o staff se trasnforma em Enchanted e o Crystal desaparece...
Essa eh minha primeira action entaum espero q gostem !! Comentz PLX!!!
coloke isso num arquivo enchanted staff.lua
function onUse(cid, item, frompos, item2, topos)if item2.itemid == 0 then
return 0
end
if item2.itemid == 2999 then
if getPlayerMana(cid) >= 1000 then
if getPlayerLevel(cid) >= 100 then
doRemoveItem(item2.uid,item.type)
doTransformItem(item.uid,3259)
doPlayerAddMana(cid,-1000)
else
doPlayerSendTextMessage(cid,22,"You need level 100 to do the Staff.")
end
else
doPlayerSendTextMessage(cid,22,"You need 1000 mana points to do the Staff.")
end
end
return 1
end
e coloke isso no Actions.xml:
<action itemid="3227" script="enchanted staff.lua" />
creditos: shixtudo