account

stacey

Citizen
hi how do I make it so ever one can only have 1 player per account plz
Code:
/// <summary>
        /// Gets the current number of characters on this account.
        /// </summary>
        public int Count
        {
            get
            {
                int count = 0;
 
                for (int i = 0; i < this.Length; ++i)
                {
                    if (this[i] != null)
                        ++count;
                }
 
                return count;
            }
        }
        /// <summary>
        /// Gets the maximum amount of characters allowed to be created on this account. Values other than 1, 5, 6, or 7 are not supported by the client.
        /// </summary>
        public int Limit
        {
            get
            {
                return (Core.SA ? 7 : Core.AOS ? 6 : 5);
            }
        }
        /// <summary>
        /// Gets the maxmimum amount of characters that this account can hold.
        /// </summary>
 

stacey

Citizen
and the number of house I what to let player have 2 house how do I change that plz
Code:
 public static bool HasAccountHouse(Mobile m)
        {
            Account a = m.Account as Account;
 
            if (a == null)
                return false;
 
            for (int i = 0; i < a.Length; ++i)
                if (a[i] != null && HasHouse(a[i]))
                    return true;
 
            return false;
        }
 
        public bool IsOwner(Mobile m)
        {
            if (m == null)
                return false;
 
            if (m == this.m_Owner || m.AccessLevel >= AccessLevel.GameMaster)
                return true;
 
            return this.IsAosRules && AccountHandler.CheckAccount(m, this.m_Owner);
        }
 

Attachments

  • ai22.photobucket.com_albums_b347_Praxiiz_bone_knifepng.png
    ai22.photobucket.com_albums_b347_Praxiiz_bone_knifepng.png
    1.8 KB · Views: 1
  • ai22.photobucket.com_albums_b347_Praxiiz_burning_meteorpng.png
    ai22.photobucket.com_albums_b347_Praxiiz_burning_meteorpng.png
    2.7 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_cut_palmpng.png
    ai22.photobucket.com_albums_b347_Praxiiz_cut_palmpng.png
    2.2 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_energy_arrowpng.png
    ai22.photobucket.com_albums_b347_Praxiiz_energy_arrowpng.png
    2.8 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_knife_thrustpng.png
    ai22.photobucket.com_albums_b347_Praxiiz_knife_thrustpng.png
    1.9 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_molotovpng.png
    ai22.photobucket.com_albums_b347_Praxiiz_molotovpng.png
    2.6 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_small_firepng.png
    ai22.photobucket.com_albums_b347_Praxiiz_small_firepng.png
    2.3 KB · Views: 0
  • ai22.photobucket.com_albums_b347_Praxiiz_thorny_vinepng.png
    ai22.photobucket.com_albums_b347_Praxiiz_thorny_vinepng.png
    2 KB · Views: 0

manofwar

Citizen
for ( int i = 0; i < list.Count; ++i )
Change the 0 to a 1 for 2 houses per account, 2 for 3 and so on.
 

Kilra Yan

Citizen
strange, when does it happen? when u create character or on server start? have you tryed to temp backup and remove all server data and apply the script only after?
 

pall

Citizen
Code:
Server Crash Report
===================

RunUO Version 0.5, Build 5752.24497
Operating System: Unix 2.6.32.42
.NET Framework: 4.0.30319.17020
Time: 10/27/2015 15:51:43
Mobiles: 38128
Items: 116384
Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Server.Health.InfectionUtility.GetCondition (Server.Mobile m) [0x00000] in <filename unknown>:0
  at Server.Health.InfectionUtility.EventSink_CharacterCreatedHealthCheck (Server.CharacterCreatedEventArgs args) [0x00000] in <filename unknown>:0
  at (wrapper delegate-invoke) <Module>:invoke_void__this___CharacterCreatedEventArgs (Server.CharacterCreatedEventArgs)
  at Server.EventSink.InvokeCharacterCreated (Server.CharacterCreatedEventArgs e) [0x00000] in <filename unknown>:0
  at Server.Network.PacketHandlers.CreateCharacter (Server.Network.NetState state, Server.Network.PacketReader pvSrc) [0x00000] in <filename unknown>:0
  at Server.Network.MessagePump.HandleReceive (Server.Network.NetState ns) [0x00000] in <filename unknown>:0
  at Server.Network.MessagePump.Slice () [0x00000] in <filename unknown>:0
  at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0

Clients:
- Count: 2
+ 84.120.4.212: (account = asth) (mobile = 0x6D4 'Larry')
+ 79.159.81.41: (account = pallo)