LordKnight.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //===== eAthena 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. //= eAthena 1.0 +
  10. //===== Description: =========================================
  11. //= Advance Class jobchanger after kRO Normals.
  12. //===== Additional Comments: =================================
  13. //= v1.1 Made all into functions, additional checks, etc. [Lupus]
  14. //= v1.2 Made numbers into constants. [Vicious]
  15. //= 1.3 Now saves/restores all the quest skills [Lupus]
  16. //============================================================
  17. valkyrie,44,39,5 script Lord Knight#Valkyrie 56,{
  18. if (ADVJOB == 0 || Upper != 1) {
  19. set .@karma_d,rand(1,10);
  20. if (.@karma_d > 4) {
  21. mes "[Lord Knight]";
  22. mes "Congratulations.";
  23. mes "Honor to the warriors!";
  24. close;
  25. }
  26. mes "[Lord Knight]";
  27. mes "We Knights have an";
  28. mes "awesome responsibility...";
  29. mes "To serve and protect.";
  30. next;
  31. mes "[Lord Knight]";
  32. mes "Even at the cost";
  33. mes "of our own lives,";
  34. mes "we must safeguard the";
  35. mes "well being of our comrades.";
  36. close;
  37. }
  38. else if (ADVJOB == Job_Lord_Knight && Class == Job_Swordman_High && JobLevel > 39) {
  39. mes "[Lord Knight]";
  40. mes "Your time has come!";
  41. mes "The world still needs you.";
  42. mes "Please continue your life";
  43. mes "as a hero with a new appearance.";
  44. next;
  45. mes "[Lord Knight]";
  46. mes "Would you like";
  47. mes "to become a Lord Knight?";
  48. next;
  49. if (select("No.:Yes.") == 1) {
  50. mes "[Lord Knight]";
  51. mes "When you're ready,";
  52. mes "feel free to come back.";
  53. mes "Honor to the warriors!";
  54. close;
  55. }
  56. if (SkillPoint) {
  57. mes "[Lord Knight]";
  58. mes "It is still possible for you to learn more skills. Please use";
  59. mes "all of your remaining Skill Points before returning to me.";
  60. close;
  61. }
  62. jobchange Job_Lord_Knight;
  63. set ADVJOB,0;
  64. mes "[Lord Knight]";
  65. mes "Congratulations!";
  66. mes "As a Lord Knight,";
  67. mes "I hope that you will be";
  68. mes "at the forefront of battle,";
  69. mes "and lead your allies to victory!";
  70. close;
  71. }
  72. mes "[Lord Knight]";
  73. mes "Welcome";
  74. mes "to Valhalla,";
  75. mes "the Hall of Honor.";
  76. next;
  77. mes "[Lord Knight]";
  78. mes "Please make";
  79. mes "yourself comfortable";
  80. mes "while you are here.";
  81. mes "Honor to the warriors!";
  82. close;
  83. }