• 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 Flag system

frompos and topos are correct?

try replacing
Code:
            for v = frompos.x , topos.x do
				for k = frompos.y , topos.y do
					for i = 1, 200 do
						position = {x = v, y = k, z = 7, stackpos = i}
						pid = getThingfromPos(position).uid
							if(pid ~= nil and isPlayer(pid)) then
								table.insert(players, pid)
							end
					end
				end
			end
with
Code:
            for x = frompos.x , topos.x do
				for y = frompos.y , topos.y do
					for z = frompos.z , topos.z do
						local pid = getTopCreature({x = x, y = y, z = z}).uid
							if pid ~= 0 and isPlayer(pid) then
								table.insert(players, pid)
							end
					end
				end
			end
 
Back
Top