Someone to test it for me? please. I do not know if is working.
...and add the exhaust:
...and add the exhaust:
Code:
function onSay(cid, words, param)
local config =
{
reqPlayerLevel = 9,
reqPlayerMana = 20,
}
local lvl = getPlayerLevel(cid)
local mlvl = getPlayerMagLevel(cid)
if getPlayerLevel(cid) < config.reqPlayerLevel then
doPlayerSendCancel(cid, "You are not level "..config.reqPlayerLevel.." or higher.".")
if getPlayerMana(cid) < config.reqPlayerMana then
doPlayerSendCancel(cid, "You need "..config.reqPlayerMana.." mana points to cast this spell.")
elseif ((getPlayerLevel(cid) => config.reqPlayerLevel) and (getPlayerMana(cid) => config.reqPlayerMana)) then
doCreatureAddHealth(cid, (1, (lvl + 4 * mlvl / 100))
doCreatureSay(cid, "exura", TALKTYPE_SAY)
end
end
return TRUE
end