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

Lua [TFS 0.4] Hp bonus

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Solutions
1
Reaction score
5
Location
Poland
I have script:
local function b(cid)
local health = getCreatureMaxHealth(cid)
if isPlayer(cid) then
setCreatureMaxHealth(cid, health+(health/100*config.hppercent))
end
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
local hp = getCreatureMaxHealth(cid)

if((config.yourself and itemEx.uid == cid) or not config.yourself) then
addEvent(b, 1, cid)
addEvent(setCreatureMaxHealth, 60000, cid, hp)
end
return true
end

It add +15% hp but after relog i got error: creature not found
How repair it?
 
Last edited:
Back
Top