As some of you already know you need to use small ruby on the fire shrine to get enchant small ruby(when u used it you lose 300 mana and 2 soul), and i'm not so skilled at lua scripts.
etc. my fire shirne have ItemID: [7507], ActionID: [2151].
Can someone tell me what is wrong in this code? I will be grateful.
actions.xml
etc. my fire shirne have ItemID: [7507], ActionID: [2151].
Can someone tell me what is wrong in this code? I will be grateful.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2147 and item.actionid == 2151 then
doTransformItem(itemid.uid, 7760)
doPlayerAddMana(cid,-300)
doPlayerAddSoul(cid,-2)
doSendMagicEffect(frompos,39)
else
doPlayerSendCancel(cid,"You dont have mana or soul points.")
return true
end
end
actions.xml
Code:
<action itemid="2151" event="script" value="other/enchanting1.lua"/>