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

Fix/Patch Monsters Double Hit

Nottinghster

Tibia World RPG Developer
Joined
Oct 24, 2007
Messages
1,511
Solutions
4
Reaction score
363
Location
Brazil - Rio de Janeiro
In 20/February/2011, when my server was online, many players reported that the monsters attacked 2 times in a row, so I went looking for the reason.

Once I find the reason and fix it, many owners of OTServ came to ask me how I had fixed this problem, and then I passed the fix for them.

Today, after a long time and after seeing this thread, I am releasing the fix for you :D

NOTE: Patch for sources based in OTServ_SVN 0.6.3 (Avesta)

In monster.cpp, find: void Monster::eek:nAttackedCreatureDissapear(bool isLogout)

then replace:
Code:
extraMeleeAttack = true

to:
Code:
extraMeleeAttack = false

Now in void Monster::doAttacking(uint32_t interval)

replace:
Code:
extraMeleeAttack = true

to:
Code:
extraMeleeAttack = false

Enjoy ;]
 
Last edited:
5

53701688

Guest
In 20/February/2011, when my server was online, many players reported that the monsters attacked 2 times in a row, so I went looking for the reason.

Once I find the reason and fix it, many owners of OTServ came to ask me how I had fixed this problem, and then I passed the fix for them.

Today, after a long time and after seeing this thread, I am releasing the fix for you :D

In monster.cpp, find: void Monster::eek:nAttackedCreatureDissapear(bool isLogout)

then replace:
Code:
extraMeleeAttack = true

to:
Code:
extraMeleeAttack = false

Now in void Monster::doAttacking(uint32_t interval)

replace:
Code:
extraMeleeAttack = true

to:
Code:
extraMeleeAttack = false

Enjoy ;]


This doesnt fix it the "double hit" is still there
 

ond

Veteran OT User
Joined
Mar 24, 2008
Messages
2,739
Solutions
22
Reaction score
460
Location
Sweden
And even if it return the double hit false, you can run in a certain way with monsters that will result in that they don't even hit you
 
Top