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

Windows I need help ! how to fix Healing zone in temple?

godleon

Banned User
Joined
Apr 10, 2012
Messages
212
Reaction score
3
Hello, can any give me any ideas how to make 8 tiles heal in my temple.
 
create a Globalevent........

In globalevents.xml add this line:
Code:
<globalevent name="HealTile" interval="10" event="script" value="Heal tile.lua"/>

Then create a lua file named Heal tile.lua and add this code inside:
Code:
function onThink(interval, lastExecution, thinkInterval)
local Tile={
[1]={x=1000,y=1000,z=7}, ---- Change this for the correct coordinate of your tile
[2]={x=1000,y=1000,z=7}, --- ""
[3]={x=1000,y=1000,z=7}, --- ""
[4]={x=1000,y=1000,z=7}, --- ""
[5]={x=1000,y=1000,z=7}, --- ""
[6]={x=1000,y=1000,z=7}, --- ""
[7]={x=1000,y=1000,z=7}, --- ""
[8]={x=1000,y=1000,z=7}, --- ""
[9]={x=1000,y=1000,z=7}, ---""
[10]={x=1000,y=1000,z=7} --- ""
}

local Min,Max=100,200 ---- the min and max value of healing!!!!!!

for i=1,#Tile do
local thing = getThingFromPos({x=Tile[i].x, y=Tile[i].y, z=Tile[i].z, stackpos=253})
doSendMagicEffect(Tile[i],CONST_ME_FIREWORK_YELLOW)
if (isPlayer(thing.uid)) then
   doCreatureAddHealth(thing.uid, math.random(Min,Max))
end
end

return true
end





And Done!! =)
 
Last edited:
Back
Top