nicktm
Otland Helper
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