• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need help with mana rune for pally

LUA:
function onUse (cid, item, fromPosition, itemEx, toPosition)
    local level, mlevel = getPlayerLevel(cid), getPlayerMagLevel(cid)
    local mana_min, mana_max, health_min, health_max = (level * 5) + (mlevel * 3) - 55, (level * 6) + (mlevel * 8), (level * 5) + (mlevel * 3) - 55, (level * 6) + (mlevel * 8)
    if isPlayer(itemEx.uid) then
        doCreatureSay(itemEx.uid, "Aaaah..", TALKTYPE_ORANGE_1)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
        doPlayerAddMana(cid, math.random(mana_min, mana_max))
        doCreatureAddHealth(cid, math.random(health_min, health_max))
        end
    return true
end

You really crazy Ninja Thank You Its Work prefect :w00t:

But why mana don't on show ?

i can't see how much mana it add i see heal only
 
It should display both health and mana change if you've got showHealingDamage (I think it's called that) enabled. Which TFS version are you using by the way?
 
That's weird, tested this on 0.3.6. :p

wNC6XnA.png
 
Back
Top