Guest User

Untitled

a guest
Dec 7th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //player.Output(string.Format("Hello {0} you are {1} years old!", new object[] { TempName, TempAge }));
  2. string TempGlobal = "XP";
  3. int TempXP = CurXP + AwardXP;
  4. PacketWriter writer = new PacketWriter();
  5. writer.Write(TempGlobal, true);
  6. writer.Write(TempXP);
  7. actor.Globals["UserInfo"] = writer.ToArray();
  8.  
  9. int curLevel = actor.Level;
  10. if (CurXP >= actor.Level * 10)
  11. {
  12. actor.Level = curLevel + 1;
  13. }
Add Comment
Please, Sign In to add comment