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

(urgent) need this Script

kiokis

New Member
Joined
Aug 20, 2009
Messages
33
Reaction score
0
I urgently need this script.

the picture explains everything.

rw163t.png


thank you very much for reading this post.
This publication, put it in this forum, because you have trained people here.
 
Last edited:
I can do this for 5 euro, if interesed come on pm.

it doesn't worth it

Lua:
local function checkMonsters(from, to)
	local t = {}
	for x = from.x, to.x do
		for y = from.y, to.y do
			for z = from.z, to.z do
				local c = getTopCreature({x = x , y = y, z = z}).uid
				if isMonster(c) then
					table.insert(t, c)
				end
			end
		end
	end
	return t
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local check = checkMonsters({x = 100, y = 100, z = 7}, {x = 100, y = 100, z = 7}) -- monsters area
	if #check >= 1 then
		doPlayerSendCancel(cid, 'sorry you have to kill all monsters first')
	else
		doTeleportThing(cid, {x=100,y=100,z=7}) -- teleport room position
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
	end
	return true
end

enjoy free :p
 
Back
Top