- Talisman slayers fixed to account for inheritance. - Added repond slayer vulnerability to Troglodyte. - Added overload for AOS.Damage with chaos damage support. - Corrected order of ML artifact award messages. - MageAI corrected to not meditate when already meditating. - Changed MageAI necro/mage bias to something more sensible. - Changed speed of most named ML mobs. - Skeletal steeds are now bleed immune. - Damage cap of 200 (before resists) added to fire breath attacks. - Damaging aura effect added to BaseCreature. - Necromancy skill added to several undead mobs. - The succubus special drain effect message no longer shows. - Corrected Sir Patrick's drain effect to account for LOS. - Added healing skill to Troglodytes. - Added named ML mobs for the Labyrinth, Painted Caves, Palace of Paroxysmus, Sanctuary and Twisted Weald. - Added changelings. - Disabled auto unequiping of weapons when meditating for nonplayers. - Added cast animations for players in wraith form, lich form and horrific beast. - Fixed Holy Light to account for LOS. - Fixed Animate Dead to account for inheritance. - Fixed Wither friendly fire issue when cast by monsters.
73 lines
No EOL
2.3 KiB
C#
73 lines
No EOL
2.3 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server
|
|
{
|
|
public static class MondainsLegacy
|
|
{
|
|
public static Type[] Artifacts { get { return m_Artifacts; } }
|
|
|
|
private static Type[] m_Artifacts = new Type[]
|
|
{
|
|
typeof( AegisOfGrace ), typeof( BladeDance ), typeof( BloodwoodSpirit ), typeof( Bonesmasher ),
|
|
typeof( Boomstick ), typeof( BrightsightLenses ), typeof( FeyLeggings ), typeof( FleshRipper ),
|
|
typeof( HelmOfSwiftness ), typeof( PadsOfTheCuSidhe ), typeof( QuiverOfRage ), typeof( QuiverOfElements ),
|
|
typeof( RaedsGlory ), typeof( RighteousAnger ), typeof( RobeOfTheEclipse ), typeof( RobeOfTheEquinox ),
|
|
typeof( SoulSeeker ), typeof( TalonBite ), typeof( TotemOfVoid ), typeof( WildfireBow ),
|
|
typeof( Windsong )
|
|
};
|
|
|
|
public static bool CheckArtifactChance( Mobile m, BaseCreature bc )
|
|
{
|
|
if ( !Core.ML )
|
|
return false;
|
|
|
|
return Paragon.CheckArtifactChance( m, bc );
|
|
}
|
|
|
|
public static void GiveArtifactTo( Mobile m )
|
|
{
|
|
Item item = Activator.CreateInstance( m_Artifacts[Utility.Random( m_Artifacts.Length )] ) as Item;
|
|
|
|
if ( item == null )
|
|
return;
|
|
|
|
if ( m.AddToBackpack( item ) )
|
|
{
|
|
m.SendLocalizedMessage( 1072223 ); // An item has been placed in your backpack.
|
|
m.SendLocalizedMessage( 1062317 ); // For your valor in combating the fallen beast, a special artifact has been bestowed on you.
|
|
}
|
|
else if ( m.BankBox.TryDropItem( m, item, false ) )
|
|
{
|
|
m.SendLocalizedMessage( 1072224 ); // An item has been placed in your bank box.
|
|
m.SendLocalizedMessage( 1062317 ); // For your valor in combating the fallen beast, a special artifact has been bestowed on you.
|
|
}
|
|
else
|
|
{
|
|
// Item was placed at feet by m.AddToBackpack
|
|
m.SendLocalizedMessage( 1072523 ); // You find an artifact, but your backpack and bank are too full to hold it.
|
|
}
|
|
}
|
|
|
|
public static bool CheckML( Mobile from )
|
|
{
|
|
return CheckML( from, true );
|
|
}
|
|
|
|
public static bool CheckML( Mobile from, bool message )
|
|
{
|
|
if ( from == null || from.NetState == null )
|
|
return false;
|
|
|
|
if ( from.NetState.SupportsExpansion( Expansion.ML ) )
|
|
return true;
|
|
|
|
if ( message )
|
|
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
|
|
|
|
return false;
|
|
}
|
|
}
|
|
} |