quests_umbala.txt 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  1. //===== eAthena Script =======================================
  2. //= Quest NPCs related to Umbala
  3. //===== By: ==================================================
  4. //= sabernet09 & eAthena Team
  5. //===== Current Version: =====================================
  6. //= 1.8
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= Umbalian Language Quest, Umbala Skeletal Gate Quest,
  11. //= Umbala Event, Create Essence/Dismantle Stone
  12. // Phase1.Learning the Language
  13. // 1 (Elder)First discussion
  14. // 2 (Elder)Asking about learning the language
  15. // 3 (Elder)Final step (understanding NPC speech)
  16. // ------------------------------------------
  17. // Phase2.Create Essence/Dismantle Stone
  18. // 4 (Shaman)Get permission to speak with her from the chief
  19. // 5 (Elder)Ask about conditions needed to be fulfilled to get permission
  20. // 6 (Elder)Get permission
  21. // 7 (Shaman)Use the shaman to create essences and dismantle elemental stones.
  22. //===== Additional Comments: =================================
  23. //= fixed by x[tsk], Lupus, PoW
  24. //= Quest completion is now registered
  25. //= 1.1 fixed Poporing Egg ID -> Poring Egg, fixed condition
  26. //= 1.2-1.6 fixed some Umbalian Language quests [Lupus]
  27. //= 1.7 Moved Umbala Event, Create Essence/Dismantle Stone, and Skeletal Gate from npc/cities/umbala.txt [Evera]
  28. //= 1.7a Removed all custom quests to custom folder [Lupus]
  29. //= 1.8 Added official chance of failure to Create Essence/Dismantle Stone [Lupus]
  30. //============================================================
  31. //========================================================================================================================\\
  32. // Little Quest NPC to enter the dungeon
  33. //========================================================================================================================\\
  34. umbala.gat,65,253,4 script Tree Guardian 752,{
  35. mes "[Tree Guardian]";
  36. mes "Stop, stranger, here is the entrance to the ancient tree!";
  37. next;
  38. mes "[Tree Guardian]";
  39. mes "I cannot allow you to enter, you look pretty weak!";
  40. next;
  41. L_MENU:
  42. menu "Talk about tree",-, "Talk about Umbala",M_TALKUMB, "Enter Dungeon",M_DUN, "Leave",M_Leave;
  43. mes "[Tree Guardian]";
  44. mes "The tree is an ancient relique of our culture!";
  45. next;
  46. mes "[Tree Guardian]";
  47. mes "But recently some monsters overwhelmed the tree and are now";
  48. mes "slowly killing the tree...like a poison...from inside..";
  49. next;
  50. goto L_MENU;
  51. M_TALKUMB:
  52. mes "[Tree Guardian]";
  53. mes "We don't have many visitors in our small town..";
  54. next;
  55. mes "[Tree Guardian]";
  56. mes "Most people don't find us or are just afraid of us!";
  57. next;
  58. mes "[Tree Guardian]";
  59. mes "And now, we are even more unpopular, because of that damn beast!";
  60. next;
  61. menu "What beast?",- ,"Leave",M_Leave;
  62. mes "[Tree Guardian]";
  63. mes "The Werewolf of course!!";
  64. next;
  65. mes "[Tree Guardian]";
  66. mes "He is sneaking around our town and killing our soldiers at night!";
  67. next;
  68. mes "[Tree Guardian]";
  69. mes "Hey...if you could get rid of that beast!";
  70. next;
  71. mes "[Tree Guardian]";
  72. mes "I'll let you in!";
  73. next;
  74. mes "[Tree Guardian]";
  75. mes "From now on we can live in peace again, thanks to you!";
  76. next;
  77. mes "[Tree Guardian]";
  78. mes "You may enter the dungeon now!";
  79. set umbdun,1;
  80. close;
  81. M_DUN:
  82. mes "[Tree Guardian]";
  83. if(umbdun != 1) mes "We do not permit weak people to enter!";
  84. if(umbdun != 1) close;
  85. mes "Come on in, brave warrior!";
  86. warp "um_dun01.gat",42,30;
  87. M_Leave:
  88. close;
  89. }
  90. //==============================================================================
  91. //Skeletal Gate
  92. //==============================================================================
  93. umbala.gat,221,193,1 script #Skeletal Gate 111,{
  94. if(event_umbala==7) goto LwarpNoText;
  95. set @ryumon,0;
  96. mes "^3355FFThe gate is shaped like a skeleton";
  97. mes "You cannot pass this point as the gate is";
  98. mes "locked. You hear sounds coming from the";
  99. mes "inside.^000000";
  100. next;
  101. menu "Examine the skeleton",-,"Nothing",Lend;
  102. mes "^3355FFWhen you examine the gate";
  103. mes "carefully, you notice that there";
  104. mes "is a hole about the size of a gemstone";
  105. mes "on the left side of the gate about where";
  106. mes "the skeleton's left eye should be. There is";
  107. mes "a matching hole on the other side.^000000";
  108. next;
  109. mes "^3355FFWhat you would like to";
  110. mes "to do with the left socket?^000000";
  111. next;
  112. menu "Nothing",-,"Insert a Blue Gemstone",L1_2,"Insert a Yellow Gemstone",L1_3,"Insert a Red Gemstone",L1_4;
  113. mes "^3355FFNothing was inserted into the left socket.^000000";
  114. next;
  115. goto LRight;
  116. L1_2:
  117. //Blue
  118. if(countitem(717) < 1) goto L1_2_e;//Items: Blue Gemstone,
  119. mes "^3355FFYou inserted a Blue Gemstone into the";
  120. mes "left socket.^000000";
  121. next;
  122. delitem 717,1;//Items: Blue Gemstone,
  123. getitem 717,1;//Items: Blue Gemstone,
  124. set @ryumon,1;
  125. mes "^3355FFA rolling sound can be heard, and";
  126. mes "the gemstone comes out of the skeleton's mouth.^000000";
  127. next;
  128. goto LRight;
  129. L1_3:
  130. //Yellow
  131. if(countitem(715) < 1) goto L1_3_e;//Items: Yellow Gemstone,
  132. mes "^3355FFYou inserted a Yellow Gemstone into the";
  133. mes "left socket.^000000";
  134. next;
  135. delitem 715,1;//Items: Yellow Gemstone,
  136. getitem 715,1;//Items: Yellow Gemstone,
  137. set @ryumon,2;
  138. mes "^3355FFA rolling sound can be heard, and";
  139. mes "the gemstone comes out of the skeleton's mouth.^000000";
  140. next;
  141. goto LRight;
  142. L1_4:
  143. //Red
  144. if(countitem(716) < 1) goto L1_4_e;//Items: Red Gemstone,
  145. mes "^3355FFYou inserted a Red Gemstone into the";
  146. mes "left socket.^000000";
  147. next;
  148. delitem 716,1;//Items: Red Gemstone,
  149. getitem 716,1;//Items: Red Gemstone,
  150. set @ryumon,3;
  151. mes "^3355FFA rolling sound can be heard, and";
  152. mes "the gemstone comes out of the skeleton's mouth.^000000";
  153. next;
  154. goto LRight;
  155. L1_2_e:
  156. mes "^3355FFYou don't have a Blue Gemstone.";
  157. goto L1_e;
  158. L1_3_e:
  159. mes "^3355FFYou don't have a Yellow Gemstone.";
  160. goto L1_e;
  161. L1_4_e:
  162. mes "^3355FFYou don't have a Red Gemstone.";
  163. L1_e:
  164. mes "Therefore, nothing was inserted into";
  165. mes "the left socket.^000000";
  166. next;
  167. LRight:
  168. mes "^3355FFWhat about the right";
  169. mes "socket?^000000";
  170. next;
  171. menu "Nothing",-,"Insert a Blue Gemstone",L2_2,"Insert a Yellow Gemstone",L2_3,"Insert a Red Gemstone",L2_4;
  172. mes "^3355FFNothing was inserted into the right socket.^000000";
  173. next;
  174. goto Lfin;
  175. L2_2:
  176. //Blue
  177. if(countitem(717) < 1) goto L2_2_e;//Items: Blue Gemstone,
  178. mes "^3355FFYou inserted a Blue Gemstone into the";
  179. mes "right socket.^000000";
  180. next;
  181. delitem 717,1;//Items: Blue Gemstone,
  182. getitem 717,1;//Items: Blue Gemstone,
  183. set @ryumon,@ryumon+10;
  184. mes "^3355FFA rolling sound can be heard, and";
  185. mes "the gemstone comes out of the skeleton's mouth.^000000";
  186. next;
  187. goto Lfin;
  188. L2_3:
  189. //Yellow
  190. if(countitem(715) < 1) goto L2_3_e;//Items: Yellow Gemstone,
  191. mes "^3355FFYou inserted a Yellow Gemstone into the";
  192. mes "right socket.^000000";
  193. next;
  194. delitem 715,1;//Items: Yellow Gemstone,
  195. getitem 715,1;//Items: Yellow Gemstone,
  196. set @ryumon,@ryumon+20;
  197. mes "^3355FFA rolling sound can be heard, and";
  198. mes "the gemstone comes out of the skeleton's mouth.^000000";
  199. next;
  200. goto Lfin;
  201. L2_4:
  202. //Red
  203. if(countitem(716) < 1) goto L2_4_e;//Items: Red Gemstone,
  204. mes "^3355FFYou inserted a Red Gemstone into the";
  205. mes "right socket.^000000";
  206. next;
  207. delitem 716,1;//Items: Red Gemstone,
  208. getitem 716,1;//Items: Red Gemstone,
  209. set @ryumon,@ryumon+30;
  210. mes "^3355FFA rolling sound can be heard, and";
  211. mes "the gemstone comes out of the skeleton's mouth.^000000";
  212. next;
  213. goto Lfin;
  214. L2_2_e:
  215. mes "^3355FFYou don't have a Blue Gemstone.";
  216. goto L2_e;
  217. L2_3_e:
  218. mes "^3355FFYou don't have a Yellow Gemstone.";
  219. goto L2_e;
  220. L2_4_e:
  221. mes "^3355FFYou don't have a Red Gemstone.";
  222. L2_e:
  223. mes "Therefore, nothing was inserted into";
  224. mes "the right socket.^000000";
  225. next;
  226. Lfin:
  227. mes "^3355FF..........^000000";
  228. next;
  229. mes "^3355FF...................";
  230. mes ".....................^000000";
  231. next;
  232. mes "^3355FF.......................";
  233. mes ".........................";
  234. mes ".........................^000000";
  235. next;
  236. if(event_umbala < 6) goto LSecondCheck;
  237. if(@ryumon == 33) goto Lwarp;
  238. LSecondCheck:
  239. if(event_umbala >= 6) goto LNewEnd;
  240. if(@ryumon == 13) goto Lwarp;
  241. LNewEnd:
  242. mes "^3355FFNothing happened.";
  243. mes "You hear a faint laugh, but";
  244. mes "decide that it's all in";
  245. mes "your head.^000000";
  246. close;
  247. Lwarp:
  248. mes "^3355FFA rumbling sound can be";
  249. mes "heard as the gate opens.";
  250. mes "As you step across the threshold.";
  251. mes "you feel as if you're walking in";
  252. mes "into the arms of death itself.^000000";
  253. next;
  254. LwarpNoText:
  255. warp "um_in.gat",32,71;
  256. close;
  257. Lend:
  258. mes "^3355FFAfter hitting the gate a few";
  259. mes "times with no result, you decide to give";
  260. mes "up.^000000";
  261. close;
  262. }
  263. //==============================================================================
  264. //Umbala Event
  265. //==============================================================================
  266. um_in.gat,39,122,5 script Utan Tribal Elder 784,{
  267. if(event_umbala == 1) goto LStart2;
  268. if(event_umbala == 2) goto LStart3;
  269. if(event_umbala == 3) goto LStart4;
  270. if(event_umbala == 4) goto LStart5;
  271. if(event_umbala == 5) goto LStart6;
  272. if(event_umbala == 6) goto LStart4;
  273. if(event_umbala == 7) goto LStart4;
  274. mes "[Karukatan]";
  275. mes "Aha, You're new to the Utan";
  276. mes "family's little village, aren't";
  277. mes "you? I would remember such a face";
  278. mes "had I met you before.";
  279. next;
  280. mes "[Karukatan]";
  281. mes "We know there is a wide world around";
  282. mes "us, but the there is something to";
  283. mes "be appreciated in the simple life";
  284. mes "we lead here.";
  285. next;
  286. mes "[Karukatan]";
  287. mes "All decisions in the village are made";
  288. mes "by me or with my input";
  289. next;
  290. mes "[Karukatan]";
  291. mes "You want to know how I speak your";
  292. mes "language when it seems no one else in";
  293. mes "the village does? A fair question.";
  294. mes "I picked up your tongue from the";
  295. mes "adventurers who sometimes pass";
  296. mes "through this village.";
  297. next;
  298. mes "[Karukatan]";
  299. mes "Some outsiders have also settled near here";
  300. mes "over time. In exchange for information";
  301. mes "about their customs and culture, I";
  302. mes "teach them the language and customs";
  303. mes "of the Utan tribe.";
  304. next;
  305. mes "[Karukatan]";
  306. mes "If you want to learn our language,";
  307. mes "you must immerse yourselves in";
  308. mes "our customs and cultural traditions.";
  309. mes "You should even try and look as much";
  310. mes "like us as you can.";
  311. next;
  312. mes "[Karukatan]";
  313. mes "I hope you're worthy of my confidence.";
  314. mes "Some members of the tribe have expressed";
  315. mes "the sentiment that welcoming outsiders";
  316. mes "is dangerous to the village.";
  317. next;
  318. mes "[Karukatan]";
  319. mes "When you want to begin learning the";
  320. mes "language, come and visit me. Don't";
  321. mes "forget to make yourself appear as";
  322. mes "much like us as you can.";
  323. set event_umbala,1;
  324. close;
  325. LStart2:
  326. mes "[Karukatan]";
  327. mes "Ahh, have you looked around the";
  328. mes "village a bit? Did other people";
  329. mes "from the tribe hide from you when";
  330. mes "they saw you? Don't worry. They";
  331. mes "were just surprised to see a new face.";
  332. next;
  333. mes "[Karukatan]";
  334. mes "Hmm? You need something from me?";
  335. mes "How can I make your stay in the village";
  336. mes "more pleasant?";
  337. next;
  338. menu "I want to learn the tribal language",-,"Umbaumbaba?",L2,"Forget it",L3;
  339. if ((getequipisequiped(9)>0) && (getequipisequiped(10)>0)) goto L1_mask;
  340. mes "[Karukatan]";
  341. mes "Well, in order to understand our";
  342. mes "language, you need to assimilate";
  343. mes "our cultural values, too. Trying to";
  344. mes "understand a language in the context of an";
  345. mes "alien culture is foolish, right?";
  346. next;
  347. mes "[Karukatan]";
  348. mes "Besides, if the tribesmen in the";
  349. mes "village fear you, how will you";
  350. mes "ever get them to speak with you?";
  351. mes "You should try making yourself";
  352. mes "look like us in order to be more";
  353. mes "accepted.";
  354. close;
  355. L1_mask:
  356. mes "[Karukatan]";
  357. mes "What a cute mask. The Utan tribe";
  358. mes "appreciates its traditional masks";
  359. mes "because sometimes by hiding your";
  360. mes "face, you can express more genuine";
  361. mes "feelings.";
  362. next;
  363. mes "[Karukatan]";
  364. mes "Over time, the mask itself";
  365. mes "has come to symbolize trust among";
  366. mes "the members of the Utan tribe.";
  367. next;
  368. mes "[Karukatan]";
  369. mes "Now that you're prepared, I will";
  370. mes "begin teaching you the Utan";
  371. mes "language as promised. First,";
  372. mes "you need to make some preparations,";
  373. mes "however...";
  374. next;
  375. mes "[Karukatan]";
  376. mes "First, I need some paper. With";
  377. mes "paper, I can write down the words";
  378. mes "I intend to teach.";
  379. next;
  380. mes "[Karukatan]";
  381. mes "I need ^3377FF10x Oil Paper^000000, and ^3377FF5x Slick Paper^000000.";
  382. mes "I also need something to write with.";
  383. mes "of course.";
  384. mes "For that, ^3377FF1x Squid Ink^000000 and ^3377FF1x Feather of Birds^000000";
  385. mes "will do nicely.";
  386. next;
  387. mes "[Karukatan]";
  388. mes "Once you get these, I can start";
  389. mes "teaching you the language.";
  390. set event_umbala,2;
  391. close;
  392. L2:
  393. mes "[Karukatan]";
  394. mes "Haha. Only imitating the sound";
  395. mes "of the words is useless. Even";
  396. mes "though it sounds random, there is";
  397. mes "a specific way of combining the";
  398. mes "words.";
  399. next;
  400. mes "[Karukatan]";
  401. mes "Also, our language has depends a";
  402. mes "a lot on emotion to convey its";
  403. mes "meaning. Outsiders can't pick up";
  404. mes "the subtlety right away, even though";
  405. mes "we're the same race, ";
  406. next;
  407. mes "[Karukatan]";
  408. mes "It seems you have an interest";
  409. mes "in learning the language of the";
  410. mes "Utan tribe. If that's the case,";
  411. mes "come visit me and I'll teach you.";
  412. next;
  413. mes "[Karukatan]";
  414. mes "Then, you won't sound so silly.";
  415. close;
  416. L3:
  417. mes "[Karukatan]";
  418. mes "Ah. If you want to continue your";
  419. mes "trip, please keep this village in";
  420. mes "your memories.";
  421. close;
  422. LStart3:
  423. if ((countitem(7151)>=10) && (countitem(7111)>=5) && (countitem(1024)>=1) && (countitem(916)>=1)) goto Lchkok;//Items: Oiled Paper, String Paper, Squid Ink, Feather of Birds,
  424. mes "[Karukatan]";
  425. mes "It seems you've not yet prepared the";
  426. mes "proper items. Did you forget what";
  427. mes "you need to gather before I can";
  428. mes "teach you the language? You need to gather";
  429. next;
  430. mes "[Karukatan]";
  431. mes "^3377FF10x Oil Paper^000000,";
  432. mes "^3377FF5x Slick Paper^000000,";
  433. mes "^3377FF1x Squid Ink^000000, and";
  434. mes "^3377FF1x Feather of Bird^000000.";
  435. mes "Once you have gathered those, I can teach";
  436. mes "you Utan tribal language.";
  437. close;
  438. Lchkok:
  439. delitem 7151,10;//Items: Oiled Paper,
  440. delitem 7111,5;//Items: String Paper,
  441. delitem 1024,1;//Items: Squid Ink,
  442. delitem 916,1;//Items: Feather of Birds,
  443. mes "[Karukatan]";
  444. mes "Good. You've prepared all the";
  445. mes "necessary materials. Now, I can";
  446. mes "begin to teach you the Utan tribal";
  447. mes "language.";
  448. next;
  449. mes "[Karukatan]";
  450. mes "............";
  451. next;
  452. mes "[Karukatan]";
  453. mes "............";
  454. mes "............";
  455. next;
  456. mes "[Karukatan]";
  457. mes "............";
  458. mes "............";
  459. mes "............";
  460. next;
  461. mes "[Karukatan]";
  462. mes "Do you feel more enlightened now?";
  463. mes "Try talking to others in the Utan";
  464. mes "tribe. They'll warm up to your quickly";
  465. mes "now that you speak the language.";
  466. set event_umbala,3;
  467. next;
  468. mes "[Karukatan]";
  469. mes "If you need something while you're";
  470. mes "here, don't hesitate to visit me.";
  471. close;
  472. LStart4:
  473. //fin
  474. mes "[Karukatan]";
  475. mes "Do you need something?";
  476. mes "If you need someone to guide you around";
  477. mes "the village, you should ask someone else.";
  478. mes "I can't leave here right now.";
  479. next;
  480. mes "[Karukatan]";
  481. mes "The best way to get a feel for";
  482. mes "the village is to just walk";
  483. mes "around and see the sights. By doing";
  484. mes "that, you can form a personal";
  485. mes "bond with the village.";
  486. close;
  487. LStart5:
  488. mes "[Karukatan]";
  489. mes "Oh, it seems you're enjoying yourself here.";
  490. mes "You need something else?";
  491. next;
  492. mes "[Karukatan]";
  493. mes "It seems you want to ask the";
  494. mes "shaman Putsuchiratan something";
  495. mes "and you're seeking my permission";
  496. mes "to do so.";
  497. next;
  498. mes "[Karukatan]";
  499. mes "Well...There's a mask from";
  500. mes "abroad that Putsuchiratan and I";
  501. mes "have both always desired. Putsuchiratan";
  502. mes "heard about it some time ago.";
  503. next;
  504. mes "[Karukatan]";
  505. mes "If I could have the ^3377FFSmile Mask^000000,";
  506. mes "it would be a great honour, but";
  507. mes "I promised I would give it to";
  508. mes "to Putsuchiratan as a gift if I ever";
  509. mes "came across one. If you can find a Smile Mask for me,";
  510. mes "I'll give you permission to speak with her.";
  511. set event_umbala,5;
  512. close;
  513. LStart6:
  514. if(countitem(2278) > 0) goto Lsmileok;//Items: Mr. Smile,
  515. mes "[Karukatan]";
  516. mes "Did you find the ^3377FFSmile Mask^000000 yet?";
  517. mes "In order to let you see the shaman,";
  518. mes "you need to collect one.";
  519. mes "A gift will put Putsuchiritan in";
  520. mes "a good mood, also.";
  521. close;
  522. Lsmileok:
  523. delitem 2278,1;//Items: Mr. Smile,
  524. mes "[Karukatan]";
  525. mes "Ahh! It's a Smile Mask!";
  526. mes "I would really like to put this";
  527. mes "on just once, but I promised to";
  528. mes "give this to Putsuchiritan as";
  529. mes "a gift.";
  530. set event_umbala,6;
  531. next;
  532. mes "[Karukatan]";
  533. mes "I'll tell Putsuchiritan to allow you";
  534. mes "to meet with her. I'm certain that you";
  535. mes "will find her talents to be a tremendous";
  536. mes "help on your journey.";
  537. close;
  538. }
  539. //=====================================================================
  540. // Create Essence/Dismantle Stone
  541. //=====================================================================
  542. um_in.gat,44,71,2 script Utan Tribe Shaman 782,{
  543. switch(event_umbala) {
  544. default:
  545. mes "[?????]";
  546. mes "Umbaumbaumbaba Utan Umbaba";
  547. mes "Umbaumbaumbafumbabauma...";
  548. mes "Umbabaumbaumbabaumbabaumba";
  549. mes "Umbabaumbabaumbaumbabaumba";
  550. mes "Fumbaumba.";
  551. next;
  552. warp "umbala.gat",217,186;
  553. close;
  554. case 3:
  555. mes "[Putsuchiritan]";
  556. mes "I will not see outsiders that are";
  557. mes "not from the Utan tribe.";
  558. mes "...There are many things about the";
  559. mes "nature of our society that you do";
  560. mes "not yet understand.";
  561. next;
  562. mes "[Putsuchiritan]";
  563. mes "Others of your type will do anything";
  564. mes "to set foot on land which is sacred";
  565. mes "to the Utan tribe. We fear that";
  566. mes "revealing our secrets will expose";
  567. mes "use to danger.";
  568. next;
  569. mes "[Putsuchiritan]";
  570. mes "What's worse, I don't think that";
  571. mes "outsiders understand our desire";
  572. mes "to preserve our tribal culture.";
  573. next;
  574. mes "[Putsuchiritan]";
  575. mes "As my talents are foremost for";
  576. mes "the use of the Utan tribe, you";
  577. mes "must get permission from the elder";
  578. mes "if you want my assistance.";
  579. mes "Also, don't be stirring up trouble";
  580. mes "among the tribesmen.";
  581. set event_umbala,4;
  582. close;
  583. case 4:
  584. case 5:
  585. mes "[Putsuchiritan]";
  586. mes "Didn't you hear me? You need";
  587. mes "to get the elder's permission before";
  588. mes "I can help you.";
  589. close;
  590. case 6:
  591. mes "[Putsuchiritan]";
  592. mes "You seem to have gotten permission from";
  593. mes "the elder. Fine, I'll help you, though";
  594. mes "I don't really want to.";
  595. next;
  596. mes "[Putsuchiritan]";
  597. mes "I can call forth hidden talents";
  598. mes "buried deep within your psyche";
  599. mes "and tap the power hidden in";
  600. mes "elemental stones.";
  601. next;
  602. mes "[Putsuchiritan]";
  603. mes "I need to prepare my rituals.";
  604. mes "When you're ready to proceed, please";
  605. mes "talk to me again.";
  606. set event_umbala,7;
  607. close;
  608. case 7:
  609. mes "[Putsuchiritan]";
  610. mes "I don't know whether my talents";
  611. mes "will be useful to you, but I'll";
  612. mes "help you anyway.";
  613. next;
  614. mes "[Putsuchiritan]";
  615. mes "I can create elemental essence from natural objects,";
  616. mes "or, dismantle elemental stones into their component essences.";
  617. mes "Which would you like to do?";
  618. }
  619. next;
  620. set .@need,0;
  621. switch (select("Create Essence","Dismantle Elemental Stone","Nothing")) {
  622. case 1:
  623. mes "[Putsuchiritan]";
  624. mes "Which elemental essence would you";
  625. mes "like to create? I can create earth, water,";
  626. mes "fire, and wind essence.";
  627. next;
  628. switch (select("Earth","Water","Fire","Wind")) {
  629. case 1:
  630. if(countitem(947)<15) {
  631. mes "[Putsuchiritan]";
  632. mes "Earth...You need that which is";
  633. mes "a friend of the earth. Explore";
  634. mes "the verdant forest and find";
  635. mes "^3377FF15x Horn^000000 for the ritual.";
  636. }
  637. else {
  638. set .@need,947;
  639. set .@amount,15;
  640. set .@gain,993;
  641. }
  642. break;
  643. case 2:
  644. if(countitem(946)<20) {
  645. mes "[Putsuchiritan]";
  646. mes "Water...You need that which is";
  647. mes "saturated with water. Explore";
  648. mes "the area around here and find";
  649. mes "^3377FF20x Snails Shell^000000 for the ritual.";
  650. }
  651. else {
  652. set .@need,946;
  653. set .@amount,20;
  654. set .@gain,991;
  655. }
  656. break;
  657. case 3:
  658. if(countitem(904)<20) {
  659. mes "[Putsuchiritan]";
  660. mes "Fire...You need that which";
  661. mes "can withstand the roiling heat";
  662. mes "of perpetual flame. Explore the";
  663. mes "desert and find ^3377FF20x Scorpion Tail^000000";
  664. mes "for the ritual.";
  665. }
  666. else {
  667. set .@need,904;
  668. set .@amount,20;
  669. set .@gain,990;
  670. }
  671. break;
  672. case 4:
  673. if(countitem(1013)<25) {
  674. mes "[Putsuchiritan]";
  675. mes "Wind...You need that which";
  676. mes "has an easy camaraderie with";
  677. mes "the sky itself.";
  678. mes "You need ^3377FF25x Rainbow Shell^000000";
  679. mes "to complete the ritual.";
  680. }
  681. else {
  682. set .@need,1013;
  683. set .@amount,25;
  684. set .@gain,992;
  685. }
  686. break;
  687. }
  688. if(.@need == 0) {
  689. next;
  690. mes "[Putsuchiritan]";
  691. mes "Once you've prepared these";
  692. mes "objects from nature, please return here";
  693. mes "so we can complete the ritual.";
  694. close;
  695. }
  696. mes "[Putsuchiritan]";
  697. mes "Now, I will try to tap the";
  698. mes "source of power hidden deep within";
  699. mes "you. Choose a number between 1 and 9.";
  700. mes "If you don't want to create essence";
  701. mes "after all, choose 0.";
  702. while(1) {
  703. next;
  704. input .@num;
  705. if(.@num<=0) {
  706. mes "[Putsuchiritan]";
  707. mes "If you don't wish my help at the moment,";
  708. mes "that's fine. When you do, please come";
  709. mes "by again.";
  710. close;
  711. }
  712. if(.@num>9) {
  713. mes "[Putsuchiritan]";
  714. mes "You must choose a number between";
  715. mes "1 and 9. It is very important that";
  716. mes "you choose the number most dear to";
  717. mes "your heart.";
  718. continue;
  719. }
  720. break;
  721. }
  722. mes "[Putsuchiritan]";
  723. switch(.@need) {
  724. case 947: mes "The horn begins to vibrate."; break;
  725. case 904: mes "The tail begins to vibrate."; break;
  726. default: mes "The shell begins to vibrate."; break;
  727. }
  728. mes "I will now chant a holy mantra.";
  729. mes "Imagine the number in your mind";
  730. mes "and imagine power radiating forth from";
  731. mes "your body.";
  732. next;
  733. mes "[Putsuchiritan]";
  734. mes "Amba Omba Sanba! Unba Chi!";
  735. mes "Wanbatauma Eurukaba! Unba! Ba!";
  736. mes "Jyur! Fumuba Rurara! Wamba! Ra!";
  737. mes "Damtsuha Ombabaraka! Unba! Shi!";
  738. mes "Sukatamba Aburumba! Umba! Shi!";
  739. next;
  740. mes "[Putsuchiritan]";
  741. if(countitem(.@need)<.@amount){
  742. mes "You're An Amba HacK0R!";
  743. mes "I'm clearing your mind!";
  744. //we reset the whole quest for the hacker
  745. set event_umbala,0;
  746. emotion e_swt,1;
  747. close;
  748. }
  749. delitem .@need,.@amount;
  750. if(!rand(10)){
  751. getitem 910,1; //if failed get Garlet
  752. mes "Your inner power has failed";
  753. mes "to convert these objects";
  754. mes "from nature into elemental essence...";
  755. next;
  756. mes "[Putsuchiritan]";
  757. mes "Purify your mind and try again.";
  758. close;
  759. }
  760. getitem .@gain,1;
  761. mes "There. Your inner power has converted";
  762. mes "these objects from nature into";
  763. mes "elemental essence. Put";
  764. mes "it to good use.";
  765. close;
  766. case 2:
  767. mes "[Putsuchiritan]";
  768. mes "What type of stone would you like to";
  769. mes "dismantle? Please choose earth, water,";
  770. mes "fire, or wind.";
  771. next;
  772. switch (select("Earth","Water","Fire","Wind")) {
  773. case 1:
  774. if(countitem(997)==0) {
  775. mes "[Putsuchiritan]";
  776. mes "You need to have";
  777. mes "^3377FF1x Great Nature^000000";
  778. mes "to disassemble into its";
  779. mes "component essence.";
  780. }
  781. else {
  782. set .@need,997;
  783. set .@gain,993;
  784. }
  785. break;
  786. case 2:
  787. if(countitem(995)==0) {
  788. mes "[Putsuchiritan]";
  789. mes "You need to have";
  790. mes "^3377FF1x Mystic Frozen^000000";
  791. mes "to disassemble into its";
  792. mes "component essence.";
  793. }
  794. else {
  795. set .@need,995;
  796. set .@gain,991;
  797. }
  798. break;
  799. case 3:
  800. if(countitem(994)==0) {
  801. mes "[Putsuchiritan]";
  802. mes "You need to have";
  803. mes "^3377FF1x Flaming Heart^000000";
  804. mes "to disassemble into its";
  805. mes "component essence.";
  806. }
  807. else {
  808. set .@need,994;
  809. set .@gain,990;
  810. }
  811. break;
  812. case 4:
  813. if(countitem(996)==0) {
  814. mes "[Putsuchiritan]";
  815. mes "You need to have";
  816. mes "^3377FF1x Rough Wind^000000";
  817. mes "to disassemble into its";
  818. mes "component essence.";
  819. }
  820. else {
  821. set .@need,996;
  822. set .@gain,992;
  823. }
  824. break;
  825. }
  826. next;
  827. if(.@need == 0) {
  828. mes "[Putsuchiritan]";
  829. mes "Once you have the necessary stone,";
  830. mes "please come back and visit me";
  831. mes "so that the ritual can be completed.";
  832. close;
  833. }
  834. mes "[Putsuchiritan]";
  835. switch(.@need) {
  836. case 997: mes "I will dismantle your earth crystal"; break;
  837. case 995: mes "I will dismantle your frozen crystal"; break;
  838. case 994: mes "I will dismantle your heart of flame"; break;
  839. case 996: mes "I will dismantle your rough wind stone"; break;
  840. }
  841. mes "into its component essence.";
  842. mes "Choose a number between 1 and 9.";
  843. mes "If you don't want me to dismantle the";
  844. mes "stone, choose 0.";
  845. while(1) {
  846. next;
  847. input .@num;
  848. if(.@num<=0) {
  849. mes "[Putsuchiritan]";
  850. mes "If you don't wish my help at the moment,";
  851. mes "that's fine. When you do, please come";
  852. mes "by again.";
  853. close;
  854. }
  855. if(.@num>9) {
  856. mes "[Putsuchiritan]";
  857. mes "You must choose a number between";
  858. mes "1 and 9. It is very important that";
  859. mes "you choose the number most dear to";
  860. mes "your heart.";
  861. continue;
  862. }
  863. break;
  864. }
  865. set .@num,rand(1,10); //official amount chance
  866. if(.@num == 1)
  867. set .@num,10;
  868. else if(.@num == 2 || .@num == 3)
  869. set .@num,8;
  870. else if(.@num < 7)
  871. set .@num,7;
  872. else
  873. set .@num,6;
  874. mes "[Putsuchiritan]";
  875. mes "Please place the elemental stone";
  876. mes "inside this holy circle. I will chant a";
  877. mes "a mantra. I don't know if I can";
  878. mes "completely dismantle the stone,";
  879. mes "but here goes...";
  880. next;
  881. mes "[Putsuchiritan]";
  882. mes "Unba Unba Karama! Unba! Ta!";
  883. mes "Rukara! Ukarere! Un! Unba! Ka!";
  884. mes "Anburaka Taburaka Taburakan! Unba Ra!";
  885. mes "Onbaruzu Zan Kata! Unba Ka!";
  886. next;
  887. mes "[Putsuchiritan]";
  888. if(countitem(.@need)<1){
  889. mes "You're An Amba HacK0R!";
  890. mes "I'm clearing your mind!";
  891. //we reset the whole quest for the hacker
  892. set event_umbala,0;
  893. emotion e_swt,1;
  894. close;
  895. }
  896. delitem .@need,1;
  897. getitem .@gain,.@num;
  898. mes "The elemental stone has been";
  899. mes "dismantled into its natural";
  900. mes "essence. Please put it to";
  901. mes "good use.";
  902. close;
  903. case 3:
  904. mes "[Putsuchiritan]";
  905. mes "If you don't wish my help at the moment,";
  906. mes "that's fine. When you do, please come";
  907. mes "by again.";
  908. close;
  909. }
  910. }