11-25.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. //===== rAthena Script =======================================
  2. //= Eden Group Quests - Mission [11 - 25]
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Repetable Quests for Players between Baselevel 11 - 25.
  11. //===== Additional Comments: =================================
  12. //= 1.0 First Version.
  13. //= 1.1 Some little optimization here and there. [Masao]
  14. //= 1.2 Optimized. [Euphy]
  15. //= 1.3 Bug fixes. [Capuche]
  16. //= 1.4 Added support to Para_Team_Mark_ in Eden Group. [Ragno]
  17. //= 1.5 Added use of F_HasEdenGroupMark function. [Ragno]
  18. //============================================================
  19. moc_para01,36,38,3 script Mission [11 - 25]#Tuto 4_BOARD3,{
  20. if (!callfunc("F_HasEdenGroupMark")) {
  21. mes "- You need to have an -";
  22. mes "- ^4d4dff'Eden Group Mark'^000000 -";
  23. mes "- to receive these missions. -";
  24. close;
  25. }
  26. for ( .@i = 11124; .@i < 11134; .@i++ )
  27. if (checkquest(.@i,PLAYTIME) == 2) erasequest .@i;
  28. for( .@i = 11114; .@i < 11124; .@i++ ) {
  29. .@j = checkquest(.@i,HUNTING);
  30. if (.@j == 2) {
  31. mes " - You must collect your - ";
  32. mes " - reward before starting - ";
  33. mes " - a new mission. - ";
  34. mes " ";
  35. mes " - Manager : Spike - ";
  36. close;
  37. }
  38. else if (.@j >= 0) {
  39. mes " - You can only request - ";
  40. mes " - one mission at a time. - ";
  41. mes " ";
  42. mes " - Manager : Spike - ";
  43. close;
  44. }
  45. }
  46. if (BaseLevel < 11) {
  47. mes " - There are no tasks - ";
  48. mes " - open for you right now. - ";
  49. close;
  50. }
  51. if (BaseLevel > 25) {
  52. mes " - These missions are too - ";
  53. mes " - easy for your caliber - ";
  54. mes " - search for a more level - ";
  55. mes " - appropriate mission. - ";
  56. close;
  57. }
  58. mes " - Mission bulletin board -";
  59. mes " - for beginners. -";
  60. mes " ";
  61. mes " - Manager : Spike -";
  62. next;
  63. switch(select("Hornet Hunting:Condor Hunting:Grasshopper's Leg:Worm Tail Hunting:Spore Hunting:Pest Control:Muka Hunting:Familiar Hunting:Collect Feathers:Collect Poison Spores:Cancel")) {
  64. case 1: callsub L_Quest,11114,"Hornet Hunting"," - Hunt 10 ^4d4dff'Hornets'^000000 - "," - northwest of Prontera. - ";
  65. case 2: callsub L_Quest,11115,"Condor Hunting"," - Hunt 20 ^4d4dff'Condors'^000000 - "," - south of Morroc. - ";
  66. case 3: callsub L_Quest,11116,"Grasshopper's Leg"," - Hunt 10 ^4d4dff'Rockers'^000000 - "," - southwest of Prontera and - "," - bring 10 ^4d4dffGrasshopper's Legs^000000. - ";
  67. case 4: callsub L_Quest,11117,"Worm Tail Hunting"," - Hunt 20 ^4d4dff'Worm Tails'^000000 - "," - southeast of Payon.- ";
  68. case 5: callsub L_Quest,11118,"Spore Hunting"," - Hunt 30 ^4d4dff'Spores'^000000 - "," - around Payon. - ";
  69. case 6: callsub L_Quest,11119,"Pest Control"," - Hunt 20 ^4d4dffThief Bug Eggs^000000 - "," - in the Prontera Culvert - "," - and bring 10 ^4d4dffChrysalis^000000. - ";
  70. case 7: callsub L_Quest,11120,"Muka Hunting"," - Hunt 20 ^4d4dff'Muka'^000000 - "," - south of Prontera. - ";
  71. case 8: callsub L_Quest,11121,"Familiar Hunting"," - Hunt 20 ^4d4dffFamiliar^000000 - "," - in the Culvert Sewers - "," - west of Prontera. - ";
  72. case 9: callsub L_Quest,11122,"Collect Feathers"," - Hunt 30 ^4d4dff'Peco Pecos'^000000 - "," - south of Prontera. - ";
  73. case 10: callsub L_Quest,11123,"Collect Poison Spores"," - Hunt 30 ^4d4dffPoison Spores^000000 - "," - inside the Geffen Tower and - "," - bring 5 ^4d4dffPoison Spores^000000. - ";
  74. case 11:
  75. mes " - Stop reading the bulletin board. - ";
  76. close;
  77. }
  78. L_Quest:
  79. .@quest_status = checkquest(getarg(0)+10,PLAYTIME);
  80. if (.@quest_status == 0 || .@quest_status == 1) {
  81. mes " - Mission ^4d4dff"+ getarg(1) +"^000000 - ";
  82. mes " - is already finished for today. - ";
  83. mes " ";
  84. mes " - Manager : Spike - ";
  85. close;
  86. }
  87. mes " - Mission '"+ getarg(1) +"' - ";
  88. for ( .@i = 2; .@i < getargcount(); .@i++ )
  89. mes getarg(.@i);
  90. mes " ";
  91. mes " - Manager : Spike - ";
  92. next;
  93. if (select("I will do this mission.:Look for other missions.") == 2) {
  94. mes " - Let's search for -";
  95. mes " - other missions. - ";
  96. close;
  97. }
  98. for ( .@i = 2; .@i < getargcount(); .@i++ )
  99. mes getarg(.@i);
  100. setquest getarg(0);
  101. close;
  102. }
  103. moc_para01,32,30,6 script Spike 4_F_CHILD,{
  104. for( .@i = 11114; .@i < 11124; .@i++ ) {
  105. .@j = checkquest(.@i,HUNTING);
  106. if (.@j == 2) {
  107. switch(.@i) {
  108. case 11114: callsub L_Quest,.@i,"Hornet Hunting",900;
  109. case 11115: callsub L_Quest,.@i,"Condor Hunting",1800;
  110. case 11116: callsub L_Quest,.@i,"Grasshopper's Leg",1400,940,10;
  111. case 11117: callsub L_Quest,.@i,"Worm Tail Hunting",2600;
  112. case 11118: callsub L_Quest,.@i,"Spore Hunting",3900;
  113. case 11119: callsub L_Quest,.@i,"Extirpate Insects",2900,915,10;
  114. case 11120: callsub L_Quest,.@i,"Muka Hunting",3200;
  115. case 11121: callsub L_Quest,.@i,"Familiar Hunting",3200;
  116. case 11122: callsub L_Quest,.@i,"Collect Feathers",5400;
  117. case 11123: callsub L_Quest,.@i,"Collect Poison Spores",6000,7033,5;
  118. }
  119. }
  120. else if (.@j >= 0) {
  121. mes "[Spike]";
  122. mes "You haven't finished your mission yet.";
  123. mes "Keep up the good work. You are almost done.";
  124. close;
  125. }
  126. }
  127. mes "[Spike]";
  128. mes "Are you looking for a job?";
  129. mes "We always have lots of work to do.";
  130. next;
  131. mes "[Spike]";
  132. mes "Why don't you look around and find some interesting tasks?";
  133. close;
  134. L_Quest:
  135. .@quest_id = getarg(0);
  136. if (checkquest(.@quest_id,HUNTING) == 2) {
  137. .@item_req = getarg(3,0);
  138. .@req_amount = getarg(4,0);
  139. if (.@item_req) {
  140. if (countitem(.@item_req) < .@req_amount) {
  141. mes "[Spike]";
  142. mes "You don't have enough "+ getitemname(.@item_req) +".";
  143. mes "You need to bring "+ .@req_amount +" "+ getitemname(.@item_req) +".";
  144. close;
  145. }
  146. }
  147. mes "[Spike]";
  148. mes "Hmm... let me see~";
  149. mes "You have completed the '"+ getarg(1) +"' mission.";
  150. next;
  151. mes "[Spike]";
  152. mes "Good work~!!";
  153. mes "Our client is so happy with your work. He will appreciate what you have done.";
  154. mes "Please help us again. Thanks!";
  155. if (.@item_req)
  156. delitem .@item_req,.@req_amount;
  157. erasequest .@quest_id;
  158. setquest .@quest_id+10;
  159. getexp getarg(2),0;
  160. close;
  161. }
  162. }