Hello everyone. I have a problem with this script, it is that does not work .. I am confident that this forum will be the person who could help me improve this spell. And if anyone would be able to add a line that makes that life and mana back to previous settings before using the spell would be very grateful! For help, give reputation. Thank you and best regards!
Sorry for the translation if is bad.
Sorry for the translation if is bad.
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 1 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation (cid, 6)
doSendMagicEffect (getCreaturePosition (cid), 10)
doCreatureChangeOutfit (cid, {lookType = 244})
local maxHp = getCreatureMaxHealth (cid)
local newHp = (3000 + maxHp)
setCreatureMaxHealth (cid, newHp)
local maxMp = getCreatureMaxMana (cid)
local newMp = (3000 + maxMp)
setCreatureMaxMana (cid, newMp)
else
end
end
end