resetskill.txt 4.6 KB

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