So i got my paladin rune to work but it only show +xxx mana and i want it to show hp to (like spirit rune) but i cant get it to do so
tfs 0.4 3887
anyone know what i need to add to this to get it show hp to?
tfs 0.4 3887
XML:
local vocations = {3, 7}
function onUse(cid, item, frompos, item2, topos)
if isInArray(vocations,getPlayerVocation(cid)) then
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Holy Spiritrune",19)
mini = (getPlayerLevel(cid) * 2.4 + getPlayerMagLevel(cid) * 10)
maxi = (getPlayerLevel(cid) * 2.4 + getPlayerMagLevel(cid) * 10)
if doCreatureAddHealth(cid, math.random(mini, maxi)) == LUA_ERROR or doPlayerAddMana(cid, math.random(mini, maxi)) == LUA_ERROR then
return FALSE
end
else
doPlayerSendCancel(cid, 'This rune is only useable on Paladins.')
end
return true
end
anyone know what i need to add to this to get it show hp to?