public override void OnResponse(NetState state, RelayInfo info) { if (GuildGump.BadLeader(this.m_Mobile, this.m_Guild)) return; switch ( info.ButtonID ) { case 1: // Main menu { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildGump(this.m_Mobile, this.m_Guild)); break; } case 2: // Set guild name { this.m_Mobile.SendLocalizedMessage(1013060); // Enter new guild name (40 characters max): this.m_Mobile.Prompt = new GuildNamePrompt(this.m_Mobile, this.m_Guild); break; } case 3: // Set guild abbreviation { this.m_Mobile.SendLocalizedMessage(1013061); // Enter new guild abbreviation (3 characters max): this.m_Mobile.Prompt = new GuildAbbrvPrompt(this.m_Mobile, this.m_Guild); break; } case 4: // Change guild type { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildChangeTypeGump(this.m_Mobile, this.m_Guild)); break; } case 5: // Set charter { this.m_Mobile.SendLocalizedMessage(1013071); // Enter the new guild charter (50 characters max): this.m_Mobile.Prompt = new GuildCharterPrompt(this.m_Mobile, this.m_Guild); break; } case 6: // Dismiss member { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildDismissGump(this.m_Mobile, this.m_Guild)); break; } case 7: // War menu { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildWarAdminGump(this.m_Mobile, this.m_Guild)); break; } case 8: // Administer candidates { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildAdminCandidatesGump(this.m_Mobile, this.m_Guild)); break; } case 9: // Set guildmaster's title { this.m_Mobile.SendLocalizedMessage(1013073); // Enter new guildmaster title (20 characters max): this.m_Mobile.Prompt = new GuildTitlePrompt(this.m_Mobile, this.m_Mobile, this.m_Guild); break; } case 10: // Grant title { GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GrantGuildTitleGump(this.m_Mobile, this.m_Guild)); break; } case 11: // Move guildstone { if (this.m_Guild.Guildstone != null) { GuildTeleporter item = new GuildTeleporter(this.m_Guild.Guildstone); if (this.m_Guild.Teleporter != null) this.m_Guild.Teleporter.Delete(); this.m_Mobile.SendLocalizedMessage(501133); // Use the teleporting object placed in your backpack to move this guildstone. this.m_Mobile.AddToBackpack(item); this.m_Guild.Teleporter = item; } GuildGump.EnsureClosed(this.m_Mobile); this.m_Mobile.SendGump(new GuildmasterGump(this.m_Mobile, this.m_Guild)); break; } } }
public override void OnResponse( NetState state, RelayInfo info ) { if ( GuildGump.BadLeader( m_Mobile, m_Guild ) ) return; switch ( info.ButtonID ) { case 1: // Main menu { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildGump( m_Mobile, m_Guild ) ); break; } case 2: // Set guild name { //m_Mobile.SendLocalizedMessage( 1013060 ); // Enter new guild name (40 characters max): m_Mobile.SendMessage("Digite o Nome da Guilda (max 40 caracteres)"); m_Mobile.Prompt = new GuildNamePrompt( m_Mobile, m_Guild ); break; } case 3: // Set guild abbreviation { //m_Mobile.SendLocalizedMessage( 1013061 ); // Enter new guild abbreviation (3 characters max): m_Mobile.SendMessage("Entre com a Abreviacao da Guilda (max 3 caracteres)"); m_Mobile.Prompt = new GuildAbbrvPrompt( m_Mobile, m_Guild ); break; } case 4: // Change guild type { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildChangeTypeGump( m_Mobile, m_Guild ) ); break; } case 5: // Set charter { //m_Mobile.SendLocalizedMessage( 1013071 ); // Enter the new guild charter (50 characters max): m_Mobile.SendMessage("Entre com a Patente da Guilda (max 50 caracteres)"); m_Mobile.Prompt = new GuildCharterPrompt( m_Mobile, m_Guild ); break; } case 6: // Dismiss member { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildDismissGump( m_Mobile, m_Guild ) ); break; } case 7: // War menu { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildWarAdminGump( m_Mobile, m_Guild ) ); break; } case 8: // Administer candidates { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildAdminCandidatesGump( m_Mobile, m_Guild ) ); break; } case 9: // Set guildmaster's title { //m_Mobile.SendLocalizedMessage( 1013073 ); // Enter new guildmaster title (20 characters max): m_Mobile.SendMessage("Entre com o Título do GuildMaster (max 20 caracteres)"); m_Mobile.Prompt = new GuildTitlePrompt( m_Mobile, m_Mobile, m_Guild ); break; } case 10: // Grant title { GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GrantGuildTitleGump( m_Mobile, m_Guild ) ); break; } case 11: // Move guildstone { if ( m_Guild.Guildstone != null ) { GuildTeleporter item = new GuildTeleporter( m_Guild.Guildstone ); if ( m_Guild.Teleporter != null ) m_Guild.Teleporter.Delete(); m_Mobile.SendMessage("Utilize o Item de Teleporte na sua Bag para Mover a GuildStone"); //m_Mobile.SendLocalizedMessage( 501133 ); // Use the teleporting object placed in your backpack to move this guildstone. m_Mobile.AddToBackpack( item ); m_Guild.Teleporter = item; } GuildGump.EnsureClosed( m_Mobile ); m_Mobile.SendGump( new GuildmasterGump( m_Mobile, m_Guild ) ); break; } } }
public override void OnResponse( NetState state, int index ) { if ( GuildMenu.BadLeader( m_Mobile, m_Guild ) ) return; switch ( index ) { case 9: //guild protection { m_Mobile.SendMenu( new GuildProtectionMenu( m_Mobile, m_Guild ) ); break; } case 10: // Main menu { m_Mobile.SendMenu( new GuildMenu( m_Mobile, m_Guild ) ); break; } case 0: // Set guild name { m_Mobile.SendAsciiMessage( "Enter new guild name (40 characters max):" ); // Enter new guild name (40 characters max): m_Mobile.Prompt = new GuildNamePrompt( m_Mobile, m_Guild ); break; } case 1: // Set guild abbreviation { m_Mobile.SendAsciiMessage( "Enter new guild abbreviation (3 characters max):" ); // Enter new guild abbreviation (3 characters max): m_Mobile.Prompt = new GuildAbbrvPrompt( m_Mobile, m_Guild ); break; } case 2: // Set charter { m_Mobile.SendAsciiMessage( "Enter the new guild charter (50 characters max):" ); // Enter the new guild charter (50 characters max): m_Mobile.Prompt = new GuildCharterPrompt( m_Mobile, m_Guild ); break; } case 3: // Dismiss member { m_Mobile.SendMenu( new GuildDismissMenu( m_Mobile, m_Guild, 0 ) ); break; } case 4: // War menu { m_Mobile.SendMenu( new GuildWarAdminMenu( m_Mobile, m_Guild ) ); break; } case 5: // Administer candidates { m_Mobile.SendMenu( new GuildAdminCandidatesMenu( m_Mobile, m_Guild, 0 ) ); break; } case 6: // Set guildmaster's title { m_Mobile.SendAsciiMessage( "Enter new guildmaster title (20 characters max):" ); // Enter new guildmaster title (20 characters max): m_Mobile.Prompt = new GuildTitlePrompt( m_Mobile, m_Mobile, m_Guild ); break; } case 7: // Grant title { m_Mobile.SendMenu( new GrantGuildTitleMenu( m_Mobile, m_Guild, 0 ) ); break; } case 8: // Move guildstone { if ( m_Guild.Guildstone != null ) { GuildTeleporter item = new GuildTeleporter( m_Guild.Guildstone ); if ( m_Guild.Teleporter != null ) m_Guild.Teleporter.Delete(); m_Mobile.SendAsciiMessage( "Use the teleporting object placed in your backpack to move this guildstone." ); // Use the teleporting object placed in your backpack to move this guildstone. m_Mobile.AddToBackpack( item ); m_Guild.Teleporter = item; } m_Mobile.SendMenu( new GuildmasterMenu( m_Mobile, m_Guild ) ); break; } } }