- house commit has inappropiate cost for certain parts
          http://www.uodemise.com/forum/showthread.php?t=136453

        - houses should not be placable on roads
          http://www.uodemise.com/forum/showthread.php?t=139597

Bushido

        - lightning strike should consume extra mana if player walks
          http://www.uodemise.com/forum/showthread.php?t=127699

Weapons

        - frenzied whirlwind should properly flag combatants.
          http://www.uodemise.com/forum/showthread.php?t=138625

Magery

        - PolyMorph should not turn the caster grey/criminal
          http://www.uodemise.com/forum/showthread.php?t=116438

        - Paralyze should interfere in casting paladin spells.
          http://www.uodemise.com/forum/showthread.php?t=120742

Spellweaving

        - Ethereal Voyage should not break when attempting to tame dragons, nightmares, etc.
          http://www.uodemise.com/forum/showthread.php?t=135349

Misc
        - refactor DrawRessource() to DrawResource()
          http://www.uodemise.com/forum/showthread.php?t=127202

        - random blood "spatter" itemid during combat: more visible blood.
          http://www.uodemise.com/forum/showthread.php?t=140092

Taming

        - Animal lore should check for skill modifiers when using lore on mobiles.
          http://www.uodemise.com/forum/showthread.php?t=140658

Necromany

        - Wraithform should allow push-through without stam loss always.
          http://www.uodemise.com/forum/showthread.php?t=117126

        - Wraithform mana leech should not lower the victim's mana + small cleanup to spellhelper.doleech()
          http://www.uodemise.com/forum/showthread.php?t=120238

Chivalry

        - Noble Sacrifice should work in houses.  RunUO's does not.
          http://www.uodemise.com/forum/showthread.php?t=122819

NCP Vendors

        - Add necro regs for vendors to buy from players.
          http://www.uodemise.com/forum/showthread.php?t=136435
This commit is contained in:
xavier 2010-03-15 15:28:44 +00:00
parent d3e95b7e53
commit 1d74d05af4
16 changed files with 175 additions and 69 deletions

View file

@ -105,7 +105,14 @@ namespace Server.Mobiles
private int m_StepsTaken;
private int m_Profession;
private bool m_IsStealthing; // IsStealthing should be moved to Server.Mobiles
private bool m_IgnoreMobiles; // IgnoreMobiles should be moved to Server.Mobiles
/*
* a value of zero means, that the mobile is not executing the spell. Otherwise,
* the value should match the BaseMana required
*/
private int m_ExecutesLightningStrike; // move to Server.Mobiles??
private DateTime m_LastOnline;
private Server.Guilds.RankDefinition m_GuildRank;
@ -173,6 +180,23 @@ namespace Server.Mobiles
set { m_IsStealthing = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IgnoreMobiles // IgnoreMobiles should be moved to Server.Mobiles
{
get
{
return m_IgnoreMobiles;
}
set
{
if( m_IgnoreMobiles != value )
{
m_IgnoreMobiles = value;
Delta( MobileDelta.Flags );
}
}
}
[CommandProperty( AccessLevel.GameMaster )]
public NpcGuild NpcGuild
{
@ -219,6 +243,12 @@ namespace Server.Mobiles
set { m_ToTTotalMonsterFame = value; }
}
public int ExecutesLightningStrike
{
get { return m_ExecutesLightningStrike; }
set { m_ExecutesLightningStrike = value; }
}
#endregion
#region PlayerFlags
@ -506,6 +536,26 @@ namespace Server.Mobiles
return true;
}
public override int GetPacketFlags()
{
int flags = base.GetPacketFlags();
if ( m_IgnoreMobiles )
flags |= 0x10;
return flags;
}
public override int GetOldPacketFlags()
{
int flags = base.GetOldPacketFlags();
if ( m_IgnoreMobiles )
flags |= 0x10;
return flags;
}
public bool GetFlag( PlayerFlag flag )
{
@ -632,6 +682,18 @@ namespace Server.Mobiles
return min;
}
public override void OnManaChange(int oldValue)
{
base.OnManaChange(oldValue);
if (m_ExecutesLightningStrike > 0)
{
if (Mana < m_ExecutesLightningStrike)
{
LightningStrike.ClearCurrentMove(this);
}
}
}
private static void OnLogin( LoginEventArgs e )
{
Mobile from = e.Mobile;
@ -1860,7 +1922,7 @@ namespace Server.Mobiles
public override bool CheckShove( Mobile shoved )
{
if( TransformationSpellHelper.UnderTransformation( this, typeof( WraithFormSpell ) ) )
if( m_IgnoreMobiles || TransformationSpellHelper.UnderTransformation( shoved, typeof( WraithFormSpell ) ) )
return true;
else
return base.CheckShove( shoved );
@ -2762,6 +2824,9 @@ namespace Server.Mobiles
if( m_ChampionTitles == null )
m_ChampionTitles = new ChampionTitleInfo();
if ( AccessLevel > AccessLevel.Player )
m_IgnoreMobiles = true;
List<Mobile> list = this.Stabled;
@ -3247,6 +3312,11 @@ namespace Server.Mobiles
public override void OnAccessLevelChanged( AccessLevel oldLevel )
{
if ( AccessLevel == AccessLevel.Player )
IgnoreMobiles = false;
else
IgnoreMobiles = true;
InvalidateMyRunUO();
}

View file

@ -91,6 +91,16 @@ namespace Server.Mobiles
Add( typeof( Nightshade ), 2 );
Add( typeof( SpidersSilk ), 2 );
Add( typeof( SulfurousAsh ), 2 );
if ( Core.AOS )
{
Add( typeof( BatWing ), 1 );
Add( typeof( DaemonBlood ), 3 );
Add( typeof( PigIron ), 2 );
Add( typeof( NoxCrystal ), 3 );
Add( typeof( GraveDust ), 1 );
}
Add( typeof( RecallRune ), 13 );
Add( typeof( Spellbook ), 25 );