bandit_beard.txt 6.5 KB

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