juice_maker.txt 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. //===== eAthena Script =======================================
  2. //= Juice Maker Quest
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.3
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //=
  11. //===== Additional Comments: =================================
  12. //= Fully working
  13. //= 1.1 fixed input number check [Lupus]
  14. //= 1.2 fixed misplaced Grape<->Carrot juices [Lupus]
  15. //= 1.3 added a loopless menu 'as many as possible' [Lupus]
  16. //============================================================
  17. // Morrison ------------------------------------------------
  18. prt_in.gat,47,173,2 script Morrison 97,
  19. {
  20. if(MEAT > 10) goto L_Candy;
  21. if(MARIANNE == 10) goto L_GoAway;
  22. mes "[Little Morrison]";
  23. mes "Wahhhhh!!! Wahh... NO more! NO more!";
  24. mes "I won't... eat anymore stupid ^0000ffFruit^000000 things!!";
  25. next;
  26. menu "Talk",M_Talk,"Cancel",M_End;
  27. M_Talk:
  28. if(countitem(517) > 0) goto L_Meat; //Meat
  29. mes "[Little Morrison]";
  30. mes "Arhhggg!! I'VE HAD ENOUGH!!! I can't eat anymore ^0000ffFruits^000000!";
  31. mes "They taste so SOUR..... I have to PEEL them before I can eat them.....they feel sticky and squishy...... it's really ANNOYING!!!!";
  32. next;
  33. mes "[LIttle Morrison]";
  34. mes "I just HATE FRUIT! I can't even get full off of the stuff.(~sigh~)";
  35. mes "Give me something more edible..... give me some...... ^ff0000MEAT^000000!!!";
  36. close;
  37. L_Meat:
  38. mes "[Little Morrison]";
  39. mes "...(sniff)....(sniff)(sniff).... Oh! Is that ^ff0000Meat^000000???";
  40. next;
  41. mes "[Little Morrison]";
  42. mes "Do you have some ^ff0000Meat^000000?!!!~(drools)~";
  43. mes "Umm... that yummy smell is making me SOOO HUNGRYYYY!!!l";
  44. next;
  45. mes "[Little Morrison]";
  46. mes "... Umm... excuse me..... could you give me some of that meat PLEEAASSSE?";
  47. next;
  48. menu "Give him some",sM_Give,"Ignore him",sM_Ignore;
  49. sM_Give:
  50. set MORRISON,1;
  51. set MEAT,MEAT + 1;
  52. delitem 517,1; //Meat
  53. mes "[Little Morrison]";
  54. mes "Whoah~!!! It's real Meat, Meat!";
  55. mes "Mmmm! It makes my mouth water.";
  56. mes "Oh thank you. Now I feel happy. Yum Yum...";
  57. close;
  58. sM_Ignore:
  59. set MORRISON,2;
  60. mes "[Little Morrison]";
  61. mes "Boo...";
  62. mes "Boo... Fine... Alright, Alright~!!! Selfish meanie!";
  63. close;
  64. M_End:
  65. mes "[Little Morrison]";
  66. mes "Wahhhhh!!! No matter how hard I try, I just can't eat Vegetables or ^0000ffFruit^000000! They're plain disgusting!!";
  67. close;
  68. L_GoAway:
  69. mes "[Little Morrison]";
  70. mes "Pffff... Leave me alone! You DON'T CARE about me! I'm gonna DIE because of these stupid Veggies and Fuits so MIND your own business!";
  71. close;
  72. L_Candy:
  73. mes "[Little Morrison]";
  74. mes "Ah..I am full now.";
  75. mes "You don't have to feed me any more. I think I am gonna BURST if i keep eating more.";
  76. next;
  77. mes "[Little Morrison]";
  78. mes "And... um... Take this.";
  79. next;
  80. getitem 529,3;
  81. getitem 530,1;
  82. set MEAT,0;
  83. mes "[Little Morrison]";
  84. mes "It is from my secret stash of Candy that I hide from my Mom. Since you gave me some Meat, I will give you some candy." ;
  85. close;
  86. }
  87. // Housewife Marianne ---------------------------------------------------
  88. prt_in.gat,49,172,2 script Housewife Marianne 53,
  89. {
  90. if(MORRISON == 1) goto L_GaveMeat;
  91. if(MORRISON == 2) goto L_Juice;
  92. mes "[Housewife Marianne]";
  93. mes "Morrison!! Please eat some fruit will ya? Fruit~!";
  94. mes "*Sob*~!! Like father like son...";
  95. next;
  96. menu "Talk",M_Talk,"Cancel",M_Cancel;
  97. close;
  98. M_Talk:
  99. mes "[Housewife Marianne]";
  100. mes "(~Sigh~)...This is Morrison... My one and only son.";
  101. mes "He's going through some kinda faze and doesn't want to eat any ^0000ffFruits^000000 or vegetables. Look at his face, it turns sour just hearing about ^0000fffFruit^000000...";
  102. next;
  103. mes "[Housewife Marianne]";
  104. mes "All he wants to eat is but ^ff0000Meat^000000... (sigh)...he needs ^0000ffFruits^000000 and vegetables for a proper diet.";
  105. next;
  106. close;
  107. M_Cancel:
  108. mes "[Housewife Marianne]";
  109. mes "Morrison!! I will get mad at you if you keep doing this!";
  110. close;
  111. L_GaveMeat:
  112. set MORRISON,0;
  113. mes "[Housewife Marianne]";
  114. mes "Oh MY GOD!!... Oh lord...";
  115. next;
  116. mes "[Housewife Marianne]";
  117. mes "WHAT ARE YOU DOING!! HOW DARE YOU feed my son!! And ^ff0000MEAT^000000 of all things!!!";
  118. next;
  119. mes "[Housewife Marianne]";
  120. mes "Arrrgh~~!! Get Lost right now!!!!!!";
  121. close;
  122. L_Juice:
  123. set MORRISON,0;
  124. set MARIANNE,1;
  125. mes "[Housewife Marianne]";
  126. mes "Thank you for not giving my son any meat. I'm trying to feed him ^0000ffFruits^000000 and vegetables, but this child doesn't want to eat anything except Meat...";
  127. next;
  128. mes "[Housewife Marianne]";
  129. mes "What if I could turn ^0000ffFruits^000000 into a ^0000ffJuice^000000... for example...Orange juice... Would my child like it?";
  130. next;
  131. mes "[Housewife Marianne]";
  132. mes "Ah! Now I remember..There is a town where you can get a variety of ^0000ffFruit^000000 turned into ^0000ffFruit Juices^000000.";
  133. next;
  134. mes "[Housewife Marianne]";
  135. mes "... Was is it...^ff0000Payon^000000...or ^ff0000Morroc^000000...?";
  136. next;
  137. close;
  138. }
  139. // Juicer Marx Hansen -----------------------------------------------------------------------
  140. payon_in01.gat,5,48,3 script Juicer Marx Hansen 86,
  141. {
  142. mes "[Juicer Marx Hansen]";
  143. if(MARIANNE == 1) goto L_Juice;
  144. mes "Welcome to my shop. What brings you here?";
  145. next;
  146. menu "Conversation",M_0a,"I am just looking around",M_0b;
  147. M_0a:
  148. mes "[Juicer Marx Hansen]";
  149. mes "In the earliest years of humanity, fruits were the only substanace availble for people to eat.";
  150. mes "Fruits were vital for survival and without them people faced certain death.";
  151. mes "During that time Mother Nature was worshiped for her generous offerering.";
  152. next;
  153. mes "[Juicer Marx Hansen]";
  154. mes "Nowadays food is plentifull and it comes in a variety of flavors and forms.";
  155. mes "With so many other things to eat, fruits aren't consumed as much as they used to be.";
  156. mes "This is especially true among kids who'd rather eat pizza and candy.";
  157. next;
  158. mes "[Juicer Marx Hansen]";
  159. mes "Because of this I wanted to find a way to make young people realize the importance of fuit.";
  160. mes "I found that when fruits were turned into juices, they became more digestive and even tasty enough for kids.";
  161. close;
  162. M_0b:
  163. mes "[Juicer Marx Hansen]";
  164. mes "Ok then.";
  165. close;
  166. L_Juice:
  167. mes "Welcome to my shop. Do you come here to process Fruits like the rest?";
  168. next;
  169. menu "Yes, I do.",M_1a,"How do you make fruit juice?",M_1b,"No, I don't.",M_1End;
  170. M_1a:
  171. mes "[Juicer Marx Hansen]";
  172. mes "So what kind of fruit juice would you like to process?";
  173. next;
  174. menu "Apple Juice",sM_1a,"Banana Juice",sM_1b,"Grape Juice",sM_1c,"Carrot Juice",sM_1d,"Nope, I'm fine.",sM_1End;
  175. sM_1a:
  176. set @FRUIT,512;
  177. set @JUICE,531;
  178. goto sL_Make;
  179. sM_1b:
  180. set @FRUIT,513;
  181. set @JUICE,532;
  182. goto sL_Make;
  183. sM_1c:
  184. set @FRUIT,514;
  185. set @JUICE,533;
  186. goto sL_Make;
  187. sM_1d:
  188. set @FRUIT,515;
  189. set @JUICE,534;
  190. sL_Make:
  191. mes "[Juicer Marx Hansen]";
  192. mes "How many bottles would you like?";
  193. next;
  194. menu "I'll tell you.",sL_Make_InputN, "As many as possible",-, "I've changed my mind.",sM_1End;
  195. set @FRUITNUM,100; //max possible amount of Juice
  196. //calc max possible # juices
  197. if(Zeny/3 < @FRUITNUM) set @FRUITNUM,Zeny/3;
  198. if(countitem(@FRUIT) < @FRUITNUM) set @FRUITNUM,countitem(@FRUIT);
  199. if(countitem(713) < @FRUITNUM) set @FRUITNUM,countitem(713);
  200. if(@FRUITNUM > 0) goto sL_Make_Max;
  201. mes "[Juicer Marx Hansen]";
  202. mes "Doh! You don't have enough ingredients for a single bottle of juice.";
  203. emotion 0;
  204. close;
  205. sL_Make_Max:
  206. delitem @FRUIT,@FRUITNUM; //del Fruit
  207. delitem 713,@FRUITNUM; //del Empty Bottle
  208. set Zeny,Zeny-@FRUITNUM*3;
  209. getitem @JUICE,@FRUITNUM; //get Juice
  210. goto sL_Make_Got;
  211. sL_Make_InputN:
  212. mes "[Juicer Marx Hansen]";
  213. mes "Very well then. How many bottles would you like?";
  214. mes "Enter 0 if you don't want any.";
  215. next;
  216. input @input;
  217. if(@input < 1) goto sM_1End;
  218. set @FRUITNUM,(3*@input);
  219. set @ZENYNUM,(3*@input);
  220. if(countitem(@FRUIT) < @FRUITNUM) goto sl_Fruits;
  221. if(countitem(713) < @input) goto sl_Bottles;
  222. if(Zeny < @ZENYNUM) goto sl_Zeny;
  223. delitem @FRUIT,@FRUITNUM; //del Fruit
  224. delitem 713,@input; //del Empty Bottle
  225. set Zeny,Zeny - @ZENYUM; //get Juice
  226. getitem @JUICE,@input;
  227. sL_Make_Got:
  228. mes "[Juicer Marx Hansen]";
  229. mes "Here you are. Take it.";
  230. close;
  231. sl_Fruits:
  232. mes "[Juicer Marx Hansen]";
  233. mes "You don't have enough fruit.";
  234. if (@FRUIT == 512) mes "You need "+@FRUITNUM+" apples to make that much apple juice.";
  235. if (@FRUIT == 513) mes "You need "+@FRUITNUM+" bannanas to make that much bannana juice.";
  236. if (@FRUIT == 514) mes "You need "+@FRUITNUM+" grapes to make that much grape juice.";
  237. if (@FRUIT == 515) mes "You need "+@FRUITNUM+" carrots to make that much carrot juice.";
  238. next;
  239. goto M_1a;
  240. close;
  241. sl_Bottles:
  242. mes "[Juicer Marx Hansen]";
  243. mes "You don't have enough bottles. You need "+@input+" empty bottle(s) to make that many juice drinks.";
  244. next;
  245. goto M_1a;
  246. sl_Zeny:
  247. mes "[Juicer Marx Hansen]";
  248. mes "You don't have enough zeny. You need "+@ZENYNUM+" zeny, to make that many juice drinks.";
  249. next;
  250. goto M_1a;
  251. sM_1End:
  252. mes "[Juicer Marx Hansen]";
  253. mes "Oh well... see you next time.";
  254. close;
  255. M_1b:
  256. mes "[Juicer Marx Hansen]";
  257. mes "# Fruit Juice Info #";
  258. mes "Apple Juice - Apple x 3 ea, Empty Bottle x 1 ea, 3 zeny.";
  259. mes "Banane Juice - Banana x 3 ea, Empty Bottle x 1 ea, 3 zeny.";
  260. mes "Carrot Juice - Carrot x 3 ea, Empty Bottle x 1 ea, 3 zeny.";
  261. mes "Grape Juice - Grape x 3 ea, Empty Bottle x 1 ea, 3 zeny.";
  262. close;
  263. M_1End:
  264. close;
  265. }