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

TFS 1.X+ Nostalrius bug attack

Jhon_

Well-Known Member
Joined
May 7, 2019
Messages
54
Reaction score
61
Engine.

the monster cannot attack the player when he is walking, but in the player he can attack the monster, has anyone identified this bug?

Movie: showing what's going on


does anyone here know how to fix this bug?

Up

Up

Up
 

joaobobalhao

Member
Joined
Aug 30, 2011
Messages
18
Reaction score
6
I fixed it on my Nostalrius project.

You need modify sources in monster.cpp file, method doAttacking.
Change:
C++:
if (OTSYS_TIME() >= earliestAttackTime && !isFleeing()) {
To this:
C++:
if (OTSYS_TIME() >= earliestAttackTime) {



1610052100552.png

And recompile sources.

I hope I helped you =]
 

Ezzz

Developer
Joined
Feb 26, 2010
Messages
1,779
Solutions
2
Reaction score
577
Location
Caracas, Venezuela
Sorry to hear these many people are having this issue, I will try to debug and fix it when I have time and commit the bug fix to GitHub Nostalrius, which might be later tonight or tomorrow, trying to find time among my real life duties and works.
 

tarantonio

Old School Player
Joined
Jun 21, 2009
Messages
826
Solutions
1
Reaction score
235
Sorry to hear these many people are having this issue, I will try to debug and fix it when I have time and commit the bug fix to GitHub Nostalrius, which might be later tonight or tomorrow, trying to find time among my real life duties and works.
Did you find the bug on sources?
 
Top