• 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 Help please fast :(

Well, im trying to merge Cykotitan script, when someone dies it should remove monsters from a speical area. But i get (LuadoRemoveCreature) Creature not found.

Its, removing the monsters from area but these errors pop ups on the console. Tfs 0.3.6!

LUA:
local from = {x=100, y=100, z=7}
local to = {x=200, y=200, z=7}

local monsters = {}

for x = from.x, to.x do
	for y = from.y, to.y do
		for z = from.z, to.z do
			local v = getTopCreature({x=x, y=y, z=z})
			if v.type == 1 then
				return
			elseif v.type == 2 then
				table.insert(monsters, v.uid)
			end
		end
	end
end

for i = 1, #monsters do
	doRemoveCreature(monsters[i])
end

Please help rep!

You don't have that function?
 
Nvm, I read the error wrong.

Which TFS 0.3.6 do you use? I tested it on 0.3.6pl1 and it worked fine.
 
Last edited:
Back
Top