quest_goat.txt 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 (Antelope Horns)
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version.
  15. //============================================================
  16. ein_fild06,82,171,0 script Vegetable Farmer#Goat 919,{
  17. if (checkquest(60137) != -1) {
  18. if (checkquest(60137,HUNTING) != 2 ) {
  19. mes "[Vegetable Farmer]";
  20. mes "Have you finished hunting the 50 Goats?";
  21. next;
  22. switch(select("Yes:No:I want to quit")) {
  23. case 1:
  24. mes "[Vegetable Farmer]";
  25. mes "Hmm, I don't think you've hunted 50 yet.";
  26. close;
  27. case 2:
  28. mes "[Vegetable Farmer]";
  29. mes "Remember, I need help hunting Goats so go and hunt 50 of them.";
  30. close;
  31. case 3:
  32. mes "[Vegetable Farmer]";
  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 "[Vegetable Farmer]";
  39. mes "Ok then, well come back here if you change your mind.";
  40. erasequest 60137;
  41. close;
  42. case 2:
  43. mes "[Vegetable Farmer]";
  44. mes "Please kill 50 Goats so I can farm my vegetables without any worries.";
  45. close;
  46. }
  47. }
  48. }
  49. else {
  50. mes "[Vegetable Farmer]";
  51. mes "Amazing, you did that with speed.";
  52. getexp 258489,155155;
  53. erasequest 60137;
  54. close;
  55. }
  56. }
  57. if (checkquest(60138) != -1) {
  58. if (checkquest(60138,HUNTING) != 2) {
  59. mes "[Vegetable Farmer]";
  60. mes "Have you finished hunting the 100 Goats?";
  61. next;
  62. switch(select("Yes:No:I want to quit")) {
  63. case 1:
  64. mes "[Vegetable Farmer]";
  65. mes "Hmm, I don't think you've hunted 100 yet.";
  66. close;
  67. case 2:
  68. mes "[Vegetable Farmer]";
  69. mes "Remember, I need help hunting Goats so go and hunt 100 of them.";
  70. close;
  71. case 3:
  72. mes "[Vegetable Farmer]";
  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 "[Vegetable Farmer]";
  79. mes "Ok then, well come back here if you change your mind.";
  80. erasequest 60138;
  81. close;
  82. case 2:
  83. mes "[Vegetable Farmer]";
  84. mes "Please kill 100 Goats so I can farm my vegetables without any worries.";
  85. close;
  86. }
  87. }
  88. }
  89. else {
  90. mes "[Vegetable Farmer]";
  91. mes "Amazing, you did that with speed.";
  92. getexp 258489,155155;
  93. getexp 258489,155155;
  94. erasequest 60138;
  95. close;
  96. }
  97. }
  98. if (checkquest(60139) != -1) {
  99. if (checkquest(60139,HUNTING) != 2) {
  100. mes "[Vegetable Farmer]";
  101. mes "Have you finished hunting the 150 Goats?";
  102. next;
  103. switch(select("Yes:No:I want to quit")) {
  104. case 1:
  105. mes "[Vegetable Farmer]";
  106. mes "Hmm, I don't think you've hunted 150 yet.";
  107. close;
  108. case 2:
  109. mes "[Vegetable Farmer]";
  110. mes "Remember, I need help hunting Goats so go and hunt 150 of them.";
  111. close;
  112. case 3:
  113. mes "[Vegetable Farmer]";
  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 "[Vegetable Farmer]";
  120. mes "Ok then, well come back here if you change your mind.";
  121. erasequest 60139;
  122. close;
  123. case 2:
  124. mes "[Vegetable Farmer]";
  125. mes "Please kill 150 Goats so I can farm my vegetables without any worries.";
  126. close;
  127. }
  128. }
  129. }
  130. else {
  131. mes "[Vegetable Farmer]";
  132. mes "Amazing, you did that with speed.";
  133. getexp 258489,155155;
  134. getexp 258489,155155;
  135. getexp 258489,155155;
  136. erasequest 60139;
  137. close;
  138. }
  139. }
  140. //for minimum level
  141. if (BaseLevel > 69) {
  142. //for maximum level
  143. if (BaseLevel < 85) {
  144. mes "[Vegetable Farmer]";
  145. mes "Oh great!";
  146. mes "You are here to help me right?";
  147. mes "If not, then I am in a world of hurt.";
  148. next;
  149. switch(select("Sure:No")) {
  150. case 1:
  151. mes "[Vegetable Farmer]";
  152. mes "These Goats keep eating my vegetables.";
  153. mes "Can you do what you can to help me?";
  154. next;
  155. switch(select("Gather Items:Hunt Goats:Cancel")) {
  156. case 1:
  157. // Item turn in
  158. mes "[Vegetable Farmer]";
  159. mes "I need ^FF0000Antelope Horns^000000 to show for your hard work, and I will reward you.";
  160. next;
  161. switch(select("I have Antelope Horns:What did you need?")) {
  162. case 1:
  163. /*
  164. if (checkweight(504,10) == 0) {
  165. mes "[Vegetable Farmer]";
  166. mes "Hey, it looks like that the weight on";
  167. mes "your back will crush you. Come back";
  168. mes "after you have lost some weight.";
  169. close;
  170. }
  171. */
  172. if (countitem(7106) > 49) {
  173. mes "[Vegetable Farmer]";
  174. mes "Amazing, you did that with speed.";
  175. mes "I am truly grateful.";
  176. delitem 7106,50; //Goat's_Horn
  177. getexp 258489,155155;
  178. //getitem 504,10; //White_Potion
  179. close;
  180. }
  181. else {
  182. mes "[Vegetable Farmer]";
  183. mes "It doesn't look like you have enough.";
  184. next;
  185. mes "[Vegetable Farmer]";
  186. mes "I need to see that you have gathered ^FF000050 Antelope Horns^000000, and then I can reward you.";
  187. close;
  188. }
  189. case 2:
  190. mes "[Vegetable Farmer]";
  191. mes "I need to see that you have gathered ^FF000050 Antelope Horns^000000, and then I can reward you.";
  192. close;
  193. }
  194. case 2:
  195. // Kill Count Quest
  196. mes "[Vegetable Farmer]";
  197. mes "Thank you.";
  198. mes "How many Goats would you like to hunt?";
  199. next;
  200. switch(select("50 Goats:100 Goats:150 Goats")) {
  201. case 1:
  202. mes "[Vegetable Farmer]";
  203. mes "Kill 50 of those Goats and let me know when you're done. I will reward you for your efforts.";
  204. setquest 60137;
  205. close;
  206. case 2:
  207. mes "[Vegetable Farmer]";
  208. mes "Kill 100 of those Goats and let me know when you're done. I will reward you for your efforts.";
  209. setquest 60138;
  210. close;
  211. case 3:
  212. mes "[Vegetable Farmer]";
  213. mes "Kill 150 of those Goats and let me know when you're done. I will reward you for your efforts.";
  214. setquest 60139;
  215. close;
  216. }
  217. case 3:
  218. mes "[Vegetable Farmer]";
  219. mes "If you change your mind, please come back.";
  220. close;
  221. }
  222. case 2:
  223. mes "[Vegetable Farmer]";
  224. mes "If you change your mind, please come back.";
  225. close;
  226. }
  227. }
  228. else {
  229. mes "[Vegetable Farmer]";
  230. mes "Oh boy, Oh boy!";
  231. next;
  232. mes "[Vegetable Farmer]";
  233. mes "Sorry I can't talk right now I am in a world of hurt here, these darn Goats are going to kill me.";
  234. close;
  235. }
  236. }
  237. else {
  238. mes "[Vegetable Farmer]";
  239. mes "My vegetables, where did they all go?";
  240. mes "Oh, no..no!!!";
  241. close;
  242. }
  243. }