This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Talk:Statistics"

From Project 1999 Wiki
Jump to: navigation, search
(Created page with "Classic Agi bonus from Torven of TAKP // note: modern EQ does this here: GetAGI() > 40 ? (GetAGI() - 40) * 8000 / 36000 : 0; // old clients had a different calculation. This...")
 
(Replaced content with "Classic Agi bonus from Torven of TAKP File:agibonus.png")
Line 1: Line 1:
 
Classic Agi bonus from Torven of TAKP
 
Classic Agi bonus from Torven of TAKP
// note: modern EQ does this here: GetAGI() > 40 ? (GetAGI() - 40) * 8000 / 36000 : 0;
+
[[File:agibonus.png]]
// old clients had a different calculation. This is the precise output, based on a decompile done by Secrets
+
int agiAvoidance = 0;
+
if (GetAGI() < 40)
+
{
+
agiAvoidance = (25 * (GetAGI() - 40)) / 40;
+
}
+
else if (GetAGI() >= 60 && GetAGI() <= 74)
+
{
+
agiAvoidance = (2 * (28 - ((200 - GetAGI()) / 5))) / 3;
+
}
+
else if (GetAGI() >= 75)
+
{
+
int bonusAdj = 80;
+
 
+
if (GetLevel() < 7)
+
{
+
bonusAdj = 35;
+
}
+
else if (GetLevel() < 20)
+
{
+
bonusAdj = 55;
+
}
+
else if (GetLevel() < 40)
+
{
+
bonusAdj = 70;
+
}
+
 
+
if (GetAGI() < 200)
+
{
+
agiAvoidance = (2 * (bonusAdj - ((200 - GetAGI()) / 5))) / 3;
+
}
+
else
+
{
+
agiAvoidance = 2 * bonusAdj / 3;
+
}
+

Revision as of 09:29, 29 January 2019

Classic Agi bonus from Torven of TAKP File:Agibonus.png