- Moved BaseHouse's CheckAccount to AccountHandler for general use.

- Rented vendors can now be managed by all characters on the vendor owner's account.
- Corrected skill names displayed for skill bonuses on equipment. (Affected: Eval Intelligence -> Evaluate Intelligence, Forensics -> Forensic Evaluation, Lock Picking -> Lockpicking)
- Centralized skill name to cliloc conversion to AosSkillBonuses.GetLabel.
- Small SubtextSign fix hiding empty subtexts. (Not just nulls.)
- Added SA and HS power scroll skill arrays for future reference.
- Fixed house resizing not placing a temp no housing region for staff.
This commit is contained in:
eos 2012-04-15 02:36:01 +00:00
parent 9ceb0bc3c9
commit a3f8cb5fc6
11 changed files with 161 additions and 144 deletions

View file

@ -319,7 +319,7 @@ namespace Server.Misc
if ( acct == null )
{
if ( AutoAccountCreation && un.Trim().Length > 0 ) //To prevent someone from making an account of just '' or a bunch of meaningless spaces
if ( AutoAccountCreation && un.Trim().Length > 0 ) // To prevent someone from making an account of just '' or a bunch of meaningless spaces
{
e.State.Account = acct = CreateAccount( e.State, un, pw );
e.Accepted = acct == null ? false : acct.CheckAccess( e.State );
@ -412,5 +412,24 @@ namespace Server.Misc
if ( !e.Accepted )
AccountAttackLimiter.RegisterInvalidAccess( e.State );
}
public static bool CheckAccount( Mobile mobCheck, Mobile accCheck )
{
if ( accCheck != null )
{
Account a = accCheck.Account as Account;
if ( a != null )
{
for ( int i = 0; i < a.Length; ++i )
{
if ( a[i] == mobCheck )
return true;
}
}
}
return false;
}
}
}