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

Lua TFS 1.0 effect posion on function Game.getSpectators

Engradiel

Member
Joined
May 3, 2009
Messages
175
Solutions
1
Reaction score
20
Location
Brazil
Hello guys, I wish that you can help me.

I wanna use the command:
local place = Game.getSpectators({x = 32594, y = 32745, z = 7}, false, false, 3, 3, 3, 3) -- coordenates, multiflood, only player, e,d,n,s

in:
Position(x, y, z):sendMagicEffect(tonumber(COMBAT_PHYSICALDAMAGE))

To effect appear in all the configurated areas.

Can someone help me?
 
umm.. umm.. UMM xD
getSpectators gives metatables of players.

what you want to do is: generate positions like this:
Code:
    local position= {}
    for x = 32591, 32597 do
        for y = 32742, 32748 do
            local tempPos = {x=x, y=y, z=9}
            table.insert(position, tempPos)
        end  
    end

Code:
for x=1, #position do
    position[x]:sendMagicEffect(CONST_ME_???)
end

that engrish though :D

You don't really need to make table, but its good practice.
 
Back
Top