WhiteSmith.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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,44,50,5 script MasterSmith#Valkyrie 731,{
  18. if (ADVJOB == 0 || Upper != 1) {
  19. set .@karma_d,rand(1,10);
  20. if (.@karma_d > 4) {
  21. mes "[MasterSmith]";
  22. mes "Congratulations.";
  23. mes "Honor to the warriors!";
  24. close;
  25. }
  26. mes "[MasterSmith]";
  27. mes "Ah...";
  28. mes "The pinnacle";
  29. mes "of craftsmanship.";
  30. mes "That's the work of";
  31. mes "a MasterSmith.";
  32. next;
  33. mes "[MasterSmith]";
  34. mes "Once you're the";
  35. mes "the best of the best,";
  36. mes "you begin forging with";
  37. mes "the goal of discovering";
  38. mes "new and better ways of";
  39. mes "crafting...";
  40. close;
  41. }
  42. else if (ADVJOB == Job_WhiteSmith && Class == Job_Merchant_High && JobLevel > 39) {
  43. mes "[MasterSmith]";
  44. mes "The time has come!";
  45. mes "Our world needs brave,";
  46. mes "hard-working adventurers";
  47. mes "like you...";
  48. next;
  49. mes "[MasterSmith]";
  50. mes "Would you like to";
  51. mes "become a MasterSmith?";
  52. next;
  53. if (select("No.:Yes.") == 1) {
  54. mes "[MasterSmith]";
  55. mes "When you're ready,";
  56. mes "feel free to come back.";
  57. mes "Honor to the warriors!";
  58. close;
  59. }
  60. if (SkillPoint) {
  61. mes "[MasterSmith]";
  62. mes "It is still possible for you to learn more skills. Please use";
  63. mes "all of your remaining Skill Points before returning to me.";
  64. close;
  65. }
  66. jobchange Job_Whitesmith;
  67. set ADVJOB,0;
  68. mes "[MasterSmith]";
  69. mes "Congratulations!";
  70. mes "As a MasterSmith,";
  71. mes "I hope you will forge";
  72. mes "a path towards a brighter";
  73. mes "future for Midgard.";
  74. close;
  75. }
  76. mes "[MasterSmith]";
  77. mes "Welcome";
  78. mes "to Valhalla,";
  79. mes "the Hall of Honor.";
  80. next;
  81. mes "[MasterSmith]";
  82. mes "Please make";
  83. mes "yourself comfortable";
  84. mes "while you are here.";
  85. mes "Honor to the warriors!";
  86. close;
  87. }