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

@ -1,3 +1,3 @@
# ankh
AnkhEast 0x0004
AnkhNorth 0x0004
5204 774 0

View file

@ -47,7 +47,7 @@ Static 0x14E6
1458 843 5
# Compassion
AnkhEast 0x0004
AnkhNorth 0x0004
1857 877 -1
# Honesty (locations unconfirmed)
@ -64,7 +64,7 @@ AnkhWest 0x0003
1723 3527 8
# Justice
AnkhEast 0x0004
AnkhNorth 0x0004
1300 629 21
# Valor (location unconfirmed)
@ -72,7 +72,7 @@ AnkhWest 0x0003
2489 3930 2
# Sacrifice
AnkhEast 0x1E5D (Bloodied)
AnkhNorth 0x1E5D (Bloodied)
3354 287 4
# Spirituality

View file

@ -1,5 +1,5 @@
# ankh
AnkhEast 0x0004
AnkhNorth 0x0004
634 816 0
# book

View file

@ -3,7 +3,7 @@ AnkhWest 0x0003
1209 476 -14
# Honesty
AnkhEast 0x0004
AnkhNorth 0x0004
718 1350 -55
# Humility
@ -11,7 +11,7 @@ AnkhWest 0x0003
286 1013 5
# Justice
AnkhEast 0x0004
AnkhNorth 0x0004
986 996 -22
# Sacrifice
@ -23,6 +23,6 @@ AnkhWest 0x0003
1525 1340 4
# Valor
AnkhEast 0x0004
AnkhNorth 0x0004
524 211 -49
532 211 -44

View file

@ -6,7 +6,7 @@ Teleporter 0x1BC3 (PointDest=(770, 1209, 25); MapDest=Tokuno)
375 802 1
# ankh
AnkhEast 0x0004 (Hue=0xFA)
AnkhNorth 0x0004 (Hue=0xFA)
397 801 4
#Emino

View file

@ -28,7 +28,7 @@ Teleporter 0x1BC3 (PointDest=(770, 1209, 25); MapDest=Tokuno)
391 777 -1
# ankh
AnkhEast 0x0004 (Hue=0xFA)
AnkhNorth 0x0004 (Hue=0xFA)
351 733 18
388 724 13

View file

@ -1,5 +1,5 @@
# Shrine of Wisdom
AnkhEast 0x0004 (Hue=0x47E)
AnkhNorth 0x0004 (Hue=0x47E)
975 508 -30
ShrineOfWisdomAddon 0x14C3

View file

@ -1,5 +1,5 @@
# ankh
AnkhEast 0x0004
AnkhNorth 0x0004
3606 2582 10
# stone wall

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;

View file

@ -50,6 +50,7 @@ namespace Server.Guilds
m_GuildList.Add( m_Id, this );
}
[CommandProperty( AccessLevel.Counselor )]
public int Id { get { return m_Id; } }
int ISerializable.TypeReference {
@ -135,5 +136,10 @@ namespace Server.Guilds
return results;
}
public override string ToString()
{
return String.Format( "0x{0:X} \"{1} [{2}]\"", m_Id, Name, Abbreviation );
}
}
}