Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-16-2008, 01:46 PM
renoofturks1
Sarnak
 
Join Date: Jan 2008
Posts: 60
Default 2 Hand Damage Bonus

This formula works for all the 2 handers that I have tested. It should work up to level 80. As for it's implementation into C++, It should work, I have never worked with C++ before so if there is a better way to do it. Let me know. This would go in attack.cpp in zone. Any thoughts/input appreciated.

Code:
if (Weapon->Delay <=27)
	return (BasicBonus + 1);
if (Weapon->Delay <=39)
	return (BasicBonus + ((GetLevel()-27)/4));
if (Weapon->Delay <= 41)
	return (BasicBonus + ((GetLevel()-27)/4) + 1);
if (Weapon->Delay >= 42)
	if (GetLevel() > 54)
		int levelint = 1;
	if (GetLevel() > 56)
		levelint += 1;
	if (GetLevel() > 58)
		levelint += 1;
	if (GetLevel() > 59)
		levelint += 1;
	if (GetLevel() > 66)
		levelint += 1;
	if (GetLevel() > 71)
		levelint += 1;
	if (Weapon->Delay > 42)
		delayint = 1;
	if (Weapon->Delay >44)
		delayint += 1;

	return (((Weapon->Delay-37)/3) +  ((GetLevel()-25)/ 5) + ((Weapon->Delay * (GetLevel()-50 + levelint))/40) + delayint + BasicBonus);
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:09 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3