Page 1 of 1

Mechanics of Tokuno Artifact Drops

Posted: Wed Mar 06, 2013 7:48 pm
by Agony
Ok, I've asked around and gotten just about every idea in the book as feedback for this question, so I thought I would ask here.
What are the mechanics involved with the Tokuno artifact drop system? Aside from luck being a major modifier in the equation, does anyone know the base formula that determines the drops?

Re: Mechanics of Tokuno Artifact Drops

Posted: Thu Mar 07, 2013 5:52 pm
by Cornbread
You stated it. More luck more artifacts. With 7200 or so luck expect to fill your backpack very quickly.

Re: Mechanics of Tokuno Artifact Drops

Posted: Thu Mar 07, 2013 6:33 pm
by Legendaries
I think they were asking along the lines of what the actual formula was...

Re: Mechanics of Tokuno Artifact Drops

Posted: Thu Mar 07, 2013 6:46 pm
by Agony
Yeah, luck is definitely one determining factor. But just like dex is to healing speed, it's a rate modifier. I'm curious as to what the actual base algorithm is for the drop system.

Re: Mechanics of Tokuno Artifact Drops

Posted: Thu Mar 07, 2013 8:32 pm
by Tacityl
In the base Run UO code, there is this little gem:

Code: Select all

		public static bool TCheckArtifactChance( Mobile m, BaseCreature bc )
		{
			if ( !Core.AOS )
				return false;

			double fame = (double)bc.Fame;

			if ( fame > 32000 )
				fame = 32000;

			double chance = 1 / ( Math.Max( 10, 100 * ( 0.83 - Math.Round( Math.Log( Math.Round( fame / 6000, 3 ) + 0.001, 10 ), 3 ) ) ) * ( 100 - Math.Sqrt( m.Luck ) ) / 100.0 );

			return chance > Utility.RandomDouble();
		}
EDIT: After removing the floating point preservation, applying some algebraic reduction, and simplifying some C# functions, I get:

1 / MAX( 10, (100 - sqrt(LUCK)) * (4.608 - log10(FAME)) )

where LUCK is the player's luck and FAME is the mob's fame. The MAX in the denominator ensures that your chance to get a drop can never get better than 1 in 10, regardless of your luck or the mob's fame.

Of course, Excelsior could have changed all of this. But reading code is fun :)

Re: Mechanics of Tokuno Artifact Drops

Posted: Thu Mar 07, 2013 8:42 pm
by Agony
Oh wow.. thanks! :)