Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -16,7 +16,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 400, 5054);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 400, 5054);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace Server.Gumps
|
|||
|
||||
if (text.Length >= 3)
|
||||
{
|
||||
List<Guild> guilds = Utility.CastConvertList<BaseGuild, Guild>(BaseGuild.Search(text));
|
||||
List<Guild> guilds = Utility.CastListCovariant<BaseGuild, Guild>(BaseGuild.Search(text));
|
||||
|
||||
GuildGump.EnsureClosed(m_Mobile);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Gumps
|
|||
m_Mobile = beholder;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 400, 5054);
|
||||
|
|
@ -110,17 +110,17 @@ namespace Server.Gumps
|
|||
|
||||
public static void EnsureClosed(Mobile m)
|
||||
{
|
||||
m.CloseGump(typeof(DeclareFealtyGump));
|
||||
m.CloseGump(typeof(GrantGuildTitleGump));
|
||||
m.CloseGump(typeof(GuildAdminCandidatesGump));
|
||||
m.CloseGump(typeof(GuildCandidatesGump));
|
||||
m.CloseGump(typeof(GuildChangeTypeGump));
|
||||
m.CloseGump(typeof(GuildCharterGump));
|
||||
m.CloseGump(typeof(GuildDismissGump));
|
||||
m.CloseGump(typeof(GuildGump));
|
||||
m.CloseGump(typeof(GuildmasterGump));
|
||||
m.CloseGump(typeof(GuildRosterGump));
|
||||
m.CloseGump(typeof(GuildWarGump));
|
||||
m.CloseGump<DeclareFealtyGump>();
|
||||
m.CloseGump<GrantGuildTitleGump>();
|
||||
m.CloseGump<GuildAdminCandidatesGump>();
|
||||
m.CloseGump<GuildCandidatesGump>();
|
||||
m.CloseGump<GuildChangeTypeGump>();
|
||||
m.CloseGump<GuildCharterGump>();
|
||||
m.CloseGump<GuildDismissGump>();
|
||||
m.CloseGump<GuildGump>();
|
||||
m.CloseGump<GuildmasterGump>();
|
||||
m.CloseGump<GuildRosterGump>();
|
||||
m.CloseGump<GuildWarGump>();
|
||||
}
|
||||
|
||||
public static bool BadLeader(Mobile m, Guild g)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 440, 5054);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 440, 5054);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 440, 5054);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 440, 5054);
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Gumps
|
|||
m_Mobile = from;
|
||||
m_Guild = guild;
|
||||
|
||||
Dragable = false;
|
||||
Draggable = false;
|
||||
|
||||
AddPage(0);
|
||||
AddBackground(0, 0, 550, 400, 5054);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Server.Guilds
|
|||
guild = g;
|
||||
player = pm;
|
||||
|
||||
pm.CloseGump(typeof(BaseGuildGump));
|
||||
pm.CloseGump<BaseGuildGump>();
|
||||
}
|
||||
|
||||
protected Guild guild{ get; }
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ namespace Server.Guilds
|
|||
{
|
||||
public CreateGuildGump(PlayerMobile pm, string guildName = "Guild Name", string guildAbbrev = "") : base(10, 10)
|
||||
{
|
||||
pm.CloseGump(typeof(CreateGuildGump));
|
||||
pm.CloseGump(typeof(BaseGuildGump));
|
||||
pm.CloseGump<CreateGuildGump>();
|
||||
pm.CloseGump<BaseGuildGump>();
|
||||
|
||||
AddPage(0);
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Server.Guilds
|
|||
|
||||
public GuildDiplomacyGump(PlayerMobile pm, Guild g)
|
||||
: this(pm, g, NameComparer.Instance, true, "", 0, GuildDisplayType.All,
|
||||
Utility.CastConvertList<BaseGuild, Guild>(new List<BaseGuild>(BaseGuild.List.Values)),
|
||||
Utility.CastListCovariant<BaseGuild, Guild>(new List<BaseGuild>(BaseGuild.List.Values)),
|
||||
1063136 + (int)GuildDisplayType.All)
|
||||
{
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ namespace Server.Guilds
|
|||
public GuildDiplomacyGump(PlayerMobile pm, Guild g, IComparer<Guild> currentComparer, bool ascending, string filter,
|
||||
int startNumber, GuildDisplayType display)
|
||||
: this(pm, g, currentComparer, ascending, filter, startNumber, display,
|
||||
Utility.CastConvertList<BaseGuild, Guild>(new List<BaseGuild>(BaseGuild.List.Values)),
|
||||
Utility.CastListCovariant<BaseGuild, Guild>(new List<BaseGuild>(BaseGuild.List.Values)),
|
||||
1063136 + (int)display)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ namespace Server.Guilds
|
|||
// Guild Faction
|
||||
if (Guild.OrderChaos && IsLeader(pm, guild))
|
||||
{
|
||||
pm.CloseGump(typeof(GuildChangeTypeGump));
|
||||
pm.CloseGump<GuildChangeTypeGump>();
|
||||
pm.SendGump(new GuildChangeTypeGump(pm, guild));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ namespace Server.Guilds
|
|||
if (pm.GuildRank.GetFlag(RankFlags.CanInvitePlayer))
|
||||
{
|
||||
pm.SendLocalizedMessage(1063048); // Whom do you wish to invite into your guild?
|
||||
pm.BeginTarget(-1, false, TargetFlags.None, new TargetStateCallback(InvitePlayer_Callback), guild);
|
||||
pm.BeginTarget(-1, false, TargetFlags.None, InvitePlayer_Callback, guild);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -104,13 +104,11 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void InvitePlayer_Callback(Mobile from, object targeted, object state)
|
||||
public void InvitePlayer_Callback(Mobile from, object targeted, Guild g)
|
||||
{
|
||||
PlayerMobile pm = from as PlayerMobile;
|
||||
PlayerMobile targ = targeted as PlayerMobile;
|
||||
|
||||
Guild g = state as Guild;
|
||||
|
||||
PlayerState guildState = PlayerState.Find(g.Leader);
|
||||
PlayerState targetState = PlayerState.Find(targ);
|
||||
|
||||
|
|
@ -137,7 +135,7 @@ namespace Server.Guilds
|
|||
{
|
||||
pm.SendLocalizedMessage(1063051, targ.Name); // ~1_val~ is already a member of a guild.
|
||||
}
|
||||
else if (targ.HasGump(typeof(BaseGuildGump)) || targ.HasGump(typeof(CreateGuildGump))
|
||||
else if (targ.HasGump<BaseGuildGump>() || targ.HasGump<CreateGuildGump>()
|
||||
) //TODO: Check message if CreateGuildGump Open
|
||||
{
|
||||
pm.SendLocalizedMessage(1063052, targ.Name); // ~1_val~ is currently considering another guild invitation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue