Paladin.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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,39,3 script Paladin#Valkyrie 752,{
  18. if (ADVJOB == 0 || Upper != 1) {
  19. set .@karma_d,rand(1,10);
  20. if (.@karma_d > 4) {
  21. mes "[Paladin]";
  22. mes "Congratulations.";
  23. mes "Honor to the warriors!";
  24. close;
  25. }
  26. mes "[Paladin]";
  27. mes "Do not forget";
  28. mes "that the Holy War";
  29. mes "is fast approaching!";
  30. mes "We must ready ourselves!";
  31. mes "May the light of justice";
  32. mes "always brighten our path!";
  33. close;
  34. }
  35. else if (ADVJOB == Job_Paladin && Class == Job_Swordman_High && JobLevel > 39) {
  36. mes "[Paladin]";
  37. mes "The Holy War will";
  38. mes "be upon us before we";
  39. mes "know it. More than ever,";
  40. mes "we have need of strong men";
  41. mes "and women to fight for what";
  42. mes "is good and right.";
  43. next;
  44. mes "[Paladin]";
  45. mes "Will you fight on";
  46. mes "the side of righteousness";
  47. mes "as a Paladin?";
  48. next;
  49. if (select("No.:Yes.") == 1) {
  50. mes "[Paladin]";
  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 "[Paladin]";
  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_Paladin;
  63. set ADVJOB,0;
  64. mes "[Paladin]";
  65. mes "Congratulations.";
  66. mes "As a Paladin, I hope";
  67. mes "you will protect those";
  68. mes "weaker than you, and bring";
  69. mes "us victory in the upcoming";
  70. mes "war between good and evil.";
  71. close;
  72. }
  73. mes "[Paladin]";
  74. mes "Welcome";
  75. mes "to Valhalla,";
  76. mes "the Hall of Honor.";
  77. next;
  78. mes "[Paladin]";
  79. mes "Please make";
  80. mes "yourself comfortable";
  81. mes "while you are here.";
  82. mes "Honor to the warriors!";
  83. close;
  84. }