Sniper.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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,55,5 script Sniper#Valkyrie 727,{
  18. if (ADVJOB == 0 || Upper != 1) {
  19. set .@karma_d,rand(1,10);
  20. if (.@karma_d > 4) {
  21. mes "[Sniper]";
  22. mes "Congratulations.";
  23. mes "Honor to the warriors!";
  24. close;
  25. }
  26. mes "[Sniper]";
  27. mes "One shot.";
  28. mes "One kill.";
  29. mes "It's not so hard";
  30. mes "once you develop the";
  31. mes "vision for that style";
  32. mes "of battling.";
  33. close;
  34. }
  35. else if (ADVJOB == Job_Sniper && Class == Job_Archer_High && JobLevel > 39) {
  36. mes "[Sniper]";
  37. mes "The world is in";
  38. mes "need of mighty Bowmen";
  39. mes "like you. Are you ready for";
  40. mes "the awesome responsibility?";
  41. next;
  42. mes "[Sniper]";
  43. mes "Are you willing to";
  44. mes "take the next step and";
  45. mes "become a Sniper?";
  46. next;
  47. if (select("No.:Yes.") == 1) {
  48. mes "[Sniper]";
  49. mes "When you're ready,";
  50. mes "feel free to come back.";
  51. mes "Honor to the warriors!";
  52. close;
  53. }
  54. if (SkillPoint) {
  55. mes "[Sniper]";
  56. mes "It is still possible for you to learn more skills. Please use";
  57. mes "all of your remaining Skill Points before returning to me.";
  58. close;
  59. }
  60. jobchange Job_Sniper;
  61. set ADVJOB,0;
  62. mes "[Sniper]";
  63. mes "Congratulations!";
  64. mes "As a Sniper, I hope";
  65. mes "that the minions of evil";
  66. mes "will never be safe so";
  67. mes "long as they are in";
  68. mes "your sight!";
  69. close;
  70. }
  71. mes "[Sniper]";
  72. mes "Welcome";
  73. mes "to Valhalla,";
  74. mes "the Hall of Honor.";
  75. next;
  76. mes "[Sniper]";
  77. mes "Please make";
  78. mes "yourself comfortable";
  79. mes "while you are here.";
  80. mes "Honor to the warriors!";
  81. close;
  82. }