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

Healing Tiles! Please Help!

nicktm

Otland Helper
Joined
Oct 9, 2009
Messages
106
Reaction score
3
Location
Griffin, GA
Ok Otland I have a script here today and it works fine, but i cant change the effect id, because its in words i tried like orange_fire but it didnt work :( can someone please change it to a id somehow? ive tried to steal from other scripts but didnt work so please! rep ++

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=999,y=999,z=7}, --- ""
[3]={x=1000,y=999,z=7}, --- ""
[4]={x=1001,y=999,z=7}, --- ""
[5]={x=999,y=1000,z=7}, --- ""
[6]={x=1001,y=1000,z=7}, --- ""
[7]={x=999,y=1001,z=7}, --- ""
[8]={x=1000,y=1001,z=7}, --- ""
[9]={x=1001,y=1001,z=7}, ---""
[10]={x=1000,y=1000,z=7} --- ""
}

local Min,Max=99999999,99999999 ---- 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
 
If you want a different magic effect, but you don't know the name, you can look in 000-constant.lua. You can also use the talkactions /z number ingame if you don't know how they look.
Btw you can use a name or a number in the script.
 
Last edited:
Back
Top