mercenary_rent.txt 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. //===== eAthena Script =======================================
  2. //= Mercenary related NPCs
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= [Aegis Conversion]
  11. //= Sells Lancer, Sword, and Archer, mercenaries
  12. //= Sells related mercenary items.
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version. [L0ne_W0lf]
  15. //= 1.1 Optimization. [Zephyrus]
  16. //= 1.2 Removed redundent input. [L0ne_W0lf]
  17. //============================================================
  18. prontera,41,337,5 script Mercenary Manager#Spear 105,{
  19. set .@faith_lancer, mercenary_get_faith(SPEAR_MERC_GUILD);
  20. mes "[Mercenary Manager]";
  21. mes "Welcome to the";
  22. mes "Spear Mercenary Guild.";
  23. mes "What can I do for you?";
  24. next;
  25. switch( select("Hire Mercenary:Mercenary Info:Nothing:10th Grade Mercenaries") )
  26. {
  27. case 1:
  28. mes "[Mercenary Manager]";
  29. mes "You want to hire a";
  30. mes "Spear Mercenary?";
  31. mes "Which Grade were you";
  32. mes "interested in hiring?";
  33. next;
  34. set .@Grade, select("1st Grade Spear Mercenary:2nd Grade Spear Mercenary:3rd Grade Spear Mercenary:4th Grade Spear Mercenary:5th Grade Spear Mercenary:6th Grade Spear Mercenary:7th Grade Spear Mercenary:8th Grade Spear Mercenary:9th Grade Spear Mercenary");
  35. set .@BaseLevel, 5 + (.@Grade * 10);
  36. if( .@BaseLevel > 90 )
  37. set .@BaseLevel, 90;
  38. set .@ZenyCost, 7 * .@Grade;
  39. if( .@Grade == 7 )
  40. set .@FaithCost, 50;
  41. else if( .@Grade == 8 )
  42. set .@FaithCost, 100;
  43. else if( .@Grade == 9 )
  44. set .@FaithCost, 300;
  45. else
  46. set .@FaithCost, 0;
  47. mes "[Mercenary Manager]";
  48. if( .@Grade == 1 )
  49. mes "So you want to hire a 1st";
  50. else if( .@Grade == 2 )
  51. mes "So you want to hire a 2nd";
  52. else if( .@Grade == 3 )
  53. mes "So you want to hire a 3rd";
  54. else
  55. mes "So you want to hire a " + .@Grade + "th";
  56. mes "Grade Spear Mercenary?";
  57. mes "You need to have attained";
  58. mes "Base Level " + .@BaseLevel + " or higher, and";
  59. mes "must pay the " + .@ZenyCost + ",000 zeny fee.";
  60. next;
  61. if( select("Yes:No") == 2 )
  62. {
  63. mes "[Mercenary Manager]";
  64. mes "Oh, really? Well, now";
  65. mes "might not be a good time";
  66. mes "for you to consider hiring";
  67. mes "a Mercenary, but please feel";
  68. mes "free to come back if your";
  69. mes "needs change. Thank you~";
  70. }
  71. else if( .@FaithCost && .@faith_lancer < .@FaithCost )
  72. {
  73. mes "[Mercenary Manager]";
  74. mes "Oh... Your Loyalty rating";
  75. mes "with the Spear Mercenary";
  76. mes "Guild isn't high enough to";
  77. mes "hire this Mercenary. Please";
  78. mes "come back after you earn";
  79. mes "" + .@FaithCost + " or more Loyalty with us.";
  80. }
  81. else if( BaseLevel < .@BaseLevel )
  82. {
  83. mes "[Mercenary Manager]";
  84. mes "I'm sorry, but your Base";
  85. mes "Level isn't high enough";
  86. mes "to hire this Mercenary.";
  87. mes "Please come back to me";
  88. mes "once you reach Base Level " + .@BaseLevel + ".";
  89. }
  90. else if( Zeny < .@ZenyCost * 1000 )
  91. {
  92. mes "[Mercenary Manager]";
  93. mes "I'm sorry, but you";
  94. mes "don't have enough zeny";
  95. mes "to hire this Mercenary.";
  96. mes "The hiring fee is " + .@ZenyCost + ",000 zeny.";
  97. }
  98. else
  99. {
  100. mes "[Mercenary Manager]";
  101. mes "Great! Our Mercenaries";
  102. mes "are sincere and devoted";
  103. mes "to protecting their clients.";
  104. mes "Summoned Mercenaries will";
  105. mes "offer their support to you for";
  106. mes "30 minutes. Take care now.";
  107. set Zeny, Zeny - (.@ZenyCost * 1000);
  108. getitem 12172 + .@Grade, 1;
  109. }
  110. close;
  111. case 2:
  112. mes "[Mercenary Manager]";
  113. mes "Mercenaries are soldiers";
  114. mes "that will fight at your side";
  115. mes "on the battlefield, but there";
  116. mes "are a few terms and conditions";
  117. mes "you must fulfill to hire them.";
  118. next;
  119. mes "[Mercenary Manager]";
  120. mes "You must fulfill a level";
  121. mes "requirement and pay a zeny";
  122. mes "fee to hire a Mercenary.";
  123. mes "Higher grade Mercenaries";
  124. mes "will also require that you";
  125. mes "build a Loyalty rating with us.";
  126. next;
  127. mes "[Mercenary Manager]";
  128. mes "Mercenary contracts can't be";
  129. mes "transferred to other people,";
  130. mes "and we only allow a 5 Base Level difference between the Mercenary";
  131. mes "and client so you can't hire one much stronger than you.";
  132. next;
  133. mes "[Mercenary Manager]";
  134. mes "Well, you can figure out the";
  135. mes "details when you actually form";
  136. mes "a contract with one of our";
  137. mes "Mercenaries, and receive";
  138. mes "the Summon Scroll that will";
  139. mes "call a Mercenary to your side.";
  140. next;
  141. mes "[Mercenary Manager]";
  142. mes "You can't give this scroll";
  143. mes "to anyone else, and the";
  144. mes "Mercenary will only remain";
  145. mes "with you for 30 minutes after";
  146. mes "you summon him. Don't forget";
  147. mes "about the time limit, okay?";
  148. close;
  149. case 3:
  150. mes "[Mercenary Manager]";
  151. mes "No? You didn't need any";
  152. mes "help? Well, feel free to";
  153. mes "ask me if you have any";
  154. mes "questions about Mercenaries.";
  155. close;
  156. case 4:
  157. mes "[Mercenary Manager]";
  158. mes "10th Grade Mercenaries are";
  159. mes "the best we have to offer,";
  160. mes "and we use different criteria";
  161. mes "for our clients to hire them.";
  162. mes "There's no zeny fee, but you";
  163. mes "must have 500 Loyalty.";
  164. next;
  165. mes "[Mercenary Manager]";
  166. mes "Once you make a contract";
  167. mes "with a 10th Grade Mercenary,";
  168. mes "your Loyalty rating will be";
  169. mes "decreased by 400. In other";
  170. mes "words, you pay 400 Loyalty";
  171. mes "to hire a 10th Grade Mercenary.";
  172. next;
  173. mes "[Mercenary Manager]";
  174. mes "You must also be at";
  175. mes "Base Level 90 or higher to";
  176. mes "hire a 10th Grade Mercenary.";
  177. mes "Are you still interested in";
  178. mes "forming this contract?";
  179. next;
  180. if( select("Yes:No") == 2 )
  181. {
  182. mes "[Mercenary Manager]";
  183. mes "I understand... It takes";
  184. mes "hard work and sacrifice to";
  185. mes "even reach the point where";
  186. mes "you can hire a 10th Grade";
  187. mes "Mercenary. Have you considered";
  188. mes "hiring a lower grade Mercenary?";
  189. }
  190. else if( .@faith_lancer < 500 )
  191. {
  192. mes "[Mercenary Manager]";
  193. mes "I'm sorry, but your";
  194. mes "Loyalty rating is too";
  195. mes "low to hire a 10th Grade";
  196. mes "Mercenary. You must have";
  197. mes "500 or more Loyalty to";
  198. mes "form a contract with one.";
  199. }
  200. else if( BaseLevel < 90 )
  201. {
  202. mes "[Mercenary Manager]";
  203. mes "I'm sorry, but you must";
  204. mes "be at Base Level 90 or";
  205. mes "higher to form a contract";
  206. mes "with a 10th Grade Mercenary.";
  207. }
  208. else
  209. {
  210. mes "[Mercenary Manager]";
  211. mes "Congratulations! It looks";
  212. mes "like you're planning in taking";
  213. mes "on some very dangerous work";
  214. mes "since you're hiring a 10th";
  215. mes "Grade Mercenary. I wish you";
  216. mes "the best of luck with him.";
  217. mercenary_set_faith SPEAR_MERC_GUILD,-400;
  218. getitem 12182,1;
  219. }
  220. close;
  221. }
  222. }
  223. izlude,47,139,5 script Mercenary Manager#Sword 734,{
  224. set .@faith_sword, mercenary_get_faith(SWORD_MERC_GUILD);
  225. mes "[Mercenary Manager]";
  226. mes "Welcome to the";
  227. mes "Sword Mercenary Guild.";
  228. mes "Did you have any questions?";
  229. next;
  230. switch( select("Hire Mercenary:Mercenary Info:Nothing:10th Grade Mercenaries") )
  231. {
  232. case 1:
  233. mes "[Mercenary Manager]";
  234. mes "You want to hire a";
  235. mes "Sword Mercenary?";
  236. mes "Which Grade were you";
  237. mes "interested in hiring?";
  238. next;
  239. set .@Grade, select("1st Grade Sword Mercenary:2nd Grade Sword Mercenary:3rd Grade Sword Mercenary:4th Grade Sword Mercenary:5th Grade Sword Mercenary:6th Grade Sword Mercenary:7th Grade Sword Mercenary:8th Grade Sword Mercenary:9th Grade Sword Mercenary");
  240. set .@BaseLevel, 5 + (.@Grade * 10);
  241. if( .@BaseLevel > 90 )
  242. set .@BaseLevel, 90;
  243. set .@ZenyCost, 7 * .@Grade;
  244. if( .@Grade == 7 )
  245. set .@FaithCost, 50;
  246. else if( .@Grade == 8 )
  247. set .@FaithCost, 100;
  248. else if( .@Grade == 9 )
  249. set .@FaithCost, 300;
  250. else
  251. set .@FaithCost, 0;
  252. mes "[Mercenary Manager]";
  253. if( .@Grade == 1 )
  254. mes "So you want to hire a 1st";
  255. else if( .@Grade == 2 )
  256. mes "So you want to hire a 2nd";
  257. else if( .@Grade == 3 )
  258. mes "So you want to hire a 3rd";
  259. else
  260. mes "So you want to hire a " + .@Grade + "th";
  261. mes "Grade Sword Mercenary?";
  262. mes "You need to have attained";
  263. mes "Base Level " + .@BaseLevel + " or higher, and";
  264. mes "must pay the " + .@ZenyCost + ",000 zeny fee.";
  265. next;
  266. if( select("Yes:No") == 2 )
  267. {
  268. mes "[Mercenary Manager]";
  269. mes "Oh, really? Well, now";
  270. mes "might not be a good time";
  271. mes "for you to consider hiring";
  272. mes "a Mercenary, but please feel";
  273. mes "free to come back if your";
  274. mes "needs change. Thank you~";
  275. }
  276. else if( .@FaithCost && .@faith_sword < .@FaithCost )
  277. {
  278. mes "[Mercenary Manager]";
  279. mes "Oh... Your Loyalty rating";
  280. mes "with the Sword Mercenary";
  281. mes "Guild isn't high enough to";
  282. mes "hire this Mercenary. Please";
  283. mes "come back after you earn";
  284. mes "" + .@FaithCost + " or more Loyalty with us.";
  285. }
  286. else if( BaseLevel < .@BaseLevel )
  287. {
  288. mes "[Mercenary Manager]";
  289. mes "I'm sorry, but your Base";
  290. mes "Level isn't high enough";
  291. mes "to hire this Mercenary.";
  292. mes "Please come back to me";
  293. mes "once you reach Base Level " + .@BaseLevel + ".";
  294. }
  295. else if( Zeny < .@ZenyCost * 1000 )
  296. {
  297. mes "[Mercenary Manager]";
  298. mes "I'm sorry, but you";
  299. mes "don't have enough zeny";
  300. mes "to hire this Mercenary.";
  301. mes "The hiring fee is " + .@ZenyCost + ",000 zeny.";
  302. }
  303. else
  304. {
  305. mes "[Mercenary Manager]";
  306. mes "Great! Our Mercenaries";
  307. mes "are sincere and devoted";
  308. mes "to protecting their clients.";
  309. mes "Summoned Mercenaries will";
  310. mes "offer their support to you for";
  311. mes "30 minutes. Take care now.";
  312. set Zeny, Zeny - (.@ZenyCost * 1000);
  313. getitem 12162 + .@Grade, 1;
  314. }
  315. close;
  316. case 2:
  317. mes "[Mercenary Manager]";
  318. mes "Mercenaries are soldiers";
  319. mes "that will fight at your side";
  320. mes "on the battlefield, but there";
  321. mes "are a few terms and conditions";
  322. mes "you must fulfill to hire them.";
  323. next;
  324. mes "[Mercenary Manager]";
  325. mes "You must fulfill a level";
  326. mes "requirement and pay a zeny";
  327. mes "fee to hire a Mercenary.";
  328. mes "Higher grade Mercenaries";
  329. mes "will also require that you";
  330. mes "build a Loyalty rating with us.";
  331. next;
  332. mes "[Mercenary Manager]";
  333. mes "Mercenary contracts can't be";
  334. mes "transferred to other people,";
  335. mes "and we only allow a 5 Base Level difference between the Mercenary";
  336. mes "and client so you can't hire one much stronger than you.";
  337. next;
  338. mes "[Mercenary Manager]";
  339. mes "Well, you can figure out the";
  340. mes "details when you actually form";
  341. mes "a contract with one of our";
  342. mes "Mercenaries, and receive";
  343. mes "the Summon Scroll that will";
  344. mes "call a Mercenary to your side.";
  345. next;
  346. mes "[Mercenary Manager]";
  347. mes "You can't give this scroll";
  348. mes "to anyone else, and the";
  349. mes "Mercenary will only remain";
  350. mes "with you for 30 minutes after";
  351. mes "you summon him. Don't forget";
  352. mes "about the time limit, okay?";
  353. close;
  354. case 3:
  355. mes "[Mercenary Manager]";
  356. mes "No? You didn't need any";
  357. mes "help? Well, feel free to";
  358. mes "ask me if you have any";
  359. mes "questions about Mercenaries.";
  360. close;
  361. case 4:
  362. mes "[Mercenary Manager]";
  363. mes "10th Grade Mercenaries are";
  364. mes "the best we have to offer,";
  365. mes "and we use different criteria";
  366. mes "for our clients to hire them.";
  367. mes "There's no zeny fee, but you";
  368. mes "must have 500 Loyalty.";
  369. next;
  370. mes "[Mercenary Manager]";
  371. mes "Once you make a contract";
  372. mes "with a 10th Grade Mercenary,";
  373. mes "your Loyalty rating will be";
  374. mes "decreased by 400. In other";
  375. mes "words, you pay 400 Loyalty";
  376. mes "to hire a 10th Grade Mercenary.";
  377. next;
  378. mes "[Mercenary Manager]";
  379. mes "You must also be at";
  380. mes "Base Level 90 or higher to";
  381. mes "hire a 10th Grade Mercenary.";
  382. mes "Are you still interested in";
  383. mes "forming this contract?";
  384. next;
  385. if( select("Yes:No") == 2 )
  386. {
  387. mes "[Mercenary Manager]";
  388. mes "I understand... It takes";
  389. mes "hard work and sacrifice to";
  390. mes "even reach the point where";
  391. mes "you can hire a 10th Grade";
  392. mes "Mercenary. Have you considered";
  393. mes "hiring a lower grade Mercenary?";
  394. }
  395. else if( .@faith_sword < 500 )
  396. {
  397. mes "[Mercenary Manager]";
  398. mes "I'm sorry, but your";
  399. mes "Loyalty rating is too";
  400. mes "low to hire a 10th Grade";
  401. mes "Mercenary. You must have";
  402. mes "500 or more Loyalty to";
  403. mes "form a contract with one.";
  404. }
  405. else if( BaseLevel < 90 )
  406. {
  407. mes "[Mercenary Manager]";
  408. mes "I'm sorry, but you must";
  409. mes "be at Base Level 90 or";
  410. mes "higher to form a contract";
  411. mes "with a 10th Grade Mercenary.";
  412. }
  413. else
  414. {
  415. mes "[Mercenary Manager]";
  416. mes "Congratulations! It looks";
  417. mes "like you're planning in taking";
  418. mes "on some very dangerous work";
  419. mes "since you're hiring a 10th";
  420. mes "Grade Mercenary. I wish you";
  421. mes "the best of luck with him.";
  422. mercenary_set_faith SWORD_MERC_GUILD,-400;
  423. getitem 12172,1;
  424. }
  425. close;
  426. }
  427. }
  428. pay_arche,99,167,4 script Mercenary Manager#Bow 732,{
  429. set .@faith_archer, mercenary_get_faith(ARCH_MERC_GUILD);
  430. mes "[Mercenary Manager]";
  431. mes "Welcome to the";
  432. mes "Bow Mercenary Guild.";
  433. mes "How can I be of service?";
  434. next;
  435. switch( select("Hire Mercenary:Mercenary Info:Nothing:10th Grade Mercenaries") )
  436. {
  437. case 1:
  438. mes "[Mercenary Manager]";
  439. mes "You want to hire";
  440. mes "a Bow Mercenary?";
  441. mes "Which Grade were you";
  442. mes "interested in hiring?";
  443. next;
  444. set .@Grade, select("1st Grade Bow Mercenary:2nd Grade Bow Mercenary:3rd Grade Bow Mercenary:4th Grade Bow Mercenary:5th Grade Bow Mercenary:6th Grade Bow Mercenary:7th Grade Bow Mercenary:8th Grade Bow Mercenary:9th Grade Bow Mercenary");
  445. set .@BaseLevel, 5 + (.@Grade * 10);
  446. if( .@BaseLevel > 90 )
  447. set .@BaseLevel, 90;
  448. set .@ZenyCost, 7 * .@Grade;
  449. if( .@Grade == 7 )
  450. set .@FaithCost, 50;
  451. else if( .@Grade == 8 )
  452. set .@FaithCost, 100;
  453. else if( .@Grade == 9 )
  454. set .@FaithCost, 300;
  455. else
  456. set .@FaithCost, 0;
  457. mes "[Mercenary Manager]";
  458. if( .@Grade == 1 )
  459. mes "So you want to hire a 1st";
  460. else if( .@Grade == 2 )
  461. mes "So you want to hire a 2nd";
  462. else if( .@Grade == 3 )
  463. mes "So you want to hire a 3rd";
  464. else
  465. mes "So you want to hire a " + .@Grade + "th";
  466. mes "Grade Bow Mercenary?";
  467. mes "You need to have attained";
  468. mes "Base Level " + .@BaseLevel + " or higher, and";
  469. mes "must pay the " + .@ZenyCost + ",000 zeny fee.";
  470. next;
  471. if( select("Yes:No") == 2 )
  472. {
  473. mes "[Mercenary Manager]";
  474. mes "Oh, really? Well, now";
  475. mes "might not be a good time";
  476. mes "for you to consider hiring";
  477. mes "a Mercenary, but please feel";
  478. mes "free to come back if your";
  479. mes "needs change. Thank you~";
  480. }
  481. else if( .@FaithCost && .@faith_archer < .@FaithCost )
  482. {
  483. mes "[Mercenary Manager]";
  484. mes "I'm sorry, but your";
  485. mes "Loyalty rating is too";
  486. mes "low to hire this Bow";
  487. mes "Mercenary. Come back";
  488. mes "again when you have";
  489. mes "" + .@FaithCost + " or more Loyalty.";
  490. }
  491. else if( BaseLevel < .@BaseLevel )
  492. {
  493. mes "[Mercenary Manager]";
  494. mes "I'm sorry, but your Base";
  495. mes "Level isn't high enough";
  496. mes "to hire this Mercenary.";
  497. mes "Please come back to me";
  498. mes "once you reach Base Level " + .@BaseLevel + ".";
  499. }
  500. else if( Zeny < .@ZenyCost * 1000 )
  501. {
  502. mes "[Mercenary Manager]";
  503. mes "I'm sorry, but you";
  504. mes "don't have enough zeny";
  505. mes "to hire this Mercenary.";
  506. mes "The hiring fee is " + .@ZenyCost + ",000 zeny.";
  507. }
  508. else
  509. {
  510. mes "[Mercenary Manager]";
  511. mes "Great! Our Mercenaries";
  512. mes "are sincere and devoted";
  513. mes "to protecting their clients.";
  514. mes "Summoned Mercenaries will";
  515. mes "offer their support to you for";
  516. mes "30 minutes. Take care now.";
  517. set Zeny, Zeny - (.@ZenyCost * 1000);
  518. getitem 12152 + .@Grade, 1;
  519. }
  520. close;
  521. case 2:
  522. mes "[Mercenary Manager]";
  523. mes "Mercenaries are soldiers";
  524. mes "that will fight at your side";
  525. mes "on the battlefield, but there";
  526. mes "are a few terms and conditions";
  527. mes "you must fulfill to hire them.";
  528. next;
  529. mes "[Mercenary Manager]";
  530. mes "You must fulfill a level";
  531. mes "requirement and pay a zeny";
  532. mes "fee to hire a Mercenary.";
  533. mes "Higher grade Mercenaries";
  534. mes "will also require that you";
  535. mes "build a Loyalty rating with us.";
  536. next;
  537. mes "[Mercenary Manager]";
  538. mes "Mercenary contracts can't be";
  539. mes "transferred to other people,";
  540. mes "and we only allow a 5 Base Level difference between the Mercenary";
  541. mes "and client so you can't hire one much stronger than you.";
  542. next;
  543. mes "[Mercenary Manager]";
  544. mes "Well, you can figure out the";
  545. mes "details when you actually form";
  546. mes "a contract with one of our";
  547. mes "Mercenaries, and receive";
  548. mes "the Summon Scroll that will";
  549. mes "call a Mercenary to your side.";
  550. next;
  551. mes "[Mercenary Manager]";
  552. mes "You can't give this scroll";
  553. mes "to anyone else, and the";
  554. mes "Mercenary will only remain";
  555. mes "with you for 30 minutes after";
  556. mes "you summon him. Don't forget";
  557. mes "about the time limit, okay?";
  558. close;
  559. case 3:
  560. mes "[Mercenary Manager]";
  561. mes "No? You didn't need any";
  562. mes "help? Well, feel free to";
  563. mes "ask me if you have any";
  564. mes "questions about Mercenaries.";
  565. close;
  566. case 4:
  567. mes "[Mercenary Manager]";
  568. mes "10th Grade Mercenaries are";
  569. mes "the best we have to offer,";
  570. mes "and we use different criteria";
  571. mes "for our clients to hire them.";
  572. mes "There's no zeny fee, but you";
  573. mes "must have 500 Loyalty.";
  574. next;
  575. mes "[Mercenary Manager]";
  576. mes "Once you make a contract";
  577. mes "with a 10th Grade Mercenary,";
  578. mes "your Loyalty rating will be";
  579. mes "decreased by 400. In other";
  580. mes "words, you pay 400 Loyalty";
  581. mes "to hire a 10th Grade Mercenary.";
  582. next;
  583. mes "[Mercenary Manager]";
  584. mes "You must also be at";
  585. mes "Base Level 90 or higher to";
  586. mes "hire a 10th Grade Mercenary.";
  587. mes "Are you still interested in";
  588. mes "forming this contract?";
  589. next;
  590. if( select("Yes:No") == 2 )
  591. {
  592. mes "[Mercenary Manager]";
  593. mes "I understand... It takes";
  594. mes "hard work and sacrifice to";
  595. mes "even reach the point where";
  596. mes "you can hire a 10th Grade";
  597. mes "Mercenary. Have you considered";
  598. mes "hiring a lower grade Mercenary?";
  599. }
  600. else if( .@faith_archer < 500 )
  601. {
  602. mes "[Mercenary Manager]";
  603. mes "I'm sorry, but your";
  604. mes "Loyalty rating is too";
  605. mes "low to hire a 10th Grade";
  606. mes "Mercenary. You must have";
  607. mes "500 or more Loyalty to";
  608. mes "form a contract with one.";
  609. }
  610. else if( BaseLevel < 90 )
  611. {
  612. mes "[Mercenary Manager]";
  613. mes "I'm sorry, but you must";
  614. mes "be at Base Level 90 or";
  615. mes "higher to form a contract";
  616. mes "with a 10th Grade Mercenary.";
  617. }
  618. else
  619. {
  620. mes "[Mercenary Manager]";
  621. mes "Congratulations! It looks";
  622. mes "like you're planning in taking";
  623. mes "on some very dangerous work";
  624. mes "since you're hiring a 10th";
  625. mes "Grade Mercenary. I wish you";
  626. mes "the best of luck with him.";
  627. mercenary_set_faith ARCH_MERC_GUILD,-400;
  628. getitem 12162,1;
  629. }
  630. close;
  631. }
  632. }
  633. // Mercenary Merchant NPCs
  634. //============================================================
  635. prontera,30,337,4 script Mercenary Merchant#Spear::MercMerchant 700,{
  636. mes "[Mercenary Goods Merchant]";
  637. mes "Hello, I sell goods";
  638. mes "that Mercenaries can";
  639. mes "use. Is there anything";
  640. mes "in particular that";
  641. mes "you're looking for?";
  642. next;
  643. switch(select("Mercenary Red Potion:Mercenary Blue Potion:Mercenary Concentration Potion:Mercenary Awakening Potion:Mercenary Berserk Potion")) {
  644. case 1:
  645. mes "[Mercenary Goods Merchant]";
  646. mes "Mercenary Red Potions";
  647. mes "each cost 1,750 zeny.";
  648. mes "How many would you like?";
  649. next;
  650. callfunc "F_PurchaseMercItem",12184,1750;
  651. case 2:
  652. mes "[Mercenary Goods Merchant]";
  653. mes "Mercenary Blue Potions";
  654. mes "each cost 3,500 zeny.";
  655. mes "How many would you like?";
  656. next;
  657. callfunc "F_PurchaseMercItem",12185,3000;
  658. case 3:
  659. mes "[Mercenary Goods Merchant]";
  660. mes "Mercenary Concentration";
  661. mes "Potions each cost 560 zeny.";
  662. mes "How many would you like?";
  663. next;
  664. callfunc "F_PurchaseMercItem",12241,560;
  665. case 4:
  666. mes "[Mercenary Goods Merchant]";
  667. mes "Mercenary Awakening";
  668. mes "Potions each cost 1,050 zeny.";
  669. mes "How many would you like?";
  670. next;
  671. callfunc "F_PurchaseMercItem",12242,1050;
  672. case 5:
  673. mes "[Mercenary Goods Merchant]";
  674. mes "Mercenary Beserk Potions";
  675. mes "each cost 2,100 zeny.";
  676. mes "How many would you like?";
  677. next;
  678. callfunc "F_PurchaseMercItem",12243,2100;
  679. }
  680. }
  681. izlude,56,139,4 duplicate(MercMerchant) Mercenary Merchant#Sword 892
  682. pay_arche,102,167,5 duplicate(MercMerchant) Mercenary Merchant#Bow 879
  683. // Function for selling items.
  684. //============================================================
  685. function script F_PurchaseMercItem {
  686. input .@input;
  687. if( .@input == 0 )
  688. {
  689. mes "[Mercenary Goods Merchant]";
  690. mes "You changed your mind?";
  691. mes "Alright, feel free to come";
  692. mes "back to me whenever you want";
  693. mes "to buy any Mercenary Potions.";
  694. }
  695. else if( .@input < 0 || .@input > 10000 )
  696. {
  697. mes "[Mercenary Goods Merchant]";
  698. mes "I'm sorry, but you";
  699. mes "can only buy up to";
  700. mes "10,000 of these potions";
  701. mes "at a time. Please enter";
  702. mes "a number from 1 to 10,000.";
  703. }
  704. else if( set(.@total_po, .@input * getarg(1)) > Zeny )
  705. {
  706. mes "[Mercenary Goods Merchant]";
  707. mes "I'm sorry, but you don't";
  708. mes "have enough zeny for this";
  709. mes "many potions. Well, I'll be";
  710. mes "be here when you're ready";
  711. mes "to purchase something";
  712. mes "for your Mercenaries.";
  713. }
  714. else if( checkweight(getarg(0), .@input) == 0 )
  715. {
  716. mes "[Mercenary Goods Merchant]";
  717. mes "If I gave you that many";
  718. mes "potions, you wouldn't be";
  719. mes "able to carry them with you.";
  720. mes "Please come back after";
  721. mes "you free up some space";
  722. mes "in your Inventory.";
  723. }
  724. else
  725. {
  726. mes "[Mercenary Goods Merchant]";
  727. if( .@input == 1 )
  728. {
  729. mes "Here's your Mercenary";
  730. switch( getarg(0) )
  731. {
  732. case 12148: mes "Red Potion. Thank you, and"; break;
  733. case 12149: mes "Blue Potion. Thank you, and"; break;
  734. case 12241: mes "Concentration Potion."; break;
  735. case 12242: mes "Awakening Potion."; break;
  736. case 12243: mes "Berserk Potion. Thank"; break;
  737. }
  738. mes "please come again when";
  739. mes "you need more potions";
  740. mes "for your Mercenaries.";
  741. }
  742. else
  743. {
  744. mes "Here you are, this is exactly";
  745. switch( getarg(0) )
  746. {
  747. case 12148: mes "" + .@input + " Mercenary Red Potions."; mes "Thank you, and please come"; break;
  748. case 12149: mes "" + .@input + " Mercenary Blue Potions."; mes "Thank you, and please come"; break;
  749. case 12241: mes "" + .@input + " Mercenary Concentration"; mes "Potions. Thank you, and please"; break;
  750. case 12242: mes "" + .@input + " Mercenary Awakening"; mes "Potions. Thank you, and please"; break;
  751. case 12243: mes "" + .@input + " Mercenary Berserk Potions."; mes "Thank you, and please come"; break;
  752. }
  753. mes "again when you need more";
  754. mes "potions for your Mercenaries.";
  755. }
  756. set Zeny, Zeny - .@total_po;
  757. getitem getarg(0), .@input;
  758. }
  759. close;
  760. }