quests_amatsu.txt 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. //===== eAthena Script =======================================
  2. //= Quests NPCs related to Amatsu City
  3. //===== By: ==================================================
  4. //= eAthena team & others? & MasterOfMuppets
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //=
  11. //===== Additional Comments: =================================
  12. //= 1.0 Rewrote parts of other/momotaro.txt to make it work.
  13. //= I'm sorry for the mess, I couldn't do much better with
  14. //= the current code I had.
  15. //============================================================
  16. amatsu.gat,223,235,4 script Publisher 763,{
  17. if (event_momo > 4) goto Lfin;
  18. if ((event_momo >= 1) && (event_momo <= 4)) goto Lget;
  19. mes "[Publisher]";
  20. mes "Hello~~!!";
  21. mes "Our ^00B6FFScroll Publishing Company^000000";
  22. mes "is professionally publishing";
  23. mes "tales.";
  24. next;
  25. mes "[Publisher]";
  26. mes "We established";
  27. mes "^3366FFMomotaro Field Trip^000000";
  28. mes "to celebrate ^00B6FF<Momotaro Story>^000000";
  29. mes "selling over a million copies.";
  30. next;
  31. mes "[Publisher]";
  32. mes "Become Momotaro and eliminate";
  33. mes "Dokebis, just like in the story!";
  34. mes "There will also be rewards.";
  35. next;
  36. menu "What is Momotaro Story?!",-,"I want to try!",L1,"I'm busy right now...",L2;
  37. mes "[Publisher]";
  38. mes "Eh~!? How can you not know about";
  39. mes "Momotaro? Don't they have this";
  40. mes "tale in Rune-Midgard?? Well...";
  41. mes "Let me tell you the story.";
  42. next;
  43. mes "[Publisher]";
  44. mes "Long ago, there lived an old";
  45. mes "married couple. They were happy,";
  46. mes "but didn't have any children.";
  47. next;
  48. mes "[Publisher]";
  49. mes "One day, while old lady was doing";
  50. mes "the laundry, she found a humongous";
  51. mes "peach. She cut it in half and...";
  52. mes "'Poof!' There was a baby inside!";
  53. next;
  54. mes "[Publisher]";
  55. mes "The old man and lady were shocked.";
  56. mes "They decided to adopt that baby,";
  57. mes "and give him their love...";
  58. next;
  59. mes "[Publisher]";
  60. mes "That baby grew so fast, like that";
  61. mes "beanstalk from 'Jack and";
  62. mes "Beanstalk' and became a strong boy";
  63. mes "in only a few days.";
  64. next;
  65. mes "[Publisher]";
  66. mes "That's boy's name was...";
  67. mes "<Momotaro>!!!";
  68. mes "Momotaro traveled to eliminate";
  69. mes "dokebis that were harassing";
  70. mes "the towners.";
  71. next;
  72. mes "[Publisher]";
  73. mes "He became friends with";
  74. mes "^3151FFYoyo, Picky, and Desert Wolf^000000";
  75. mes "and eliminated all of the Dokebis.";
  76. mes "then he lived happily ever after";
  77. mes "with the old couple.";
  78. next;
  79. mes "[Publisher]";
  80. mes "How was it?";
  81. mes "Great, right?";
  82. mes "I mean, this story sold a million";
  83. mes "copies!";
  84. close;
  85. L1:
  86. mes "[Publisher]";
  87. mes "Yay-! You look excited!";
  88. mes "You'll be ready to go soon.";
  89. mes "Please fill out this registration";
  90. mes "card.";
  91. next;
  92. mes "[Publisher]";
  93. mes ".................";
  94. mes "......Mm.....Let's see.....";
  95. mes ".............Good!";
  96. mes "Alright, then!";
  97. mes "Let it begin~~~!!!!!!!!!";
  98. mes "<Momotaro Field Trip>~!";
  99. close2;
  100. warp "ama_test",52,35;
  101. end;
  102. L2:
  103. mes "[Publisher]";
  104. mes "Eh?";
  105. mes "...But there are sweet rewards";
  106. mes "waiting...";
  107. close;
  108. Lget:
  109. mes "[Publisher]";
  110. mes "How was it? Did you enjoy the event?";
  111. mes "I hope the arrangements at the event hall allowed you to spend an enjoyable time there.";
  112. next;
  113. if (event_momo > 1 && event_momo < 4)
  114. {
  115. switch(rand(1,24))
  116. {
  117. case 1:
  118. getitem 627,1; //sweet milk
  119. break;
  120. case 2:
  121. getitem 629,1; //singing flower
  122. break;
  123. case 3:
  124. getitem 625,1; //rusty iron
  125. break;
  126. case 4:
  127. getitem 619,1; //unripe apple
  128. break;
  129. case 5:
  130. getitem 620,1; //orange juice
  131. break;
  132. case 6:
  133. getitem 621,1; //bitter herb
  134. break;
  135. case 7:
  136. getitem 622,1; //rainbow carrot
  137. break;
  138. case 8:
  139. getitem 623,1; //earthworm the dude
  140. break;
  141. case 9:
  142. getitem 624,1; //rotten fish
  143. break;
  144. case 10:
  145. getitem 626,1; //monster juice
  146. break;
  147. case 11:
  148. getitem 628,1; //well-dried bone
  149. break;
  150. case 12:
  151. getitem 630,1; //dew laden moss
  152. break;
  153. case 13:
  154. getitem 631,1; //deadly noxious herb
  155. break;
  156. case 14:
  157. getitem 632,1; //fatty chubby earthworm
  158. break;
  159. case 15:
  160. getitem 633,1; //sweet potato
  161. break;
  162. case 16:
  163. getitem 634,1; //tropical banana
  164. break;
  165. case 17:
  166. getitem 635,1; //orc trophy
  167. break;
  168. case 18:
  169. getitem 636,1; //no recipient
  170. break;
  171. case 19:
  172. getitem 637,1; //old broom
  173. break;
  174. case 20:
  175. getitem 638,1; //silver knife of chastity
  176. break;
  177. case 21:
  178. getitem 639,1; //armlet of obedience
  179. break;
  180. case 22:
  181. getitem 640,1; //shining stone
  182. break;
  183. case 23:
  184. getitem 641,1; //contract in shadow
  185. break;
  186. case 24:
  187. getitem 642,1; //book of the devil
  188. break;
  189. }
  190. }
  191. //Am Mut successful finish unknown
  192. if (event_momo == 4)
  193. {
  194. while(@i != 3)
  195. {
  196. switch(rand(1,24))
  197. {
  198. case 1:
  199. getitem 627,1; //sweet milk
  200. break;
  201. case 2:
  202. getitem 629,1; //singing flower
  203. break;
  204. case 3:
  205. getitem 625,1; //rusty iron
  206. break;
  207. case 4:
  208. getitem 619,1; //unripe apple
  209. break;
  210. case 5:
  211. getitem 620,1; //orange juice
  212. break;
  213. case 6:
  214. getitem 621,1; //bitter herb
  215. break;
  216. case 7:
  217. getitem 622,1; //rainbow carrot
  218. break;
  219. case 8:
  220. getitem 623,1; //earthworm the dude
  221. break;
  222. case 9:
  223. getitem 624,1; //rotten fish
  224. break;
  225. case 10:
  226. getitem 626,1; //monster juice
  227. break;
  228. case 11:
  229. getitem 628,1; //well-dried bone
  230. break;
  231. case 12:
  232. getitem 630,1; //dew laden moss
  233. break;
  234. case 13:
  235. getitem 631,1; //deadly noxious herb
  236. break;
  237. case 14:
  238. getitem 632,1; //fatty chubby earthworm
  239. break;
  240. case 15:
  241. getitem 633,1; //sweet potato
  242. break;
  243. case 16:
  244. getitem 634,1; //tropical banana
  245. break;
  246. case 17:
  247. getitem 635,1; //orc trophy
  248. break;
  249. case 18:
  250. getitem 636,1; //no recipient
  251. break;
  252. case 19:
  253. getitem 637,1; //old broom
  254. break;
  255. case 20:
  256. getitem 638,1; //silver knife of chastity
  257. break;
  258. case 21:
  259. getitem 639,1; //armlet of obedience
  260. break;
  261. case 22:
  262. getitem 640,1; //shining stone
  263. break;
  264. case 23:
  265. getitem 641,1; //contract in shadow
  266. break;
  267. case 24:
  268. getitem 642,1; //book of the devil
  269. break;
  270. }
  271. set @i,@i+1;
  272. }
  273. }
  274. set event_momo,5;
  275. mes "[Publisher]";
  276. mes "Well then, I will give you a small present which I have prepared.";
  277. mes "May the legend be widely loved also in the future......";
  278. close;
  279. Lfin:
  280. mes "[Publisher]";
  281. mes "We have a nice weather today, don't we...... It is a perfect day to dry the futon.";
  282. close;
  283. }
  284. //=====================================================================
  285. ama_test.gat,50,44,4 script Event Hall Staff 109,{
  286. mes "[Satoshi]";
  287. mes "Welcome to <Momotaro Field Trip>";
  288. next;
  289. mes "[Satoshi]";
  290. mes "I'm Satoshi who is in charge of the";
  291. mes "waiting room in <Momotaro Field";
  292. mes "Trip>.";
  293. next;
  294. mes "[Satoshi]";
  295. mes "Originally, I was working for the";
  296. mes "publishing company, but we lacked";
  297. mes "workers for the Field Trip...";
  298. mes "But working here is much better!";
  299. mes "Now I just watch people trying to";
  300. mes "accomplish the mission. Heh hehe~";
  301. next;
  302. mes "[Satoshi]";
  303. mes "..............";
  304. mes "Just kidding";
  305. mes "^111111*Wipes away sweat*^000000";
  306. next;
  307. mes "[Satoshi]";
  308. mes "Well, let me explain";
  309. mes "about the rules in the Field Trip";
  310. next;
  311. mes "[Satoshi]";
  312. mes "First of all...Did you hear";
  313. mes "about the story from the";
  314. mes "publisher?";
  315. next;
  316. menu "Yes",L1,"No",-;
  317. mes "[Satoshi]";
  318. mes "Eh? You can't just";
  319. mes "skip the story";
  320. mes "when you enter the field";
  321. mes "trip! I can't allow you to";
  322. mes "do that as a Momotaro's";
  323. mes "fan!!!";
  324. next;
  325. mes "[Satoshi]";
  326. mes "Please listen to the story";
  327. mes "from the publisher.";
  328. mes "Thank you.";
  329. mes "Bye~~";
  330. close2;
  331. warp "amatsu.gat",223,230;
  332. end;
  333. L1:
  334. mes "[Satoshi]";
  335. mes "Hehe...Good.";
  336. mes "Momotoro's Story is our";
  337. mes "pride. It's the best story EVER.";
  338. mes "Hahaha!!!";
  339. next;
  340. mes "[Satoshi]";
  341. mes "...Hmmhmm.";
  342. next;
  343. mes "[Satoshi]";
  344. mes "The Field Trip is simple.";
  345. mes "Go inside and eliminate";
  346. mes "Dokebis bravely!!!";
  347. mes "Just like Momotaro!!!";
  348. mes "Understand? Bravely!!!";
  349. next;
  350. mes "[Satoshi]";
  351. mes "In addition, there are three";
  352. mes "things you need to know.";
  353. next;
  354. mes "[Satoshi]";
  355. mes "First....";
  356. mes "You can't come back once you clear";
  357. mes "the field trip. Keep that in mind.";
  358. next;
  359. mes "[Satoshi]";
  360. mes "Secondly...";
  361. mes "Q-pet is prohibited";
  362. mes "inside of the field trip.";
  363. mes "if you are with a pet,";
  364. mes "please change it to egg status.";
  365. next;
  366. mes "[Satoshi]";
  367. mes "And finally...";
  368. mes "One person can be on the";
  369. mes "field trip for 6 minutes.";
  370. next;
  371. mes "[Satoshi]";
  372. mes "Well then, Please";
  373. mes "wait for you turn";
  374. mes "in the waitiSng room.";
  375. mes "Good luck in fighting!!";
  376. close;
  377. OnInit:
  378. waitingroom "Event Hall Waiting Room",1,"Event Hall Staff::OnMax";
  379. OnInitCopy:
  380. enablewaitingroomevent "Event Hall Staff";
  381. areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
  382. disablenpc "Manager#Momotaro";
  383. enablenpc "Grandpa#Momotaro";
  384. enablenpc "Grandma#Momotaro";
  385. donpcevent "#MomotaroTimer::OnStopTimer";
  386. killmonsterall "ama_test.gat";
  387. end;
  388. OnMax:
  389. warpwaitingpc "ama_test.gat",51,85;
  390. disablewaitingroomevent "Event Hall Staff";
  391. disablenpc "Manager#Momotaro";
  392. enablenpc "Grandpa#Momotaro";
  393. enablenpc "Grandma#Momotaro";
  394. donpcevent "#MomotaroActivator::OnMomoInit";
  395. end;
  396. }
  397. ama_test.gat,1,1,0 script #MomotaroTimer -1,{
  398. OnStartTimer:
  399. initnpctimer;
  400. end;
  401. OnTimer180000:
  402. if(!isloggedin($MomotaroRID))goto s_Cleanup;
  403. mapannounce "ama_test.gat","Timer: 3 Minutes left.",8;
  404. end;
  405. OnTimer300000:
  406. if(!isloggedin($MomotaroRID))goto s_Cleanup;
  407. mapannounce "ama_test.gat","Timer: 1 Minute left.",8;
  408. end;
  409. OnTimer360000:
  410. if(!isloggedin($MomotaroRID))goto s_Cleanup;
  411. mapannounce "ama_test.gat","Timer: Beep- Beep- Beep- Time's up.",8;
  412. OnTimer362500:
  413. areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
  414. goto s_Cleanup;
  415. OnTimer20000:
  416. OnTimer40000:
  417. OnTimer60000:
  418. OnTimer80000:
  419. OnTimer100000:
  420. OnTimer120000:
  421. OnTimer140000:
  422. OnTimer160000:
  423. OnTimer200000:
  424. OnTimer220000:
  425. OnTimer240000:
  426. OnTimer260000:
  427. OnTimer280000:
  428. OnTimer320000:
  429. OnTimer340000:
  430. if(!isloggedin($MomotaroRID))goto s_Cleanup;
  431. end;
  432. OnCleanUp:
  433. s_Cleanup:
  434. stopnpctimer;
  435. set $Momotaro,0;
  436. set $MomoDokebi,0;
  437. set $MomoDokebi2,0;
  438. set $MomotaroRID,0;
  439. mapannounce "ama_test.gat","The current player has exited. The waiting room will now open again.",8;
  440. disablenpc "Manager#Momotaro";
  441. donpcevent "Event Hall Staff::OnInitCopy";
  442. end;
  443. OnStopTimer:
  444. stopnpctimer;
  445. end;
  446. }
  447. ama_test.gat,51,85,0 script #MomotaroActivator 139,1,1,{
  448. if($Momotaro)end;
  449. set $Momotaro,1;
  450. set $MomotaroRID,getcharid(3);
  451. areaannounce "ama_test.gat",30,78,68,120,"Timer: The Timer has been activated. You have 6 minutes. Annihilate the monsters in time!",8;
  452. donpcevent "#MomotaroTimer::OnStartTimer";
  453. mes "[Grandpa]";
  454. mes "Arrrk!!!";
  455. next;
  456. mes "[Grandma]";
  457. mes "Honey!! Someone hacked my account";
  458. mes "and stole my equipment!!";
  459. next;
  460. mes "[Grandpa]";
  461. mes "Hmm. The Chief said the Dokebi";
  462. mes "earned 20 million zeny by hacking";
  463. mes "other's accounts...";
  464. next;
  465. mes "[Grandma]";
  466. mes "Dohhhhhhh!!!!";
  467. next;
  468. mes "[Grandpa]";
  469. mes "...Huh I've heard that somewhere";
  470. mes "before....";
  471. next;
  472. mes "[Grandpa]";
  473. mes "Anyway, Momotaro...";
  474. next;
  475. mes "[Grandpa]";
  476. mes "As you know, since we towners spends";
  477. mes "our time sitting and chatting,";
  478. mes "we can't kill Dokebis because we're";
  479. mes "low levels, so...Please do it for";
  480. mes "us.";
  481. next;
  482. mes "[Grandma]";
  483. mes "Momotaro...";
  484. mes "I really wanted to give you";
  485. mes "a handmade ^3151FFYummiest Red Poiton in";
  486. mes "the whole world^000000 ...but...";
  487. mes ".....I failed to make them ....";
  488. next;
  489. mes "[Grandma]";
  490. mes "...I'm sorry. I should have been";
  491. mes "leveling up before...^111111*Sob*";
  492. next;
  493. mes "[Grandma & Grandpa]";
  494. mes "So...Do me this favor, kid~";
  495. close2;
  496. initnpctimer;
  497. end;
  498. OnTimer5000:
  499. stopnpctimer;
  500. set $MomoDokebi,0;
  501. set $MomoDokebi2,0;
  502. disablenpc "Grandpa#Momotaro";
  503. disablenpc "Grandma#Momotaro";
  504. monster "ama_test.gat",47,101,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  505. monster "ama_test.gat",51,101,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  506. monster "ama_test.gat",55,101,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  507. monster "ama_test.gat",55,97,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  508. monster "ama_test.gat",55,93,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  509. monster "ama_test.gat",53,91,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  510. monster "ama_test.gat",49,91,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  511. monster "ama_test.gat",45,96,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  512. monster "ama_test.gat",45,99,"Dokebi",1110,1,"mobcount#momotaro::OnMobDead";
  513. end;
  514. OnInit:
  515. set $Momotaro,0;
  516. set $MomoDokebi,0;
  517. set $MomoDokebi2,0;
  518. set $MomotaroRID,0;
  519. end;
  520. }
  521. ama_test.gat,49,95,4 script Grandpa#Momotaro 766,{
  522. mes "[Grandpa]";
  523. mes "Zzzzzz......";
  524. close;
  525. }
  526. ama_test.gat,51,95,4 script Grandma#Momotaro 761,{
  527. mes "[Grandma]";
  528. mes "Oh....!?";
  529. close;
  530. }
  531. ama_test.gat,50,100,4 script Manager#Momotaro 762,{
  532. if (event_momo >= 4) goto LSecondFin;
  533. mes "[Manager]";
  534. mes "Hoho, you did it...... I'm the manager here...... You are not an ordinary person, right? You did very well.";
  535. next;
  536. mes "[Manager]";
  537. mes "The Momotaro from the legend appears in this world!";
  538. mes "Hohohohoho!";
  539. next;
  540. menu "Is there some extra?",L1,"Thanks for nothing......",L2;
  541. L1:
  542. mes "[Manager]";
  543. mes "Hohoho......";
  544. mes "This is maybe not really recomending......";
  545. mes "I think in your current condition the small demons can twirl you lightly around their fingers.";
  546. mes "......Hohoho......";
  547. next;
  548. mes "[Manager]";
  549. mes "......";
  550. mes "Just a joke.";
  551. next;
  552. mes "[Manager]";
  553. mes "Well then, you enjoyed the Momotaro Event Hall?";
  554. mes "Talk to the staff member, that you have met first, about our premium presents. He will give you some.";
  555. next;
  556. mes "[Manager]";
  557. mes "Whatever you encounter, never loose that strong spirit!";
  558. close2;
  559. set $Momotaro,0;
  560. set $MomoDokebi,0;
  561. set $MomoDokebi2,0;
  562. set $MomotaroRID,0;
  563. set event_momo,1;
  564. donpcevent "Event Hall Staff::OnInitCopy";
  565. warp "amatsu.gat",223,230;
  566. disablenpc "Manager#Momotaro";
  567. end;
  568. L2:
  569. mes "[Manager]";
  570. mes "!!!!!";
  571. mes "......Ho...Hohoho......";
  572. mes "You are an amusing fellow......";
  573. mes "Well...... One little suggestion from me to you.";
  574. next;
  575. mes "[Manager]";
  576. mes "Normally I would just kick you out, but...... I would like to see your true capabilities... Hohoho.";
  577. mes "As if I would look at my own young self. Hohohoho.";
  578. next;
  579. mes "[Manager]";
  580. mes "What do you think? I will give this one nonrecurring chance. It is the challenge of ^3355ffSecond Grade^000000 which is not officially available......";
  581. mes "But I warn you, this one will be difficult.";
  582. next;
  583. menu "Na, it is enough",L2_1,"I take the challenge",L2_2;
  584. L2_1:
  585. mes "[Manager]";
  586. mes "Hoho......";
  587. mes "You got tired from the last fight?";
  588. mes "Well, ok...... Did you enjoy the Momotaro Event Hall? Talk to the staff member, that you have met first, about our premium presents. She will give you some.";
  589. next;
  590. mes "[Manager]";
  591. mes "Whatever you encounter, never loose that strong spirit!";
  592. next;
  593. set event_momo,2;
  594. goto LWarpOut;
  595. L2_2:
  596. mes "[Manager]";
  597. mes "Hohoho, You like it more and more, right? This will be the last decisive battle. Show your power without regrets!";
  598. initnpctimer;
  599. close;
  600. OnTimer5000:
  601. stopnpctimer;
  602. if(!isloggedin($MomotaroRID)){ donpcevent "#MomotaroTimer::OnCleanUp"; end; }
  603. attachrid($MomotaroRID);
  604. monster "ama_test.gat",35,103,"Am Mut",1301,1,"mobcount2#momotaro::OnMobDead";
  605. monster "ama_test.gat",56,111,"Am Mut",1301,1,"mobcount2#momotaro::OnMobDead";
  606. monster "ama_test.gat",40,91,"Am Mut",1301,1,"mobcount2#momotaro::OnMobDead";
  607. misceffect 16;
  608. set event_momo,3;
  609. disablenpc "Manager#Momotaro";
  610. end;
  611. LSecondFin:
  612. mes "[Manager]";
  613. mes "You are really strong... Wasn't it thrilling? Momotaro Event Hall can be really enjoyable, right?";
  614. mes "Ok now, talk to the staff member, that you have met first, about our premium presents. She will give you some.";
  615. close2;
  616. set event_momo,4;
  617. LWarpOut:
  618. mes "[Manager]";
  619. mes "Whatever you encounter, never loose that strong spirit!";
  620. close2;
  621. set $Momotaro,0;
  622. set $MomoDokebi,0;
  623. set $MomoDokebi2,0;
  624. set $MomotaroRID,0;
  625. warp "amatsu.gat",223,230;
  626. donpcevent "Event Hall Staff::OnInitCopy";
  627. disablenpc "Manager#Momotaro";
  628. end;
  629. OnStart:
  630. misceffect 215;
  631. if(!isloggedin($MomotaroRID)){ donpcevent "#MomotaroTimer::OnCleanUp"; end; }
  632. attachrid($MomotaroRID);
  633. mes "[Manager]";
  634. mes "Hohoho......";
  635. close;
  636. }
  637. //=======================================MobCount===============================-
  638. ama_test.gat,0,1,0 script mobcount#momotaro -1,{
  639. OnMobDead:
  640. if ($MomoDokebi >= 8) goto Lfin;
  641. set $MomoDokebi,$MomoDokebi+1;
  642. attachrid($MomotaroRID);
  643. set @mobrand,rand(4);
  644. if (@mobrand == 1) goto Lrand2;
  645. if (@mobrand == 2) goto Lrand3;
  646. if (@mobrand == 3) goto Lrand4;
  647. Lrand1:
  648. areaannounce "ama_test.gat",30,78,68,120,"Dokebi: I'm sorry~~! Waaaaah~~",8;detachrid;end;
  649. Lrand2:
  650. areaannounce "ama_test.gat",30,78,68,120,"Dokebi: !! IT'S A RAID!!!! RUN!!",8;detachrid;end;
  651. Lrand3:
  652. areaannounce "ama_test.gat",30,78,68,120,"Dokebi: But I didn't even do anything baaaaad~!",8;detachrid;end;
  653. Lrand4:
  654. areaannounce "ama_test.gat",30,78,68,120,"Dokebi: Ow, Ouch!!!",8;detachrid;end;
  655. Lfin:
  656. areaannounce "ama_test.gat",30,78,68,120,"Dokebi: I will be baaack~~~~!!!",8;
  657. initnpctimer;
  658. end;
  659. OnTimer5000:
  660. donpcevent "mobcount2#momotaro::OnTimer5000";
  661. end;
  662. }
  663. //=======================================MobCount2==============================-
  664. ama_test.gat,50,101,0 script mobcount2#momotaro -1,{
  665. OnMobDead:
  666. if ($MomoDokebi2 == 2) goto Lfin;
  667. set $MomoDokebi2,$MomoDokebi2+1;
  668. areaannounce "ama_test.gat",30,78,68,120,"Am Mut: Ow, Ouch!!!",8;end;
  669. Lfin:
  670. areaannounce "ama_test.gat",30,78,68,120,"Am Mut: I'm sorry~~! Waaaaah~~",8;
  671. set event_momo,4;
  672. initnpctimer;
  673. end;
  674. OnTimer5000:
  675. stopnpctimer;
  676. enablenpc "Manager#Momotaro";
  677. donpcevent "Manager#Momotaro::OnStart";
  678. end;
  679. }