Regenschirm.txt 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. //===== rAthena Script =======================================
  2. //= Regenschirm
  3. //===== Description: =========================================
  4. //= [Walkthrough Conversion]
  5. //= Episode 17.1 - Regenschirm
  6. //===== Changelog: ===========================================
  7. //= 1.0 Initial release [crazyarashi]
  8. //= 1.1 Optimizations and cleanup [Everade]
  9. //============================================================
  10. 1@rgsr,1,1,0 script #171_rgsr_control HIDDEN_WARP_NPC,{
  11. end;
  12. OnInstanceInit:
  13. 'map$ = instance_mapname("1@rgsr");
  14. 'rgsr = 'activate = 0;
  15. deletearray 'rescued;
  16. deletearray 'rsgr_c;
  17. disablenpc instance_npcname("Researcher#rgsr_ev_0");
  18. disablenpc instance_npcname("Access Controller#rgsr");
  19. disablenpc instance_npcname("#rgsr_touch_mob_0");
  20. disablenpc instance_npcname("#rgsr_touch_mob_1");
  21. disablenpc instance_npcname("#rgsr_warp_0");
  22. disablenpc instance_npcname("Est#rgsr");
  23. disablenpc instance_npcname("Rebellion Crew#rgsr_dum01");
  24. disablenpc instance_npcname("Aas#rgsr3");
  25. disablenpc instance_npcname("Goni#rgsr");
  26. disablenpc instance_npcname("Est#rgsr2");
  27. disablenpc instance_npcname("Central Room#rgsr");
  28. disablenpc instance_npcname("Restrained Specimen#rgsr");
  29. disablenpc instance_npcname("Control Device#rgsr0");
  30. disablenpc instance_npcname("Control Device#rgsr1");
  31. disablenpc instance_npcname("Control Device#rgsr2");
  32. disablenpc instance_npcname("Control Device#rgsr3");
  33. disablenpc instance_npcname("Aas#rgsr4");
  34. end;
  35. OnEvent01:
  36. enablenpc instance_npcname("#rgsr_touch_mob_0");
  37. enablenpc instance_npcname("#rgsr_touch_mob_1");
  38. donpcevent instance_npcname("#rgsr_mob_1") + "::OnSummon";
  39. end;
  40. OnEvent02:
  41. enablenpc instance_npcname("#rgsr_warp_0");
  42. donpcevent instance_npcname("#rgsr_mob_2") + "::OnSummon";
  43. end;
  44. OnEvent03:
  45. enablenpc instance_npcname("Restrained Specimen#rgsr");
  46. enablenpc instance_npcname("Control Device#rgsr0");
  47. enablenpc instance_npcname("Control Device#rgsr1");
  48. enablenpc instance_npcname("Control Device#rgsr2");
  49. enablenpc instance_npcname("Control Device#rgsr3");
  50. end;
  51. OnEvent04:
  52. if ('rgsr == 13) {
  53. 'rgsr = 14;
  54. donpcevent instance_npcname("#rgsr_boss") + "::OnSummon";
  55. }
  56. end;
  57. }
  58. 1@rgsr,123,42,5 script Oscar#rgsr 4_M_LGTGUARD,{
  59. mes "[Oscar]";
  60. mes "The captain sneaked in the control panel room.";
  61. mes "Move quietly.";
  62. close;
  63. }
  64. 1@rgsr,131,58,3 script Aas#rgsr 4_EP17_AS,{
  65. cutin "ep171_as02",1;
  66. mes "[Aas]";
  67. mes "The door is normally locked with the security system, so I have to stay there and work with the controller.";
  68. mes "As you can see most of the entrances have been blocked already.";
  69. mes "Hi";
  70. next;
  71. mes "[Aas]";
  72. mes "It will take some time to go through them one by one.";
  73. mes "I'll keep helping you through the intercom.";
  74. next;
  75. mes "[Aas]";
  76. mes "You'll have to go through the restaurant to reach the hallway.";
  77. mes "Est will be performing the operation alone.";
  78. next;
  79. mes "[Aas]";
  80. mes "If there's a disturbance, Est may have caused it. So please check out with her before continuing.";
  81. next;
  82. mes "[Aas]";
  83. mes "You should go now adventurer. I'll keep working on securing the security controller.";
  84. mes "There may be researchers detained inside.";
  85. next;
  86. mes "[Aas]";
  87. mes "Please consider their safety first.";
  88. mes "Now go ahead.";
  89. close2;
  90. if ('rgsr == 0) {
  91. 'rgsr = 1;
  92. donpcevent instance_npcname("#171_rgsr_control") + "::OnEvent01";
  93. }
  94. warp 'map$,127,67;
  95. end;
  96. }
  97. 1@rgsr,60,138,0 script Access Controller#rgsr 4_ENERGY_WHITE,{
  98. enablenpc instance_npcname("Researcher#rgsr_ev_0");
  99. if ('rgsr == 2) {
  100. 'rgsr = 3;
  101. npctalk "Communication Requested.";
  102. sleep2 2750;
  103. npctalk "Analysing Signal.";
  104. sleep2 2750;
  105. npctalk "Activating Voice Transmission...";
  106. sleep2 2750;
  107. npctalk "Are you connected? It's Aas.";
  108. sleep2 2750;
  109. npctalk "I have gained control over some of the security system, but I haven't gained full access yet.";
  110. sleep2 2750;
  111. npctalk "Unless there is a big disturbance, the alarm or security devices won't work.";
  112. sleep2 2750;
  113. npctalk "I think you should open this door to open the hallway.";
  114. sleep2 2750;
  115. npctalk "Ask a Detained Researcher to put their hand on the device.";
  116. sleep2 2750;
  117. npctalk "...*Zap*....";
  118. sleep2 2750;
  119. npctalk "Voice Transmission Ended.";
  120. sleep2 2750;
  121. hideonnpc();
  122. enablenpc();
  123. npctalk "Researcher : Do you mind If I open the door?",instance_npcname("Researcher#rgsr_ev_0");
  124. 'rgsr = 4;
  125. }
  126. end;
  127. }
  128. 1@rgsr,59,132,7 script Researcher#rgsr_ev_0 4_M_NFMAN,{
  129. if ('rgsr == 4 && 'activate == 0) {
  130. 'activate = 1;
  131. mes "[Researcher]";
  132. mes "The biometric scan is still operational, I'll be staying here to keep the door open.";
  133. mes "If you're in a hurry, please go...";
  134. dispbottom "Control : Identity confirmed.";
  135. donpcevent instance_npcname("#171_rgsr_control") + "::OnEvent02";
  136. close2;
  137. sleep2 800;
  138. npctalk "Researcher : ...huh... what the hell is this...";
  139. end;
  140. }
  141. }
  142. 1@rgsr,36,211,3 script Est#rgsr 4_F_ESTLOVELOY,{
  143. if ('rgsr < 7) {
  144. cutin "ep162_est03",2;
  145. mes "[Est]";
  146. mes "Are you the one who removed the poison gas outside?";
  147. mes "You arrived at a good time.";
  148. mes "Because of the gas, the door was forcibly locked down!";
  149. next;
  150. cutin "ep162_est01",2;
  151. mes "[Est]";
  152. mes "It takes time for Aas to come hack the controller and release the gas.";
  153. mes "I was going to do it myself.";
  154. next;
  155. cutin "ep162_est02",2;
  156. mes "[Est]";
  157. mes "The guards here were wearing the same clothes as those Heart Hunters we saw before.";
  158. mes "I don't think I can save all the researchers alone.";
  159. next;
  160. mes "[Est]";
  161. mes "It seems we've gathered most of them here already.";
  162. mes "Let's organize our next strategy.";
  163. next;
  164. cutin "ep162_est01",2;
  165. mes "[Est]";
  166. mes "There are laboratories on the other side and it's likely to be a mess.";
  167. mes "I wonder if there will be a big fight.";
  168. next;
  169. mes "[Est]";
  170. mes "From now on the Rebellion Special Forces will prioritize on rescuing the Detained Researchers.";
  171. mes "If you get it, move quickly!";
  172. next;
  173. mes "[Est]";
  174. mes "Okay, adventurer, find a communication device and get in contact with Aas.";
  175. next;
  176. mes "[Est]";
  177. mes "You have to open the entrance of the private labs.";
  178. if ('rgsr == 4)
  179. 'rgsr = 5;
  180. close3;
  181. }
  182. cutin "ep162_est02",2;
  183. mes "[Est]";
  184. mes "Huh. We'll focus on rescuing the hostages first.";
  185. mes "Look for the Security Guard's room that Aas talked about.";
  186. close3;
  187. }
  188. 1@rgsr,26,219,0 script Access Controller#rgsr2 4_ENERGY_WHITE,{
  189. if ('rgsr < 5) {
  190. mes "Code is inactive.";
  191. mes "The communication has been terminated.";
  192. close;
  193. }
  194. if ('rgsr == 5) {
  195. mes "Voice Transmission Connected.";
  196. close2;
  197. if ('rgsr == 5)
  198. 'rgsr = 6;
  199. npctalk "Waiting for communication response...";
  200. sleep2 2750;
  201. npctalk "Aas : Commander Est? We closed the hall lock, but what is the problem?";
  202. sleep2 2750;
  203. npctalk "Aas : Oh you're the adventurer. I will give you the report. I have not fully taken over the security controller system yet.";
  204. sleep2 2750;
  205. npctalk "Aas : It seems it will take some time, but I've taken control of most of the monitoring modules.";
  206. sleep2 2750;
  207. npctalk "Aas : Most of the enemy troops were in the lobby and the resting area, so the lab area is less guarded.";
  208. sleep2 2750;
  209. npctalk "Aas : However, in order to secure the central control room, you have to go through the Guard's Room where many test subjects were detected.";
  210. sleep2 2750;
  211. npctalk "Aas : The priority should be to secure the laboratories and then the Guard Room.... *click*";
  212. sleep2 2000;
  213. npctalk "Est : Eh, what was that?",instance_npcname("Est#rgsr");
  214. if ('rgsr == 6)
  215. 'rgsr = 7;
  216. end;
  217. }
  218. if ('rgsr < 7)
  219. end;
  220. else {
  221. mes "Code is inactive.";
  222. mes "The communication has been terminated.";
  223. close;
  224. }
  225. }
  226. 1@rgsr,235,44,5 script Aas#rgsr2 4_EP17_AS,{
  227. if ('rgsr == 7) {
  228. for (.@i = 0; .@i < 3; .@i++) {
  229. if (!'rescued[.@i])
  230. .@miss++;
  231. }
  232. if (.@miss) {
  233. cutin "ep171_as02",2;
  234. mes "[Aas]";
  235. mes "Hey, Did you check all the labs yet?";
  236. mes "Please check if there are still Detained Researchers.";
  237. close3;
  238. }
  239. cutin "ep171_as02",1;
  240. mes "[Aas]";
  241. mes "The spare Master Key still remains.";
  242. mes "Without it, I wouldn't have been able to control over the security systems. Are you okay?";
  243. next;
  244. mes "[Aas]";
  245. mes "Now you only need to check the Central Room.";
  246. mes "Did you say Heart Hunters?";
  247. mes "The traitors from Schlein have already escaped.";
  248. next;
  249. mes "[Aas]";
  250. mes "We've got our focus on that room.";
  251. mes "That's the main idea.";
  252. mes "Where is Est?";
  253. next;
  254. cutin "16go_01",0;
  255. mes "[Goni]";
  256. mes "... ... ...";
  257. next;
  258. cutin "ep171_as02",1;
  259. mes "[Aas]";
  260. mes "You have to keep looking for all the Researchers?";
  261. mes "That's necessary, I understand.";
  262. next;
  263. mes "[Aas]";
  264. mes "Adventurer, we head to the Central Room.";
  265. mes "Meet me over there.";
  266. close2;
  267. cutin "",255;
  268. if ('rgsr == 7) {
  269. enablenpc instance_npcname("Central Room#rgsr");
  270. 'rgsr = 8;
  271. disablenpc instance_npcname("#rgsr_mob_2");
  272. }
  273. end;
  274. }
  275. cutin "ep171_as02",1;
  276. mes "[Aas]";
  277. mes "Adventurer, we head to the Central Room.";
  278. mes "Meet me over there.";
  279. close3;
  280. }
  281. 1@rgsr,235,143,5 script Detained Researcher#rgsr_q01 4_F_SCIENCE,{
  282. if (!'rescued[0]) {
  283. mes "[Researcher]";
  284. mes "My... my search... materials...";
  285. mes "They took it all!";
  286. mes "They took everything!";
  287. next;
  288. cutin "16go_01",0;
  289. mes "[Goni]";
  290. mes "... ... ...";
  291. next;
  292. cutin "",255;
  293. npctalk "I'm going to live! Thank you!";
  294. mes "Oh, you're here to protect me?";
  295. mes "I'll go with you, thank you!";
  296. next;
  297. mes "[Researcher]";
  298. mes "Oh, you're there to protect me?";
  299. mes "I'll go with you, thank you!";
  300. 'rescued[0] = 1;
  301. close2;
  302. disablenpc();
  303. }
  304. end;
  305. }
  306. 1@rgsr,237,108,3 script Detained Researcher#rgsr_q02 4_LGTSCIENCE,{
  307. if (!'rescued[1]) {
  308. mes "[Researcher]";
  309. mes "I thought they kicked out all the crazy guy...";
  310. mes "I hit the back of my head like this.";
  311. mes "Tsk.";
  312. next;
  313. mes "[Researcher]";
  314. mes "Are you here to save us?";
  315. mes "Get me out of here!";
  316. mes "We couldn't flee because they put poisonous gas outside the doors!";
  317. next;
  318. mes "[Researcher]";
  319. mes "Yeah, I know a little bit about the Heart Hunters, I will tell you everything!";
  320. next;
  321. cutin "ep162_est02",2;
  322. mes "[Est]";
  323. mes "Ah? Do you have more information to share?";
  324. mes "Do you want to go outside and talk about it calmly with me?";
  325. next;
  326. cutin "ep162_est01",2;
  327. mes "[Est]";
  328. mes "I'll take this guy out of here and you look at the other rooms.";
  329. 'rescued[1] = 1;
  330. close2;
  331. cutin "",255;
  332. disablenpc();
  333. }
  334. end;
  335. }
  336. 1@rgsr,237,71,3 script Detained Researcher#rgsr_q03 4_F_FRUIT,{
  337. if (!'rescued[2]) {
  338. mes "[Researcher]";
  339. mes "Please help me!";
  340. mes "I worked a lot and I'm not getting paid!";
  341. next;
  342. mes "[Researcher]";
  343. mes "Schlein, where is Schlein?";
  344. mes "He's a traitor!";
  345. mes "I've seen it with my own eyes, he just killed the guards...";
  346. next;
  347. select("Calm down.");
  348. mes "[Researcher]";
  349. mes "Is it safe now?";
  350. mes "I'm glad when I was hired at Rekenber, but what the hell is going with such a big company...";
  351. next;
  352. mes "[Researcher]";
  353. mes "Say what? The Rebellions are coming to save us?";
  354. mes "Can't I just run away with you instead?";
  355. next;
  356. mes "[Researcher]";
  357. mes "Oh... you're part of the recon team?";
  358. mes "Alright. I'll wait for the rescue team.";
  359. mes "Many people escaped by breaking the windows and ran away..";
  360. next;
  361. mes "[Researcher]";
  362. mes "Oh you already know.";
  363. mes "Okay. I'll be quiet now and wait.";
  364. mes "Your uniform is really cool though.";
  365. 'rescued[2] = 1;
  366. close;
  367. }
  368. mes "[Researcher]";
  369. mes "I know. I know.";
  370. mes "If I wait here, will the Rebellions come and save me?";
  371. mes "I'll be fine then.";
  372. next;
  373. mes "[Researcher]";
  374. mes "But again, your uniform is really cool.";
  375. close;
  376. }
  377. 1@rgsr,241,51,0 script Scattered Documents#rgsr 4_ENERGY_BLUE,{
  378. if (isbegin_quest(7863) == 0) {
  379. mes "This is the list of the Enterprise security teams.";
  380. mes "Some have circles around them... others are crossed out.";
  381. next;
  382. cutin "ep171_as01",2;
  383. mes "[Aas]";
  384. mes "The ones circled are probably those who accepted to be recruited...";
  385. mes "My team is the one with a X marked next to it.";
  386. next;
  387. mes "[Aas]";
  388. mes "It's a mercenary contract...";
  389. mes "There's a rough plan for the day of the raid.";
  390. mes "I can't believe it came to this...";
  391. next;
  392. mes "[Aas]";
  393. mes "This is meant to provoke me.";
  394. mes "It won't work this time. I'll track this to the end.";
  395. next;
  396. mes "[Aas]";
  397. mes "I'd better take it back to Tess and analyze it.";
  398. setquest 7863;
  399. close3;
  400. }
  401. mes "I've already got the data here.";
  402. mes "There's nothing else to see here.";
  403. close;
  404. OnInstanceInit:
  405. questinfo(QTYPE_CLICKME,QMARK_YELLOW,"isbegin_quest(7863) == 0");
  406. end;
  407. }
  408. 1@rgsr,125,157,0 script Central Room#rgsr 4_ENERGY_BLUE,{
  409. if ('rgsr == 8) {
  410. 'rgsr = 9;
  411. enablenpc instance_npcname("Aas#rgsr3");
  412. enablenpc instance_npcname("Goni#rgsr");
  413. enablenpc instance_npcname("Est#rgsr2");
  414. npctalk "Am I late?",instance_npcname("Aas#rgsr3");
  415. sleep2 1800;
  416. npctalk "No you arrived just in time.",instance_npcname("Est#rgsr2");
  417. end;
  418. }
  419. mes "The device does not work.";
  420. close;
  421. }
  422. 1@rgsr,128,157,3 script Aas#rgsr3 4_EP17_AS,{
  423. if ('rgsr > 13)
  424. end;
  425. if ('rgsr == 9) {
  426. 'rgsr = 10;
  427. .@aas$ = instance_npcname("Aas#rgsr3");
  428. .@gonie$ = instance_npcname("Goni#rgsr");
  429. .@erst$ = instance_npcname("Est#rgsr2");
  430. npctalk "Aas : The Central Room seems to be empty. I'll go in and check it out.",.@aas$;
  431. sleep2 3000;
  432. npctalk "Aas : I'll go ahead and take the researchers out of here. Will that be okay?",.@erst$;
  433. sleep2 3000;
  434. npctalk "Aas : Yes. Nothing else is being detected on the system. With our progress so far, the enemies have all been restrained.",.@aas$;
  435. sleep2 3000;
  436. npctalk "Est : What are you scared of something else? I'm going back already!",.@erst$;
  437. sleep2 3000;
  438. npctalk "Goni : ... Me too.",.@gonie$;
  439. sleep2 3000;
  440. npctalk "Est : There were couple of researchers left in the labs, I'll go bring them along. I'll be waiting.",.@erst$;
  441. sleep2 3000;
  442. npctalk "Est : Alright, Goni. You go to the main lobby first and secure the road. I'll take the others at the conference room.",.@erst$;
  443. sleep2 3000;
  444. npctalk "Goni : *Nods*",.@gonie$;
  445. sleep2 3000;
  446. disablenpc instance_npcname("Goni#rgsr");
  447. disablenpc instance_npcname("Est#rgsr2");
  448. npctalk "Aas : So adventurer, let's check out the Central Room.",.@aas$;
  449. if ('rgsr == 10)
  450. 'rgsr = 11;
  451. end;
  452. }
  453. cutin "ep171_as02",1;
  454. mes "[Aas]";
  455. mes "That's the Central Room right ahead.";
  456. next;
  457. if (select("Enter.:Wait.") == 2) {
  458. mes "[Aas]";
  459. mes "Please speak to me when you're ready.";
  460. mes "I don't know why, but it's tightly closed;. It takes some time to maintain access.";
  461. next;
  462. mes "[Aas]";
  463. mes "As confirmed by the security system, nothing is being detected on the inside...";
  464. mes "I still want to confirm inside the room regardless.";
  465. close3;
  466. }
  467. mes "[Aas]";
  468. mes "First I'll need to disable the auto-locking mechanism, and then I'll follow right away.";
  469. if ('rgsr == 11) {
  470. 'rgsr = 12;
  471. donpcevent instance_npcname("#171_rgsr_control") + "::OnEvent03";
  472. }
  473. close2;
  474. cutin "",255;
  475. warp 'map$,126,164;
  476. end;
  477. }
  478. 1@rgsr,124,152,5 script Goni#rgsr 4_M_GONY,{
  479. cutin "16go_01",0;
  480. mes "[Goni]";
  481. mes "... ... ...";
  482. close3;
  483. }
  484. 1@rgsr,125,154,5 script Est#rgsr2 4_F_ESTLOVELOY,{
  485. cutin "ep162_est01",2;
  486. mes "[Est]";
  487. mes "I don't believe there are any enemies left inside, I'm going to pull out.";
  488. mes "Just check the Central Room and then get out.";
  489. close3;
  490. }
  491. 1@rgsr,125,188,3 script Restrained Specimen#rgsr 20353,2,3,{
  492. if ('rgsr == 12) {
  493. specialeffect EF_RED_HIT;
  494. specialeffect EF_BEGINSPELL3;
  495. npctalk "Do... do not... come close to me...!! Huh, my head... it hurts...";
  496. mapannounce 'map$,"Do... do not... come close to me...!! Huh, my head... it hurts...",bc_map,0x00FF00;
  497. 'rgsr = 13;
  498. }
  499. end;
  500. OnFail:
  501. specialeffect EF_FREEZE;
  502. npctalk "Awesome-!! That's it... What did you do!!";
  503. mapannounce 'map$,"Awesome-!! That's it... What did you do!!",bc_map,0x00FF00;
  504. end;
  505. }
  506. 1@rgsr,144,180,0 script Control Device#rgsr0 4_ENERGY_BLUE,{
  507. if ('rgsr < 13) {
  508. mes "This device has an unknown purpose.";
  509. mes "There are four buttons in the room.";
  510. close;
  511. }
  512. .@index = atoi(replacestr(strnpcinfo(2),"rgsr",""));
  513. if (.@index > 0) {
  514. if (!'rsgr_c[ (.@index - 1) ]) {
  515. mes "This device has an unknown purpose.";
  516. mes "There are four buttons in the room.";
  517. next;
  518. select("Press the button.");
  519. donpcevent instance_npcname("Restrained Specimen#rgsr") + "::OnFail";
  520. close;
  521. }
  522. }
  523. if (!'rsgr_c[.@index]) {
  524. switch (.@index) {
  525. case 0: .@answer = 2; .@string$ = "three phases"; break;
  526. case 1: .@answer = 1; .@string$ = "two phases"; break;
  527. case 2: .@answer = 4; .@string$ = "one phase"; break;
  528. case 3: .@answer = 3;
  529. }
  530. mes "This device has an unknown purpose.";
  531. mes "There are four buttons in the room.";
  532. next;
  533. .@s = select("Red Button.:Blue Button.:White Button.:Yellow Button.");
  534. if (.@s != .@answer)
  535. donpcevent instance_npcname("Restrained Specimen#rgsr") + "::OnFail";
  536. else {
  537. specialeffect EF_BEGINSPELL3,AREA,instance_npcname("Restrained Specimen#rgsr");
  538. if (.@index < 3) {
  539. mapannounce 'map$,"Gravity control adjustment... completed... There are " + .@string$ +" remaining.",bc_map,0x0D98BA;
  540. 'rsgr_c[.@index] = 1;
  541. } else {
  542. 'rsgr_c[.@index] = 1;
  543. mapannounce 'map$,"Gravity control adjustment... completed... Restraints have been disengaged.",bc_map,0x0D98BA;
  544. sleep2 2500;
  545. donpcevent instance_npcname("#171_rgsr_control") + "::OnEvent04";
  546. }
  547. }
  548. close;
  549. }
  550. mes "This device has already been activated.";
  551. close;
  552. }
  553. 1@rgsr,108,168,0 duplicate(Control Device#rgsr0) Control Device#rgsr1 4_ENERGY_RED
  554. 1@rgsr,114,191,0 duplicate(Control Device#rgsr0) Control Device#rgsr2 4_ENERGY_WHITE
  555. 1@rgsr,143,168,0 duplicate(Control Device#rgsr0) Control Device#rgsr3 4_ENERGY_YELLOW
  556. 1@rgsr,127,164,3 script Aas#rgsr4 4_EP17_AS,{
  557. if ('rgsr != 15)
  558. end;
  559. cutin "ep171_as01",2;
  560. mes "[Aas]";
  561. mes "Est has handled everything else on the inside.";
  562. mes "Sorry for not being able to help you at all.";
  563. next;
  564. mes "[Aas]";
  565. mes "Let's go back to Einbroch.";
  566. mes "I'll... I'll go to my office and join you.";
  567. next;
  568. .@s = select("Move to Einbroch.:Move to Lighthalzen.:Stay for a while.");
  569. if (.@s == 3) {
  570. cutin "ep171_as02",2;
  571. mes "[Aas]";
  572. mes "Do you have anything else to investigate?";
  573. mes "I'll wait here.";
  574. close3;
  575. }
  576. mes "[Aas]";
  577. mes "We're going to wait for you in the Cat on Bullet.";
  578. mes "Please head there and meet us in the headquarters.";
  579. completequest 7862;
  580. close2;
  581. if (.@s == 1)
  582. warp "einbroch",301,324;
  583. else
  584. warp "lighthalzen",54,272;
  585. end;
  586. }
  587. //= Monster
  588. 1@rgsr,1,1,0 script #rgsr_mob_1 HIDDEN_WARP_NPC,{
  589. OnSummon:
  590. .@event$ = instance_npcname(strnpcinfo(0))+"::OnMobKill";
  591. setarray .@xy,
  592. 153,80,155,81,154,82, //= Bottom Right
  593. 138,85,136,87,138,89, //= Center Right
  594. 152,94,152,98,153,98, //= Stairs Right
  595. 145,114,151,114,156,114, //= Top Right
  596. 97,114,102,114,107,114, //= Top Left
  597. 102,98,101,96,101,95, //= Stairs Left
  598. 116,88,118,88,121,87, //= Center Left
  599. 117,101,117,101,117,102, //= Center Top
  600. 93,66,93,67,94,68, //= Bottom Door
  601. 58,65,56,57,44,59,31,53,15,55, //= Bottom Room
  602. 59,94,48,98,53,103,36,110,33,126,46,132,55,131; //= Upper Room
  603. for (.@i = 0; .@i < getarraysize(.@xy); .@i += 2)
  604. monster 'map$,.@xy[.@i],.@xy[.@i+1],"Special Guard",3627,1,.@event$;
  605. end;
  606. OnMobKill:
  607. .@event$ = instance_npcname(strnpcinfo(0))+"::OnMobKill";
  608. if (!mobcount('map$,.@event$) && 'rgsr == 1) {
  609. 'rgsr = 2;
  610. disablenpc();
  611. enablenpc instance_npcname("Access Controller#rgsr");
  612. }
  613. end;
  614. }
  615. 1@rgsr,1,1,0 script #rgsr_mob_2 HIDDEN_WARP_NPC,{
  616. OnSummon:
  617. setarray .@xy,102,137,104,136,104,135,126,139,138,137,139,134,137,133,151,135,150,136,151,137,85,151,82,215,84,216,84,218,107,216;
  618. setarray .@left_xy,85,170,54,186,55,183,58,181,59,186,62,183,62,216,59,214,56,217,54,214,52,217;
  619. setarray .@right_xy,167,136,167,135,168,135,208,138,208,134,203,138,200,134,187,123,188,
  620. 123,187,122,186,108,188,107,186,105,196,106,203,109,205,105,208,109,187,92,186,90,188,91,
  621. 187,69,187,67,188,67,201,74,202,77,207,76,211,74,187,48,188,45,186,46,197,45,202,45,208,42,211,42;
  622. setarray .@top_xy,169,217,169,214,172,217,172,214,176,217,176,214,180,217,180,214,184,217,184,214,167,204,168,203,168,203,167,176,167,176,166,175;
  623. for (.@i = 0; .@i < getarraysize(.@xy); .@i += 2)
  624. monster 'map$,.@xy[.@i],.@xy[.@i+1],"Special Guard",3627,1;
  625. for (.@i = 0; .@i < getarraysize(.@left_xy); .@i += 2)
  626. monster 'map$,.@left_xy[.@i],.@left_xy[.@i+1],"Poisonous Gas",20352,1,instance_npcname(strnpcinfo(0))+"::OnLeftKill";
  627. for (.@i = 0; .@i < getarraysize(.@right_xy); .@i += 2)
  628. monster 'map$,.@right_xy[.@i],.@right_xy[.@i+1],"Poisonous Gas",20352,1,instance_npcname(strnpcinfo(0))+"::OnRightKill";
  629. for (.@i = 0; .@i < getarraysize(.@top_xy); .@i += 2)
  630. monster 'map$,.@top_xy[.@i],.@top_xy[.@i+1],"Poisonous Gas",20352,1,instance_npcname(strnpcinfo(0))+"::OnTopKill";
  631. end;
  632. OnLeftKill:
  633. .@event$ = instance_npcname(strnpcinfo(0))+"::OnLeftKill";
  634. if (!mobcount('map$,.@event$)) {
  635. mapannounce 'map$,"Est : Who is it? Are you Aas? Are you the adventurer?",bc_map,0x0D98BA;
  636. enablenpc instance_npcname("Est#rgsr");
  637. enablenpc instance_npcname("Rebellion Crew#rgsr_dum01");
  638. }
  639. end;
  640. OnRightKill:
  641. OnTopKill:
  642. end;
  643. }
  644. 1@rgsr,1,1,0 script #rgsr_boss HIDDEN_WARP_NPC,{
  645. end;
  646. OnSummon:
  647. mapannounce 'map$,"Ahahaha.. ahahaha... I'll kill you all!!!!",bc_map,0x00FF00;
  648. sleep 2000;
  649. mapannounce 'map$,"Aas : What is going on? *click* The lock is...!!",bc_map;
  650. sleep 2000;
  651. mapannounce 'map$,"I'm not a defect! I'm not a monster!",bc_map,0x00FF00;
  652. specialeffect EF_LORD,AREA,instance_npcname("Restrained Specimen#rgsr");
  653. disablenpc instance_npcname("Restrained Specimen#rgsr");
  654. monster 'map$,125,188,"Failed Specimen",20353,1,instance_npcname(strnpcinfo(0))+"::OnBossKill";
  655. end;
  656. OnBossKill:
  657. if ('rgsr == 14) {
  658. 'rgsr = 15;
  659. hideonnpc instance_npcname("Aas#rgsr3");
  660. disablenpc instance_npcname("Aas#rgsr3");
  661. enablenpc instance_npcname("Aas#rgsr4");
  662. disablenpc();
  663. }
  664. end;
  665. }
  666. 1@rgsr,94,68,5 script #rgsr_touch_mob_0 3622,4,6,{
  667. end;
  668. OnTouch:
  669. disablenpc();
  670. .@v = atoi(replacestr(strnpcinfo(2),"rgsr_touch_mob_",""));
  671. if (!.@v)
  672. setarray .@xy,98,66,94,68,95,70,92,68;
  673. else
  674. setarray .@xy,91,91,91,93,95,93,94,97,97,92;
  675. for (.@i = 0; .@i < getarraysize(.@xy); .@i += 2)
  676. monster 'map$,.@xy[.@i],.@xy[.@i+1],"Special Guard",3622,1;
  677. end;
  678. }
  679. 1@rgsr,95,93,5 duplicate(#rgsr_touch_mob_0) #rgsr_touch_mob_1 3622,4,6
  680. //= Warp/Other
  681. 1@rgsr,59,136,0 warp #rgsr_warp_0 1,2,1@rgsr,66,136
  682. 1@rgsr,51,184,0 script #rgsr_warp_1 WARPNPC,1,2,{
  683. end;
  684. OnTouch:
  685. .@event$ = instance_npcname("#rgsr_mob_2")+"::OnLeftKill";
  686. if (mobcount('map$,.@event$)) {
  687. dispbottom "Voice Behind Door : Who's outside? exterminate that strange poison gas!!";
  688. end;
  689. }
  690. switch (atoi(replacestr(strnpcinfo(2),"rgsr_warp_",""))) {
  691. case 1: warp 'map$,46,184; break;
  692. case 2: warp 'map$,46,216; break;
  693. case 3: warp 'map$,54,184; break;
  694. case 4: warp 'map$,54,216;
  695. }
  696. end;
  697. }
  698. 1@rgsr,51,216,0 duplicate(#rgsr_warp_1) #rgsr_warp_2 WARPNPC,1,2
  699. 1@rgsr,49,184,0 duplicate(#rgsr_warp_1) #rgsr_warp_3 WARPNPC,1,2
  700. 1@rgsr,49,216,0 duplicate(#rgsr_warp_1) #rgsr_warp_4 WARPNPC,1,2
  701. 1@rgsr,186,216,0 script #rgsr_warp_5 WARPNPC,1,2,{
  702. .@event$ = instance_npcname("#rgsr_mob_2")+"::OnTopKill";
  703. if (mobcount('map$,.@event$)) {
  704. mes "An unknown entity has been detected. Access Denied.";
  705. close;
  706. }
  707. switch (atoi(replacestr(strnpcinfo(2),"rgsr_warp_",""))) {
  708. case 5: warp 'map$,191,216; break;
  709. case 6: warp 'map$,183,216;
  710. }
  711. end;
  712. }
  713. 1@rgsr,188,216,0 duplicate(#rgsr_warp_5) #rgsr_warp_6 WARPNPC,1,2
  714. 1@rgsr,214,136,0 script #rgsr_warp_7 WARPNPC,1,2,{
  715. .@event$ = instance_npcname("#rgsr_mob_2")+"::OnRightKill";
  716. if (mobcount('map$,.@event$) > 0 || 'rgsr < 7) {
  717. mes "An unknown entity has been detected. Access Denied.";
  718. close;
  719. }
  720. switch (atoi(replacestr(strnpcinfo(2),"rgsr_warp_",""))) {
  721. case 7: warp 'map$,219,136; break;
  722. case 8: warp 'map$,211,136; break;
  723. case 9: warp 'map$,219,108; break;
  724. case 10: warp 'map$,211,108; break;
  725. case 11: warp 'map$,219,76; break;
  726. case 12: warp 'map$,211,76; break;
  727. case 13: warp 'map$,219,44; break;
  728. case 14: warp 'map$,211,44;
  729. }
  730. end;
  731. }
  732. 1@rgsr,216,136,0 duplicate(#rgsr_warp_7) #rgsr_warp_8 WARPNPC,1,2
  733. 1@rgsr,214,108,0 duplicate(#rgsr_warp_7) #rgsr_warp_9 WARPNPC,1,2
  734. 1@rgsr,216,108,0 duplicate(#rgsr_warp_7) #rgsr_warp_10 WARPNPC,1,2
  735. 1@rgsr,214,76,0 duplicate(#rgsr_warp_7) #rgsr_warp_11 WARPNPC,1,2
  736. 1@rgsr,216,76,0 duplicate(#rgsr_warp_7) #rgsr_warp_12 WARPNPC,1,2
  737. 1@rgsr,214,44,0 duplicate(#rgsr_warp_7) #rgsr_warp_13 WARPNPC,1,2
  738. 1@rgsr,216,44,0 duplicate(#rgsr_warp_7) #rgsr_warp_14 WARPNPC,1,2
  739. 1@rgsr,37,126,0 script Researcher#rgsr_dum00 4_F_SCIENCE,{
  740. mes "[Detained Researcher]";
  741. mes "Why do I have to feed this traitors?";
  742. close;
  743. }
  744. 1@rgsr,35,136,7 script Researcher#rgsr_dum01 4_LGTSCIENCE,{
  745. mes "[Detained Researcher]";
  746. mes "I want to go home... I just want to go home...";
  747. close;
  748. }
  749. 1@rgsr,38,139,3 script Researcher#rgsr_dum02 4_M_NFMAN,{
  750. mes "[Detained Researcher]";
  751. mes "Are you here to save us?";
  752. mes "Thank you! Thank you!";
  753. close;
  754. }
  755. 1@rgsr,31,186,3 script Researcher#rgsr_dum03 4_LGTSCIENCE,{
  756. mes "[Detained Researcher]";
  757. mes "What the hell is happening?";
  758. mes "Aaaah... I just want to go home...";
  759. close;
  760. }
  761. 1@rgsr,24,186,5 script Researcher#rgsr_dum04 4_F_SCIENCE,{
  762. mes "[Detained Researcher]";
  763. mes "Why did you come here to save me?";
  764. mes "The Enterprise's guards... no wait...";
  765. next;
  766. mes "[Detained Researcher]";
  767. mes "I thought that you were the one who kept us in custody...!";
  768. mes "Why would they do that?";
  769. close;
  770. }
  771. 1@rgsr,25,182,7 script Researcher#rgsr_dum05 4_M_HUMAN_01,{
  772. mes "[Detained Researcher]";
  773. mes "These scumbags took my Research Report and I escaped here.";
  774. mes "It was a spray repellent to block blood-sucking insects!";
  775. next;
  776. mes "[Detained Researcher]";
  777. mes "That was my private research, I don't know why they took it!";
  778. mes "You can't just take away someone else's Research Report.";
  779. close;
  780. }
  781. 1@rgsr,40,186,3 script Rebellion Crew#rgsr_dum01 4_M_ILYA,{
  782. mes "[Rebellion Crew]";
  783. mes "I've come prepared, but this was easier than thought.";
  784. mes "Now I'm stuck here. Hehehehe!";
  785. close;
  786. }
  787. 1@rgsr,33,185,3 script Rebellion Crew#rgsr_dum02 4_M_REBELLION2,{
  788. mes "[Rebellion Crew]";
  789. mes "The remaining researchers are gathered here for their security.";
  790. mes "The Rebellions will protect them and help them escape.";
  791. close;
  792. }
  793. 1@rgsr,31,183,5 script Rebellion Crew#rgsr_dum03 4_F_ANYA,{
  794. mes "[Rebellion Crew]";
  795. mes "I thought they had less forces on the inside, but I didn't think they'd have installed toxic gas.";
  796. mes "Most people have fled already, only the enemies are remaining.";
  797. close;
  798. }
  799. 1@rgsr,195,205,0 script Research Report#rgsr_00 4_ENERGY_BLUE,{
  800. mes "It is a data on new efficiency and side effect of new potions.";
  801. mes "However there is information about the core ingredients.";
  802. close;
  803. }
  804. 1@rgsr,198,199,0 script Research Report#rgsr_01 4_ENERGY_BLUE,{
  805. mes "Some of the drawing has been torn.";
  806. mes "Somebody intentionally destroyed the relevant parts.";
  807. close;
  808. }
  809. 1@rgsr,207,210,0 script Research Report#rgsr_02 4_ENERGY_BLUE,{
  810. mes "Parts of the documents were severely damaged.";
  811. mes "It seems to have been about attempting to create a device using the refraction of light.";
  812. close;
  813. }
  814. 1@rgsr,226,226,0 script Research Report#rgsr_03 4_ENERGY_BLUE,{
  815. mes "Lloyds's enchantment and processing data.";
  816. mes "Only the title was left, all the text was removed.";
  817. close;
  818. }
  819. 1@rgsr,231,223,0 script Research Report#rgsr_04 4_ENERGY_BLUE,{
  820. mes "The booklet is missing some pages. Someone has deliberately omitted the material.";
  821. close;
  822. }
  823. 1@rgsr,243,223,0 script Research Report#rgsr_05 4_ENERGY_BLUE,{
  824. mes "The experimental data has been removed. There are clear traces of someone destroying the information.";
  825. close;
  826. }