public static void HandleKill(Mobile victim, Mobile killer)double gpoints = pm.GauntletPoints;
            int luck = Math.Max(0, pm.RealLuck);
            pm.GauntletPoints += (int)Math.Max(0, (bc.Fame * (1 + Math.Sqrt(luck) / 100)) / 2);
            const double A = 0.000463316841;  //const double A = 0.000863316841;
            const double B = 0.00000425531915;
            double chance = A * Math.Pow(10, B * gpoints);
            double roll = Utility.RandomDouble();Ty =DIn my demon knight.cs,there is next section:
C#:public static void HandleKill(Mobile victim, Mobile killer)
And the formula inside calculates the chance to drop artifacts:
C#:double gpoints = pm.GauntletPoints; int luck = Math.Max(0, pm.RealLuck); pm.GauntletPoints += (int)Math.Max(0, (bc.Fame * (1 + Math.Sqrt(luck) / 100)) / 2); const double A = 0.000463316841; //const double A = 0.000863316841; const double B = 0.00000425531915; double chance = A * Math.Pow(10, B * gpoints); double roll = Utility.RandomDouble();

We use essential cookies to make this site work, and optional cookies to enhance your experience.
