wServer.realm.entities.Player.Init C# (CSharp) Method

Init() public method

public Init ( World owner ) : void
owner World
return void
        public override void Init(World owner)
        {
            Random rand = new System.Random();
            int x, y;
            do
            {
                x = rand.Next(0, owner.Map.Width);
                y = rand.Next(0, owner.Map.Height);
            } while (owner.Map[x, y].Region != TileRegion.Spawn);
            Move(x + 0.5f, y + 0.5f);
            tiles = new byte[owner.Map.Width, owner.Map.Height];
            fames = new FameCounter(this);
            SetNewbiePeriod();
            if (!psr.CheckAccountInUse(AccountId))
                base.Init(owner);
            else
                psr.Disconnect();
            if (psr.Character.Pet >= 0)
                GivePet((short)psr.Character.Pet);
                try { SendAccountList(Locked, LOCKED_LIST_ID); }
                catch { }
                try { SendAccountList(Ignored, IGNORED_LIST_ID); }
                catch { } 
        }