Olá,
bom galera, queria saber se tem como adicionar mais áreas nessa função:
table.insert(self.positions, {x=1058, y=1057, z=7})
Tem como colocar mais áreas em x, y, z ?
O script trabalha em enviar efeitos naquela área.
Para ser mais claro, aqui a função:
function Rain:getPositionInArea(fromPos, toPos) self.positions = {} for Y = fromPos.y, toPos.y do for X = fromPos.x, toPos.x do if (getTileThingByPos({x=1047, y=1057, z=7, stackpos=0}).itemid ~= 0) then if not (string.match(string.lower(getItemNameById(getTileThingByPos({x=1047, y=1057, z=7, stackpos=0}).itemid)), "water")) then table.insert(self.positions, {x=1047, y=1057, z=7}) end end end end return true end
Obrigado desde já