quest_dokebi.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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 (Dokebi Horns)
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version.
  15. //============================================================
  16. pay_fild10,108,357,5 script Li#Dokebi_Hunt 90,{
  17. if (checkquest(60128) != -1) {
  18. if (checkquest(60128,HUNTING) != 2 ) {
  19. mes "[Li]";
  20. mes "Have you finished hunting the 50 Dokebis?";
  21. next;
  22. switch(select("Yes:No:I want to quit")) {
  23. case 1:
  24. mes "[Li]";
  25. mes "Hmm, I don't think you've hunted 50 yet...";
  26. close;
  27. case 2:
  28. mes "[Li]";
  29. mes "Remember, I need help hunting Dokebis so go and hunt 50 of them.";
  30. close;
  31. case 3:
  32. mes "[Li]";
  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 "[Li]";
  39. mes "Ok then, well come back here if you change your mind.";
  40. erasequest 60128;
  41. close;
  42. case 2:
  43. mes "[Li]";
  44. mes "Please kill 50 Dokebis.";
  45. close;
  46. }
  47. }
  48. }
  49. else {
  50. mes "[Li]";
  51. mes "Amazing, you did that with speed.";
  52. getexp 42000,36000;
  53. erasequest 60128;
  54. close;
  55. }
  56. }
  57. if (checkquest(60129) != -1) {
  58. if (checkquest(60129,HUNTING) != 2 ) {
  59. mes "[Li]";
  60. mes "Have you finished hunting the 50 Dokebis?";
  61. next;
  62. switch(select("Yes:No:I want to quit")) {
  63. case 1:
  64. mes "[Li]";
  65. mes "Hmm, I don't think you've hunted 100 yet...";
  66. close;
  67. case 2:
  68. mes "[Li]";
  69. mes "Remember, I need help hunting Dokebis so go and hunt 100 of them.";
  70. close;
  71. case 3:
  72. mes "[Li]";
  73. mes "Are you sure that you want to stop hunting?";
  74. mes "Any progress that you've made will be erased";
  75. next;
  76. switch(select("Yes:No")) {
  77. case 1:
  78. mes "[Li]";
  79. mes "Ok then, well come back here if you change your mind.";
  80. erasequest 60129;
  81. close;
  82. case 2:
  83. mes "[Li]";
  84. mes "Please kill 100 Dokebis.";
  85. close;
  86. }
  87. }
  88. }
  89. else {
  90. mes "[Li]";
  91. mes "Amazing, you did that with speed.";
  92. getexp 42000,36000;
  93. getexp 42000,36000;
  94. erasequest 60129;
  95. close;
  96. }
  97. }
  98. if (checkquest(60130) != -1) {
  99. if (checkquest(60130,HUNTING) != 2 ) {
  100. mes "[Li]";
  101. mes "Have you finished hunting the 150 Dokebis?";
  102. next;
  103. switch(select("Yes:No:I want to quit")) {
  104. case 1:
  105. mes "[Li]";
  106. mes "Hmm, I don't think you've hunted 150 yet...";
  107. close;
  108. case 2:
  109. mes "[Li]";
  110. mes "Remember, I need help hunting Dokebis so go and hunt 150 of them.";
  111. close;
  112. case 3:
  113. mes "[Li]";
  114. mes "Are you sure that you want to stop hunting?";
  115. mes "Any progress that you've made will be erased";
  116. next;
  117. switch(select("Yes:No")) {
  118. case 1:
  119. mes "[Li]";
  120. mes "Ok then, well come back here if you change your mind.";
  121. erasequest 60130;
  122. close;
  123. case 2:
  124. mes "[Li]";
  125. mes "Please kill 150 Dokebis.";
  126. close;
  127. }
  128. }
  129. }
  130. else {
  131. mes "[Li]";
  132. mes "Amazing, you did that with speed.";
  133. getexp 42000,36000;
  134. getexp 42000,36000;
  135. getexp 42000,36000;
  136. erasequest 60130;
  137. close;
  138. }
  139. }
  140. //for minimum level
  141. if (BaseLevel > 34) {
  142. //for maximum level
  143. if (BaseLevel < 71) {
  144. mes "[Li]";
  145. mes "Hello. DO you think you could help me?";
  146. next;
  147. switch(select("Sure:No")) {
  148. case 1:
  149. mes "[Li]";
  150. mes "There are so many Dokebis here...I just don't feel safe.";
  151. next;
  152. switch(select("Gather Items:Hunt Dokebis:Cancel")) {
  153. case 1:
  154. // Item turn in
  155. mes "[Li]";
  156. mes "My fortune teller business needs a good supply of ^FF0000Dokebi Horns^000000 to give my customers good luck.";
  157. next;
  158. switch(select("I have some Dokebi Horns:What did you need?")) {
  159. case 1:
  160. if (countitem(1021) > 49) {
  161. mes "[Li]";
  162. mes "Oh, great!";
  163. mes "Thank you for the horns.";
  164. delitem 1021,50; //Dokkaebi_Horn
  165. getexp 42000,36000;
  166. close;
  167. }
  168. else {
  169. mes "[Li]";
  170. mes "It doesn't look like you have enough.";
  171. next;
  172. mes "[Li]";
  173. mes "I need ^FF000050 Dokebi Horns^000000 for my fortune telling.";
  174. close;
  175. }
  176. case 2:
  177. mes "[Li]";
  178. mes "If you bring me";
  179. mes "^FF000050 Dokebi Horns^000000, I can give you some good luck.";
  180. close;
  181. }
  182. case 2:
  183. // Kill Count Quest
  184. mes "[Li]";
  185. mes "Ah, ok I think you can help me out by hunting some Dokebis.";
  186. mes "How many would you like to hunt?";
  187. next;
  188. switch(select("50 Dokebis:100 Dokebis:150 Dokebis")) {
  189. case 1:
  190. mes "[Li]";
  191. mes "Come back when you've finished your task and I will give you a small reward.";
  192. setquest 60128;
  193. close;
  194. case 2:
  195. mes "[Li]";
  196. mes "Come back when you've finished your task and I will give you a small reward.";
  197. setquest 60129;
  198. close;
  199. case 3:
  200. mes "[Li]";
  201. mes "Come back when you've finished your task and I will give you a small reward.";
  202. setquest 60130;
  203. close;
  204. }
  205. case 3:
  206. mes "[Li]";
  207. mes "If you change your mind, please come back.";
  208. close;
  209. }
  210. case 2:
  211. mes "[Li]";
  212. mes "If you change your mind, please come back.";
  213. close;
  214. }
  215. }
  216. else {
  217. mes "[Li]";
  218. mes "Hello";
  219. mes "I read fortunes in Payon.";
  220. close;
  221. }
  222. }
  223. else {
  224. mes "[Li]";
  225. mes "This place is dangerous!";
  226. next;
  227. mes "[Li]";
  228. mes "You should leave quickly!";
  229. close;
  230. }
  231. }