Serginov
Onkonkoronkonk
Simple and not very useful, but sometimes it might be!
Code:
function doSendAreaEffect(fromPosx, fromPosy, fromPosz, toPosx, toPosy, toPosz, effect)
local fromPosition, toPosition = {fromPosx, fromPosy, fromPosz}, {toPosx, toPosy, toPosz}
for x = fromPosition[1], toPosition[1] do
for y = fromPosition[2], toPosition[2] do
for z = fromPosition[3], toPosition[3] do
local pos = {x = x, y = y, z = z}
doSendMagicEffect(pos, effect)
end
end
end
end