Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void FakeLoad(uint UID, bool enterserver = true)
- {
- if (!Kernel.GamePool.ContainsKey(UID))
- {
- ReadyToPlay();
- this.Account = new Database.AccountTable(null);
- this.Account.EntityID = UID;
- if (Database.EntityTable.LoadEntity(this))
- {
- if (this.Entity.FullyLoaded)
- {
- VariableVault variables;
- Database.EntityVariableTable.Load(this.Entity.UID, out variables);
- this.Variables = variables;
- if (this.BackupArmorLook != 0)
- this.SetNewArmorLook(this.BackupArmorLook);
- else
- this.SetNewArmorLook(this.ArmorLook);
- this.SetNewHeadgearLook(this.HeadgearLook);
- this.BackupArmorLook = 0;
- this.LoadData(enterserver);
- if (this.Entity.GuildID != 0)
- this.Entity.GuildBattlePower = this.Guild.GetSharedBattlepower(this.Entity.GuildRank);
- this.ReviewMentor();
- Entity.NobilityRank = NobilityInformation.Rank;
- if (enterserver)
- {
- Network.PacketHandler.LoginMessages(this);
- Program.World.Register(this);
- Kernel.GamePool.Add(Entity.UID, this);
- }
- FakeLoaded = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement