• 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!

TFS 1.X+ Custom UH

Sp0tl3ss

Nestalia.org
Joined
Jul 19, 2014
Messages
279
Reaction score
12
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local level = player:getLevel()
    local magLevel = player:getMagicLevel()
    local min = (level * 1.5) + (magLevel * 8) - 50
    local max = (level * 2.5) + (magLevel * 10)
    player:addhealth(math.random(min, max))
    player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
    player:say("I Feel Nice!", TALKTYPE_MONSTER_SAY)
    return true
end

addhealth is the issue what do i put insead?
 
Back
Top