|
||
|
|||||||
| General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Because bugzilla doesn`t work I`m asking here, what actually seggested patch for bug in luck sistem in 1.0 do. The bug was that loot from creatures that drop 1 item has more increased bonuses than other with richer loot. The patch was:
lootpack.cs 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 );
//***NEW LINES ^START^
if ( LootPack.CheckLuck( luckChance ) )
shouldAdd = ( entry.Chance > Utility.Random( 10000 ) );
//***NEW LINES ^END^
}
if ( !shouldAdd )
continue;
Item item = entry.Construct( from, luckChance, spawning );
if ( item != null )
{
if ( !item.Stackable || !cont.TryDropItem( from, item, false ) )
cont.DropItem( item );
}
}
}
I`m I wright? Is there anybody has better suggestion if I`m wright. And again sory I`m posting it here.
__________________
![]() The White Guardian |
|
|
|
|
|
|
#2 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
This was actually already fixed in Bugzilla ;->
I'll try AGAIN to get Ryan to fix it.
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#4 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
|
The initial bug was that low level creatures (Slimes and corpsers, for example) were showing up with medium to high end magical equipment.
The fix, IIRC, makes it so that the chance of the low level creatures having ANY magical loot is very VERY VERY low.
__________________
psz Demise' Creator (Retired) The RunUO.com Forum Moderator Team Former Official RunUO Scripter (Retired) Websites: My 360 Blog My Gaming Site(Old Link) My Gaming Site(New Link) |
|
|
|
|
|
#6 (permalink) | |
|
Join Date: Oct 2003
Posts: 28
|
Quote:
![]() |
|
|
|
|
|
|
#7 (permalink) |
|
The fix from bugzila is listed in my first post - up there, just replace function Generate in lootpack.cs or copy two lines between //***NEW LINES ^START^
and //***NEW LINES ^END^ in the source listing. But remember that this fix will lower luck chances for all creatures, making your loot very low. I make my tests and Im sure! I suggest another fix. Since the problem are low level creatures I suggest just disabling LootPack.Poor. In file \Scripts\Engines\AI\Creature\BaseCreature.cs make this: Code:
public virtual void AddLoot( LootPack pack )
{
if ( Summoned )
return;
Container backpack = Backpack;
if ( backpack == null )
{
backpack = new Backpack();
backpack.Movable = false;
AddItem( backpack );
}
pack.Generate( this, backpack, m_Spawning, m_KillersLuck );
}
Code:
public virtual void AddLoot( LootPack pack )
{
if ( Summoned )
return;
if ( pack == LootPack.Poor )
return;
Container backpack = Backpack;
if ( backpack == null )
{
backpack = new Backpack();
backpack.Movable = false;
AddItem( backpack );
}
pack.Generate( this, backpack, m_Spawning, m_KillersLuck );
}
__________________
![]() The White Guardian |
|
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
|
Would this explain why the collectors quest gives out +100 tactic weapons on my pre-aos shard? Although since it's aos is set to false i don't see how it would have any effect. However, I don't think it would explain why earth elementals now give out a magic item and I think not as many gems as they used to. I've also gotten reports of gettin statues with weird names like faction status blah.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|