Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. public void FakeLoad(uint UID, bool enterserver = true)
  2. {
  3. if (!Kernel.GamePool.ContainsKey(UID))
  4. {
  5. ReadyToPlay();
  6. this.Account = new Database.AccountTable(null);
  7. this.Account.EntityID = UID;
  8. if (Database.EntityTable.LoadEntity(this))
  9. {
  10. if (this.Entity.FullyLoaded)
  11. {
  12. VariableVault variables;
  13. Database.EntityVariableTable.Load(this.Entity.UID, out variables);
  14. this.Variables = variables;
  15.  
  16. if (this.BackupArmorLook != 0)
  17. this.SetNewArmorLook(this.BackupArmorLook);
  18. else
  19. this.SetNewArmorLook(this.ArmorLook);
  20. this.SetNewHeadgearLook(this.HeadgearLook);
  21. this.BackupArmorLook = 0;
  22.  
  23. this.LoadData(enterserver);
  24.  
  25. if (this.Entity.GuildID != 0)
  26. this.Entity.GuildBattlePower = this.Guild.GetSharedBattlepower(this.Entity.GuildRank);
  27.  
  28. this.ReviewMentor();
  29.  
  30. Entity.NobilityRank = NobilityInformation.Rank;
  31.  
  32. if (enterserver)
  33. {
  34. Network.PacketHandler.LoginMessages(this);
  35.  
  36. Program.World.Register(this);
  37. Kernel.GamePool.Add(Entity.UID, this);
  38. }
  39. FakeLoaded = true;
  40.  
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement