Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. #region Cps 4 BoundCPS
  2. case 3823:
  3. {
  4.  
  5. switch (npcRequest.OptionID)
  6. {
  7. case 0:
  8. {
  9.  
  10. dialog.Text("Hey there " + client.Entity.Name + " Would you like to Up Level 1 = 215 CPS >> 1-140 << | Made By TheHobbit | Good Luck ?");
  11. dialog.Option("Lvl 1+ (1-140) 1=215 CPs.", 4);
  12. dialog.Option("No Thanks", 255);
  13. dialog.Avatar(116);
  14. dialog.Send();
  15. break;
  16. }
  17. case 4:
  18. {
  19. if (client.Entity.Level >= 1 && client.Entity.Level < 140)
  20. {
  21. if (client.Entity.ConquerPoints >= 215)
  22. {
  23. client.Entity.ConquerPoints -= 215;
  24. client.Entity.Level++;
  25. client.Entity.Experience = 0;
  26. if (client.Entity.Reborn == 0)
  27. {
  28. Database.DataHolder.GetStats(client.Entity.Class, client.Entity.Level, client);
  29. client.CalculateStatBonus();
  30. client.CalculateHPBonus();
  31. client.GemAlgorithm();
  32. }
  33. }
  34. else
  35. {
  36. dialog.Text("Please come back to me with 215 Conquer Points.");
  37. dialog.Option("Ahh sorry.", 255);
  38. }
  39. }
  40. else
  41. {
  42. dialog.Text("Please come back When you are past 1 And lower than 140.");
  43. dialog.Option("Ahh sorry.", 255);
  44. }
  45. break;
  46. }
  47. }
  48. break;
  49. }
  50. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement