This commit is contained in:
asayre 2006-10-05 06:04:38 +00:00
parent 27a3e68588
commit 87966abb3f
14 changed files with 112 additions and 20 deletions

View file

@ -932,7 +932,7 @@ namespace Server.Mobiles
}
else
{
m_Mobile.DebugSay( "I stop being on guard" );
m_Mobile.DebugSay( "I stopped being on guard" );
Action = ActionType.Wander;
}
@ -1439,7 +1439,7 @@ namespace Server.Mobiles
}
if( combatant != null )
m_Mobile.DebugSay( "Crap, my master has been attacked! I will atack one of those bastards!" );
m_Mobile.DebugSay( "Crap, my master has been attacked! I will attack one of those bastards!" );
}
if( combatant != null && combatant != m_Mobile && combatant != m_Mobile.ControlMaster && !combatant.Deleted && combatant.Alive && !combatant.IsDeadBondedPet && m_Mobile.CanSee( combatant ) && m_Mobile.CanBeHarmful( combatant, false ) && combatant.Map == m_Mobile.Map )

View file

@ -4767,7 +4767,7 @@ namespace Server.Mobiles
}
// added lines to check if a wild creature in a house region has to be removed or not
if ( !c.Controlled && ( c.Region.IsPartOf( typeof( HouseRegion ) ) && c.CanBeDamaged() || hasHourElapsed && c.RemoveIfUntamed && c.Spawner == null ) )
if ( (!c.Controlled && ( c.Region.IsPartOf( typeof( HouseRegion ) ) && c.CanBeDamaged()) || (hasHourElapsed && c.RemoveIfUntamed && c.Spawner == null )) )
{
c.RemoveStep++;

View file

@ -1119,7 +1119,7 @@ namespace Server.Gumps
AccountComment c = a.Comments[i];
sb.AppendFormat( "[{0}]<BR>{1}", c.AddedBy, c.Content );
sb.AppendFormat( "[{0} on {1}]<BR>{2}", c.AddedBy, c.LastModified,c.Content );
}
AddHtml( 20, 180, 380, 190, sb.ToString(), true, true );
@ -2793,7 +2793,7 @@ namespace Server.Gumps
{
if ( m_Account != null )
{
m_Account.Comments.Add( new AccountComment( from.Name, text ) );
m_Account.Comments.Add( new AccountComment( from.RawName, text ) );
from.SendGump( new AdminGump( from, AdminGumpPage.AccountDetails_Comments, 0, null, "Comment added.", m_Account ) );
}
}

View file

@ -99,6 +99,8 @@ namespace Server.Guilds
public void CalculateAllianceLeader()
{
m_Leader = ((m_Members.Count >= 2) ? m_Members[Utility.Random( m_Members.Count )] : null);
}
public void CheckLeader()
@ -591,7 +593,36 @@ namespace Server.Guilds
[Description( "Opens a menu where you can view and edit guild properties of a targeted player or guild stone. If the new Guild system is active, also brings up the guild gump." )]
private static void GuildProps_OnCommand( CommandEventArgs e )
{
e.Mobile.Target = new GuildPropsTarget();
string arg = e.ArgString.Trim();
Mobile from = e.Mobile;
if( arg.Length == 0 )
{
e.Mobile.Target = new GuildPropsTarget();
}
else
{
Guild g = null;
int id = Utility.GetInt32( arg, -1 );
if( id != -1 )
g = Guild.Find( id ) as Guild;
if( g == null )
{
g = Guild.FindByAbbrev( arg ) as Guild;
if( g == null )
g = Guild.FindByName( arg ) as Guild;
}
if( g != null )
from.SendGump( new PropertiesGump( from, g ) );
if( NewGuildSystem && from.AccessLevel >= AccessLevel.GameMaster && from is PlayerMobile )
from.SendGump( new GuildInfoGump( (PlayerMobile)from, g ) );
}
}
private class GuildPropsTarget : Target
@ -711,6 +742,61 @@ namespace Server.Guilds
}
}
[CommandProperty( AccessLevel.Counselor )]
public string AllianceName
{
get
{
AllianceInfo al = this.Alliance;
if( al != null )
return al.Name;
return null;
}
}
[CommandProperty( AccessLevel.Counselor )]
public Guild AllianceLeader
{
get
{
AllianceInfo al = this.Alliance;
if( al != null )
return al.Leader;
return null;
}
}
[CommandProperty( AccessLevel.Counselor )]
public bool IsAllianceMember
{
get
{
AllianceInfo al = this.Alliance;
if( al != null )
return al.IsMember( this );
return false;
}
}
[CommandProperty( AccessLevel.Counselor )]
public bool IsAlliancePendingMember
{
get
{
AllianceInfo al = this.Alliance;
if( al != null )
return al.IsPendingMember( this );
return false;
}
}
#endregion
#region New Wars

View file

@ -65,8 +65,8 @@ namespace Server.Spells.Second
mods = new object[2]
{
new ResistanceMod( ResistanceType.Physical, -15 + (int)(caster.Skills[SkillName.Inscribe].Value / 20) ),
new DefaultSkillMod( SkillName.MagicResist, true, -35 + (int)(caster.Skills[SkillName.Inscribe].Value / 20) )
new ResistanceMod( ResistanceType.Physical, -15 + Math.Min( (int)(caster.Skills[SkillName.Inscribe].Value / 20), 15 ) ),
new DefaultSkillMod( SkillName.MagicResist, true, -35 + Math.Min( (int)(caster.Skills[SkillName.Inscribe].Value / 20), 35 ) )
};
m_Table[target] = mods;