bandit_beard.txt 6.6 KB

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