EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Berserker Dead Aim AA fix (https://www.eqemulator.org/forums/showthread.php?t=27640)

Wolftousen 03-07-2009 07:10 AM

Berserker Dead Aim AA fix
 
File: zone/attack.cpp
line: 272

Insert:

Code:

//Wolftousen - Add Berserker Dead Aim AA accuracy bonus for throwing
        if(skillinuse == THROWING)
        {
                switch(GetAA(aaDeadAim))
                {
                        case 1:
                                chancetohit = chancetohit * 105/100;
                                break;
                        case 2:
                                chancetohit = chancetohit * 110/100;
                                break;
                        case 3:
                                chancetohit = chancetohit * 115/100;
                                break;
                }
        }

Description: This adds the Berserkers Dead Aim AA to their throwing accuracy. It may not be in the right place in the function, but is in the right function I believe.

Wolftousen 03-07-2009 08:46 AM

To add to the above for the Rage Volley Discipline to work properly you also need to do the following to the same segment:

Code:

//Wolftousen - Add Berserker Dead Aim AA accuracy bonus for throwing
if(skillinuse == THROWING)
{
        if(isCasting() && CastingSpellID() == 6754) //if we are casting Rage Volley Discipline, we should always hit with it
        {
                chancetohit = 1001; //Rage volley is gaurenteed to hit
        }
        else
        {
                switch(GetAA(aaDeadAim))
                {
                        case 1:
                                chancetohit = chancetohit * 105/100;
                                break;
                        case 2:
                                chancetohit = chancetohit * 110/100;
                                break;
                        case 3:
                                chancetohit = chancetohit * 115/100;
                                break;
                }
        }
}


Wolftousen 03-08-2009 02:36 AM

this is actually Line 468 in the latest SVN, the original line number is from the downloaded source on eq emu site.


All times are GMT -4. The time now is 06:00 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.