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

Monster walk back (or teleport)

Blixmo

Member
Joined
Dec 8, 2011
Messages
135
Reaction score
16
Location
Sweden
Heya,
I'm messing around a bit with the latest TFS 1.0 sources and try to find out how to fix so the monsters walk back (or gets teleported) to their spawn when they loose target of a player. Where in the sources should I look for this? Doesn't seems to work by default.

Thanks,
/Blix
 
Try this one (replace function in file "monster.cpp" with this code):
Code:
void Monster::onAttackedCreatureDisappear(bool)
{
  attackTicks = 0;
  extraMeleeAttack = true;

  g_game.internalTeleport(this, masterPos);
  setIdle(true);
}
 
Back
Top