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

Solved How to limt a monsters spawn - so they teleport back to their spawn after a distance

no like currently if a monster that is agressive sees me, it will chase me to no end...
i would like to limt the distance that it can chase me
 
Lua:
function onStepIn(cid, item, position, fromPosition)
	if(not isPlayer(cid)) then
		doRemoveCreature(cid)
	end
	return true
end

or edit these values in config.lua(and spawn sizes in mapeditor):
Lua:
deSpawnRange = 2
deSpawnRadius = 30
 
Back
Top