quest_pupa.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. //===== eAthena Script =======================================
  2. //= iRO Repeatable EXP Quests.
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= [Aegis Conversion]
  11. //= Added Monster Killing quests.
  12. //= Repeatable EXP Quest (Chrysalis)
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version.
  15. //============================================================
  16. gef_fild04,191,54,3 script Halgus#Pupa_Hunt 123,{
  17. if (checkquest(60110) != -1) {
  18. if (checkquest(60110,HUNTING) != 2 ) {
  19. mes "[Halgus]";
  20. mes "Have you gotten rid of the Pupa?";
  21. next;
  22. switch(select("Yes:No:I want to quit")) {
  23. case 1:
  24. mes "[Halgus]";
  25. mes "Hmm, I don't think you've gotten rid of 50 Pupa yet...";
  26. close;
  27. case 2:
  28. mes "[Halgus]";
  29. mes "Remember, get rid of 50 of those Pupa from the field.";
  30. close;
  31. case 3:
  32. mes "[Halgus]";
  33. mes "Are you sure that you want to stop hunting?";
  34. mes "Any progress that you've made will be erased";
  35. next;
  36. switch(select("Yes:No")) {
  37. case 1:
  38. mes "[Halgus]";
  39. mes "Ok then, well come back here if you change your mind.";
  40. erasequest 60110;
  41. close;
  42. case 2:
  43. mes "[Halgus]";
  44. mes "Remember, get rid of 50 of those Pupa from the field.";
  45. close;
  46. }
  47. }
  48. }
  49. else {
  50. mes "[Halgus]";
  51. mes "Oh thank you so much.";
  52. mes "I know that I could've probably done this myself but it's not easy to be standing here all of the time.";
  53. getexp 385,30;
  54. erasequest 60110;
  55. close;
  56. }
  57. }
  58. if (checkquest(60111) != -1) {
  59. if (checkquest(60111,HUNTING) != 2 ) {
  60. mes "[Halgus]";
  61. mes "Have you gotten rid of the Pupa?";
  62. next;
  63. switch(select("Yes:No:I want to quit")) {
  64. case 1:
  65. mes "[Halgus]";
  66. mes "Hmm, I don't think you've gotten rid of 100 Pupa yet...";
  67. close;
  68. case 2:
  69. mes "[Halgus]";
  70. mes "Remember, get rid of 100 of those Pupa from the field.";
  71. close;
  72. case 3:
  73. mes "[Halgus]";
  74. mes "Are you sure that you want to stop hunting?";
  75. mes "Any progress that you've made will be erased";
  76. next;
  77. switch(select("Yes:No")) {
  78. case 1:
  79. mes "[Halgus]";
  80. mes "Ok then, well come back here if you change your mind.";
  81. erasequest 60111;
  82. close;
  83. case 2:
  84. mes "[Halgus]";
  85. mes "Remember, get rid of 100 of those Pupa from the field.";
  86. close;
  87. }
  88. }
  89. }
  90. else {
  91. mes "[Halgus]";
  92. mes "Oh thank you so much.";
  93. mes "I know that I could've probably done this myself but it's not easy to be standing here all of the time.";
  94. getexp 385,30;
  95. getexp 385,30;
  96. erasequest 60111;
  97. close;
  98. }
  99. }
  100. if (checkquest(60112) != -1) {
  101. if (checkquest(60112,HUNTING) != 2 ) {
  102. mes "[Halgus]";
  103. mes "Have you gotten rid of the Pupa?";
  104. next;
  105. switch(select("Yes:No:I want to quit")) {
  106. case 1:
  107. mes "[Halgus]";
  108. mes "Hmm, I don't think you've gotten rid of 150 Pupa yet...";
  109. close;
  110. case 2:
  111. mes "[Halgus]";
  112. mes "Remember, get rid of 150 of those Pupa from the field.";
  113. close;
  114. case 3:
  115. mes "[Halgus]";
  116. mes "Are you sure that you want to stop hunting?";
  117. mes "Any progress that you've made will be erased";
  118. next;
  119. switch(select("Yes:No")) {
  120. case 1:
  121. mes "[Halgus]";
  122. mes "Ok then, well come back here if you change your mind.";
  123. erasequest 60112;
  124. close;
  125. case 2:
  126. mes "[Halgus]";
  127. mes "Remember, get rid of 150 of those Pupa from the field.";
  128. close;
  129. }
  130. }
  131. }
  132. else {
  133. mes "[Halgus]";
  134. mes "Oh thank you so much.";
  135. mes "I know that I could've probably done this myself but it's not easy to be standing here all of the time.";
  136. getexp 385,30;
  137. getexp 385,30;
  138. getexp 385,30;
  139. erasequest 60112;
  140. close;
  141. }
  142. }
  143. //for minimum level
  144. if (BaseLevel > 1) {
  145. //for maximum level
  146. if (BaseLevel < 21) {
  147. mes "[Halgus]";
  148. mes "New here are you?";
  149. mes "Well look, I like helping new faces around here.";
  150. mes "And lets be honest, you are not the prettiest looking face I've seen.";
  151. next;
  152. mes "[Halgus]";
  153. mes "None-the-less my daughter thought it would be fun to gather pupa around this field and it's becoming unsightly.";
  154. mes "Do you mind helping me get rid of some Pupa to clear out this field?";
  155. next;
  156. switch(select("Sure, I don't mind:No")) {
  157. case 1:
  158. mes "[Halgus]";
  159. mes "Really? What would you like to do to help?";
  160. next;
  161. switch(select("Gather Items:Get rid of Pupa:Cancel")) {
  162. case 1:
  163. // Item turn in
  164. mes "[Halgus]";
  165. mes "Can you collect ^00CE0025 Chrysalis^000000 and return them to me, I promise to reward you well.";
  166. next;
  167. switch(select("I have Chrysalis:What did you need?")) {
  168. case 1:
  169. if (countitem(915) > 24) {
  170. mes "[Halgus]";
  171. mes "Amazing you found so many that fast.";
  172. mes "Like I promised, give me the Chrysalis and I will reward you with my wisdom.";
  173. delitem 915,25; //Chrysalis
  174. getexp 385,30;
  175. close;
  176. }
  177. else {
  178. mes "[Halgus]";
  179. mes "I need ^00CE0025 Chrysalis^000000 and no less please.";
  180. close;
  181. }
  182. case 2:
  183. mes "[Halgus]";
  184. mes "I need ^00CE0025 Chrysalis^000000.";
  185. close;
  186. }
  187. case 2:
  188. // Kill Count Quest
  189. mes "[Halgus]";
  190. mes "Thank you so much!";
  191. mes "How many would you like to get rid of?";
  192. next;
  193. switch(select("50 Pupa:100 Pupa:150 Pupa")) {
  194. case 1:
  195. mes "[Halgus]";
  196. mes "If you can get rid of 50 of those Pupa from the field I will be grateful.";
  197. setquest 60110;
  198. close;
  199. case 2:
  200. mes "[Halgus]";
  201. mes "If you can get rid of 100 of those Pupa from the field I will be grateful.";
  202. setquest 60111;
  203. close;
  204. case 3:
  205. mes "[Halgus]";
  206. mes "If you can get rid of 150 of those Pupa from the field I will be grateful.";
  207. setquest 60112;
  208. close;
  209. }
  210. case 3:
  211. mes "[Halgus]";
  212. mes "If you change your mind, please come back.";
  213. close;
  214. }
  215. case 2:
  216. mes "[Halgus]";
  217. mes "If you change your mind, please come back.";
  218. close;
  219. }
  220. }
  221. else {
  222. mes "[Halgus]";
  223. mes "You could probably easily help me out, but I want to give charity to those who are not as strong as you.";
  224. close;
  225. }
  226. }
  227. else {
  228. mes "[Halgus]";
  229. mes "Please return to me when you are a little stronger.";
  230. close;
  231. }
  232. }