|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Feb 2003
Age: 30
Posts: 515
|
I looked through the scripts, found LootPack.cs and noticed theres different levels of the luck like rich, ultra rich and so on. is there a way to make luck work better ( give better stuff then what it does now) by editing something different then all the levels (Rich, FilthyRich, UltraRich etc..)
Found these lines Code:
public void Generate( Mobile from, Container cont, bool spawning, int luckChance )
{
if ( cont == null )
return;
bool checkLuck = Core.AOS;
for ( int i = 0; i < m_Entries.Length; ++i )
{
LootPackEntry entry = m_Entries[i];
bool shouldAdd = ( entry.Chance > Utility.Random( 10000 ) );
if ( !shouldAdd && checkLuck )
{
checkLuck = false;
shouldAdd = LootPack.CheckLuck( luckChance );
}
if ( !shouldAdd )
continue;
Item item = entry.Construct( from, luckChance, spawning );
if ( item != null )
{
if ( !item.Stackable || !cont.TryDropItem( from, item, false ) )
cont.DropItem( item );
}
}
}
In this line im not sure what its doing Code:
bool shouldAdd = ( entry.Chance > Utility.Random( 10000 ) ); |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Feb 2003
Age: 30
Posts: 515
|
lol no thanks.
Ive already tested luck and its just like OSI.... Worthless lol I tested it with 1000 luck, 2000 luck and 5000 luck, and killed random levels of monsters by the 100's Think my players like it better when I beef monsters loot up without dealing with luck since you dont get anything good with luck no matter how high you have on PackMagicItems( 3, 10 ); Seems better :P But if I can get it so luck actually works better by dropping loot like that line will then HURAY for luck other wise its a usless attribute in my opinion |
|
|
|
|
|
#5 (permalink) |
|
Account Terminated
|
<sigh>
You should make the random smaller not larger if you want: bool shouldAdd = ( entry.Chance > Utility.Random( 10000 ) ); That bool to be true Trust me Luck does effect loot, you just have to adjust the code so it does what you want. But do what you want. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|