function onThink(cid, interval, lastExecution)
for areax = 994, 1004 do -- manage this
for areay = 993, 1004 do -- and this
area = {x=areax, y=areay, z=7, stackpos=253}
pl = getThingFromPos(area)
if pl.itemid >= 1 then
if getCreatureHealth(pl.uid) ~= getCreatureMaxHealth(pl.uid) and getPlayerAccess(pl.uid) <= 2 then
pos = getCreaturePosition(pl.uid)
doCreatureAddHealth(pl.uid, math.random(100,300)) -- and this
doSendMagicEffect(pos, 12)
end
end
end
end
return true
end