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

Summons Not Following On Attack

Exiled Pain

Fervid Learner
Joined
Jan 8, 2008
Messages
552
Reaction score
4
Hi I just compile my OT a few days ago with the latest
SVN from TAGs 853 for TFS.... and I'm having one problem that I notice.

When you command summons to attack they won't follow, if the monsters gets close to them they will attack but the won't go towards the monsters....

Have any idea how to fix this??
I would appreciate...

Thanks
 
Seems not.... thought it was working there for a sec in the latest update 861, but seems not fully working, so any ideas or suggestions??

The strangest thing is.... when I had just compile, went in with my God character and it worked... after five minutes (didn't get any error or anything) tried again with a regular character and it didn't work from that point forward,not for anyone (not even the God character).
 
Last edited:
I refresh this thread cause i have this weird bug also. The monster follow to their master but no to their target. They move only when the master move herself. I saw some bosses summons which doesn't know what to do and stay at their spawn place. Some of them 'work' fine and go to the player. I have no idea what sort of thing it can be. I guess it related to monster.cpp (around 600 line) but I'm not sure.


Oh... i forgot if you attack creature before summoning monster, then our summon go and kill him, after that it doing nothing. It something with this i think
Code:
else if(followCreature != attackedCreature)
{
	//This happens just after a master orders an attack, so lets follow it aswell.
	setFollowCreature(attackedCreature);
}
monster.cpp (603 line) I will think about that

##Edit

Well i fix it... i think so.
i add that code
Code:
else if(getMaster()->getAttackedCreature())			
	selectTarget(attackedCreature);
After that condition
Code:
if(!attackedCreature)
{
	if(getMaster() && getMaster()->getAttackedCreature())
	{
		///This happens if the monster is summoned during combat
		selectTarget(getMaster()->getAttackedCreature());
	}
	else if(getMaster() != followCreature)
	{
		//Our master has not ordered us to attack anything, lets follow him around instead.
		setFollowCreature(getMaster());
	}
	else if(attackedCreature == this)
		setFollowCreature(NULL);
	else if(followCreature != attackedCreature)
	{
		//This happens just after a master orders an attack, so lets follow it aswell.
		setFollowCreature(attackedCreature);
	}
}
(it should be around 590 line in monster.cpp). I test it and works fine but summon sometime have 'laggy'. Well... it follow you but sometimes he stop and wait for something. So, i guess there are still something to do.
 
Last edited:
I really apreciate your post, and for taking the time to share this... I'll test it out.

And if anyone else has more REVs for this weird bug please share them..

Ones again thanks man!!:thumbup:
 
I've got the same problem x.x but im using 2.0 tags rev:1008
I added the code szuwar gave and it compiles fine but. now the summons wont even follow there target o.o they just dont move at all

any ideas what i might've done wrong or might fix it x.x?
 
Last edited:
Back
Top