TwilightGarden.txt 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. //===== rAthena Script =======================================
  2. //= Twilight Garden
  3. //===== Description: =========================================
  4. //= [Walkthrough Conversion]
  5. //= Episode 17.2 Twilight Garden
  6. //= Episode 17.2 Hey Sweety
  7. //= Note:
  8. // - NPC_LOCKON_LASER skill is currently no implemented.
  9. //===== Changelog: ===========================================
  10. //= 1.0 Initial release [crazyarashi]
  11. //= 1.1 Optimizations and cleanup [Everade]
  12. //= 1.2 Cleanup [Capuche]
  13. //============================================================
  14. 1@bamn,1,1,0 script #twilight_garden_control -1,{
  15. end;
  16. OnInstanceInit:
  17. 'twilight_story = 0;
  18. 'sweety = 0;
  19. 'map_bamn$ = instance_mapname("1@bamn");
  20. 'map_bamq$ = instance_mapname("1@bamq");
  21. // npcs from story
  22. //----------------------------
  23. // npcs on 1@bamn
  24. // disablenpc instance_npcname("Repeater#wifi03"); // (not disabled)
  25. // disablenpc instance_npcname("Repeater#wifi02"); // (not disabled)
  26. // disablenpc instance_npcname("Repeater#wifi01"); // (not disabled)
  27. //----------------------------
  28. // Daily: Hey! Sweety
  29. if (instance_live_info(ILI_NAME) == "Hey! Sweety")
  30. disablenpc instance_npcname("#bamn_evt01"); // story starter npc
  31. else
  32. disablenpc instance_npcname("#sweety_evt01"); // daily starter npc
  33. end;
  34. }
  35. // Story
  36. 1@bamn,100,320,0 script #bamn_evt01 HIDDEN_WARP_NPC,2,2,{
  37. end;
  38. OnTouch:
  39. if (!is_party_leader())
  40. end;
  41. disablenpc();
  42. enablenpc instance_npcname("Est#est01");
  43. end;
  44. }
  45. 1@bamn,96,318,5 script(DISABLED) Est#est01 4_F_ESTLOVELOY,{
  46. if (!is_party_leader())
  47. end;
  48. if ('twilight_story == 0) {
  49. 'twilight_story = 1;
  50. npctalk "Est : It's dark and quiet. If you want to execute the plan, now's the perfect time. Right?";
  51. sleep 2000;
  52. npctalk "Est : Elena said she'd join us later, but there's a good chance she won't able to join.";
  53. sleep 2000;
  54. npctalk "Est : Even so, there's no need to worry. The others are prepared and waiting for the ambush signal.";
  55. sleep 2000;
  56. npctalk "Est : All we have to do is walk around like a patrol and catch them off guard.";
  57. sleep 2000;
  58. npctalk "Est : Go along the road to the main building of the mansion. I'll lurk behind you.";
  59. sleep 2000;
  60. npctalk "Est : Don't look around too much, and pretend you're not vigilant, got it?";
  61. sleep 2000;
  62. npctalk "Est : Now, let's go.";
  63. for ( .@i = 1; .@i < 6; ++.@i )
  64. enablenpc instance_npcname("Heart Hunter#md_hh0" + .@i);
  65. end;
  66. }
  67. if ('twilight_story == 1)
  68. end;
  69. if ('twilight_story == 2) {
  70. cutin "ep162_est01",2;
  71. mes "[Est]";
  72. mes "They must have been waiting too.";
  73. mes "Let's do this more quietly.";
  74. close3;
  75. }
  76. end;
  77. }
  78. 1@bamn,119,299,3 script(DISABLED) Heart Hunter#md_hh01 G_EP17_2_HEART_HUNTER,3,3,{
  79. end;
  80. OnTouch_:
  81. if (!is_party_leader())
  82. end;
  83. if ('twilight_story == 1) {
  84. 'twilight_story = 2;
  85. npctalk "Quietly surrender or return back to where you came from.";
  86. sleep 2000;
  87. npctalk "Well, that doesn't mean we'll let you go back.";
  88. sleep 1000;
  89. for ( .@i = 1; .@i < 6; ++.@i )
  90. disablenpc instance_npcname("Heart Hunter#md_hh0" + .@i);
  91. donpcevent instance_npcname("twilight_story_mob_1") + "::OnStart";
  92. }
  93. end;
  94. }
  95. 1@bamn,119,305,3 duplicate(dummy_disabled_npc) Heart Hunter#md_hh02 G_EP17_2_HEART_HUNTER
  96. 1@bamn,119,302,3 duplicate(dummy_disabled_npc) Heart Hunter#md_hh03 G_EP17_2_HEART_HUNTER
  97. 1@bamn,119,296,3 duplicate(dummy_disabled_npc) Heart Hunter#md_hh04 G_EP17_2_HEART_HUNTER
  98. 1@bamn,119,293,3 duplicate(dummy_disabled_npc) Heart Hunter#md_hh05 G_EP17_2_HEART_HUNTER
  99. 1@bamn,1,1,0 script twilight_story_mob_1 -1,{
  100. end;
  101. OnStart:
  102. .@event$ = instance_npcname("twilight_story_mob_1") + "::OnMobDead";
  103. monster 'map_bamn$,119,308,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  104. monster 'map_bamn$,128,308,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  105. monster 'map_bamn$,121,300,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  106. monster 'map_bamn$,118,293,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  107. monster 'map_bamn$,124,294,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  108. monster 'map_bamn$,130,308,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  109. end;
  110. OnMobDead:
  111. .@event$ = instance_npcname("twilight_story_mob_1") + "::OnMobDead";
  112. if (mobcount('map_bamn$, .@event$) < 1) {
  113. disablenpc instance_npcname("Est#est01");
  114. enablenpc instance_npcname("Est#est02");
  115. if ('twilight_story == 2)
  116. 'twilight_story = 3;
  117. }
  118. end;
  119. }
  120. 1@bamn,119,299,5 script(DISABLED) Est#est02 4_F_ESTLOVELOY,{
  121. if (!is_party_leader())
  122. end;
  123. if ('twilight_story == 3) {
  124. cutin "ep162_est01",2;
  125. mes "[Est]";
  126. mes "I don't know if we should set a trap, or give you a chance.";
  127. mes "Activate the tracker that we got from Elyumina.";
  128. next;
  129. cutin "",255;
  130. unittalk getcharid(3), "" + strcharinfo(0) + " : Tracker : According to the intuition of the great Elyumina... Too Doo Too Doo Too~";
  131. sleep2 2000;
  132. unittalk getcharid(3), "" + strcharinfo(0) + " : Tracker : Over there!! Beep!";
  133. navigateto("1@bamn",206,273);
  134. sleep2 2000;
  135. cutin "ep162_est01",2;
  136. mes "[Est]";
  137. mes "That's a loud thing.";
  138. mes "Will you move out first?";
  139. mes "I have a place to go for a second.";
  140. next;
  141. mes "[Est]";
  142. mes "I'll join you soon.";
  143. close2;
  144. if ('twilight_story == 3) {
  145. 'twilight_story = 4;
  146. donpcevent instance_npcname("twilight_story_mob_2") + "::OnStart";
  147. }
  148. cutin "",255;
  149. disablenpc();
  150. end;
  151. }
  152. end;
  153. }
  154. 1@bamn,1,1,0 script twilight_story_mob_2 -1,{
  155. end;
  156. OnStart:
  157. .@event$ = instance_npcname("twilight_story_mob_2") + "::OnMobDead";
  158. monster 'map_bamn$,208,283,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  159. monster 'map_bamn$,210,285,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  160. monster 'map_bamn$,210,282,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  161. monster 'map_bamn$,213,284,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  162. monster 'map_bamn$,213,281,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  163. end;
  164. OnMobDead:
  165. .@event$ = instance_npcname("twilight_story_mob_2") + "::OnMobDead";
  166. if (mobcount('map_bamn$, .@event$) < 1) {
  167. enablenpc instance_npcname("Est#est03");
  168. enablenpc instance_npcname("Almond#amond01");
  169. if ('twilight_story == 4)
  170. 'twilight_story = 5;
  171. }
  172. end;
  173. }
  174. 1@bamn,202,274,5 script(DISABLED) Est#est03 4_F_ESTLOVELOY,{
  175. if ('twilight_story == 5) {
  176. cutin "ep162_est01",2;
  177. mes "[Est]";
  178. mes "I thought it might be better to throw in more bait, so I went to ask for the help of the automatic dolls.";
  179. mes "Also, Almond said she had to go out and check something.";
  180. next;
  181. cutin "ep172_beta",0;
  182. mes "[Almond]";
  183. mes "The repeater is dead again. That's why I have to fix it.";
  184. mes "The repeater is the favorite target of the intruders, so we can't just leave it broken, right?";
  185. next;
  186. cutin "ep162_est01",2;
  187. mes "[Est]";
  188. mes "For that reason, I'd like to ask you to escort Almon here to check the repeater.";
  189. mes "I'll look around and find other routes.";
  190. next;
  191. cutin "ep172_beta",0;
  192. mes "[Almond]";
  193. mes "Let's go together whenever you're ready.";
  194. close2;
  195. cutin "",255;
  196. if ('twilight_story == 5)
  197. 'twilight_story = 6;
  198. end;
  199. }
  200. if ('twilight_story == 6) {
  201. cutin "ep162_est01",2;
  202. mes "[Est]";
  203. mes "Talk to Almond, when you're ready to move.";
  204. close3;
  205. }
  206. end;
  207. }
  208. 1@bamn,199,275,5 script(DISABLED) Almond#amond01 EP17_2_BETA_BASIC,{
  209. if ('twilight_story < 6) {
  210. cutin "ep172_beta",2;
  211. mes "[Almond]";
  212. mes "Everyone was supposed to be in the mansion today.";
  213. mes "Something important came up. That's why I'm here with Est.";
  214. close3;
  215. }
  216. if ('twilight_story == 6) {
  217. 'guide = getnpcid(0);
  218. 'twilight_story = 7;
  219. npcspeed 200;
  220. npctalk "Then, let us go.";
  221. unitwalk 'guide,199,248, instance_npcname("Almond#amond01") + "::OnEvent00";
  222. enablenpc instance_npcname("Intruder#sweety02");
  223. end;
  224. }
  225. if ('twilight_story == 7)
  226. end;
  227. if ('twilight_story == 8) {
  228. 'twilight_story = 9;
  229. unittalk getcharid(3), "" + strcharinfo(0) + " : Tracker : Pyo-o-o-o-o! There!!";
  230. setpcblock PCBLOCK_NPC, true;
  231. navigateto("1@bamn",242,206);
  232. sleep2 2000;
  233. npctalk "Ahahaha, it's noisy.";
  234. sleep2 2000;
  235. npctalk "I'm curious, should we go quickly?";
  236. sleep2 2000;
  237. npctalk "Guest, there is an intruder!";
  238. donpcevent instance_npcname("twilight_story_mob_3") + "::OnStart";
  239. setpcblock PCBLOCK_NPC, false;
  240. sleep 200;
  241. npcspeed 80;
  242. unitwalk 'guide,245,229, instance_npcname("Almond#amond01") + "::OnEvent02";
  243. end;
  244. }
  245. if ('twilight_story == 10 || 'twilight_story == 11 || 'twilight_story == 12) {
  246. npctalk "Be careful!";
  247. end;
  248. }
  249. if ('twilight_story == 13) {
  250. 'twilight_story = 14;
  251. npcspeed 200;
  252. setpcblock PCBLOCK_NPC, true;
  253. npctalk "Let's go check the repeater.";
  254. sleep2 2000;
  255. setpcblock PCBLOCK_NPC, false;
  256. sleep2 1000;
  257. unitwalk 'guide,244,208, instance_npcname("Almond#amond01") + "::OnEvent04";
  258. end;
  259. }
  260. if ('twilight_story == 14)
  261. end;
  262. if ('twilight_story == 15) {
  263. 'twilight_story = 16;
  264. setpcblock PCBLOCK_NPC, true;
  265. for ( .@i = 1; .@i < 5; ++.@i )
  266. enablenpc instance_npcname("Rebellion#md_rb0" + .@i);
  267. for ( .@i = 6; .@i < 9; ++.@i )
  268. enablenpc instance_npcname("Heart Hunter#md_hh0" + .@i);
  269. unittalk getcharid(3), "" + strcharinfo(0) + " : Tracker : Kakakakakakakil! The culprit is around! They're on my radar! It's that way!";
  270. navigateto("1@bamn",332,143);
  271. sleep2 2000;
  272. setpcblock PCBLOCK_NPC, false;
  273. sleep2 1000;
  274. npcspeed 80;
  275. npctalk "There's another intruder! No wonder I'm starting to get excited~!";
  276. unitwalk 'guide,332,169;
  277. end;
  278. }
  279. if ('twilight_story < 18)
  280. end;
  281. if ('twilight_story == 18) {
  282. npcspeed 200;
  283. 'twilight_story = 19;
  284. npctalk "Are you all right, adventurer? Then, we can keep going.";
  285. unitwalk 'guide,332,143, instance_npcname("Almond#amond01") + "::OnEvent11";
  286. end;
  287. }
  288. if ('twilight_story == 19)
  289. end;
  290. if ('twilight_story == 20) {
  291. npctalk "Shouldn't you talk to Est? Looks like she've been waiting.";
  292. end;
  293. }
  294. end;
  295. OnEvent00:
  296. npctalk "This way.";
  297. sleep 1000;
  298. unitwalk 'guide,225,248, instance_npcname("Almond#amond01") + "::OnFollow00";
  299. end;
  300. OnFollow00:
  301. unitwalk 'guide,245,248, instance_npcname("Almond#amond01") + "::OnEvent01";
  302. end;
  303. OnEvent01:
  304. npctalk "Let's go see the Repeater that is oftenly hacked.";
  305. sleep 2000;
  306. npctalk "Huh? What are you carrying right now? Take it out and show it to me.";
  307. 'twilight_story = 8;
  308. end;
  309. OnEvent02:
  310. npctalk "Adventurer, there's an intruder!";
  311. unitwalk 'guide,245,215, instance_npcname("Almond#amond01") + "::OnEvent03";
  312. end;
  313. OnEvent03:
  314. 'twilight_story = 10;
  315. end;
  316. OnEvent04:
  317. npctalk "...checking the signal.";
  318. sleep 2000;
  319. npctalk "...hacking channel checked.";
  320. sleep 2000;
  321. npctalk "...recovering...";
  322. sleep 2000;
  323. npctalk "...recovering...84%";
  324. sleep 2000;
  325. npctalk "...recovery completed.";
  326. sleep 2000;
  327. npctalk "Shall we go to the repeater?";
  328. sleep 2000;
  329. unitwalk 'guide,245,204, instance_npcname("Almond#amond01") + "::OnEvent05";
  330. end;
  331. OnEvent05:
  332. npctalk "Adventurer. Do you like Almonds? A customer who liked almonds named me. Does it suit me?";
  333. sleep 3000;
  334. unitwalk 'guide,265,204, instance_npcname("Almond#amond01") + "::OnEvent06";
  335. end;
  336. OnEvent06:
  337. npctalk "That kid a while ago, I've seen him before.";
  338. unitwalk 'guide,285,204, instance_npcname("Almond#amond01") + "::OnEvent07";
  339. end;
  340. OnEvent07:
  341. npctalk "But he always ran so well, It's the first time I've seen him properly~";
  342. unitwalk 'guide,300,204, instance_npcname("Almond#amond01") + "::OnEvent08";
  343. end;
  344. OnEvent08:
  345. npctalk "The Pitaya's here is cute~ They say Almonds is delicious? Have you eaten almonds before?";
  346. sleep 2000;
  347. npctalk "This way.";
  348. unitwalk 'guide,300,190, instance_npcname("Almond#amond01") + "::OnEvent09";
  349. end;
  350. OnEvent09:
  351. npctalk "It's been a while since I've been this comfortable~";
  352. unitwalk 'guide,327,189, instance_npcname("Almond#amond01") + "::OnEvent10";
  353. end;
  354. OnEvent10:
  355. npctalk "Adventurer. Is that noisy thing flickering again? Let us check it for a second.";
  356. 'twilight_story = 15;
  357. end;
  358. OnEvent11:
  359. npctalk "...checking the signal.";
  360. sleep 2000;
  361. npctalk "...hacking channel checked.";
  362. sleep 2000;
  363. npctalk "...recovering...";
  364. sleep 2000;
  365. npctalk "...recovering...72%";
  366. sleep 2000;
  367. npctalk "...recovery completed.";
  368. sleep 2000;
  369. npctalk "Let's go to the next repeater~";
  370. sleep 2000;
  371. unitwalk 'guide,320,139, instance_npcname("Almond#amond01") + "::OnFollow12";
  372. end;
  373. OnFollow12:
  374. unitwalk 'guide,300,139, instance_npcname("Almond#amond01") + "::OnEvent12";
  375. end;
  376. OnEvent12:
  377. npctalk "It's the kid from before, right? He's an intruder. That's weird, kind of like almonds...";
  378. unitwalk 'guide,285,139, instance_npcname("Almond#amond01") + "::OnEvent13";
  379. end;
  380. OnEvent13:
  381. npctalk "Shall we go faster? There's a sound coming from over there...";
  382. unitwalk 'guide,285,118, instance_npcname("Almond#amond01") + "::OnEvent14";
  383. end;
  384. OnEvent14:
  385. npctalk "It's more quiet than I thought. Where did the intruders go?";
  386. unitwalk 'guide,285,98, instance_npcname("Almond#amond01") + "::OnEvent15";
  387. end;
  388. OnEvent15:
  389. npctalk "This way.";
  390. unitwalk 'guide,261,98, instance_npcname("Almond#amond01") + "::OnEvent16";
  391. end;
  392. OnEvent16:
  393. npcspeed 80;
  394. npctalk "It's Est!";
  395. 'twilight_story = 20;
  396. unitwalk 'guide,261,87;
  397. end;
  398. }
  399. 1@bamn,1,1,0 script twilight_story_mob_3 -1,{
  400. end;
  401. OnStart:
  402. .@event$ = instance_npcname("twilight_story_mob_3") + "::OnMobDead";
  403. monster 'map_bamn$,246,208,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  404. monster 'map_bamn$,248,208,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  405. monster 'map_bamn$,246,206,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  406. monster 'map_bamn$,248,206,"Heart Hunter","G_EP17_2_HEART_HUNTER",1, .@event$;
  407. enablenpc instance_npcname("Intruder#sweety02");
  408. end;
  409. OnMobDead:
  410. .@event$ = instance_npcname("twilight_story_mob_3") + "::OnMobDead";
  411. if (mobcount('map_bamn$, .@event$) < 1) {
  412. if ('twilight_story == 10)
  413. 'twilight_story = 11;
  414. }
  415. end;
  416. }
  417. 1@bamn,243,208,5 script Repeater#wifi03 CLEAR_NPC,{
  418. mes "There is no way to find out what the state of the repeater is. The communication chip seems to be properly installed.";
  419. close;
  420. }
  421. 1@bamn,242,206,7 script(DISABLED) Intruder#sweety02 4_EP17_SWEETY,{
  422. if ('twilight_story < 11) {
  423. npctalk "You're one step behind! You bunch of idiots!";
  424. end;
  425. }
  426. if ('twilight_story == 11) {
  427. 'twilight_story = 12;
  428. npctalk "Hah! Do you think you can catch me?";
  429. sleep 2000;
  430. npctalk "Go suffer!";
  431. sleep 500;
  432. disablenpc();
  433. donpcevent instance_npcname("twilight_story_mob_4") + "::OnStart";
  434. end;
  435. }
  436. end;
  437. }
  438. 1@bamn,1,1,0 script twilight_story_mob_4 -1,{
  439. end;
  440. OnStart:
  441. .@event$ = instance_npcname("twilight_story_mob_4") + "::OnMobDead";
  442. monster 'map_bamn$,248,206,"Heart Hunter Commander","G_BELLARE3",1, .@event$;
  443. monster 'map_bamn$,248,208,"Heart Hunter Commander","G_BELLARE3",1, .@event$;
  444. end;
  445. OnMobDead:
  446. .@event$ = instance_npcname("twilight_story_mob_4") + "::OnMobDead";
  447. if (mobcount('map_bamn$, .@event$) < 1) {
  448. if ('twilight_story == 12)
  449. 'twilight_story = 13;
  450. }
  451. end;
  452. }
  453. 1@bamn,331,161,3 script(DISABLED) Rebellion#md_rb02 4_F_REBELLION,7,7,{
  454. end;
  455. OnTouch:
  456. if ('twilight_story == 16) {
  457. 'twilight_story = 17;
  458. npctalk "We'll take over this place, just watch!";
  459. sleep 1000;
  460. specialeffect EF_DESPERADO, AREA, instance_npcname("Heart Hunter#md_hh06");
  461. sleep 1000;
  462. npctalk "Kakaka, Let's beat them down with a blast!", instance_npcname("Rebellion#md_rb04");
  463. specialeffect EF_TRIPLEACTION, AREA, instance_npcname("Heart Hunter#md_hh07");
  464. sleep 1000;
  465. specialeffect EF_DESPERADO, AREA, instance_npcname("Heart Hunter#md_hh07");
  466. sleep 2000;
  467. npctalk "Thank you for showing yourselves! You bastards!", instance_npcname("Rebellion#md_rb03");
  468. sleep 2000;
  469. specialeffect EF_DESPERADO, AREA, instance_npcname("Heart Hunter#md_hh08");
  470. sleep 2000;
  471. npctalk "...", instance_npcname("Heart Hunter#md_hh07");
  472. sleep 2000;
  473. npctalk "...(Nods)", instance_npcname("Heart Hunter#md_hh06");
  474. sleep 1000;
  475. npctalk "...", instance_npcname("Heart Hunter#md_hh08");
  476. sleep 1000;
  477. npctalk "What signal are you sending to each other?";
  478. sleep 1000;
  479. specialeffect EF_DESPERADO, AREA, instance_npcname("Heart Hunter#md_hh07");
  480. for ( .@i = 1; .@i < 5; ++.@i )
  481. specialeffect EF_SPREADATTACK, AREA, instance_npcname("Rebellion#md_rb0" + .@i);
  482. sleep 1000;
  483. for ( .@i = 6; .@i < 9; ++.@i )
  484. disablenpc instance_npcname("Heart Hunter#md_hh0" + .@i);
  485. sleep 1000;
  486. npctalk "What? Did they ran?! Move out!";
  487. sleep 2000;
  488. for ( .@i = 1; .@i < 5; ++.@i )
  489. disablenpc instance_npcname("Rebellion#md_rb0" + .@i);
  490. enablenpc instance_npcname("Intruder#sweety03");
  491. npctalk "What...?", instance_npcname("Intruder#sweety03");
  492. }
  493. end;
  494. }
  495. 1@bamn,321,161,5 duplicate(dummy_disabled_npc) Rebellion#md_rb01 4_M_REBELLION
  496. 1@bamn,331,155,1 duplicate(dummy_disabled_npc) Rebellion#md_rb03 4_M_REBELLION
  497. 1@bamn,321,155,7 duplicate(dummy_disabled_npc) Rebellion#md_rb04 4_F_REBELLION
  498. 1@bamn,324,158,7 duplicate(dummy_disabled_npc) Heart Hunter#md_hh06 G_EP17_2_HEART_HUNTER
  499. 1@bamn,326,159,3 duplicate(dummy_disabled_npc) Heart Hunter#md_hh07 G_EP17_2_HEART_HUNTER
  500. 1@bamn,328,158,1 duplicate(dummy_disabled_npc) Heart Hunter#md_hh08 G_EP17_2_HEART_HUNTER
  501. 1@bamn,333,141,7 script(DISABLED) Intruder#sweety03 4_EP17_SWEETY,{
  502. if ('twilight_story == 17) {
  503. setpcblock PCBLOCK_NPC, true;
  504. 'twilight_story = 18;
  505. npctalk "What, where did the other guys go?";
  506. sleep2 2000;
  507. npctalk "Did you do it?";
  508. sleep2 2000;
  509. npctalk "You're pretty good, aren't you?";
  510. sleep2 2000;
  511. npctalk "Repeater : (... .. ..)", instance_npcname("Repeater#wifi02");
  512. npctalk "Oh, there's a message. Stay there for a while. Yes, Hello.";
  513. sleep2 2000;
  514. npctalk "Repeater : (... ??... ??)", instance_npcname("Repeater#wifi02");
  515. sleep2 2000;
  516. npctalk "Now? More time... Yes, no... Ah...";
  517. sleep2 2000;
  518. npctalk "... ... so far... no?!... Okay...";
  519. sleep2 2000;
  520. emotion ET_THINK;
  521. sleep2 2000;
  522. npctalk "You! You're the reason I don't have time right now! I'll kill you the next time we meet!";
  523. sleep2 2000;
  524. disablenpc();
  525. enablenpc instance_npcname("Est#est04");
  526. for ( .@i = 5; .@i < 9; ++.@i )
  527. enablenpc instance_npcname("Rebellion#md_rb0" + .@i);
  528. for ( .@i = 0; .@i < 3; ++.@i )
  529. enablenpc instance_npcname("Heart Hunter#md_hh1" + .@i);
  530. setpcblock PCBLOCK_NPC, false;
  531. }
  532. end;
  533. }
  534. 1@bamn,334,143,5 duplicate(dummy_npc) Repeater#wifi02 2_POSTBOX
  535. 1@bamn,257,84,3 script(DISABLED) Est#est04 4_F_ESTLOVELOY,{
  536. if ('twilight_story == 20) {
  537. cutin "ep162_est01",2;
  538. mes "[Est]";
  539. mes "I've heard the report. You found a guy who looked like the leader?";
  540. mes "I think the rest of the members are somewhat good too.";
  541. next;
  542. mes "[Est]";
  543. mes "What happened to the repeater?";
  544. next;
  545. cutin "ep172_beta",2;
  546. mes "[Almond]";
  547. mes "Were on the way to the other one.";
  548. mes "But it's quite far from here.";
  549. next;
  550. cutin "ep162_est01",2;
  551. mes "[Est]";
  552. mes "Hmm... Shall we do this?";
  553. mes "The guy you missed is a boy with purple hair, right?";
  554. mes "We're going to bait him out.";
  555. next;
  556. mes "[Est]";
  557. mes "I'll deal with the rest who's hiding in the garden.";
  558. mes "Ah. I'll also escort Almond.";
  559. next;
  560. mes "[Est]";
  561. mes "He probably went to the western part of the mansion, so head over there.";
  562. mes "You have Elyumina's tracker. It will activate, if you get near him.";
  563. if ('twilight_story == 20) {
  564. 'twilight_story = 21;
  565. enablenpc instance_npcname("#to_bamq");
  566. enablenpc instance_npcname("Intruder#sweety");
  567. enablenpc instance_npcname("#to_swty01");
  568. enablenpc instance_npcname("#to_swty02");
  569. }
  570. close3;
  571. }
  572. if ('twilight_story == 21) {
  573. mes "[Est]";
  574. mes "He probably went to the western part of the mansion, so head over there.";
  575. mes "You have Elyumina's tracker, if you get near him, it will activate.";
  576. next;
  577. mes "[Est]";
  578. mes "Don't worry, I'll take care of Almond from here.";
  579. close3;
  580. }
  581. end;
  582. }
  583. 1@bamn,250,80,7 script(DISABLED) Rebellion#md_rb05 4_M_REBELLION,{
  584. npctalk "Leave the rest to us.";
  585. end;
  586. }
  587. // 1@bamn,254,80,7 script Rebellion#md_rb06 4_F_REBELLION,7,7,{ // unknown effect
  588. 1@bamn,254,80,7 script(DISABLED) Rebellion#md_rb06 4_F_REBELLION,{
  589. npctalk "Hehehe... It's finally time for revenge... Hehehe...";
  590. end;
  591. }
  592. 1@bamn,258,80,1 script(DISABLED) Rebellion#md_rb07 4_M_REBELLION,{
  593. npctalk "If there's an enemy causing commotion, we should attack them with more numbers.";
  594. end;
  595. }
  596. 1@bamn,202,84,3 script(DISABLED) Rebellion#md_rb08 4_M_REBELLION2,{
  597. npctalk "You're looking for a boy with purple hair, right? He went towards the labs.";
  598. end;
  599. }
  600. 1@bamn,67,173,0 script(DISABLED) #to_swty01 HIDDEN_WARP_NPC,5,5,{
  601. end;
  602. OnTouch:
  603. if ('twilight_story == 21) {
  604. unittalk getcharid(3), "" + strcharinfo(0) + " : Tracker : Pyo-o-o-o-o! That way! Pyo-pyo~!";
  605. navigateto("1@bamn",33,224);
  606. }
  607. end;
  608. }
  609. 1@bamn,121,204,0 duplicate(#to_swty01) #to_swty02 HIDDEN_WARP_NPC,7,7
  610. 1@bamn,67,195,3 script(DISABLED) Heart Hunter#md_hh10 G_BELLARE3,5,5,{
  611. end;
  612. OnTouch:
  613. monster 'map_bamn$,67,195,"Heart Hunter Commander","G_BELLARE3",1;
  614. monster 'map_bamn$,65,199,"Heart Hunter Commander","G_BELLARE3",1;
  615. monster 'map_bamn$,71,197,"Heart Hunter Commander","G_BELLARE3",1;
  616. disablenpc();
  617. end;
  618. }
  619. 1@bamn,78,204,5 script(DISABLED) Heart Hunter#md_hh11 G_BELLARE3,5,5,{
  620. end;
  621. OnTouch:
  622. emotion ET_GO;
  623. monster 'map_bamn$,78,204,"Heart Hunter Commander","G_BELLARE3",1;
  624. monster 'map_bamn$,83,204,"Heart Hunter Commander","G_BELLARE3",1;
  625. monster 'map_bamn$,76,200,"Heart Hunter Commander","G_BELLARE3",1;
  626. disablenpc();
  627. end;
  628. }
  629. 1@bamn,61,214,7 script(DISABLED) Heart Hunter#md_hh12 G_BELLARE3,5,5,{
  630. end;
  631. OnTouch:
  632. emotion ET_GO;
  633. monster 'map_bamn$,61,214,"Heart Hunter Commander","G_BELLARE3",1;
  634. monster 'map_bamn$,58,212,"Heart Hunter Commander","G_BELLARE3",1;
  635. monster 'map_bamn$,64,214,"Heart Hunter Commander","G_BELLARE3",1;
  636. disablenpc();
  637. end;
  638. }
  639. 1@bamn,145,106,5 duplicate(dummy_npc) Repeater#wifi01 CLEAR_NPC
  640. 1@bamq,125,39,3 script(DISABLED) Intruder#sweety 4_EP17_SWEETY,5,5,{
  641. end;
  642. OnTouch:
  643. if ('twilight_story == 21) {
  644. setpcblock PCBLOCK_NPC, true;
  645. 'twilight_story = 22;
  646. npctalk "You're too late. You idiots!";
  647. sleep2 2000;
  648. npctalk "They already escaped using the airships!";
  649. sleep2 2000;
  650. npctalk "Now, I, Sweety will take care of the idiots that just came in!";
  651. sleep2 2000;
  652. setpcblock PCBLOCK_NPC, false;
  653. disablenpc();
  654. donpcevent instance_npcname("twilight_story_mob_5") + "::OnStart";
  655. end;
  656. }
  657. end;
  658. }
  659. 1@bamq,1,1,7 script twilight_story_mob_5 -1,{
  660. end;
  661. OnStart:
  662. monster 'map_bamq$,125,39,"Sweety",20642,1, instance_npcname("twilight_story_mob_5") + "::OnMobDead";
  663. setunitdata $@mobid[0],UMOB_HP,500000;
  664. end;
  665. OnMobDead:
  666. killmonster 'map_bamq$, instance_npcname("twilight_story_mob_5") + "::OnMobDead";
  667. if ('twilight_story == 22)
  668. 'twilight_story = 23;
  669. mapannounce 'map_bamq$, "Est: Did you hear a loud noise from here?", bc_map, 0xFF00;
  670. enablenpc instance_npcname("Broken Sweety#sweety04");
  671. enablenpc instance_npcname("Est#est05");
  672. enablenpc instance_npcname("#tgd_bamq_exit");
  673. end;
  674. }
  675. 1@bamq,123,39,3 script(DISABLED) Broken Sweety#sweety04 4_EP17_SWEETY,{
  676. specialeffect EF_NPC_STOP;
  677. npctalk " ... yes ... s ... go ... no ... two ...";
  678. mes "The electricity bounces and doesn't move, as if the machine is broken.";
  679. mes "Seeing that he averts his gaze, he doesn't seem completely broken.";
  680. close;
  681. }
  682. 1@bamq,108,41,5 script(DISABLED) Est#est05 4_F_ESTLOVELOY,{
  683. cutin "ep162_est01",2;
  684. mes "[Est]";
  685. mes "It's a little late, but it's over.";
  686. mes "So that's you. The guy who was dragging his feet in the garden.";
  687. next;
  688. mes "[Est]";
  689. mes "Did this guy think that controlling the automatic dolls will help him buy time?";
  690. next;
  691. cutin "ep162_est02",2;
  692. mes "[Est]";
  693. mes "After all, they're just automatic dolls, right?";
  694. mes "I had no choice but to blow the automatic dolls of the mansion...";
  695. next;
  696. cutin "ep162_est01",2;
  697. mes "[Est]";
  698. mes "Let's get out of here.";
  699. mes "I'll be waiting at the guesthouse.";
  700. close3;
  701. }
  702. // warps story
  703. 1@bamn,33,224,0 script(DISABLED) #to_bamq WARPNPC,1,1,{
  704. end;
  705. OnTouch_:
  706. if ('twilight_story == 21)
  707. warp 'map_bamq$,103,39;
  708. end;
  709. }
  710. 1@bamq,101,39,0 warp2(DISABLED) #tgd_bamq_exit 1,1,ba_maison,33,220
  711. // Daily
  712. 1@bamq,16,39,0 script #sweety_evt01 HIDDEN_WARP_NPC,2,2,{
  713. end;
  714. OnTouch:
  715. if (!is_party_leader())
  716. end;
  717. disablenpc();
  718. enablenpc instance_npcname("Almond#amond02");
  719. enablenpc instance_npcname("Sweety#sweety_boss");
  720. enablenpc instance_npcname("#to_bamq2");
  721. enablenpc instance_npcname("#to_bamn");
  722. monster 'map_bamn$,120,257,"--ja--",20681,1; // G_EP17_2_HEART_HUNTER
  723. monster 'map_bamn$,130,255,"--ja--",20681,1;
  724. monster 'map_bamn$,130,244,"--ja--",20681,1;
  725. monster 'map_bamn$,127,184,"--ja--",20681,1;
  726. monster 'map_bamn$,188,240,"--ja--",20699,1; // G_BELLARE3
  727. monster 'map_bamn$,203,248,"--ja--",20699,1;
  728. monster 'map_bamn$,203,252,"--ja--",20699,1;
  729. monster 'map_bamn$,301,234,"--ja--",20681,1;
  730. monster 'map_bamn$,302,239,"--ja--",20681,1;
  731. monster 'map_bamn$,297,244,"--ja--",20681,1;
  732. monster 'map_bamn$,197,52,"--ja--",20699,1;
  733. monster 'map_bamn$,120,83,"--ja--",20681,1;
  734. monster 'map_bamn$,117,84,"--ja--",20681,1;
  735. monster 'map_bamn$,137,176,"--ja--",20681,1;
  736. monster 'map_bamn$,143,181,"--ja--",20681,1;
  737. monster 'map_bamn$,62,165,"--ja--",20699,1;
  738. end;
  739. }
  740. 1@bamq,32,49,3 script(DISABLED) Sweety#sweety_boss 4_EP17_Sweety,{
  741. if ('sweety == 0) {
  742. cutin "ep172_Sweety01",2;
  743. mes "[Sweety]";
  744. mes "Hey, are you ready?";
  745. mes "Come at me anytime.";
  746. mes "I'm sure I'll feel better once I beat you.";
  747. next;
  748. if (select( "Wait a bit.", "Let's go!" ) == 1) {
  749. mes "[Sweety]";
  750. mes "What, did you come here to explore the garden?";
  751. mes "The heart hunter don't know what happened to me, but...";
  752. next;
  753. cutin "ep172_Sweety02",2;
  754. mes "[Sweety]";
  755. mes "What, why?";
  756. mes "I'm not like them at all, I'm an excellent creature!";
  757. mes "So did the teachers.";
  758. mes "But, those guys are nothing but failures.";
  759. close3;
  760. }
  761. cutin "",255;
  762. npctalk "I won't lose to you this time!";
  763. disablenpc();
  764. donpcevent instance_npcname("twilight_daily") + "::OnStart";
  765. 'sweety = 1;
  766. close;
  767. }
  768. specialeffect EF_NPC_STOP;
  769. mes "He is not responding to anything.";
  770. mes "I think he fainted from my attacks.";
  771. npctalk "... ...";
  772. close;
  773. }
  774. 1@bamq,1,1,7 script twilight_daily -1,{
  775. end;
  776. OnStart:
  777. monster 'map_bamq$,32,49,"Sweety",20642,1, instance_npcname("twilight_daily") + "::OnMobDead";
  778. end;
  779. OnMobDead:
  780. killmonster 'map_bamq$, instance_npcname("twilight_daily") + "::OnMobDead";
  781. mapannounce 'map_bamq$, "Almond: Sweety~ Do it in moderation~", bc_map, 0xFF00;
  782. enablenpc instance_npcname("Sweety#sweety_boss");
  783. 'sweety = 2;
  784. end;
  785. }
  786. 1@bamq,32,43,3 script(DISABLED) Stunned Sweety#sweety_bo 4_EP17_SWEETY,{
  787. setpcblock PCBLOCK_NPC, true;
  788. specialeffect EF_NPC_STOP;
  789. sleep2 500;
  790. setpcblock PCBLOCK_NPC, false;
  791. npctalk " ... ... ";
  792. mes "I passed out from the shock.";
  793. mes "Looks like he passed out.";
  794. close;
  795. }
  796. 1@bamq,37,59,3 script(DISABLED) Almond#amond02 EP17_2_BETA_BASIC,{
  797. if ('sweety < 2) {
  798. cutin "ep172_beta",2;
  799. mes "[Almond]";
  800. mes "I can't understand.";
  801. mes "Why Sweety likes to push his body to the limit...";
  802. next;
  803. mes "[Almond]";
  804. mes "And it's my job to fix his destroyed body.";
  805. mes "Please deal with him enough to make him satisfied.";
  806. close3;
  807. }
  808. cutin "ep172_beta",2;
  809. mes "[Almond]";
  810. mes "I will take care of moving Sweety.";
  811. mes "Do you want to wrap up now?";
  812. next;
  813. if (select( "Let's wrap up.", "I'll explore the garden first." ) == 2) {
  814. mes "[Almond]";
  815. mes "There is still some intruders out there.";
  816. mes "Are you aware of it?";
  817. close3;
  818. }
  819. mes "[Almond]";
  820. mes "Then, shall we?";
  821. close2;
  822. warp "ba_in01",18,255;
  823. end;
  824. }
  825. // warps daily
  826. 1@bamn,33,224,0 warp2(DISABLED) #to_bamq2 1,1,1@bamq,13,39
  827. 1@bamq,8,39,0 warp2(DISABLED) #to_bamn 1,1,1@bamn,33,220
  828. // Daily quest
  829. 1@bamn,150,47,3 script #bam_body01 4_EP17_BROKENBETA,{
  830. if (isbegin_quest(18024) == 1) {
  831. if (checkweight(1000226,1) == 0) { // (custom)
  832. mes "^008800Wait a sec!!";
  833. mes "You cannot receive any more items because you're carrying too many items. Please try again after you lighten up.^000000";
  834. close;
  835. }
  836. .@id = atoi(replacestr(strnpcinfo(2), "bam_body0", ""));
  837. if ('broken_beta[.@id] == 0) {
  838. mes "The body of Manager Beta is hidden under the landscapes.";
  839. next;
  840. if (rand(1,10) < 5)
  841. mes "The core slot is empty.";
  842. else {
  843. mes "I've recovered the core.";
  844. getitem 1000226,1;
  845. }
  846. mes "I'll let Alpha know later so she can retrieve the doll's body.";
  847. 'broken_beta[.@id] = 1;
  848. }
  849. }
  850. mes "The core part is empty.";
  851. close;
  852. OnInstanceInit:
  853. questinfo( QTYPE_CLICKME, QMARK_YELLOW, "isbegin_quest(18024) == 1" );
  854. end;
  855. }
  856. 1@bamn,221,193,3 duplicate(#bam_body01) #bam_body02 4_EP17_BROKENBETA
  857. 1@bamn,208,87,3 duplicate(#bam_body01) #bam_body03 4_EP17_BROKENBETA
  858. 1@bamn,314,146,3 duplicate(#bam_body01) #bam_body04 4_EP17_BROKENBETA
  859. 1@bamn,207,276,3 duplicate(#bam_body01) #bam_body05 4_EP17_BROKENBETA
  860. 1@bamn,70,256,3 duplicate(#bam_body01) #bam_body06 4_EP17_BROKENBETA
  861. 1@bamn,64,187,3 duplicate(#bam_body01) #bam_body07 4_EP17_BROKENBETA
  862. 1@bamn,275,313,3 duplicate(#bam_body01) #bam_body08 4_EP17_BROKENBETA
  863. 1@bamn,338,267,3 duplicate(#bam_body01) #bam_body09 4_EP17_BROKENBETA