In TreasuresOfTokuno.cs
Around line 223 you will find:

C#:
//const double A = 8.63316841 * Math.Pow( 10, -4 );
const double A = 0.000863316841;
//const double B = 4.25531915 * Math.Pow( 10, -6 );
const double B = 0.00000425531915;

double chance = A * Math.Pow(10, B * x);

if (chance > Utility.RandomDouble())

You can ignore the formula,and just change the chance variable in the if statement for your desired chance,example with 1% chance for drop:
C#:
if (0.01 > Utility.RandomDouble()) //Chance is now 1%
 
In TreasuresOfTokuno.cs
Around line 223 you will find:

C#:
//const double A = 8.63316841 * Math.Pow( 10, -4 );
const double A = 0.000863316841;
//const double B = 4.25531915 * Math.Pow( 10, -6 );
const double B = 0.00000425531915;

double chance = A * Math.Pow(10, B * x);

if (chance > Utility.RandomDouble())

You can ignore the formula,and just change the chance variable in the if statement for your desired chance,example with 1% chance for drop:
C#:
if (0.01 > Utility.RandomDouble()) //Chance is now 1%
Ty very much =D
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 105 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 91 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 67 Online
    • 190 Peak
  • Arth
    Custom (Modern)
    • Players
    • 40 Online
    • 46 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 39 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 36 Online
    • 48 Peak
  • Insane UO
    Endless Journey
    • Players
    • 24 Online
    • 128 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 15 Online
    • 172 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 12 Online
    • 32 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 11 Online
    • 30 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back