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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2008, 03:53 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default Swift Journey AA

Another relatively easy one that just hasn't been implemented yet.

In zone/mob.cpp, change this
Code:
float Mob::_GetMovementSpeed(int mod) const {
	if (IsRooted())
		return 0.0f;
	
	float speed_mod = 1.0f;
	
	if (IsClient()){
		int32 aa_item = CastToClient()->GetAA(aaInnateRunSpeed);
		if (aa_item > 0 && aa_item < 4){
			speed_mod += aa_item * 0.10;
		}
		//partial implementation of Fleet of Foot
		aa_item = CastToClient()->GetAA(aaFleetofFoot);
		if (aa_item > 0 && aa_item < 6){
			speed_mod += aa_item * 0.10;
		}
		//Selo's Enduring Cadence should be +7% per level
	}
to this
Code:
float Mob::_GetMovementSpeed(int mod) const {
	// List of movement speed modifiers, including AAs & spells:
	// http://everquest.allakhazam.com/db/item.html?item=1721;page=1;howmany=50#m10822246245352
	if (IsRooted())
		return 0.0f;
	
	float speed_mod = 1.0f;
	
	if (IsClient()){
		int32 aa_item = CastToClient()->GetAA(aaInnateRunSpeed);
		if (aa_item > 0 && aa_item < 4){
			speed_mod += aa_item * 0.10;
		}
		//partial implementation of Fleet of Foot
		aa_item = CastToClient()->GetAA(aaFleetofFoot);
		if (aa_item > 0 && aa_item < 6){
			speed_mod += aa_item * 0.10;
		}
		aa_item = CastToClient()->GetAA(aaSwiftJourney);
		if (aa_item > 0 && aa_item < 3) {
			speed_mod += aa_item * 0.10;
		}
		//Selo's Enduring Cadence should be +7% per level
	}
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #2  
Old 09-26-2008, 06:02 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I think this might be an easier way to do all of the calculations, since GetAA() returns 0 by default:
Code:
float Mob::_GetMovementSpeed(int mod) const {
	// List of movement speed modifiers, including AAs & spells:
	// http://everquest.allakhazam.com/db/item.html?item=1721;page=1;howmany=50#m10822246245352
	if (IsRooted())
		return 0.0f;
	
	float speed_mod = 1.0f;
	
	if (IsClient()){
		speed_mod += ((CastToClient()->GetAA(aaInnateRunSpeed) * 0.10)
			+ (CastToClient()->GetAA(aaFleetofFoot) * 0.10)
			+ (CastToClient()->GetAA(aaSwiftJourney) * 0.10)
		);

		//Selo's Enduring Cadence should be +7% per level
	}
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
Reply


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 10:43 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