Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 10-19-2005, 07:50 PM   #1 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: ECU, Greenville, NC
Age: 25
Posts: 145
Default Easy question, im just confused

if i changed the 1500 to 1 would that make the artifacts super easy to get or super hard to get? i always forget.
thanks


Code:
if ( boss is DemonKnight )
				chance = 1500 + (luck / 5);
bigwoodenhead is offline   Reply With Quote
Old 10-19-2005, 07:54 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Why don't you try it and find out?
Phantom is offline   Reply With Quote
Old 10-19-2005, 07:54 PM   #3 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Super easy.
Joeku is offline   Reply With Quote
Old 10-19-2005, 11:25 PM   #4 (permalink)
Newbie
 
Join Date: Sep 2005
Age: 38
Posts: 43
Default

Quote:
Originally Posted by Phantom
Why don't you try it and find out?
Quote:
Originally Posted by Joeku
Super easy.
Wow took him fewer words to be more helpful..........

Thanks Joeku.
Red_Satiin is offline   Reply With Quote
Old 10-19-2005, 11:31 PM   #5 (permalink)
Account Terminated
 
Join Date: Sep 2004
Location: westvirginia
Age: 30
Posts: 535
Send a message via AIM to masternightmage Send a message via MSN to masternightmage Send a message via Yahoo to masternightmage
Default

well they are just telling the truth! there is this thing on this forum called trail and error! you try it see what happens and if you get errors post them with the script here and then they will help you better!

Phantom, Daat, and others on this forum are like robots in chat rooms!

no offence guys

No one will script anything for you or tell you how if you dont at least try yourself first! and no they are not trying to be a ass to you but more on the line of helping you learn to script! We cant all be layz and ask other peole to do things for us! And only why to see hat does what is the Trail And Error i was talking about!
masternightmage is offline   Reply With Quote
Old 10-20-2005, 12:01 AM   #6 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 781
Default

Quote:
Originally Posted by Joeku
Super easy.
Eh? Reducing to 1 would make it nearly impossible.

I experimented with this quite alot on my testshard. The current default levels are pretty low. Here's what my research found out:

First of all, the luck value is an index into this table:

private static int[] m_LuckTable = new int[]

So depending on your luck, which is setup at a high of 1200 the values are scaled up. As an example:

With 1400 luck: The luck value is 5136 (1200 or higher will result with the same number)
With 1000 luck: 4641
With 200 luck: 1898
With 0 luck: 0

BTW, the luck value that is used for the actual chance roll comes from whoever has the most luck in the group and has looting rights on the Champ, regardless of party totals or anything else.

So looking at the initial default of the code, there are two parts to look at:

Code:
 if ( boss is DemonKnight )
chance = 1500 + (luck / 5);
else
chance = 750 + (luck / 10);

return chance;
}
and
Code:
 public static bool CheckArtifactChance( Mobile boss )
{
return GetArtifactChance( boss ) > Utility.Random( 100000 );
}
Basically in a nutshell, every 1000 chance points translates into a 1% increase of an Arti drop. So at 1200 luck the maximum chance is:

1500 + (5136 / 5) = 2527 or roughly a 2.5% chance to get an arti from a Dark Father. The else part of that equation above is for the champs in the side-rooms, as you can see the odds are greatly reduced for those with a maximum possiblity of: 750 + (5136 / 10) or roughly 1.2%. Very low! So changing that value from 1500 to 1 would be doing the complete OPPOSITE of what the person is wanting to accomplish, reducing the odds to about 1% and that's when someone with looting rights has 1200 luck!

I ended up modifing this formula to skew upwards to about 10% max on our shard, but that is only if several other random numbers come up max and luck is still a factor. Here's what we're using:

Code:
      int luck = LootPack.GetLuckChanceForKiller( boss ) ;
      int chance ;
      int extrachance = 750 + Utility.Random(2750) + Utility.Random(luck/2) ;
 
      if ( boss is DemonKnight ) 
             chance = 2000 + (luck / 3) + extrachance ;
            else  
              chance = 1000 + (luck / 10) + (extrachance/10) ;
Using the above formula someone with 1200 luck now has maximum chance of : 750 + 2750 + 2568 + 2000 + 1712, basically 9.7% in the "best" roll, and a side-spawn arti has a chance of around 2.1%. At 9.7% the drop is reasonable, a 10% chance doesn't mean 1 out of every 10 DFs will yield an Arti as each "event" is separate. I log when Artis drop and I've seen times where a group got 2-3 in a row and others where they got nothing all night long. Before the modification though at 2.5% it was practically fruitless and Doom was dead, with the change above I see people regularly making Doom runs because people are wearing Artis at the banks and they know it's possible. When I tested this I'd spawn 10 DFs at a time in GreenAcres, knock them down all at once and see what dropped, it was fairly reasonable and I probably went through about 1000 DFs before settling on the above formula. Feel free to use it (or the knowledge) to come up with one on your own. Cheers.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 10-20-2005, 12:07 AM   #7 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 1,042
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default Also...

Not to mention its basic math, its pretty self explanitory.

say luck is 1000

1500 + 1000 = 2500 / 5 = 500

Now try luck as 1

1500 + 1 = 1501 / 5 = 300.2

which is more often? once every 300 or once every 500?

Sometimes sitting back and looking at your own question as if someone was asking you is the best way to get it answered )

GL with your project though

Father Time
vermillion2083 is offline   Reply With Quote
Old 10-20-2005, 04:43 PM   #8 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Quote:
Originally Posted by CEO
Eh? Reducing to 1 would make it nearly impossible.

I experimented with this quite alot on my testshard. The current default levels are pretty low. Here's what my research found out:

First of all, the luck value is an index into this table:

private static int[] m_LuckTable = new int[]

So depending on your luck, which is setup at a high of 1200 the values are scaled up. As an example:

With 1400 luck: The luck value is 5136 (1200 or higher will result with the same number)
With 1000 luck: 4641
With 200 luck: 1898
With 0 luck: 0

BTW, the luck value that is used for the actual chance roll comes from whoever has the most luck in the group and has looting rights on the Champ, regardless of party totals or anything else.

So looking at the initial default of the code, there are two parts to look at:

Code:
 if ( boss is DemonKnight )
chance = 1500 + (luck / 5);
else
chance = 750 + (luck / 10);

return chance;
}
and
Code:
 public static bool CheckArtifactChance( Mobile boss )
{
return GetArtifactChance( boss ) > Utility.Random( 100000 );
}
Basically in a nutshell, every 1000 chance points translates into a 1% increase of an Arti drop. So at 1200 luck the maximum chance is:

1500 + (5136 / 5) = 2527 or roughly a 2.5% chance to get an arti from a Dark Father. The else part of that equation above is for the champs in the side-rooms, as you can see the odds are greatly reduced for those with a maximum possiblity of: 750 + (5136 / 10) or roughly 1.2%. Very low! So changing that value from 1500 to 1 would be doing the complete OPPOSITE of what the person is wanting to accomplish, reducing the odds to about 1% and that's when someone with looting rights has 1200 luck!

I ended up modifing this formula to skew upwards to about 10% max on our shard, but that is only if several other random numbers come up max and luck is still a factor. Here's what we're using:

Code:
      int luck = LootPack.GetLuckChanceForKiller( boss ) ;
      int chance ;
      int extrachance = 750 + Utility.Random(2750) + Utility.Random(luck/2) ;
 
      if ( boss is DemonKnight ) 
             chance = 2000 + (luck / 3) + extrachance ;
            else  
              chance = 1000 + (luck / 10) + (extrachance/10) ;
Using the above formula someone with 1200 luck now has maximum chance of : 750 + 2750 + 2568 + 2000 + 1712, basically 9.7% in the "best" roll, and a side-spawn arti has a chance of around 2.1%. At 9.7% the drop is reasonable, a 10% chance doesn't mean 1 out of every 10 DFs will yield an Arti as each "event" is separate. I log when Artis drop and I've seen times where a group got 2-3 in a row and others where they got nothing all night long. Before the modification though at 2.5% it was practically fruitless and Doom was dead, with the change above I see people regularly making Doom runs because people are wearing Artis at the banks and they know it's possible. When I tested this I'd spawn 10 DFs at a time in GreenAcres, knock them down all at once and see what dropped, it was fairly reasonable and I probably went through about 1000 DFs before settling on the above formula. Feel free to use it (or the knowledge) to come up with one on your own. Cheers.
Thanks for making me feel like a dumbass.
*dies*
Joeku is offline   Reply With Quote
Old 10-20-2005, 11:30 PM   #9 (permalink)
Forum Novice
 
Join Date: Apr 2003
Location: Gainesville, Florida
Age: 24
Posts: 765
Default

*points and laughs at Joeku*
Rabban is offline   Reply With Quote
Old 10-21-2005, 12:13 AM   #10 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

{omitted for violent content}

lol
Joeku is offline   Reply With Quote
Old 10-21-2005, 01:28 AM   #11 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: ECU, Greenville, NC
Age: 25
Posts: 145
Default

why does everyone automatically assume that i havent tried?
and thanks for the help everyone
bigwoodenhead is offline   Reply With Quote
Old 10-21-2005, 01:30 AM   #12 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Emerald Triangle (im all covert-ops in Clearlake right now)
Age: 31
Posts: 217
Send a message via ICQ to twig Send a message via AIM to twig Send a message via MSN to twig Send a message via Yahoo to twig
Default

cause usually nobody does...
twig is offline   Reply With Quote
Old 10-21-2005, 01:36 AM   #13 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: ECU, Greenville, NC
Age: 25
Posts: 145
Default

i always try to fix my problems / find my solutions myself before coming to the forums, and a lot of times i have questions that would be easy for a lot of the people on here...its just a shame that because of some lazy people, the ones who honestly try have to have a lawyer draw up a declaration, the city mayor approve it and then have to have a state alchemist notorize it before anyone will believe you even tried.
bigwoodenhead is offline   Reply With Quote
Old 10-21-2005, 02:16 AM   #14 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Emerald Triangle (im all covert-ops in Clearlake right now)
Age: 31
Posts: 217
Send a message via ICQ to twig Send a message via AIM to twig Send a message via MSN to twig Send a message via Yahoo to twig
Default

hahahaha yeap...
twig is offline   Reply With Quote
Old 02-22-2006, 03:16 PM   #15 (permalink)
Lurker
 
Join Date: Dec 2005
Posts: 9
Talking

can anyone tell me the exact part I must edit to, to make darkfather drop artys with a 20% Chance.... and Mini-Boss's 10% chance to drop arty? Thanks!

public static int GetArtifactChance( Mobile boss )
{
if ( !Core.AOS )
return 0;

int luck = LootPack.GetLuckChanceForKiller( boss );
int chance;

if ( boss is DemonKnight )
chance = 10000 + (luck / 5);
else
chance = 5000 + (luck / 5);

return chance;
}
DarkKnightIV_2k6 is offline   Reply With Quote
Old 02-22-2006, 03:32 PM   #16 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Quote:
Originally Posted by DarkKnightIV_2k6
can anyone tell me the exact part I must edit to, to make darkfather drop artys with a 20% Chance.... and Mini-Boss's 10% chance to drop arty? Thanks!

public static int GetArtifactChance( Mobile boss )
{
if ( !Core.AOS )
return 0;

int luck = LootPack.GetLuckChanceForKiller( boss );
int chance;

if ( boss is DemonKnight )
chance = 10000 + (luck / 5);
else
chance = 5000 + (luck / 5);

return chance;
}
Just to let you know, you might want to start your own thread for this. This one is pretty old and it also might be seen as hijacking it. You'll probably get more help in your own thread
__________________


UO Art
Come visit us! It's all about the artwork.
Tannis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5