gunslinger.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. //===== rAthena Script =======================================
  2. //= Gunslinger Job Quest
  3. //===== By: ==================================================
  4. //= erKURITA, RockmanEXE, Kisuka
  5. //===== Current Version: =====================================
  6. //= 2.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Gunslinger Job Change Quest
  11. //===== Additional Comments: =================================
  12. //= 1.0 Made the NPC [erKURITA]
  13. //= 1.5 Couple fixes to the npc, aswell as adding the missing
  14. //= 3 green herbs. [erKURITA]
  15. //= 1.6 job number->const, commonized variable name,
  16. //= optimized [Lupus]
  17. //= 1.7 Now uses only ONE variable GUNS_Q [Lupus]
  18. //= 1.7a Grammar fixes, few spelling fixes, etc [CBMaster]
  19. //= 1.7b Parenthesis fixes [KarLaeda]
  20. //= 1.8 Fixed the reward you can get [Playtester]
  21. //= 1.9 Removed some 'clever' script constructs [ultramage]
  22. //= 2.0 Updated to official version - Thanks to Omega for
  23. //= his first try [SinSloth] 1.10b - removed .GATs [Lupus]
  24. //= 2.1 Wise Bull Horn now deletes all items. Thanks to yyCC. [L0ne_W0lf]
  25. //= 2.1a Corrected a Typo error ";;". [Samuray22]
  26. //= 2.1b Corrected some typos errors. (bugreport:1549) [Samuray22]
  27. //= 2.1c Fixed some missing/messed up item checks. (bugreport:2693) [Kisuka]
  28. //= 2.2 Updated to match AEGIS script and Added Quest Log commands. [Kisuka]
  29. //============================================================
  30. que_ng,152,167,3 script Master Miller 901,{
  31. if (Upper == 2) {
  32. mes "[Master Miller]";
  33. mes "Well, aren't you an";
  34. mes "adorable little child~";
  35. mes "Where's your mommy?";
  36. mes "This place is dangerous, so";
  37. mes "please go home soon, okay?";
  38. close;
  39. }
  40. if (Class == Job_Novice) {
  41. if (!callfunc("F_CanChangeJob")) {
  42. mes "[Master Miller]";
  43. mes "Interested in becoming";
  44. mes "a Gunslinger, eh? You've";
  45. mes "got potential, but you're";
  46. mes "not yet experienced enough.";
  47. mes "Just train yourself a bit more,";
  48. mes "and then come back, you hear?";
  49. close;
  50. }
  51. if (GUNS_Q == 0) {
  52. mes "[Master Miller]";
  53. mes "I'm Miller, a full time";
  54. mes "Gunslinger drillmaster, and";
  55. mes "full time guardian for Lady";
  56. mes "Selena. Now, what do you";
  57. mes "need? If it's not important, then I can't make the time for you.";
  58. next;
  59. if(select("Nothing.:I want to become a Gunslinger.") == 1) {
  60. mes "[Master Miller]";
  61. mes "Don't waste my time.";
  62. mes "If you do want to become";
  63. mes "a Gunslinger, then come";
  64. mes "back and talk to me.";
  65. close;
  66. }
  67. mes "[Master Miller]";
  68. mes "Hm. You're pretty young, but";
  69. mes "your eyes tell me that you're";
  70. mes "pretty ambitious. You'll need to pass our interview and educational";
  71. mes "course to become a Gunslinger. Do you want to apply for the job?";
  72. next;
  73. if(select("Give me some time to think.:Sure!") == 1) {
  74. mes "[Master Miller]";
  75. mes "Understandable.";
  76. mes "If you do decide that";
  77. mes "you want to become";
  78. mes "a Gunslinger, then let";
  79. mes "me know right away.";
  80. mes "I'll get you started.";
  81. close;
  82. }
  83. mes "[Master Miller]";
  84. mes "Great, great. Alright then,";
  85. mes "let's get you started. Take";
  86. mes "this letter to Mr. Wise Bull";
  87. mes "Horn in Payon. He's a shaman";
  88. mes "that will judge whether or not";
  89. mes "you qualify to be a Gunslinger.";
  90. set GUNS_Q,1;
  91. setquest 6020;
  92. close;
  93. }
  94. else if (GUNS_Q == 1) {
  95. mes "[Master Miller]";
  96. mes "Take that letter of";
  97. mes "introduction I've written";
  98. mes "for you to Mr. Wise Bull";
  99. mes "Horn in Payon. He'll test";
  100. mes "you to see if you're really";
  101. mes "Gunslinger material.";
  102. close;
  103. }
  104. else if (GUNS_Q == 2) {
  105. mes "[Master Miller]";
  106. mes "Hmm... Wise Bull Horn";
  107. mes "asked you to collect the";
  108. mes "items you need to make the";
  109. mes "voucher? Hm. I guess that's";
  110. mes "part of his qualification test.";
  111. close;
  112. }
  113. else if (GUNS_Q == 3) {
  114. mes "[Master Miller]";
  115. mes "Wise Bull Horn asked";
  116. mes "you to bring him some";
  117. mes "Milk? He must really like";
  118. mes "you if he's already asking";
  119. mes "for favors. Good luck, friend.";
  120. close;
  121. }
  122. else if (GUNS_Q == 4) {
  123. mes "[Master Miller]";
  124. mes "I expect to hear good";
  125. mes "news from you soon. You";
  126. mes "know, I have no doubt that";
  127. mes "you'll become a Gunslinger.";
  128. close;
  129. }
  130. else if (GUNS_Q == 5) {
  131. if (SkillPoint != 0) {
  132. mes "[Master Miller]";
  133. mes "Hey, you have leftover";
  134. mes "Skill Points. You better";
  135. mes "use them all up before you";
  136. mes "come and talk to me again.";
  137. close;
  138. }
  139. mes "[Master Miller]";
  140. mes "Oh, you've brought a";
  141. mes "voucher from Wise Bull Horn?";
  142. mes "It's been a while since he's";
  143. mes "given one to anybody, so";
  144. mes "I'm really proud of you!";
  145. next;
  146. mes "[Master Miller]";
  147. mes "If Wise Bull Horn approves,";
  148. mes "then I have no reason to";
  149. mes "reject you. Alright then, I'll";
  150. mes "promote you to a Gunslinger.";
  151. mes "But first, let me explain";
  152. mes "our job in more detail.";
  153. next;
  154. mes "[Master Miller]";
  155. mes "As a Gunslinger, you must";
  156. mes "keep your gun with you at";
  157. mes "all times. The Gunslinger";
  158. mes "Guild keeps track of every Gun";
  159. mes "and Bullet, so you can only get";
  160. mes "them from our guild members.";
  161. next;
  162. mes "[Master Miller]";
  163. mes "Don't worry, Gunslinger";
  164. mes "Guildsmen can be found almost";
  165. mes "anywhere these days. Anyway,";
  166. mes "it has to be this way by order of our guild leader, Lady Selena.";
  167. next;
  168. mes "[Master Miller]";
  169. mes "You might get the chance to";
  170. mes "meet her one of these days.";
  171. mes "Anyway, just now that we have";
  172. mes "to regulate Gun and Bullet sales to keep them away from evil";
  173. mes "or irresponsible folk.";
  174. next;
  175. mes "[Master Miller]";
  176. mes "In any case, it's always";
  177. mes "a pleasure for me to talk";
  178. mes "to another Gunslinger, so";
  179. mes "let's keep in touch. May the";
  180. mes "power of the earth protect";
  181. mes "you in all of your adventures~";
  182. callfunc "Job_Change",Job_Gunslinger;
  183. set GUNS_Q,6;
  184. completequest 6024;
  185. if (checkre(0)) {
  186. getitem 13180,1; // Novice_Rifle
  187. getitem 12149,2; // Bullet_Case
  188. getitem 12151,1; // Bullet_Case_Silver
  189. } else {
  190. if (rand(2))
  191. getitem 13100,1; // Six_Shooter
  192. else
  193. getitem 13150,1; // Branch
  194. }
  195. close;
  196. }
  197. } else {
  198. if (Class == Job_Gunslinger) {
  199. mes "[Master Miller]";
  200. mes "Oh! Long time, no see,";
  201. mes "friend. How have you been?";
  202. mes "I hope you've been keeping";
  203. mes "you Gun well maintained.";
  204. mes "Take care of it, and it'll take";
  205. mes "care of you. Remember it.";
  206. close;
  207. } else {
  208. mes "[Master Miller]";
  209. mes "If you don't have";
  210. mes "any business with me,";
  211. mes "then please go on your way.";
  212. close;
  213. }
  214. }
  215. }
  216. payon,184,65,3 script Wise Bull Horn 866,{
  217. if (GUNS_Q == 1) {
  218. mes "[Wise Bull Horn]";
  219. mes "Hello, young wolf.";
  220. mes "What business has";
  221. mes "brought you before me?";
  222. next;
  223. mes "["+strcharinfo(0)+"]";
  224. mes "Mr. Miller sent me to";
  225. mes "deliver this letter to you.";
  226. mes "Actually, I'm interested in";
  227. mes "becoming a Gunslinger...";
  228. next;
  229. mes "[Wise Bull Horn]";
  230. mes "Miller, you said?";
  231. mes "Hm, the Black Fox doesn't";
  232. mes "give introductions for anyone";
  233. mes "he doesn't believe will make";
  234. mes "a good Gunslinger. Yes, I think";
  235. mes "I know why he sent you to me.";
  236. next;
  237. mes "[Wise Bull Horn]";
  238. mes "I can see it in your eyes:";
  239. mes "you've got a warm heart and a";
  240. mes "strong sense of responsibility.";
  241. mes "All you need is the blessing";
  242. mes "of the Earth to protect you";
  243. mes "as a Gunslinger.";
  244. next;
  245. mes "[Wise Bull Horn]";
  246. mes "I can make a voucher that";
  247. mes "will demonstrate your desire";
  248. mes "to become a warrior of the";
  249. mes "earth for you to present to";
  250. mes "Gunslinger drillmasters.";
  251. mes "I shall need these items...";
  252. next;
  253. mes "[Wise Bull Horn]";
  254. mes "^3355FF1 Trunk^000000,";
  255. mes "^3355FF3 Fluffs^000000,";
  256. mes "^3355FF3 Zargons^000000,";
  257. mes "^3355FF10 Shells^000000,";
  258. mes "^3355FF3 Green Herbs^000000, and";
  259. mes "^3355FF3 Rainbow Shells^000000.";
  260. next;
  261. mes "[Wise Bull Horn]";
  262. mes "After I complete the";
  263. mes "voucher, you may bring";
  264. mes "it to Black Fox, and he";
  265. mes "will help you achieve";
  266. mes "your goal of becoming";
  267. mes "a Gunslinger.";
  268. set GUNS_Q,2;
  269. changequest 6020,6021;
  270. close;
  271. }
  272. else if (GUNS_Q == 2) {
  273. if (countitem(912) < 3 || countitem(914) < 3 || countitem(1019) < 1 || countitem(935) < 10 || countitem(511) < 3 || countitem(1013) < 3) {
  274. mes "[Wise Bull Horn]";
  275. mes "I can make a voucher that";
  276. mes "will demonstrate your desire";
  277. mes "to become a warrior of the";
  278. mes "earth for you to present to";
  279. mes "Gunslinger drillmasters.";
  280. mes "I shall need these items...";
  281. next;
  282. mes "[Wise Bull Horn]";
  283. mes "^3355FF1 Trunk^000000,";
  284. mes "^3355FF3 Fluffs^000000,";
  285. mes "^3355FF3 Zargons^000000,";
  286. mes "^3355FF10 Shells^000000,";
  287. mes "^3355FF3 Green Herbs^000000, and";
  288. mes "^3355FF3 Rainbow Shells^000000.";
  289. next;
  290. mes "[Wise Bull Horn]";
  291. mes "After I complete the";
  292. mes "voucher, you may bring";
  293. mes "it to Black Fox, and he";
  294. mes "will help you achieve";
  295. mes "your goal of becoming";
  296. mes "a Gunslinger.";
  297. close;
  298. }
  299. delitem 912,3; // Zargon
  300. delitem 914,3; // Fluff
  301. delitem 1019,1; // Wooden_Block
  302. delitem 935,10; // Shell
  303. delitem 511,3; // Green_Herb
  304. delitem 1013,3; // Colorful_Shell
  305. set GUNS_Q,3;
  306. changequest 6021,6022;
  307. mes "[Wise Bull Horn]";
  308. mes "Ah, you've returned";
  309. mes "with everything I need.";
  310. mes "Please give me some time";
  311. mes "to make the voucher. If you";
  312. mes "come back in a little while,";
  313. mes "I should be finished with it.";
  314. close;
  315. }
  316. else if (GUNS_Q == 3) {
  317. mes "[Wise Bull Horn]";
  318. mes "Oh, you've arrived just";
  319. mes "in time. It's been a while";
  320. mes "since I've made one of these vouchers, so I might be a little";
  321. mes "rusty. Still, this really takes me back to the days of my youth.";
  322. next;
  323. mes "[Wise Bull Horn]";
  324. mes "I've been serving in this";
  325. mes "position of choosing worthy";
  326. mes "recipients of Gunslinger";
  327. mes "vouchers for a few decades";
  328. mes "now. But before that, I was a";
  329. mes "young adventurer just like you.";
  330. next;
  331. mes "[Wise Bull Horn]";
  332. mes "It feels like it was only";
  333. mes "yesterday when I held my own";
  334. mes "little voucher as a Gunslinger,";
  335. mes "a warrior of the earth. That's";
  336. mes "when I met Selena's father...";
  337. mes "How can time pass so quickly?";
  338. next;
  339. mes "[Wise Bull Horn]";
  340. mes "Ah... I really appreciate";
  341. mes "Selena and Black Fox for all";
  342. mes "of their help in recruiting";
  343. mes "young Gunslingers. I'm very";
  344. mes "old now, and can't do everything by myself. *Sigh...* Such is life.";
  345. next;
  346. mes "[Wise Bull Horn]";
  347. mes "Before you leave, may";
  348. mes "I ask you for a small favor?";
  349. mes "I'm thirsty, and would like";
  350. mes "a cold glass of Milk. Would";
  351. mes "you please bring me some?";
  352. set GUNS_Q,4;
  353. changequest 6022,6023;
  354. close;
  355. }
  356. else if (GUNS_Q == 4) {
  357. if (countitem(519) < 1) {
  358. mes "[Wise Bull Horn]";
  359. mes "I'm an old man that will";
  360. mes "soon be reunited with mother";
  361. mes "earth. Would you do this old";
  362. mes "Gunslinger a favor a bring me";
  363. mes "a cold glass of Milk, please?";
  364. close;
  365. }
  366. delitem 519,1; // Milk
  367. set GUNS_Q,5;
  368. changequest 6023,6024;
  369. mes "[Wise Bull Horn]";
  370. mes "Oh, thank you for your!";
  371. mes "generosity--I see that";
  372. mes "you've brought me some";
  373. mes "Milk. Ahhhh, delicious~";
  374. next;
  375. mes "[Wise Bull Horn]";
  376. mes "I admire the patience,";
  377. mes "gentleness, and kindness";
  378. mes "that you've proven by bringing";
  379. mes "this to me. Yes, those are traits we all want Gunslingers to have.";
  380. next;
  381. mes "[Wise Bull Horn]";
  382. mes "Now, please take this voucher";
  383. mes "to Miller, the Black Fox, with";
  384. mes "my wholehearted approval.";
  385. mes "I hope that you will use your";
  386. mes "gun to uphold justice as a";
  387. mes "noble warrior of the earth.";
  388. next;
  389. mes "[Wise Bull Horn]";
  390. mes "Eeh~Yeah~Eeh~Hooom";
  391. mes "Eeh~Yeah~Eeh~Hooom";
  392. mes "Maaaaarrraaa Neeey~";
  393. mes "Yippee Yippee Yai Yocaiyay~";
  394. close;
  395. }
  396. else if (GUNS_Q == 5) {
  397. mes "[Wise Bull Horn]";
  398. mes "Please take this voucher";
  399. mes "to Miller, the Black Fox, with";
  400. mes "my wholehearted approval.";
  401. mes "I hope that you will use your";
  402. mes "gun to uphold justice as a";
  403. mes "noble warrior of the earth.";
  404. next;
  405. mes "[Wise Bull Horn]";
  406. mes "Eeh~Yeah~Eeh~Hooom";
  407. mes "Eeh~Yeah~Eeh~Hooom";
  408. mes "Maaaaarrraaa Neeey~";
  409. mes "Yippee Yippee Yai Yocaiyay~";
  410. close;
  411. }
  412. else if (GUNS_Q == 6) {
  413. mes "[Wise Bull Horn]";
  414. mes "AAh, long time no see.";
  415. mes "I hope that you become";
  416. mes "a smart beast, and use";
  417. mes "your powers as a Gunslinger to protect what is good and just.";
  418. close;
  419. }
  420. else {
  421. mes "[Wise Bull Horn]";
  422. mes "Zzzzzz~";
  423. mes "^333333*Phew*^000000";
  424. close;
  425. }
  426. }