quest_caramel.txt 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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 (Porcupine Quills)
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version.
  15. //============================================================
  16. mjolnir_01,296,29,6 script Yullo#Caramel_Hunt 95,{
  17. if (checkquest(60116) != -1) {
  18. if (checkquest(60116,HUNTING) != 2 ) {
  19. mes "[Yullo]";
  20. mes "Have you finished hunting the 50 Caramels?";
  21. next;
  22. switch(select("Yes:No:I want to quit")) {
  23. case 1:
  24. mes "[Yullo]";
  25. mes "Hmm, I don't think you've hunted 50 yet...";
  26. close;
  27. case 2:
  28. mes "[Yullo]";
  29. mes "Remember, I need help hunting Caramels so go and hunt 50 of them.";
  30. close;
  31. case 3:
  32. mes "[Yullo]";
  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 "[Yullo]";
  39. mes "Ok then, well come back here if you change your mind.";
  40. erasequest 60116;
  41. close;
  42. case 2:
  43. mes "[Yullo]";
  44. mes "Please kill 50 Caramels.";
  45. close;
  46. }
  47. }
  48. }
  49. else {
  50. mes "[Yullo]";
  51. mes "Amazing, you did that with speed.";
  52. getexp 10425,6272;
  53. erasequest 60116;
  54. close;
  55. }
  56. }
  57. if (checkquest(60117) != -1) {
  58. if (checkquest(60117,HUNTING) != 2 ) {
  59. mes "[Yullo]";
  60. mes "Have you finished hunting the 50 Caramels?";
  61. next;
  62. switch(select("Yes:No:I want to quit")) {
  63. case 1:
  64. mes "[Yullo]";
  65. mes "Hmm, I don't think you've hunted 100 yet...";
  66. close;
  67. case 2:
  68. mes "[Yullo]";
  69. mes "Remember, I need help hunting Caramels so go and hunt 100 of them.";
  70. close;
  71. case 3:
  72. mes "[Yullo]";
  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 "[Yullo]";
  79. mes "Ok then, well come back here if you change your mind.";
  80. erasequest 60117;
  81. close;
  82. case 2:
  83. mes "[Yullo]";
  84. mes "Please kill 100 Caramels.";
  85. close;
  86. }
  87. }
  88. }
  89. else {
  90. mes "[Yullo]";
  91. mes "Amazing, you did that with speed.";
  92. getexp 10425,6272;
  93. getexp 10425,6272;
  94. erasequest 60117;
  95. close;
  96. }
  97. }
  98. if (checkquest(60118) != -1) {
  99. if (checkquest(60118,HUNTING) != 2 ) {
  100. mes "[Yullo]";
  101. mes "Have you finished hunting the 150 Caramels?";
  102. next;
  103. switch(select("Yes:No:I want to quit")) {
  104. case 1:
  105. mes "[Yullo]";
  106. mes "Hmm, I don't think you've hunted 150 yet...";
  107. close;
  108. case 2:
  109. mes "[Yullo]";
  110. mes "Remember, I need help hunting Caramels so go and hunt 150 of them.";
  111. close;
  112. case 3:
  113. mes "[Yullo]";
  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 "[Yullo]";
  120. mes "Ok then, well come back here if you change your mind.";
  121. erasequest 60118;
  122. close;
  123. case 2:
  124. mes "[Yullo]";
  125. mes "Please kill 150 Caramels.";
  126. close;
  127. }
  128. }
  129. }
  130. else {
  131. mes "[Yullo]";
  132. mes "Amazing, you did that with speed.";
  133. getexp 10425,6272;
  134. getexp 10425,6272;
  135. getexp 10425,6272;
  136. erasequest 60118;
  137. close;
  138. }
  139. }
  140. //for minimum level
  141. if (BaseLevel > 23) {
  142. //for maximum level
  143. if (BaseLevel < 61) {
  144. mes "[Yullo]";
  145. mes "I can't, no more and I mean it.";
  146. mes "Look at me I am serious I can't kill any more of these things.";
  147. next;
  148. switch(select("What things?:Ignore.")) {
  149. case 1:
  150. mes "[Yullo]";
  151. mes "You know what, here is an idea.";
  152. mes "You can gather them and I can give you a reward for your efforts!";
  153. next;
  154. switch(select("Gather Items:Hunt Caramels:Cancel")) {
  155. case 1:
  156. // Item turn in
  157. mes "[Yullo]";
  158. mes "Ok, so I need 25 Porcupine";
  159. mes "Quill's.";
  160. mes "Please tell me you have some or can";
  161. mes "help me";
  162. next;
  163. switch(select("I have Porcupine Quills:Well I don't think I can help.")) {
  164. case 1:
  165. /*
  166. if (checkweight(501,10) == 0) {
  167. mes "[Yullo]";
  168. mes "Hey, it looks like that the weight on";
  169. mes "your back will crush you. Come back";
  170. mes "after you have lost some weight.";
  171. close;
  172. }
  173. */
  174. if (countitem(1027) > 24) {
  175. mes "[Yullo]";
  176. mes "Great, you have enough!";
  177. mes "Just like I promised a little reward.";
  178. delitem 1027,25; //Porcupine_Spike
  179. getexp 10425,6272;
  180. //getitem 501,10; //Red_Potion
  181. close;
  182. }
  183. else {
  184. mes "[Yullo]";
  185. mes "Where are the Porcupine Quills?";
  186. mes "You think I wouldn't notice?";
  187. close;
  188. }
  189. case 2:
  190. mes "[Yullo]";
  191. mes "I need ^00CE0025 Porcupine Quills^000000.";
  192. close;
  193. }
  194. case 2:
  195. // Kill Count Quest
  196. mes "[Yullo]";
  197. mes "Ah, ok I think you can help me out by hunting some Caramels.";
  198. mes "How many would you like to hunt?";
  199. next;
  200. switch(select("50 Caramels:100 Caramels:150 Caramels")) {
  201. case 1:
  202. mes "[Yullo]";
  203. mes "Come back when you've finished your task and I will give you a small reward.";
  204. setquest 60116;
  205. close;
  206. case 2:
  207. mes "[Yullo]";
  208. mes "Come back when you've finished your task and I will give you a small reward.";
  209. setquest 60117;
  210. close;
  211. case 3:
  212. mes "[Yullo]";
  213. mes "Come back when you've finished your task and I will give you a small reward.";
  214. setquest 60118;
  215. close;
  216. }
  217. case 3:
  218. mes "[Yullo]";
  219. mes "If you change your mind, please come back.";
  220. close;
  221. }
  222. case 2:
  223. mes "[Yullo]";
  224. mes "If you change your mind, please come back.";
  225. close;
  226. }
  227. }
  228. else {
  229. mes "[Yullo]";
  230. mes "Hello, my name is Yullo.";
  231. mes "Now wait a minute, are you not a little too high of level for this?";
  232. close;
  233. }
  234. }
  235. else {
  236. mes "[Yullo]";
  237. mes "Hmm, this maybe a little much of a request for you.";
  238. mes "Come back when you are taller and stronger.";
  239. close;
  240. }
  241. }