quest_demonpungus.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. //===== rAthena Script =======================================
  2. //= iRO Repeatable EXP Quests.
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Added Monster Killing quests.
  12. //= Repeatable EXP Quest (Bacillus)
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version.
  15. //============================================================
  16. ein_fild01,43,249,0 script Local Villager#hunt 898,{
  17. if (checkquest(60125) != -1) {
  18. if (checkquest(60125,HUNTING) != 2 ) {
  19. mes "[Local Villager]";
  20. mes "Have you finished hunting the 50 Demon Pungus?";
  21. next;
  22. switch(select("Yes:No:I want to quit")) {
  23. case 1:
  24. mes "[Local Villager]";
  25. mes "Hmm, I don't think you've hunted 50 yet...";
  26. close;
  27. case 2:
  28. mes "[Local Villager]";
  29. mes "Remember, I need help hunting Demon Pungus so go and hunt 50 of them.";
  30. close;
  31. case 3:
  32. mes "[Local Villager]";
  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 "[Local Villager]";
  39. mes "Ok then, well come back here if you change your mind.";
  40. erasequest 60125;
  41. close;
  42. case 2:
  43. mes "[Local Villager]";
  44. mes "Please kill 50 Demon Pungus.";
  45. close;
  46. }
  47. }
  48. }
  49. else {
  50. mes "[Local Villager]";
  51. mes "Amazing, you did that with speed.";
  52. getexp 250266,144452;
  53. erasequest 60125;
  54. close;
  55. }
  56. }
  57. if (checkquest(60126) != -1) {
  58. if (checkquest(60126,HUNTING) != 2 ) {
  59. mes "[Local Villager]";
  60. mes "Have you finished hunting the 50 Demon Pungus?";
  61. next;
  62. switch(select("Yes:No:I want to quit")) {
  63. case 1:
  64. mes "[Local Villager]";
  65. mes "Hmm, I don't think you've hunted 100 yet...";
  66. close;
  67. case 2:
  68. mes "[Local Villager]";
  69. mes "Remember, I need help hunting Demon Pungus so go and hunt 100 of them.";
  70. close;
  71. case 3:
  72. mes "[Local Villager]";
  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 "[Local Villager]";
  79. mes "Ok then, well come back here if you change your mind.";
  80. erasequest 60126;
  81. close;
  82. case 2:
  83. mes "[Local Villager]";
  84. mes "Please kill 100 Demon Pungus.";
  85. close;
  86. }
  87. }
  88. }
  89. else {
  90. mes "[Local Villager]";
  91. mes "Amazing, you did that with speed.";
  92. getexp 250266,144452;
  93. getexp 250266,144452;
  94. erasequest 60126;
  95. close;
  96. }
  97. }
  98. if (checkquest(60127) != -1) {
  99. if (checkquest(60127,HUNTING) != 2 ) {
  100. mes "[Local Villager]";
  101. mes "Have you finished hunting the 150 Demon Pungus?";
  102. next;
  103. switch(select("Yes:No:I want to quit")) {
  104. case 1:
  105. mes "[Local Villager]";
  106. mes "Hmm, I don't think you've hunted 150 yet...";
  107. close;
  108. case 2:
  109. mes "[Local Villager]";
  110. mes "Remember, I need help hunting Demon Pungus so go and hunt 150 of them.";
  111. close;
  112. case 3:
  113. mes "[Local Villager]";
  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 "[Local Villager]";
  120. mes "Ok then, well come back here if you change your mind.";
  121. erasequest 60127;
  122. close;
  123. case 2:
  124. mes "[Local Villager]";
  125. mes "Please kill 150 Demon Pungus.";
  126. close;
  127. }
  128. }
  129. }
  130. else {
  131. mes "[Local Villager]";
  132. mes "Amazing, you did that with speed.";
  133. getexp 250266,144452;
  134. getexp 250266,144452;
  135. getexp 250266,144452;
  136. erasequest 60127;
  137. close;
  138. }
  139. }
  140. //for minimum level
  141. if (BaseLevel > 59) {
  142. //for maximum level
  143. if (BaseLevel < 75) {
  144. mes "[Local Villager]";
  145. mes "Hey, you there. Yeah you!";
  146. mes "Do you think you can help me with something?";
  147. next;
  148. switch(select("Sure:No")) {
  149. case 1:
  150. mes "[Local Villager]";
  151. mes "I am trying to make my way through but I can't seem to get past these Demon Pungus.";
  152. next;
  153. switch(select("Gather Items:Hunt Demon Pungus:Cancel")) {
  154. case 1:
  155. // Item turn in
  156. mes "[Local Villager]";
  157. mes "Can you help by collecting ^FF0000Bacillus^000000?";
  158. mes "I will reward you for helping clear this out for me.";
  159. next;
  160. switch(select("I have Bacillus:What did you need?")) {
  161. case 1:
  162. /*
  163. if (checkweight(504,10) == 0) {
  164. mes "[Local Villager]";
  165. mes "Hey, it looks like that the weight on";
  166. mes "your back will crush you. Come back";
  167. mes "after you have lost some weight.";
  168. close;
  169. }
  170. */
  171. if (countitem(7119) > 49) {
  172. mes "[Local Villager]";
  173. mes "I had my doubts, but you have proven me wrong.";
  174. delitem 7119,50; //Spawns
  175. getexp 250266,144452;
  176. //getitem 504,10; //White_Potion
  177. close;
  178. }
  179. else {
  180. mes "[Local Villager]";
  181. mes "It doesn't look like you have enough.";
  182. next;
  183. mes "[Local Villager]";
  184. mes "I need to see that you have gathered ^FF000050 Bacillus^000000, and then I can reward you.";
  185. close;
  186. }
  187. case 2:
  188. mes "[Local Villager]";
  189. mes "I need to see that you have gathered ^FF000050 Bacillus^000000, and then I can reward you.";
  190. close;
  191. }
  192. case 2:
  193. // Kill Count Quest
  194. mes "[Local Villager]";
  195. mes "Ah, ok I think you can help me out by hunting some Demon Pungus.";
  196. mes "How many would you like to hunt?";
  197. next;
  198. switch(select("50 Demon Pungus:100 Demon Pungus:150 Demon Pungus")) {
  199. case 1:
  200. mes "[Local Villager]";
  201. mes "Come back when you've finished your task and I will give you a small reward.";
  202. setquest 60125;
  203. close;
  204. case 2:
  205. mes "[Local Villager]";
  206. mes "Come back when you've finished your task and I will give you a small reward.";
  207. setquest 60126;
  208. close;
  209. case 3:
  210. mes "[Local Villager]";
  211. mes "Come back when you've finished your task and I will give you a small reward.";
  212. setquest 60127;
  213. close;
  214. }
  215. case 3:
  216. mes "[Local Villager]";
  217. mes "If you change your mind, please come back.";
  218. close;
  219. }
  220. case 2:
  221. mes "[Local Villager]";
  222. mes "If you change your mind, please come back.";
  223. close;
  224. }
  225. }
  226. else {
  227. mes "[Local Villager]";
  228. mes "Um, um. I don't think..";
  229. next;
  230. mes "[Local Villager]";
  231. mes "Yeah, sorry I can't talk right now.";
  232. close;
  233. }
  234. }
  235. else {
  236. mes "[Local Villager]";
  237. mes "Its amazing, truly it is.";
  238. mes "I just wish I could get through this all.";
  239. close;
  240. }
  241. }