servuo/Scripts/Services/LootGeneration/RunicReforging
Dan 63d251645b Bug Fixes
Fixed an issue where various new potions were incorrectly able to be placed inside potion kegs.
Fixed a display issue with the Fermentation Barrel.
Fixed an issue with Vendor Search and certain vendor maps that were being created incorrectly.
Fixed an issue where a pet owner's luck was not always being calculated when determining basic loot drops.
Fixed an issue where monsters and pets could get "stuck" while casting a spell and would not cast anymore until after a restart.
2020-11-19 05:22:25 -05:00
..
Gumps.cs Bug Fixes (#4782) 2020-05-16 15:31:52 -07:00
ReadMe.txt Loot Update Complete 2019-06-02 21:17:25 -07:00
ReforgingContext.cs Cleanup (#4841) 2020-09-07 21:33:30 -07:00
RunicReforging.cs Bug Fixes 2020-11-19 05:22:25 -05:00

-Random Item Generator: http://www.uoguide.com/Random_Magic_Item_Generation_System

-This is active for ALL loot on EA servers, however is not active by default.  Here is how to activate it. All edits will be in RandomItemGenerator.cs.

-To drop items via random item generator system on specific monsters, such as hard creatures, etc, you will need to create a drop entry for that creature type in the Initialize() Method.

For example:

m_Table[typeof(Server.Engines.Despise.AndrosTheDreadLord)] = new List<DropEntry>();
m_Table[typeof(Server.Engines.Despise.AndrosTheDreadLord)].Add(new DropEntry(null, 50, 15));

This will give a 50% drop rate, rolled 15 times when Adros the Dreadlord dies. This is in addition to his normal lootpack.

-To drop items via random item generator system as regular loot from loot packs, you will need to edit GenerateRandomItem(Item item, Mobile killer, BaseCreature victim) method.

For example:

GenerateRandomItem(Item item, Mobile killer, BaseCreature victim)
{
   if(victim != null && victim.Map == Map.Felucca && .10 > Utility.RandomDouble())
     return RunicReforging.GenerateRandomItem(item, killer, victim);

   if(victim.Region != null && victim.Region.IsPartOf<DespiseRegion>())
      return RunicReforging.GenerateRandomItem(item, killer, victim);
}

this will drop the new named items 10% of the time as regular loot in Felucca, and everytime as loot in DespiseRegion.