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

help with healing/mana tile

wishy85

GOD Smokey
Joined
May 10, 2010
Messages
150
Reaction score
3
Location
Australia
need help with a tile that heals health and mana to full or example make it heal mana and health like 900000
or something like that i found a couple scripts that dont work i have naxed6.0 plz if any1 can help ill give rep
thanks....
 
LUA:
local positions = {
{ x = 1059, y = 1000, z = 8},	-----You have to write here all positions which you want to heal
{ x = 1059, y = 1004, z = 8}
}
function onThink(cid, interval, lastExecution)
for _, pos in ipairs(positions) do
pl = getTopCreature(pos)
doSendMagicEffect(pos, 12)
if pl.itemid == 1 then
doCreatureAddHealth(pl.uid, math.random(100,300)) -- if want to full change to "getCreatureMaxHealth(cid)-getCreatureHealth(cid)"
doCreatureAddMana(pl.uid, math.random(100,300)) -- if want to full change to "getCreatureMaxMana(cid)-getCreatureMana(cid)"
end
end
return TRUE
end
 
globalevents.xml
Code:
<globalevent name="heal" interval="1" event="script" value="heal.lua"/>
and globalevents/scripts/heal.lua paste this code which I gave you first
 
Back
Top