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

doSendAreaEffect

Serginov

Onkonkoronkonk
Joined
Jun 28, 2008
Messages
1,321
Reaction score
18
Location
Sweden - Dalarna
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
 
Back
Top