bandit_beard.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. //===== eAthena Script =======================================
  2. //= Bandit Beard Quest
  3. //===== By: ==================================================
  4. //= Mega Man Expert & Lupus
  5. //===== Current Version: =====================================
  6. //= 1.1b
  7. //===== Compatible With: =====================================
  8. //= eAthena 0.5.2 +
  9. //===== Description: =========================================
  10. //= A harmless quest for a simply item w/o any bonuses "Bandit Beard"
  11. //===== Additional Comments: =================================
  12. //= Fully working.
  13. //= 1.0 First release
  14. //= 1.1 Fixed some exploits, bugs and typos. Optimized 8) [Lupus]
  15. //= 1.1b fixed some typos
  16. //============================================================
  17. umbala.gat,126,129,4 script Bearded Man 120,{
  18. if(BEARD_QUEST == 4 ) goto L_MAKE;
  19. if(BEARD_QUEST >= 5 ) goto L_DONE;
  20. if(BEARD_QUEST >= 1 ) goto L_THREAD;
  21. mes "[Bearded Man]";
  22. mes "Beards! Get your wonderful beards!";
  23. mes "Would you like a beard?";
  24. next;
  25. menu "Yes, I'd like some facial hair!",-,"No thanks, thats gross!",M_NO;
  26. mes "[Bearded Man]";
  27. mes "HoHo~ So you want some whiskers.";
  28. emotion 18;
  29. mes "Well I would give you my beards but there not cheap.";
  30. mes "Matter of fact I have only one left...";
  31. mes "but I'm not selling it.";
  32. mes "But don't get mad! I can make you one.";
  33. next;
  34. set BEARD_QUEST,1;
  35. L_THREAD:
  36. mes "[Bearded Man]";
  37. mes "I would need some ^8080FFThread^000000 for the Beard.";
  38. mes "Talk to my friend in Izlude for some ^8080FFThread^000000.";
  39. next;
  40. mes "[Bearded Man]";
  41. mes "Also I would need you to get me some things for the beard.";
  42. mes "They are:";
  43. L_LIST:
  44. mes "^8080FFElastic Band^000000";
  45. mes "^8080FF5 Animal Skins^000000";
  46. mes "^8080FFBlack Dye Stuff^000000";
  47. mes "^8080FFGranpa Beard^000000";
  48. mes "^8080FF100 sticky Mucus^000000";
  49. mes "^8080FFCounteragent^000000";
  50. mes " and one ^8080FF2 Carat Diamond^000000";
  51. close;
  52. M_NO:
  53. mes "[Bearded Man]";
  54. mes "Fine, be that way!";
  55. emotion 7;
  56. close;
  57. L_DONE:
  58. mes "[Bearded Man]";
  59. mes "Sorry, I can only make one per person.";
  60. mes "We dont want too many beards now. Right?";
  61. emotion 29;
  62. close;
  63. L_MAKE:
  64. mes "[Bearded Man]";
  65. mes "Let's make you your beard!";
  66. next;
  67. if(countitem(7200) < 1 || countitem(919) < 1 || countitem(983) < 1 || countitem(2241) < 1 ||
  68. countitem(938) < 100 || countitem(973) < 1 || countitem(731) < 1) goto L_NOITEMS;
  69. delitem 7200, 1;
  70. delitem 919, 1;
  71. delitem 983, 1;
  72. delitem 2241, 1;
  73. delitem 938, 100;
  74. delitem 973, 1;
  75. delitem 731, 1;
  76. mes "^8080FF~You see him cutting and sewing the beard together~^000000";
  77. next;
  78. mes "^8080FF~He hands you the finished beard~^000000";
  79. next;
  80. getitem 2237, 1;
  81. set BEARD_QUEST, 5;
  82. mes "[Bearded Man]";
  83. mes "Have a nice day!";
  84. emotion 29;
  85. close;
  86. L_NOITEMS:
  87. mes "[Bearded Man]";
  88. mes "What the hell! I can't make a beard without the items!";
  89. mes "Here is the list again:";
  90. emotion 23;
  91. goto L_LIST;
  92. }
  93. //Master Tailor----------
  94. izlude_in.gat,123,175,4 script Master Tailor 50,{
  95. mes "[Master Tailor]";
  96. mes "Good evening! I am the Master Tailor!";
  97. if(BEARD_QUEST != 1 ) close;
  98. next;
  99. mes "[Master Tailor]";
  100. mes "What? A Bearded Man sent you...";
  101. mes "Well I'm sorry to say that I am out of ^8080FFThread^000000.";
  102. mes "But I have the address to where I get the shipments.";
  103. mes "It is in Al de Baran Karfa Inc. warehouse area.";
  104. mes "The address is: Al de Baran 59, 221";
  105. mes "See you later.";
  106. set BEARD_QUEST, 2;
  107. close;
  108. }
  109. // Karfa Thread Clerk---
  110. aldeba_in.gat,70,179,5 script Karfa Clerk 113,{
  111. mes "[Karfa Clerk]";
  112. if(BEARD_QUEST == 3 ) goto L_REPEAT;
  113. if(BEARD_QUEST > 3 ) goto L_DONE;
  114. mes "What can I do for you?";
  115. next;
  116. if(BEARD_QUEST == 2 ) goto L_DELIVERY;
  117. menu "What's in the boxes?",-,"Nothing.",M_NOPE;
  118. mes "[Karfa Clerk]";
  119. mes "They're empty.";
  120. M_NOPE:
  121. close;
  122. L_DELIVERY:
  123. mes "[Karfa Clerk]";
  124. mes "Sorry but we have not received any ^8080FFThread^000000.";
  125. mes "Our shipments have been put off until its safe.";
  126. mes "You see we get our ^8080FFThread^000000 from Alberta and a monsters keeps attacking our merchants.";
  127. next;
  128. mes "[Karfa Clerk]";
  129. mes "Now this monsters has not been doing this before.";
  130. mes "It may have to do with the warmer months.";
  131. mes "Please help us out!";
  132. set BEARD_QUEST,3;
  133. next;
  134. mes "[Karfa Clerk]";
  135. L_REPEAT:
  136. mes "Oh by the way, that Thread Merchant is somewhere around Alberta 60 and 100...";
  137. L_DONE:
  138. mes "Thank You!";
  139. close;
  140. }
  141. //Thread Merchant ------
  142. alberta.gat,65,123,6 script Man 85,{
  143. if(BEARD_QUEST == 3 && $@beardMobD) goto L_KILLED;
  144. if(BEARD_QUEST > 3) goto L_DONE;
  145. mes "[Thread Merchant]";
  146. mes "ARGGG!! I can never get my stuff to Al de Baran!";
  147. mes "I keep getting mobbed by some bugs.";
  148. mes "They steal all my supplies and ^8080FFThread^000000.";
  149. next;
  150. mes "[Thread Merchant]";
  151. if(BEARD_QUEST != 3) mes "What am I to do?";
  152. if(BEARD_QUEST != 3) close;
  153. if($@beardmob > 0) mes "Kill! Kill them already!!!";
  154. if($@beardmob > 0) close;
  155. mes "Are you here to help me?";
  156. emotion 1;
  157. next;
  158. menu "Yes",-,"No",M_NO;
  159. mes "[Thread Merchant]";
  160. mes "Oh thank the Gods!";
  161. mes "If you can only just kill the bugs I would be able to make my delivery.";
  162. next;
  163. mes "[Thread Merchant]";
  164. mes "Oh NO! Here they come!!";
  165. emotion 19;
  166. donpcevent "BRDQ_MOBS";
  167. close;
  168. L_KILLED:
  169. set $@beardMobD,0;
  170. mes "[Thread Merchant]";
  171. mes "Thank you for killing the Thief Bugs.";
  172. mes "As a token of my gratitude here is a box full of ^8080FFThread^000000.";
  173. set BEARD_QUEST,4;
  174. close;
  175. L_DONE:
  176. mes "[Thread Merchant]";
  177. mes "Thank you again!";
  178. emotion 15;
  179. close;
  180. M_NO:
  181. mes "[Thread Merchant]";
  182. mes "What to do...";
  183. close;
  184. }
  185. //mobsummons -------
  186. alberta.gat,1,1,1 script BRDQ_MOBS -1,{
  187. set $@beardMob,10;
  188. set $@beardMobD,0;
  189. monster "alberta.gat",65,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  190. monster "alberta.gat",66,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  191. monster "alberta.gat",67,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  192. monster "alberta.gat",68,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  193. monster "alberta.gat",66,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  194. monster "alberta.gat",67,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  195. monster "alberta.gat",68,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  196. monster "alberta.gat",66,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  197. monster "alberta.gat",67,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  198. monster "alberta.gat",68,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
  199. end;
  200. OnDie:
  201. set $@beardmob, $@beardmob - 1;
  202. if($@beardmob > 0) end;
  203. set $@beardMobD,1;
  204. end;
  205. On1201:
  206. On0001:
  207. set $@beardMob,0;
  208. set $@beardMobD,0;
  209. end;
  210. }