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?