momotaro.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. //=====================================================================
  2. //MOMOTARO event
  3. //=====================================================================
  4. amatsu.gat,223,235,4 script Publisher 763,{
  5. if (event_momo > 4) goto Lfin;
  6. if ((event_momo >= 1) && (event_momo <= 4)) goto Lget;
  7. mes "[Publisher]";
  8. mes "Hello.";
  9. mes "I represent ^009CFFTsurukame Publishing Inc.^000000 and handle the legends that are told in the village for generations.";
  10. mes "A popular legend among men and women of all ages is ^009CFF<Momotaro>^000000......";
  11. next;
  12. mes "[Publisher]";
  13. mes "One Million copies were sold!";
  14. mes "To celebrate the anniversary, the ^3163FFMomotaro Event Hall^000000 was established.";
  15. next;
  16. mes "[Publisher]";
  17. mes "You practical become the protagonist of the Momotaro Story and fight against a small demon.";
  18. mes "There are also presents!";
  19. next;
  20. menu "Who is Momotaro?",-,"I really wanna do that!",L1,"I'm busy right now......",L2;
  21. mes "[Publisher]";
  22. mes "What? You do not know Momotaro? Oh my, what an insensitive person......";
  23. mes "Well then, I will tell you......";
  24. next;
  25. mes "[Publisher]";
  26. mes "Once upon a time, there was an old couple......";
  27. mes "The couple had a very good relation, but they had no children...";
  28. next;
  29. mes "[Publisher]";
  30. mes "Someday, the grandmother did their laundry at the river, a big peach flowed by. ";
  31. mes "The Grandmother picked up the peach and returned home, where the grandfather tried to divide the fruit...... ";
  32. mes "But from the middle of the peach a baby appeared.";
  33. next;
  34. mes "[Publisher]";
  35. mes "Grandfather and Grandmother were surprised very much, but decided to raise the baby as their own child.";
  36. next;
  37. mes "[Publisher]";
  38. mes "The Child grow up rapidly and became a strong young boy several days later.";
  39. next;
  40. mes "[Publisher]";
  41. mes "The name of the child was ^3163FF<Momotaro>^000000.";
  42. mes "In those days a small demon appeard and tormented the village people so Momotaro decided to go on a travel to exterminate the demon......";
  43. next;
  44. mes "[Publisher]";
  45. mes "Along the way Momotaro met a ^3163FFmonkey^000000, a ^3163FFpheasant^000000 and a ^3163FFdog^000000m which followed him as companions.";
  46. mes " Finally they defeated the demon and lived with the grandfather and the grandmother in happiness...... ";
  47. mes "- the end -";
  48. next;
  49. mes "[Publisher]";
  50. mes "How was it?";
  51. mes "It was of interest One Million times!";
  52. close;
  53. L1:
  54. mes "[Publisher]";
  55. mes "Oh! You are a good and powerfull person! To me you seem to be vigorous. ";
  56. mes "Well then, this application form has to be filled......";
  57. next;
  58. mes "[Publisher]";
  59. mes "......";
  60. mes "......Hmm hmm......";
  61. mes "......Well! Everything ok!";
  62. mes "We can start at once. Please enjoy the ^3163FFMomotaro Event Hall^000000.";
  63. next;
  64. //modification
  65. // warp "ama_test",52,35;
  66. warp "ama_fild01",330,130;
  67. //end modification
  68. break;
  69. L2:
  70. mes "[Publisher]";
  71. mes "There are also premium presents, you know....... (wink)";
  72. close;
  73. Lget:
  74. mes "[Publisher]";
  75. mes "How was it? Did you enjoy the event?";
  76. mes "I hope the arrangements at the event hall allowed you to spend an enjoyable time there.";
  77. next;
  78. if (event_momo == 1) getitem 627,1; //sweet milk
  79. if (event_momo == 2) getitem 629,1; //singing flower
  80. if (event_momo == 3) getitem 625,1; //rusty iron
  81. //Am Mut successful finish unknown
  82. if (event_momo == 4) getitem 627,1; //sweet milk
  83. if (event_momo == 4) getitem 629,1; //singing flower
  84. if (event_momo == 4) getitem 625,1; //rusty iron
  85. set event_momo,10;
  86. mes "[Publisher]";
  87. mes "Well then, I will give you a small present which I have prepared.";
  88. mes "May the legend be widely loved also in the future......";
  89. close;
  90. Lfin:
  91. mes "[Publisher]";
  92. mes "We have a nice weather today, don't we...... It is a perfect day to dry the futon.";
  93. set event_momo,event_momo+1;
  94. if (event_momo == 20) set event_momo,0;
  95. close;
  96. }
  97. //=====================================================================
  98. ama_test.gat,52,44,4 script Event Hall Staff 109,{
  99. mes "[Satoshi]";
  100. mes "Welcome to the Momotaro Event Hall";
  101. next;
  102. mes "[Satoshi]";
  103. mes "I'm in charge of the waiting room of the Momotaro Event Hall. My name is Satoshi.";
  104. next;
  105. mes "[Satoshi]";
  106. mes "Originally this was the work of the publisher, but...... she was not sufficient for that job and got transfered suddenly......";
  107. mes "But this was good! Because this way we could make the attraction even more challenging for the visitors.";
  108. next;
  109. mes "[Satoshi]";
  110. mes "......hehehe, no no, it was just a joke...... (sweat)";
  111. next;
  112. mes "[Satoshi]";
  113. mes "Well, I will give you an explanation about the Event Hall.";
  114. next;
  115. mes "[Satoshi]";
  116. mes "Did you ask the Publisher outside about the Momotaro Story?";
  117. next;
  118. menu "Yes",L1,"No",-;
  119. mes "[Satoshi]";
  120. mes "What the heck? You come here without knowing the story?";
  121. mes "......";
  122. mes "You are by no means a fan of Momotaro.";
  123. next;
  124. mes "[Satoshi]";
  125. mes "The Story is told by the publisher outside. Well then...... Goodby.";
  126. next;
  127. warp "amatsu.gat",223,230;
  128. break;
  129. L1:
  130. mes "[Satoshi]";
  131. mes "Hmm......";
  132. mes "The story of Momotaro is the best work of this Publisher. Maybe it is even a supreme masterpiece?";
  133. mes "Hahaha!!!";
  134. next;
  135. mes "[Satoshi]";
  136. mes "...... So, what's next...";
  137. next;
  138. mes "[Satoshi]";
  139. mes "The rule of the Event Hall are simple. Just go in, like the brave Momotaro! And if the small demon is defeated, everything will be good.";
  140. mes "Well, be brave!";
  141. next;
  142. mes "[Satoshi]";
  143. mes "Furthermore, there are 3 important points.";
  144. next;
  145. mes "[Satoshi]";
  146. mes "First:";
  147. mes "When the Event Hall is cleared it cannot be entered again.";
  148. mes "Please pay attention to this point.";
  149. next;
  150. mes "[Satoshi]";
  151. mes "Second:";
  152. mes "Please do not go accompanied by a pet inside the Event Hall. If you have a pet with you, please change it back to an egg before entering.";
  153. next;
  154. mes "[Satoshi]";
  155. mes "And the last important point:";
  156. mes "There is a time restriction of 6 minutes for people entering the Event Hall.";
  157. next;
  158. mes "[Satoshi]";
  159. mes "Well then, Please enter the Waiting Room Chat and wait for your turn. I wish you a good fight.";
  160. close;
  161. OnInit:
  162. waitingroom "Event Hall Waiting Room",1,"Event Hall Staff::OnMax";
  163. //modification
  164. //do clear everything in case of somebody got stuck in the hall
  165. areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
  166. disablenpc "Manager";
  167. enablenpc "Grandfather";
  168. enablenpc "Grandmother";
  169. killmonsterall "ama_test.gat";
  170. stopnpctimer "roomtimer";
  171. //end modification
  172. break;
  173. OnMax:
  174. //modification
  175. // doevent "roomt";
  176. initnpctimer "roomtimer";
  177. //end modification
  178. warpwaitingpc "ama_test.gat",50,83;
  179. disablenpc "Event Hall Staff";
  180. disablenpc "Manager";
  181. enablenpc "Grandfather";
  182. enablenpc "Grandmother";
  183. break;
  184. }
  185. ama_test.gat,49,95,4 script Grandfather 766,{
  186. //modification
  187. mes "[Grandfather]";
  188. mes "Zzzzzz......";
  189. //end modification
  190. close;
  191. }
  192. ama_test.gat,51,95,4 script Grandmother 761,{
  193. mes "[Grandmother]";
  194. mes "Oh....!?";
  195. next;
  196. mes "[Grandmother]";
  197. mes "Grandfather, do you know where I put my money?";
  198. next;
  199. mes "[Grandfather]";
  200. mes "Grandmother...... The village headman said, that the small demons recently stole money from people right in the middle of the village, causing big tumult...";
  201. next;
  202. mes "[Grandmother]";
  203. mes "Iiiiiii......!";
  204. next;
  205. mes "[Grandfather]";
  206. mes "This is the recent talk in the village......";
  207. next;
  208. mes "[Grandfather]";
  209. mes "Oh, there is Momotaro......";
  210. next;
  211. mes "[Grandfather]";
  212. mes "As you probably know, there are only cowards here with no power to fight the small demons....";
  213. mes "So I would like to ask you a favour, Momotaro.";
  214. next;
  215. mes "[Grandmother]";
  216. mes "Momotaro......";
  217. mes "Your Grandmother would like to give you ^3355ffthe tastiest red portion on this world^000000...... but I cannot...... ";
  218. next;
  219. mes "[Grandmother]";
  220. mes "I'm so sorry...... Momotaro......";
  221. next;
  222. mes "[Grandmother & Grandfather]";
  223. mes "Please, Momotaro, help us......";
  224. //modification
  225. addtimer 5000, "Grandmother::OnTimer5000";
  226. close;
  227. OnTimer5000:
  228. //end modification
  229. disablenpc "Grandfather";
  230. disablenpc "Grandmother";
  231. set @mobdie,0;
  232. monster "ama_test.gat",47,101,"Small Demon",1110,1,"mobcount";
  233. monster "ama_test.gat",51,101,"Small Demon",1110,1,"mobcount";
  234. monster "ama_test.gat",55,101,"Small Demon",1110,1,"mobcount";
  235. monster "ama_test.gat",55,97,"Small Demon",1110,1,"mobcount";
  236. monster "ama_test.gat",55,93,"Small Demon",1110,1,"mobcount";
  237. monster "ama_test.gat",53,91,"Small Demon",1110,1,"mobcount";
  238. monster "ama_test.gat",49,91,"Small Demon",1110,1,"mobcount";
  239. monster "ama_test.gat",45,96,"Small Demon",1110,1,"mobcount";
  240. monster "ama_test.gat",45,99,"Small Demon",1110,1,"mobcount";
  241. end;
  242. }
  243. ama_test.gat,50,100,4 script Manager 762,{
  244. //modification
  245. if (event_momo >= 4) goto LSecondFin;
  246. //end modification
  247. mes "[Manager]";
  248. mes "Hoho, you did it...... I'm the manager here...... You are not an ordinary person, right? You did very well.";
  249. next;
  250. mes "[Manager]";
  251. mes "The Momotaro from the legend appears in this world!";
  252. mes "Hohohohoho!";
  253. next;
  254. menu "Is there some extra?",L1,"Thanks for nothing......",L2;
  255. L1:
  256. mes "[Manager]";
  257. mes "Hohoho......";
  258. mes "This is maybe not really recomending......";
  259. mes "I think in your current condition the small demons can twirl you lightly around their fingers.";
  260. mes "......Hohoho......";
  261. next;
  262. mes "[Manager]";
  263. mes "......";
  264. mes "Just a joke.";
  265. next;
  266. mes "[Manager]";
  267. mes "Well then, you enjoyed the Momotaro Event Hall?";
  268. mes "Talk to the staff member, that you have met first, about our premium presents. He will give you some.";
  269. next;
  270. mes "[Manager]";
  271. mes "Whatever you encounter, never loose that strong spirit!";
  272. next;
  273. set event_momo,1;
  274. //modification
  275. // deltimer "roomt";
  276. //end modification
  277. disablenpc "Manager";
  278. enablenpc "Event Hall Staff";
  279. warp "amatsu.gat",223,230;
  280. break;
  281. L2:
  282. mes "[Manager]";
  283. mes "!!!!!";
  284. mes "......Ho...Hohoho......";
  285. mes "You are an amusing fellow......";
  286. mes "Well...... One little suggestion from me to you.";
  287. next;
  288. mes "[Manager]";
  289. mes "Normally I would just kick you out, but...... I would like to see your true capabilities... Hohoho.";
  290. mes "As if I would look at my own young self. Hohohoho.";
  291. next;
  292. mes "[Manager]";
  293. mes "What do you think? I will give this one nonrecurring chance. It is the challenge of ^3355ffSecond Grad^000000 which is not officially available......";
  294. mes "But I warn you, this one will be difficult.";
  295. next;
  296. menu "Na, it is enough",L2_1,"I take the challenge",L2_2;
  297. L2_1:
  298. mes "[Manager]";
  299. mes "Hoho......";
  300. mes "You got tired from the last fight?";
  301. 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.";
  302. next;
  303. mes "[Manager]";
  304. mes "Whatever you encounter, never loose that strong spirit!";
  305. next;
  306. set event_momo,2;
  307. //modification
  308. goto LWarpOut;
  309. // break;
  310. //end modification
  311. L2_2:
  312. mes "[Manager]";
  313. mes "Hohoho, You like it more and more, right? This will be the last decisive battle. Show your power without regrets!";
  314. //modification
  315. addtimer 5000, "Manager::OnTimer5000";
  316. //end modification
  317. close;
  318. OnTimer5000:
  319. monster "ama_test.gat",35,103,"Demon",1301,1,"mobcount2";
  320. monster "ama_test.gat",56,111,"Demon",1301,1,"mobcount2";
  321. monster "ama_test.gat",40,91,"Demon",1301,1,"mobcount2";
  322. disablenpc "Manager";
  323. set event_momo,3;
  324. end;
  325. //modification
  326. LSecondFin:
  327. mes "[Manager]";
  328. mes "You are really strong... Wasn't it thrilling? Momotaro Event Hall can be really enjoyable, right?";
  329. mes "Ok now, talk to the staff member, that you have met first, about our premium presents. She will give you some.";
  330. next;
  331. set event_momo,4;
  332. LWarpOut:
  333. //end modification
  334. mes "[Manager]";
  335. mes "Whatever you encounter, never loose that strong spirit!";
  336. next;
  337. warp "amatsu.gat",223,230;
  338. disablenpc "Manager";
  339. stopnpctimer "roomtimer";
  340. enablenpc "Event Hall Staff";
  341. donpcevent "Event Hall Staff::OnInit";
  342. break;
  343. Onstart:
  344. mes "[Manager]";
  345. mes "Hohoho......";
  346. close;
  347. }
  348. //=======================================MobCount===============================-
  349. ama_test.gat,0,1,0 script mobcount -1,{
  350. if (@mobdie >= 8) goto Lfin;
  351. set @mobdie,@mobdie+1;
  352. set @mobrand,rand(4);
  353. if (@mobrand == 1) goto Lrand2;
  354. if (@mobrand == 2) goto Lrand3;
  355. if (@mobrand == 3) goto Lrand4;
  356. Lrand1:
  357. areaannounce "ama_test.gat",30,78,68,120,"Small Demon: I havn't done anything!",8;break;
  358. Lrand2:
  359. areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Excuse me, Excuse me",8;break;
  360. Lrand3:
  361. areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Ahhh......",8;break;
  362. Lrand4:
  363. areaannounce "ama_test.gat",30,78,68,120,"Small Demon: I've been hit on surprise...",8;break;
  364. Lfin:
  365. areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Uhhaaa......",8;
  366. addtimer 5000, "mobcount2::OnTimer5000";
  367. //modification
  368. // stopnpctimer "roomtimer";
  369. end;
  370. // enablenpc "Manager";
  371. // doevent "Manager::Onstart";
  372. // end;
  373. //end modification
  374. }
  375. //=======================================MobCount2==============================-
  376. ama_test.gat,50,101,0 script mobcount2 -1,{
  377. if (@mobdie2 == 2) goto Lfin;
  378. set @mobdie2,@mobdie2+1;
  379. areaannounce "ama_test.gat",30,78,68,120,"Demon: Uhaaa...",8;break;
  380. Lfin:
  381. set event_momo,4;
  382. //modification
  383. addtimer 5000, "mobcount2::OnTimer5000";
  384. end;
  385. OnTimer5000:
  386. //end modification
  387. enablenpc "Manager";
  388. doevent "Manager::Onstart";
  389. end;
  390. }
  391. //=======================================TIMER==================================-
  392. //modification
  393. //dead code
  394. //ama_test.gat,50,102,0 script roomt -1,{
  395. //
  396. // deltimer "roomt";
  397. // mapannounce "ama_test.gat","Time limit is 6 Minutes from now.",8;
  398. // addtimer 180000,"roomt::On180000";
  399. // end;
  400. //
  401. //OnTestTime:
  402. // mapannounce "ama_test.gat","Time left: "+temp_time+"sec ",8;
  403. // break;
  404. //
  405. //On180000:
  406. // deltimer "roomt";
  407. // mapannounce "ama_test.gat","3 Minutes left.",8;
  408. // addtimer 120000,"roomt::On300000";
  409. // break;
  410. //On300000:
  411. // deltimer "roomt";
  412. // mapannounce "ama_test.gat","One Minute left.",8;
  413. // addtimer 60000,"roomt::On360000";
  414. // break;
  415. //On360000:
  416. // mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
  417. // disablenpc "Manager";
  418. // enablenpc "Event Hall Staff";
  419. // areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
  420. // break;
  421. //}
  422. ama_test.gat,50,102,0 script roomtimer -1,{
  423. OnTimer1000:
  424. mapannounce "ama_test.gat","Time limit is 6 Minutes from now.",8;
  425. end;
  426. OnTimer180000:
  427. mapannounce "ama_test.gat","3 Minutes left.",8;
  428. end;
  429. OnTimer300000:
  430. mapannounce "ama_test.gat","One Minute left.",8;
  431. end;
  432. OnTimer360000:
  433. stopnpctimer "roomtimer";
  434. mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
  435. areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
  436. disablenpc "Manager";
  437. enablenpc "Event Hall Staff";
  438. donpcevent "Event Hall Staff::OnInit";
  439. end;
  440. }
  441. //end modification