• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua turn off disappearing monsters

thomson9292

New Member
Joined
Feb 28, 2017
Messages
97
Solutions
1
Reaction score
2
How to turn off disappearing monsters when they move too far from respawn place?
I'm using 1.2 tfs, tibia 10.98
 
I dont know atm but i think on the forum you have a passive monsters source edit, you can look how works and edit if you need changes like return to the spawn when monster is far
 
Code:
if (!isInSpawnRange(position)) {
g_game.internalTeleport(this, masterPos);
setIdle(true);
}

I think this part is about summons.
Or I am wrong and if I delete this part monsters can run as far as they want?
nope... this code is to teleport the monsters to own spawn position when it is not in the range of the spawn area ...
so, if you want remove it you need call another function, I don't remember what, but seems that is removeCreature
 
Back
Top