Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Damage Counter bug

Initiate Mage
Joined
Apr 11, 2012
Messages
69
Reaction score
1
Hey guys, look, I have a problem with the Damage Counter command...
the 1st problem is that the "Dealt Damage" is counting only Sword hits and doesn't count any damage caused by sg, revs or any other weapon... (the taken damage is fine)
the 2nd problem is that the whole command (Dealt & Taken) doesn't reset to 0 each round so it's just keep growing and growing from round to round...
Please help me to fix that bug cuz i'm realy pissed off :(
 
Hi, I'm Omar!
Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
If you're using the released damage counter, put this code at the bottom of ZMatch::InitRound()
Code:
	ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc();
	ZGetGame()->m_pMyCharacter->GetStatus().Ref().nDamageTaken = 0;
	ZGetGame()->m_pMyCharacter->GetStatus().Ref().nDamageDealt = 0;
	ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc();
 
Upvote 0
Back
Top