Hello guys Im looking for script which gives you hp depense on your hp max or level or something. Doesen't metter.
I have something like this but it doesn't work ;/
And anyone know how to make item which work 100% like uh rune but in actions? I tried copy code from uh to actions script but faild :/ Please answer!
I have something like this but it doesn't work ;/
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not isPlayer(cid) then
return true
end
local x = config[getMaxHealth(cid)]
if isPlayer(itemEx.uid) then
doCreatureAddHealth(itemEx.uid, math.floor(math.random(x.hp[1], x.hp[2]) / (cid == itemEx.uid and 1 or 2)))
doSendMagicEffect(getThingPos(itemEx.uid), 12)
return true
end
And anyone know how to make item which work 100% like uh rune but in actions? I tried copy code from uh to actions script but faild :/ Please answer!