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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-21-2008, 05:55 PM
Varkalas D`Lonovan
Fire Beetle
 
Join Date: Jun 2006
Posts: 10
Default GoD: Elemental Agility AA

[zone/attack.cpp, ~line 293]

find:

Code:
	AA_mod += 3*GetAA(aaPhysicalEnhancement);
	AA_mod += 2*GetAA(aaLightningReflexes);
	AA_mod += GetAA(aaReflexiveMastery);
	chancetohit -= chancetohit * AA_mod / 100;
add below:

Code:
	//	Magician AA:  Elemental Agility
	//	Applies 2, 5, or 10% damage avoidance
	/////////////////////////////////////////
	uint16 aaPetMod = 0;
	if (defender->IsPet() && defender->GetOwner()->IsClient()) {
		switch (GetAA(aaElementalAgility)) {  // defender->GetOwner()->GetAA(aaElementalAgility) ??
			case 1:
				aaPetMod = 2;
				break;
			case 2:
				aaPetMod = 5;
				break;
			case 3:
				aaPetMod = 10;
				break;
		}
		chancetohit -= chancetohit * aaPetMod / 100;
	}
Reply With Quote
  #2  
Old 11-21-2008, 05:57 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Had a feeling we'd see more from you. Nice work, I'm sure you'll make for some happy mages =)
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 07:05 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3