Hello,
i have a script:
Im wanna then add a 20% hp/ 20% mp/remove/send magic effect and set a healing spells exhaused...
Its add a hp/mana, remove item, send magic effect but, not add a exhaused -.-
Someone can help me? Please.
Erexo.
i have a script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
ppos = getPlayerPosition(cid)
doCreatureAddMana(cid, getCreatureMaxMana(cid) / 5)
doCreatureAddHealth(cid, getCreatureMaxMana(cid) / 5)
doSendMagicEffect(ppos, 40)
doRemoveItem(item.uid,1)
return true
end
Im wanna then add a 20% hp/ 20% mp/remove/send magic effect and set a healing spells exhaused...
Its add a hp/mana, remove item, send magic effect but, not add a exhaused -.-
Someone can help me? Please.
Erexo.