Plant gump issues

http://jira.runuo.com/browse/RUNUO-12

House decay stages should pass at random intervals
http://jira.runuo.com/browse/RUNUO-113

Nature's Fury cast issues
http://jira.runuo.com/browse/RUNUO-114

Animal Form inaccuracies and issue with Talisman of the Fey
http://jira.runuo.com/browse/RUNUO-115

BaseWaterContainer fill messages and behavior
http://jira.runuo.com/browse/RUNUO-116

AdminGump filter for accounts owning houses
http://jira.runuo.com/browse/RUNUO-118

Seeds should be stackable
http://jira.runuo.com/browse/RUNUO-119

Typo in case of a jailbreak
http://jira.runuo.com/browse/RUNUO-120

Prevent creation of invalid account names
http://jira.runuo.com/browse/RUNUO-121
This commit is contained in:
eos 2012-01-01 03:34:02 +00:00
parent d2f79e93ea
commit 4cba2c8d56
18 changed files with 440 additions and 137 deletions

View file

@ -10,6 +10,7 @@ using Server.Prompts;
using Server.Network;
using Server.Accounting;
using Server.Commands;
using Server.Multis;
namespace Server.Gumps
{
@ -756,7 +757,8 @@ namespace Server.Gumps
AddButtonLabeled( 10, 390, GetButtonID( 5, 27 ), "Ban marked" );
AddButtonLabeled( 10, 410, GetButtonID( 5, 28 ), "Delete marked" );
AddButtonLabeled( 210, 400, GetButtonID( 5, 29 ), "Mark all" );
AddButtonLabeled( 210, 390, GetButtonID( 5, 29 ), "Mark all" );
AddButtonLabeled( 210, 410, GetButtonID( 5, 33 ), "Unmark house owners" );
}
for ( int i = 0, index = (listPage * 12); i < 12 && index >= 0 && index < m_List.Count; ++i, ++index )
@ -2383,6 +2385,32 @@ namespace Server.Gumps
break;
}
case 33: // Unmark house owners
{
ArrayList list = m_List;
ArrayList rads = m_State as ArrayList;
if ( list == null || rads == null )
break;
ArrayList newRads = new ArrayList();
foreach ( Account acct in rads )
{
bool hasHouse = false;
for ( int i = 0; i < acct.Length && !hasHouse; ++i )
if ( acct[i] != null && BaseHouse.HasHouse( acct[i] ) )
hasHouse = true;
if ( !hasHouse )
newRads.Add( acct );
}
from.SendGump( new AdminGump( from, AdminGumpPage.Accounts, m_ListPage, m_List, null, newRads ) );
break;
}
default:
{
index -= 50;