Professor.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //===== rAthena Script =======================================
  2. //= Advance Class jobchanger after kRO Normals.
  3. //===== By: ==================================================
  4. //= Nana
  5. //= finished, optimized and tested by Lupus
  6. //===== Current Version: =====================================
  7. //= 1.3
  8. //===== Compatible With: =====================================
  9. //= rAthena Project
  10. //===== Description: =========================================
  11. //= Advance Class jobchanger after kRO Normals.
  12. //===== Additional Comments: =================================
  13. //= 1.1 Made all into functions, additional checks, etc. [Lupus]
  14. //= 1.2 Made numbers into constants. [Vicious]
  15. //= 1.3 Now saves/restores all the quest skills [Lupus]
  16. //============================================================
  17. valkyrie,53,47,3 script Scholar#Valkyrie 743,{
  18. if (ADVJOB == 0 || Upper != 1) {
  19. set .@karma_d,rand(1,10);
  20. if (.@karma_d > 4) {
  21. mes "[Scholar]";
  22. mes "Congratulations.";
  23. mes "Honor to the warriors!";
  24. close;
  25. }
  26. mes "[Scholar]";
  27. mes "It takes a lifetime...";
  28. mes "Literally a lifetime";
  29. mes "to amass the knowledge";
  30. mes "necessary to become";
  31. mes "a Scholar...";
  32. next;
  33. mes "[Scholar]";
  34. mes "It's overwhelming.";
  35. mes "The more you learn, the";
  36. mes "more you discover what";
  37. mes "else you don't know.";
  38. mes "There's no end to the";
  39. mes "process of learning...";
  40. close;
  41. }
  42. else if (ADVJOB == Job_Professor && Class == Job_Mage_High && JobLevel > 39) {
  43. mes "[Scholar]";
  44. mes "Midgard doesn't";
  45. mes "have enough Scholars to";
  46. mes "help usher in a new age";
  47. mes "of prosperity. The";
  48. mes "world needs you...";
  49. next;
  50. mes "[Scholar]";
  51. mes "Will you take this";
  52. mes "awesome responsibility?";
  53. mes "Will you serve Midgard";
  54. mes "as a Scholar?";
  55. next;
  56. if (select("No.:Yes.") == 1) {
  57. mes "[Scholar]";
  58. mes "When you're ready,";
  59. mes "feel free to come back.";
  60. mes "Honor to the warriors!";
  61. close;
  62. }
  63. if (SkillPoint) {
  64. mes "[Scholar]";
  65. mes "It is still possible for you to learn more skills. Please use";
  66. mes "all of your remaining Skill Points before returning to me.";
  67. close;
  68. }
  69. jobchange Job_Professor;
  70. set ADVJOB,0;
  71. mes "[Scholar]";
  72. mes "Congratulations!";
  73. mes "As a Professor, I hope";
  74. mes "that you will take an";
  75. mes "active part in bringing";
  76. mes "the light of knowledge";
  77. mes "where there is darkness.";
  78. close;
  79. }
  80. mes "[Scholar]";
  81. mes "Welcome";
  82. mes "to Valhalla,";
  83. mes "the Hall of Honor.";
  84. next;
  85. mes "[Scholar]";
  86. mes "Please make";
  87. mes "yourself comfortable";
  88. mes "while you are here.";
  89. mes "Honor to the warriors!";
  90. close;
  91. }