merchant_skills.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. //===== eAthena Script =======================================
  2. //= Merchant Skills Quests
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.4b
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= <Description>
  11. //===== Additional Comments: =================================
  12. //= Fully working
  13. //= v1.1 Bug fixes
  14. //= v1.a Now using functions found in "Global_Functions.txt"
  15. //= for class checks.[kobra_k88]
  16. //= 1.2 Added Baby Class Support [Lupus]
  17. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  18. //= 1.4 Fixed exploits [Lupus]
  19. //= 1.4a Fixed some typos [IVBela] 1.4b Gershaun -> Gershuan
  20. //= changed perm. variables to temp ones [Lupus]
  21. //============================================================
  22. //--------------------------------------- Necko: Crazy Uproar--------------------------------\\
  23. alberta.gat,89,96,5 script Necko#01 139,0,4,{
  24. mes "[!?]";
  25. mes "Muahahahahhhahahahahhahah!!";
  26. mes "Pukakakakakkakakakakakakaka!!";
  27. close;
  28. }
  29. alberta.gat,83,96,5 script Necko#02 98,{
  30. mes "[Necko]";
  31. if(baseClass == Job_Merchant) goto L_Start;
  32. L_Other:
  33. mes "Necko's store is closed right now. Come back later..... Hehe....";
  34. close;
  35. L_Start:
  36. if(getskilllv(155)>0) goto L_GotSkill;
  37. if(@CRAZYROAR) goto L_GetSkill;
  38. mes "Oh! Did you come here because you were intrigued by my boisterous voice? My voice is quite loud, isn't it?";
  39. mes "After all you heared it from a far off distance.";
  40. emotion e_what;
  41. next;
  42. mes "[Necko]";
  43. mes "I'll let you in on something....... My voice is more than just loud..... it's actually quite unique......";
  44. next;
  45. mes "[Necko]";
  46. if(BaseJob==Job_Merchant && JobLevel < 15) goto L_JobLvl;
  47. mes "You see, I know a skill that lets me shout in a way that actually helps me.... It is the ^3355FFCrazy Uproar^000000 skill!!!";
  48. emotion e_ic;
  49. next;
  50. mes "[Necko]";
  51. mes "Crazy Uproar uses your loud voice to boost your battle spirit!";
  52. mes "The skill requires ^FF55338 sp^000000 to use and in turn you will receive an additional ^3355FF4 STR for 5 min^000000!!";
  53. next;
  54. mes "[Necko]";
  55. mes "This skill is very useful. To learn it you must learn the essentials of sound. There was a singer in Payon that taught sound theory.......";
  56. next;
  57. mes "[Necko]";
  58. mes "Unfortunately that person passed away so you can no longer learn those essentials..............";
  59. mes "Aww.... you look disappointed.... Do you really want to learn Crazy Uproar??";
  60. next;
  61. mes "[Necko]";
  62. mes "Hmm..... I will teach you then, that is, if you truly wish to learn. You will have to train your vocal cords.";
  63. mes "You will also need to gather these items:";
  64. next;
  65. mes "[Necko]";
  66. mes "- ^3355FF7 Pearls,";
  67. mes "- 1 Banana juice,";
  68. mes "- 50 Mushroom spores^000000.";
  69. next;
  70. mes "[Necko]";
  71. mes "Come back when you are ready! I think I shall do a little vocal training myself........";
  72. mes "Bbooowuuuuuuuuuuuuuuuuuuuuuuuuuh!!";
  73. set @CRAZYROAR, 1;
  74. close;
  75. L_JobLvl:
  76. mes "Once you've reached a ^3355FFjob level of 15^000000 come back and see me. I'll tell you all about the secret to my voice.....";
  77. next;
  78. mes "[Necko]";
  79. mes "Uahahahahahahhahahahahahaha!";
  80. mes "Kyukwakakakakkakakakakakkakaka!";
  81. close;
  82. L_GetSkill:
  83. if((countitem(722)<7) || (countitem(532)<1) || (countitem(921)<50)) goto L_Items;
  84. delitem 722,7;
  85. delitem 532,1;
  86. delitem 921,50;
  87. mes "Oh You've gathered the items! Very good, very good. Now it's time to start your training.....";
  88. next;
  89. mes "[Necko]";
  90. mes "Repeat after me: Fa fa fa fa fa.... So so so so so..... La la la la la.... Mi mi mi mi mi mi......";
  91. next;
  92. mes "~several hours later~";
  93. next;
  94. mes "[Necko]";
  95. mes "Raaaaaawwwwrrrrrrrrrrr!....... Ha ha!! Excellent. Your voice is now finely tuned for ^3355FFCrazy Uproar^000000. Good job.";
  96. skill 155,1,0;
  97. set @CRAZYROAR, 0;
  98. emotion e_no1;
  99. close;
  100. L_Items:
  101. mes "You need to get these items for Crazy Uproar:";
  102. mes "- ^3355FF7 Pearls,";
  103. mes "- 1 Banana juice,";
  104. mes "- 50 Mushroom spores^000000.";
  105. close;
  106. L_GotSkill:
  107. mes "Hello again. I can tell by the sound of your mighty voice that you are becoming very good at Crazy Uproar.";
  108. close;
  109. }
  110. //----------------------------------------- Charlron: Change cart ---------------------------------\\
  111. alberta.gat,119,221,6 script Charlron 107,{
  112. mes "[Charlron]";
  113. if(baseClass == Job_Merchant) goto L_Start;
  114. L_Other:
  115. mes "I am a merchant that deals with many things. My name is Charlron. If you ever find anything interesting, come back and try to negotiate a deal with me.";
  116. close;
  117. L_Start:
  118. if(getskilllv(154)>0) goto L_GotSkill;
  119. if(@CHANGECART) goto L_GetSkill;
  120. mes "Welcome young one. Is selling fun for you? I am the merchant Charlron.";
  121. next;
  122. mes "[Charlron]";
  123. mes "Aren't you tired of your old, and plain looking cart? Well I can help.";
  124. next;
  125. mes "[Charlon]";
  126. mes "I have been doing some research on cart design recently and have come up with some new and interesting designs for the cart.";
  127. next;
  128. mes "[Charlon]";
  129. mes "I can change the way your cart looks for you. Of course some conditions need to be met......";
  130. next;
  131. mes "[Charlron]";
  132. if(BaseJob==Job_Merchant && JobLevel < 30) goto L_JobLvl;
  133. mes "First you will need to bring me these items:";
  134. mes "^3355FF50 Trunks,";
  135. mes "20 Animal Skin,";
  136. mes "10 Iron^000000.";
  137. set @CHANGECART, 1;
  138. close;
  139. L_JobLvl:
  140. mes "I'm a pretty famous merchant, so I don't really do business with beginners but..........";
  141. mes "Once you've reached ^3355FFjob level 30^000000 I may consider doing business with you.";
  142. close;
  143. L_GetSkill:
  144. if((countitem(1019)<50) || (countitem(998)<10) || (countitem(919)<20)) goto L_Items;
  145. mes "Oh good, you have all of the items. Well here you are..... Hmm?... Oh these are the design sheets for your cart.";
  146. mes "Now that you have the proper materials, just follow these guides to make your cart look spectacular.";
  147. // Note: It is not supposed to take these items, just check you have collected them
  148. skill 154,1,0;
  149. set @CHANGECART, 0;
  150. next;
  151. mes "[Charlron]";
  152. mes "Good luck, see you around";
  153. close;
  154. L_Items:
  155. mes "Come back when you've brought me these items:";
  156. mes "^3355FF50 Trunks,";
  157. mes "20 Animal Skin,";
  158. mes "10 Iron^000000.";
  159. close;
  160. L_GotSkill:
  161. mes "Heh heh... It's nice to see fancy looking carts like yours on the streets of town. Well back to the drawing board....";
  162. close;
  163. }
  164. //-------------------------====-------- Gershaun: Cart Revolution ---------------------------------\\
  165. alberta.gat,232,106,6 script Gershuan 57,{
  166. if(baseClass == Job_Merchant) goto L_Start;
  167. L_Other:
  168. mes "[Gershuan]";
  169. mes "If it doesn't work, make it work!";
  170. mes "If it doesn't work, make it work!";
  171. mes "If it doesn't work, make it work!";
  172. close;
  173. L_Start:
  174. if(getskilllv(153)>0) goto L_GotSkill;
  175. if(@CARTREVO) goto L_GetSkill;
  176. mes "[Gershuan]";
  177. mes "Hmm... a young merchant. You must use carts too right? Since you have to do all of that vending..... But is that all you use your cart for?";
  178. emotion e_hmm;
  179. next;
  180. mes "[Gershuan]";
  181. mes "I researched some ways of using the cart differently. One way involved cooking ramen and another involved jump-roping (don't ask).";
  182. mes "Still none of my new ideas were satisfactory.";
  183. next;
  184. menu "I know what you mean.",M_0, "......???",M_1;
  185. M_0:
  186. mes "[Gershuan]";
  187. mes "You KNOW what I MEAN!! HOW the HECK would YOU KNOW what I MEAN????";
  188. emotion e_omg;
  189. close;
  190. M_1:
  191. mes "[Gershuan]";
  192. mes "In despair, I wandered through the fields with my cart. Day after day I did this.... I was in a daze....";
  193. next;
  194. mes "[Gershuan]";
  195. mes "Then I crossed paths with a very strong monster! I knew immediately that my life was in danger!";
  196. mes "I thought to myself, 'Why me! A weaponless, armorless merchant!?'";
  197. emotion e_gasp;
  198. next;
  199. mes "[Gershuan]";
  200. mes "I was scared to death... hoping that this would not be the end of me. With what strength I had left, I tried a desperation move.....";
  201. emotion e_swt2;
  202. next;
  203. mes "[Gershuan]";
  204. mes "I used my cart to attack the monster!!";
  205. emotion e_gasp;
  206. next;
  207. mes "[Gershuan]";
  208. mes "Just like that the monster was defeated!! Finally I had found another excellent use for the cart! A WEAPON!!!";
  209. next;
  210. mes "[Gershuan]";
  211. mes "I called my newly found discovery ^3355FF'Cart Revolution'^000000!";
  212. mes "By using ^FF553312 sp^000000 you can spin your cart around your body doing major damage to an enemy!";
  213. emotion e_ic;
  214. next;
  215. mes "[Gershuan]";
  216. mes "The heavier your cart is, the more damage it will do. Would you like to learn this skill?";
  217. next;
  218. menu "Yes!!",sM_0, "Actually I want to learn some sushi skills...",sM_1;
  219. sM_0:
  220. mes "[Gershuan]";
  221. if(BaseJob==Job_Merchant && JobLevel < 35) goto ssL_LowLvl;
  222. mes "OK! I will give you the special training for Cart Revolution. The first thing you will have to do is bring me these items:";
  223. mes "^3355FF30 Sticky Mucus,";
  224. mes "20 Fly wings,";
  225. mes "15 Iron,";
  226. mes "5 Tentacles,";
  227. mes "2 Grape Juice^000000.";
  228. next;
  229. mes "[Gershuan]";
  230. mes "Come back when you have all of these items. Good luck.";
  231. set @CARTREVO, 1;
  232. close;
  233. ssL_LowLvl:
  234. mes "[Gershuan]";
  235. mes "OK! I will give you the special training for Cart Revolution.";
  236. mes "But first you will have to get yourself to a ^3355FFjob level of 35^000000! After you've done that, then we can talk.";
  237. close;
  238. sM_1:
  239. mes "[Sushi King Gershuan]";
  240. mes "Stupid!! You're waaay to young to even try your hand at sushi!!";
  241. emotion e_an;
  242. close;
  243. L_GetSkill:
  244. if((countitem(533)<2) || (countitem(998)<15) || (countitem(938)<30) || (countitem(601)<20) || (countitem(962)<5)) goto sM_0;
  245. delitem 533,2;
  246. delitem 998,15;
  247. delitem 938,30;
  248. delitem 601,20;
  249. delitem 962,5;
  250. mes "[Gershuan]";
  251. mes "It's good to see you again. I'm glad you were able to get all of the items. Take a minute to prepare, for your training is about to take place....";
  252. next;
  253. mes "[Gershuan]";
  254. mes "First make sure your feet are shoulder width apart. Balance is key! Now get into a good crouch... grasp the handles of the cart firmly but not too tight...";
  255. next;
  256. mes "[Gershuan]";
  257. mes "NOW SWING!!!";
  258. next;
  259. mes "[Gershuan]";
  260. mes "Eh....... that was terrible.... Okay, lets try again.....";
  261. emotion e_swt;
  262. next;
  263. mes "~many hours later~";
  264. next;
  265. mes "[Gershuan]";
  266. mes "YES!!! FINALLY! I could REALLY FEEL the power in that swing!";
  267. mes "Give yourself a good pat on the back because you have just mastered Cart Revolution!";
  268. emotion e_no1;
  269. next;
  270. skill 153,1,0;
  271. set @CARTREVO, 0;
  272. mes "[Gershuan]";
  273. mes "Take care of yourself and remember to fill that cart up so that it can do some major damage.";
  274. emotion e_gg;
  275. close;
  276. L_GotSkill:
  277. mes "[Gershuan]";
  278. mes "So how do you like cart revolution? Remember, the ^3355FFheavier^000000 the cart, the ^3355FFgreater^000000 the damage.";
  279. close;
  280. }