quests_umbala.txt 29 KB

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