resetskill.txt 4.7 KB

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