resetskill.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. //===== rAthena Script =======================================
  2. //= Hypnotist
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Permenent first class, base level 40 and under skill resetter.
  12. //= First Class characters and expanded classes only.
  13. //= Baby Classes and First Class trans can't use this service.
  14. //===== Additional Comments: =================================
  15. //= 1.0 First version. [L0ne_W0lf]
  16. //============================================================
  17. prontera,146,232,4 script Hypnotist#2 124,{
  18. mes "[Hypnotist]";
  19. mes "Greetings, adventurer.";
  20. mes "I'm a member of the Hypnotist";
  21. mes "Academy sent here to Prontera";
  22. mes "to provide Skill Reset services";
  23. mes "to certain First Class characters for a really good price: free!";
  24. next;
  25. mes "[Hypnotist]";
  26. mes "Although I offer unlimited";
  27. mes "skill resets for now, I have";
  28. mes "two conditions that must be";
  29. mes "fulfilled. First, you must be";
  30. mes "lower than ^FF0000Base Level 40^000000.";
  31. next;
  32. mes "[Hypnotist]";
  33. mes "Second, you must be a";
  34. mes "^FF0000Swordman, Acolyte, Mage,";
  35. mes "Thief, Archer, Merchant,";
  36. mes "Taekwon Boy, Taekwon Girl, Gunslinger and Ninja^000000";
  37. mes "Job character to qualify.";
  38. mes "Now, do you have any questions?";
  39. next;
  40. switch(select("Skill Reset?:I want a Skill Reset:Nothing")) {
  41. case 1:
  42. mes "[Hypnotist]";
  43. mes "Skill Resets allow adventuers";
  44. mes "to redistribute their Skill";
  45. mes "Points if they are unhappy";
  46. mes "with their current skills.";
  47. next;
  48. mes "[Hypnotist]";
  49. mes "Before proceeding with";
  50. mes "a Skill Reset, you must";
  51. mes "reduce all of the weight";
  52. mes "of all carried items on your";
  53. mes "character to 0. You can put";
  54. mes "extra items in Kafra Storage.";
  55. next;
  56. mes "[Hypnotist]";
  57. mes "Ah, it's also important";
  58. mes "to remove your ^FF0000Pushcart^000000";
  59. mes "if you have one equipped.";
  60. mes "Otherwise, hypnosis won't";
  61. mes "work, or will backfire...";
  62. close;
  63. case 2:
  64. mes "[Hypnotist]";
  65. mes "Are you sure that you";
  66. mes "want to proceed with";
  67. mes "my ^FF0000Skill Reset^000000 service?";
  68. next;
  69. if (select("Yes:Cancel") == 1) {
  70. if (BaseLevel > 40) {
  71. mes "[Hypnotist]";
  72. mes "I'm sorry, but characters";
  73. mes "with Base Levels higher";
  74. mes "than 40 are ineligible for the";
  75. mes "Skill Reset service I provide.";
  76. close;
  77. }
  78. if ((Class > 0 && Class < 7 && Upper == 0) || (Class == Job_Gunslinger) || (Class == Job_Ninja) || (Class == Job_Taekwon)) {
  79. if (checkcart()) {
  80. mes "[Hypnotist]";
  81. mes "Oh! Please remove your";
  82. mes "Pushcart before proceeding";
  83. mes "with the Skill Reset service.";
  84. mes "Thanks for cooperating~";
  85. close;
  86. }
  87. if (Weight) {
  88. mes "[Hypnotist]";
  89. mes "If you're here for my Skill";
  90. mes "Reset service, please";
  91. mes "remember that you can't";
  92. mes "reset your skills until the";
  93. mes "^FF0000weight of your carried items in";
  94. mes "your Inventory is reduced to 0^000000.";
  95. next;
  96. mes "[Hypnotist]";
  97. mes "Why don't you place your";
  98. mes "things into the Kafra Storage";
  99. mes "for now? That way, you can";
  100. mes "safely keep all of your goods.";
  101. close;
  102. }
  103. mes "[Hypnotist]";
  104. mes "Thank you for using";
  105. mes "my Skill Redistribution";
  106. mes "services. Oh, and best";
  107. mes "of luck to you on your";
  108. mes "travels, adventurer.";
  109. ResetSkill;
  110. close;
  111. }
  112. mes "[Hypnotist]";
  113. mes "I'm sorry, but your";
  114. mes "Job Class doesn't qualify";
  115. mes "for the Skill Reset service";
  116. mes "that I provide. I can only";
  117. mes "offer Skill Resets to the";
  118. mes "following Jobs...";
  119. next;
  120. mes "[Hypnotist]";
  121. mes "^FF0000Swordman, Acolyte,";
  122. mes "Mage, Thief, Archer,";
  123. mes "Merchant, Taekwon";
  124. mes "Boy, Taekwon Girl, Gunslinger and Ninja^000000.";
  125. close;
  126. }
  127. mes "[Hypnotist]";
  128. mes "Thank you, and good";
  129. mes "luck on your adventures.";
  130. mes "Please travel in safety~";
  131. close;
  132. case 3:
  133. mes "[Hypnotist]";
  134. mes "Thank you, and good";
  135. mes "luck on your adventures.";
  136. mes "Please travel in safety~";
  137. close;
  138. }
  139. }