Hello i have a manarune that i just got to work, so it addes mana to a player, but now i need a rune that adds health to a player. so i wounder if some one knows how to edit this rune to add health.
i tryed to do this:
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
PHP:
local MIN = 550
local MAX = 1250
function onUse(cid, item, fromPosition, itemEx, interval, lastexecution)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 100)) then
doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above use this mana rune.", TALKTYPE_ORANGE_1)
return TRUE
end
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
return TRUE
end
i tryed to do this:
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end