DevilTower.txt 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207
  1. //===== rAthena Script =======================================
  2. //= Devil Tower
  3. //===== Description: =========================================
  4. //= [Walkthrough Conversion]
  5. //= Devil Tower Instance
  6. //===== Changelogs: ==========================================
  7. //= 1.0 First version. [Capuche]
  8. //============================================================
  9. dali02,134,119,5 script Historian Shep#tnm01 4_F_NOVICE,{
  10. if (BaseLevel < 130) {
  11. mes "[Shep]";
  12. mes "Are you volunteering to explore the Devil's Tower?";
  13. mes "It's extremely dangerous so you need to be at least ^4d4dffLevel 130^000000.";
  14. next;
  15. mes "[Shep]";
  16. mes "Will you come back when you get stronger?";
  17. mes "You know what I mean right?";
  18. close;
  19. }
  20. switch( checkquest(7577,PLAYTIME) ) {// daily timer
  21. case -1:
  22. break;
  23. case 0:
  24. case 1:
  25. mes "[Shep]";
  26. mes "You want to explore again so soon?";
  27. mes "Your body needs to recover from the time traveling.";
  28. next;
  29. mes "[Shep]";
  30. mes "Take a rest day and come back tomorrow.!";
  31. mes "You understand?";
  32. close;
  33. case 2:
  34. mes "[Shep]";
  35. mes "Have you rested long enough?";
  36. mes "I am scheduled to explore today!";
  37. mes "I have always been waiting for a member of the expedition!";
  38. erasequest 7577;// Space distortion
  39. devil_tower_can_reenter = 0;
  40. devil_tower_enter = 0;
  41. next;
  42. mes "!- Notice -!";
  43. mes "You can now re-enter the Devil's Tower.";
  44. close;
  45. }
  46. if (isbegin_quest(7576) > 0) {// instance completed
  47. mes "[Shep]";
  48. mes "So time and space seem to have converged there?";
  49. mes "I'm amazed that time travel is possible.";
  50. next;
  51. mes "[Shep]";
  52. mes "This is all you have.";
  53. mes "You did a good job.";
  54. mes "I look forward to more discoveries!";
  55. setquest 7577;// Space distortion
  56. erasequest 7568;// Explore the tower
  57. erasequest 7571;// Tower Expedition
  58. erasequest 7574;// Thanatos Tower
  59. erasequest 7576;// Morocc castle seal
  60. getexp 450000,450000;
  61. devil_tower_can_reenter = 0;
  62. devil_tower_enter = 0;
  63. mes "Please come back tomorrow!";
  64. close;
  65. }
  66. if (isbegin_quest(7574) > 0) {// failed after seal
  67. mes "[Shep]";
  68. mes "Oh, you are back so soon...";
  69. mes "Ok, I see what happened.";
  70. next;
  71. mes "[Shep]";
  72. mes "This is all you have.";
  73. mes "You did a good job.";
  74. mes "I look forward to more discoveries!";
  75. setquest 7577;// Space distortion
  76. erasequest 7568;// Explore the tower
  77. erasequest 7571;// Tower Expedition
  78. erasequest 7574;// Thanatos Tower
  79. getexp 300000,300000;
  80. devil_tower_can_reenter = 0;
  81. devil_tower_enter = 0;
  82. mes "Please come back tomorrow!";
  83. close;
  84. }
  85. if (isbegin_quest(7571) > 0) {// failed at stair 2 tnm1
  86. mes "[Shep]";
  87. mes "Oh, you are back.";
  88. mes "Let me see... you mean this tower has a passage to connect to the demon world.";
  89. next;
  90. mes "[Shep]";
  91. mes "This is all you have.";
  92. mes "You did a good job.";
  93. mes "I look forward to more discoveries!";
  94. setquest 7577;// Space distortion
  95. erasequest 7568;// Explore the tower
  96. erasequest 7571;// Tower Expedition
  97. if (isbegin_quest(7572)) erasequest 7572;// Lucile...?
  98. if (isbegin_quest(7573)) erasequest 7573;// Magic Swordman Thanatos
  99. getexp 200000,200000;
  100. devil_tower_can_reenter = 0;
  101. devil_tower_enter = 0;
  102. mes "Please come back tomorrow!";
  103. close;
  104. }
  105. switch( checkquest(7568,PLAYTIME) ) {// entrance timer - 1h30 to enter
  106. case -1:
  107. mes "[Shep]";
  108. mes "Are you volunteering to explore the Devil's Tower? I have been waiting for someone like you!";
  109. next;
  110. mes "[Shep]";
  111. mes "Finally, someone to share the mysteries of the tower for me.";
  112. mes "No one has been volunteering up this point so I was getting worried.";
  113. next;
  114. mes "[Shep]";
  115. mes "Please report anything you find in the tower to me.";
  116. mes "The better the info~ the better the zeny I'll pay you!";
  117. next;
  118. mes "[Shep]";
  119. mes "That Laphine scholar over there will open up the dimensional gap with this time device.";
  120. mes "It is still unstable so your time for exploring will be limited.";
  121. next;
  122. mes "[Shep]";
  123. mes "If you are unexpectedly bounced back to here again, you should return quickly.";
  124. mes "If you do you may or may not be able to re-enter depending on how fast you are.";
  125. next;
  126. mes "[Shep]";
  127. mes "But if you run out of time, the access to the tower will disappear.";
  128. mes "So do you want to volunteer?";
  129. next;
  130. if (select( "Volunteer", "No Thanks" ) == 2) {
  131. mes "[Shep]";
  132. mes "Oh that's too bad";
  133. mes "There is nothing I can do I guess.";
  134. mes "I'll just find someone else...";
  135. close;
  136. }
  137. mes "[Shep]";
  138. mes "Thank you.";
  139. mes "Okay, gather your party and remember to report to me what you find.";
  140. next;
  141. mes "[Shep]";
  142. mes "^4d4dffExploring time limit is for your safety^000000!";
  143. setquest 7568;// Explore the tower
  144. close;
  145. case 0:
  146. case 1:
  147. if (devil_tower_can_reenter == 0)// player can re-enter
  148. break;
  149. // fall through
  150. case 2:
  151. mes "[Shep]";
  152. mes "You seem to be late.";
  153. mes "You took an extraordinarily long time.";
  154. mes ".....";
  155. mes "I can't use any of your info.";
  156. next;
  157. mes "[Shep]";
  158. mes "There is nothing we can do .";
  159. mes "There's always opportunities for other expeditions.";
  160. setquest 7577;// Space distortion
  161. erasequest 7568;
  162. if (isbegin_quest(7569)) erasequest 7569;// Treat the injured
  163. if (isbegin_quest(7570)) erasequest 7570;// Destroy the demons
  164. devil_tower_can_reenter = 0;
  165. devil_tower_enter = 0;
  166. close;
  167. }
  168. mes "[Shep]";
  169. mes "First of all, you need to reserve a queue at the gate.";
  170. mes "The Laphine Scholar Artie will reserve your queue for you.";
  171. next;
  172. mes "[Shep]";
  173. mes "Time is limited because the dimensional gap is still unstable.";
  174. mes "Make your exploration short and sweet.";
  175. next;
  176. mes "[Shep]";
  177. mes "Rewards will be different depending on your time.";
  178. mes "Good luck!";
  179. next;
  180. if (select( "Trust me!", "Cancel my reservation" ) == 1) {
  181. mes "[Shep]";
  182. mes "I believe that you can manage under these restrictions.";
  183. mes "I believe in you!";
  184. close;
  185. }
  186. if (devil_tower_enter == 1) {
  187. mes "[Shep]";
  188. mes "You seem to be tired of exploring.";
  189. mes "^4d4dffIf you cancel now. You will be able to challenge one day after.^000000";
  190. mes "Is that okay?";
  191. next;
  192. if (select( "Yes Cancel.", "Wait, don't cancel!" ) == 2) {
  193. mes "[Shep]";
  194. mes "Ok, I won't cancel.";
  195. close;
  196. }
  197. mes "[Shep]";
  198. mes "Really.";
  199. mes "then, come back tomorrow.";
  200. setquest 7577;// Space distortion
  201. erasequest 7568;
  202. if (isbegin_quest(7569)) erasequest 7569;// Treat the injured
  203. if (isbegin_quest(7570)) erasequest 7570;// Destroy the demons
  204. devil_tower_enter = 0;
  205. devil_tower_can_reenter = 0;
  206. close;
  207. }
  208. mes "[Shep]";
  209. mes "Really?";
  210. mes "After listening to all this explanation?";
  211. erasequest 7568;// Explore the tower
  212. close;
  213. }
  214. dali02,137,121,3 script Magic Scholar Artie#tnm 4_M_FAIRYKID6,{
  215. .@party_id = getcharid(1);
  216. if (.@party_id == 0) {
  217. mes "[Artie]";
  218. mes "let's have fun since we just left bifrost.";
  219. mes "No?";
  220. mes "you are applying as a volunteer?";
  221. mes "You'd better gather a party for this expedition.";
  222. next;
  223. mes "[Artie]";
  224. mes "Don't take any unncessary risks, okay?";
  225. close;
  226. }
  227. if (is_party_leader() == false) {
  228. mes "[Artie]";
  229. mes "Bring the Expedition Chief.";
  230. mes "Devil's Tower is not a place to visit alone.";
  231. mes "Bring the manager.";
  232. close;
  233. }
  234. if (devil_tower_enter == 1) {
  235. mes "[Artie]";
  236. mes "You have already entered by connecting it.";
  237. mes "Connect to the space again? I can not do that.";
  238. close;
  239. }
  240. switch( checkquest(7568,PLAYTIME) ) {
  241. case 0:
  242. case 1:
  243. break;
  244. case -1:
  245. case 2:
  246. mes "[Artie]";
  247. mes "Hrm... It is difficult to connect to unless it is an appointed exploration time.";
  248. mes "Not to mention dangerous as well.";
  249. close;
  250. }
  251. mes "[Artie]";
  252. mes "Are you a volunteer to explore the Devil's Tower?";
  253. mes "Do you want me to activate the Dimensional Device?";
  254. next;
  255. mes "[Artie]";
  256. mes "Decide quickly because you only have a finite amount of time in there.";
  257. next;
  258. if (select( "Yes, activate the device.", "Wait for a minute." ) == 2) {
  259. mes "[Artie]";
  260. mes "Your time to explore is dwindling.";
  261. mes "Time is very important.";
  262. mes "What are you waiting for?";
  263. close;
  264. }
  265. mes "[Artie]";
  266. mes "The Dimensional Device is activated.";
  267. mes "If you're lucky, you can get through this quickly.";
  268. mes "I look forward to hearing good news.";
  269. instance_create("Devil's Tower");
  270. close;
  271. }
  272. dali02,141,120,3 script Dimensional Device#tnm0 PORTAL,{
  273. if (devil_tower_can_reenter == 1) {// can't re-enter
  274. mes "[Artie]";
  275. mes "Hey, Hey";
  276. mes "It is difficult to send to you through the device right now.";
  277. mes "We should stop exploring today and let's go again another day.";
  278. close;
  279. }
  280. switch( checkquest(7568,PLAYTIME) ) {
  281. case 0:
  282. case 1:
  283. break;
  284. case -1:
  285. case 2:
  286. mes "[Artie]";
  287. mes "Look, I am sorry but it is not allowed to enter except during the allowed time, Devil's Tower is dangerous.";
  288. close;
  289. }
  290. mes "[Artie]";
  291. mes "Yes, this is the Dimensional Device.";
  292. mes "It is used to travel time.";
  293. mes "It will be difficult to enter again if you leave.";
  294. next;
  295. mes "[Artie]";
  296. mes "Don't worry though, I'm a genius scholar~";
  297. mes "Anyway, ready to enter?";
  298. next;
  299. if (select( "Enter the device.", "Stop." ) == 2) {
  300. mes "[Artie]";
  301. mes "Right.";
  302. mes "It seems like quite a long time has passed since you activated the device. Am I right?";
  303. close;
  304. }
  305. .@md_name$ = "Devil's Tower";
  306. switch( instance_enter(.@md_name$) ) {
  307. case IE_OTHER:
  308. mes "An unknown error occurred.";
  309. close;
  310. case IE_NOINSTANCE:
  311. mes "[Shep]";
  312. mes "The Dimensional Device needs to be activated first before entering.";
  313. mes "It doesn't seem to be activated yet.";
  314. next;
  315. mes "[Shep]";
  316. mes "Please get a permission to activate it by talking to the Magic Scholar Artie.";
  317. close;
  318. case IE_NOMEMBER:
  319. mes "[Artie]";
  320. mes "Exploring Devil's Tower will be permitted only for expeditions in parties.";
  321. mes "Make sure you are ready.";
  322. close;
  323. case IE_OK:
  324. mapannounce "dali02", "Party member " + strcharinfo(0) + " of party's " + getpartyname( getcharid(1) ) + " enters Room " + .@md_name$ + "", bc_map,0xFF99;
  325. // warp "1@tnm1",50,104;
  326. devil_tower_enter = 1;
  327. end;
  328. }
  329. }
  330. dali02,134,112,3 script #tnmtks01 HIDDEN_WARP_NPC,3,3,{
  331. end;
  332. OnTouch_:
  333. disablenpc "#tnmtks01";
  334. initnpctimer;
  335. end;
  336. OnTimer1000:
  337. npctalk "Artie: Hey, you! How is your research going?", "Magic Scholar Artie#tnm";
  338. end;
  339. OnTimer3000:
  340. npctalk "Shep: Who are you calling hey you? You're just a dusty little fairy!", "Historian Shep#tnm01";
  341. end;
  342. OnTimer6000:
  343. npctalk "Artie: A dusty little what? I'll have you know, I have superior genes to your species you ape!", "Magic Scholar Artie#tnm";
  344. end;
  345. OnTimer9000:
  346. npctalk "Shep: What do I care what you say? Even our kids are bigger than you tiny little fairies!", "Historian Shep#tnm01";
  347. end;
  348. OnTimer12000:
  349. npctalk "Shep: Think you're so big just because you're a magic scholar huh?", "Historian Shep#tnm01";
  350. end;
  351. OnTimer14000:
  352. npctalk "Artie: You know nothing human. Remind me again who found this tower entrance?", "Magic Scholar Artie#tnm";
  353. end;
  354. OnTimer18000:
  355. npctalk "Shep: *Sigh*... Y....You did.", "Historian Shep#tnm01";
  356. end;
  357. OnTimer21000:
  358. npctalk "Artie: Y....You? Did I stutter? And who solved the formula calculating the dimensional gap connected to the tower?", "Magic Scholar Artie#tnm";
  359. end;
  360. OnTimer24000:
  361. npctalk "Shep: Yes, yes it was you!", "Historian Shep#tnm01";
  362. end;
  363. OnTimer27000:
  364. npctalk "Artie: So I take it you're no longer questioning how smart I am right?", "Magic Scholar Artie#tnm";
  365. end;
  366. OnTimer30000:
  367. npctalk "Shep: Alright, alright. I need an adventurer to explore the tower for us.", "Historian Shep#tnm01";
  368. end;
  369. OnTimer33000:
  370. npctalk "Shep: No one has volunteered because everyone says it's too dangerous!", "Historian Shep#tnm01";
  371. end;
  372. OnTimer36000:
  373. npctalk "Artie: No volunteers? Come on. Harness your motivational skills and find someone.", "Magic Scholar Artie#tnm";
  374. end;
  375. OnTimer37000:
  376. emotion ET_KIK, getnpcid(0, "Magic Scholar Artie#tnm");
  377. end;
  378. OnTimer39000:
  379. npctalk "Shep: Hello!!! Now recruiting new members to exploring the Devil's Tower!", "Historian Shep#tnm01";
  380. end;
  381. OnTimer42000:
  382. npctalk "Shep: Please come! Now's your chance to possibly come face to face with the infamous minions of Satan Morocc himself!", "Historian Shep#tnm01";
  383. end;
  384. OnTimer45000:
  385. npctalk "Artie: You sure that's the right thing to say? Maybe your recruiting tactics need refining...", "Magic Scholar Artie#tnm";
  386. stopnpctimer;
  387. enablenpc "#tnmtks01";
  388. end;
  389. }
  390. // Entrance
  391. 1@tnm1,50,104,0 script #event01 HIDDEN_WARP_NPC,1,1,{
  392. end;
  393. OnTouch:
  394. disablenpc instance_npcname("#event01");
  395. initnpctimer;
  396. end;
  397. OnTimer2000:
  398. npctalk "Officer Heim: This is an emergency.. How things are going?", instance_npcname("Officer Heim#heim0");
  399. end;
  400. OnTimer5000:
  401. npctalk "A tirailleur: Next floor is the highest one... but there are so many demons...", instance_npcname("A tirailleur#tnm01");
  402. end;
  403. OnTimer6000:
  404. emotion ET_THINK, getnpcid(0, instance_npcname("Officer Heim#heim0"));
  405. end;
  406. OnTimer8000:
  407. npctalk "A tirailleur: It is impossible to break through with the number of our people.", instance_npcname("A tirailleur#tnm01");
  408. emotion ET_PROFUSELY_SWEAT, getnpcid(0, instance_npcname("A tirailleur#tnm01"));
  409. end;
  410. OnTimer11000:
  411. npctalk "Officer Heim: How many soldiers have survived now? When is the support team arriving?", instance_npcname("Officer Heim#heim0");
  412. end;
  413. OnTimer12000:
  414. emotion ET_THINK, getnpcid(0, instance_npcname("An aide#tnm02"));
  415. end;
  416. OnTimer16000:
  417. npctalk "An aide: There aren't enough to call in...", instance_npcname("An aide#tnm02");
  418. end;
  419. OnTimer17000:
  420. npctalk "An aide: The good news is the demons have stopped attacking.", instance_npcname("An aide#tnm02");
  421. end;
  422. OnTimer21000:
  423. npctalk "Officer Heim: We can't just be stuck here and can go further. Why did the demons stop attacking ?", instance_npcname("Officer Heim#heim0");
  424. end;
  425. OnTimer24000:
  426. npctalk "A tirailleur: It seems like there is something going on up there...", instance_npcname("A tirailleur#tnm01");
  427. end;
  428. OnTimer26000:
  429. disablenpc instance_npcname("Officer Heim#heim0");
  430. enablenpc instance_npcname("Officer Heim#heim");
  431. npctalk "Officer Heim: Who are you?", instance_npcname("Officer Heim#heim");
  432. stopnpctimer;
  433. end;
  434. }
  435. 1@tnm1,57,112,5 script Officer Heim#heim0 4_TOWER_05,{ end; }
  436. 1@tnm1,56,110,3 script Officer Heim#heim 4_TOWER_05,{
  437. if (is_party_leader() == false) {
  438. mes "[Officer Heim]";
  439. mes "Who brought you all here?";
  440. mes "I will talk to a representative.";
  441. close;
  442. }
  443. switch('devil_tower) {
  444. case 0:
  445. mes "[Officer Heim]";
  446. mes "Back up soldiers? So why are you just standing there?";
  447. npctalk "Officer Heim: Back up soldiers? So why are you just standing there?";
  448. next;
  449. select("Right now?");
  450. if (is_party_leader() == true && 'devil_tower == 0) {
  451. enablenpc instance_npcname("Healer Fama#feima");
  452. 'devil_tower = 1;
  453. }
  454. mes "[Healer Fama]";
  455. mes "Commander please help me. I can't do it by myself~!";
  456. npctalk "Healer Fama: Commander please help me. I can't do it by myself~!", instance_npcname("Healer Fama#feima");
  457. next;
  458. mes "[Officer Heim]";
  459. mes "Do you hear that?";
  460. mes "Help Fama take care of the injured soldiers.";
  461. mes "Fama will give you first aid-kits, use it to help the injured people.";
  462. // close2;// still attached
  463. npctalk "Officer Heim: Do you hear that?";
  464. sleep2 2000;
  465. npctalk "Officer Heim: Help Fama take care of the injured soldiers.";
  466. sleep2 2000;
  467. npctalk "Healer Fama: Okay~ You are going to help me? Come here and receive the first aid kit~!";
  468. end;
  469. case 1:
  470. mes "[Officer Heim]";
  471. mes "It is priority to treat the injured soldiers by assisting Fama.";
  472. mes "Please do your best even if the environment is the worst.";
  473. close;
  474. default:
  475. mes "[Officer Heim]";
  476. mes "Luckily, no one is dead yet.";
  477. mes "I do not want to see my soldiers die.";
  478. close;
  479. }
  480. }
  481. 1@tnm1,47,109,3 script Healer Fama#feima 4_TOWER_10,{
  482. if ('devil_tower == 1) {
  483. if (countitem(7641) < 1) {
  484. mes "[Healer Fama]";
  485. mes "Please cure the injured with this first aid kit.";
  486. mes "It's not difficult. Just follow the instructions.";
  487. next;
  488. mes "[Healer Fama]";
  489. mes "We are low on supplies. So I will give them once at a time.";
  490. mes "Sorry, please request again if you run out.";
  491. if ('devil_tower == 1)
  492. getitem 7641,1;// Medical_Cure_Box
  493. close;
  494. }
  495. mes "[Healer Fama]";
  496. mes "Sorry... procurement is not good right now so I can only provide one first-aid kit at a time.";
  497. mes "Please request again if you run out.";
  498. close;
  499. }
  500. mes "[Healer Fama]";
  501. mes "Huh... Okay, we can take a break now.";
  502. mes "Thank you very much!";
  503. close;
  504. }
  505. 1@tnm1,39,114,3 script Injured Soldier#1_1 4_TOWER_01,3,3,{
  506. if ('devil_tower != 1)
  507. end;
  508. if (countitem(7641) < 1) {
  509. mes "I need 1 first-aid-kit to treat the injured soldier.";
  510. close;
  511. }
  512. mes "This soldier has lost consciousness and groaning.";
  513. mes "Should I use the first-aid kit?";
  514. next;
  515. if (select( "Use first-aid kit.", "Observe condition." ) == 2) {
  516. mes "You decide to observe the condition of the injured soldier more.";
  517. close;
  518. }
  519. mes "You administer the first-aid-kit to the soldier.";
  520. next;
  521. specialeffect EF_SPHERE;
  522. // progressbar "000000",10; // fix me: progressbar doesn't display close button on cancel
  523. if ('devil_tower == 1) {
  524. delitem 7641,1;
  525. specialeffect EF_ENTRY;
  526. disablenpc instance_npcname( strnpcinfo(0) );
  527. enablenpc instance_npcname( strnpcinfo(1) + "#" + replacestr( strnpcinfo(2), "_1", "" ) );
  528. specialeffect EF_ENTRY,AREA, instance_npcname( strnpcinfo(1) + "#" + replacestr( strnpcinfo(2), "_1", "" ) );
  529. mes "It worked.";
  530. 'heal_count++;
  531. if ('heal_count == 7) {
  532. 'devil_tower = 2;
  533. npctalk "Healer Fama: Assassins?!", instance_npcname("Healer Fama#feima");
  534. enablenpc instance_npcname("Lucile#tnm01");
  535. enablenpc instance_npcname("Magic Swordman#tnm01");
  536. enablenpc instance_npcname("Assassin Huey#tnm01");
  537. enablenpc instance_npcname("Assassin Louie#tnm01");
  538. }
  539. }
  540. close;
  541. OnTouch:
  542. .@num = atoi( replacestr( strnpcinfo(2), "_1", "" ) );
  543. if (.@num == 1)
  544. npctalk "Injured Soldier: groaning....";
  545. else if (.@num == 2)
  546. npctalk "Injured Soldier: Owww...";
  547. else if (.@num == 3)
  548. npctalk "Injured Soldier: .... aah.. aah..";
  549. else if (.@num == 4)
  550. npctalk "Injured Soldier: Owww...";
  551. else if (.@num == 5)
  552. npctalk "Injured Soldier: I do not want to die...";
  553. else if (.@num == 6)
  554. npctalk "Injured Soldier: Owww~";
  555. else
  556. npctalk "Injured Soldier: Groaning...";
  557. end;
  558. }
  559. 1@tnm1,30,120,3 duplicate(Injured Soldier#1_1) Injured Soldier#2_1 4_TOWER_03,3,3
  560. 1@tnm1,25,117,5 duplicate(Injured Soldier#1_1) Injured Soldier#3_1 4_TOWER_06,3,3
  561. 1@tnm1,19,118,4 duplicate(Injured Soldier#1_1) Injured Soldier#4_1 4_TOWER_08,3,3
  562. 1@tnm1,18,110,4 duplicate(Injured Soldier#1_1) Injured Soldier#5_1 4_TOWER_11,3,3
  563. 1@tnm1,24,104,7 duplicate(Injured Soldier#1_1) Injured Soldier#6_1 4_TOWER_13,3,3
  564. 1@tnm1,31,110,3 duplicate(Injured Soldier#1_1) Injured Soldier#7_1 4_TOWER_03,3,3
  565. 1@tnm1,39,114,3 script Injured Soldier#1 4_TOWER_02,{
  566. mes "[Injured soldiers]";
  567. mes "whew.. it seems to be okay now.";
  568. mes "Thank you.";
  569. close;
  570. }
  571. 1@tnm1,30,120,3 script Injured Soldier#2 4_TOWER_04,{
  572. mes "[Injured soldiers]";
  573. mes "Groaning... Just let me die.";
  574. mes "No it hurts too much.";
  575. close;
  576. }
  577. 1@tnm1,25,117,5 script Injured Soldier#3 4_TOWER_07,{
  578. mes "[Injured soldiers]";
  579. mes "His conscious seems to be blur still.";
  580. mes "Leave him to get some rest.";
  581. close;
  582. }
  583. 1@tnm1,19,118,4 script Injured Soldier#4 4_TOWER_09,{
  584. mes "[Injured soldiers]";
  585. mes "I thought I was going to die.";
  586. mes "But I'm alive!";
  587. close;
  588. }
  589. 1@tnm1,18,110,4 script Injured Soldier#5 4_TOWER_12,{
  590. mes "[Injured soldiers]";
  591. mes "I can't die here. I have to propose to my beloved when I get home.";
  592. mes "We will be happy for sure?";
  593. close;
  594. }
  595. 1@tnm1,24,104,7 script Injured Soldier#6 4_TOWER_14,{
  596. mes "[Injured soldiers]";
  597. mes "I feel much better but I still can't move.";
  598. mes "Still I'm lucky to be alive.";
  599. close;
  600. }
  601. 1@tnm1,31,110,3 script Injured Soldier#7 4_TOWER_04,{
  602. mes "[Injured soldiers]";
  603. mes "Thank you.. Thank you..";
  604. close;
  605. }
  606. 1@tnm1,61,110,3 script An aide#tnm02 4_M_MOCASS2,{
  607. mes "[An aide]";
  608. mes "The calamity that happened hundreds of years ago will not happen again right?";
  609. mes "Why have the demons showed up again so suddenly?";
  610. close;
  611. }
  612. 1@tnm1,61,113,3 script A tirailleur#tnm01 4_M_MOCASS1,{
  613. mes "[A tirailleur]";
  614. mes "Are you a member of back-up team?";
  615. mes "Good. things are getting worse here.";
  616. mes "Glad that you all are here to help.";
  617. close;
  618. }
  619. 1@tnm1,46,105,5 script Lucile#tnm01 4_F_LUCILE,{
  620. if (is_party_leader() == false) {
  621. cutin "tnm_lucile01.bmp",2;
  622. mes "[Lucile]";
  623. mes "Who is in charge of the back-up team?";
  624. close3;
  625. }
  626. if ('devil_tower == 2) {
  627. .@lucile$ = instance_npcname("Lucile#tnm01");
  628. .@heim$ = instance_npcname("Officer Heim#heim");
  629. 'devil_tower = 3;
  630. mes ""; // todo fix me "workinprogress"
  631. cutin "tnm_lucile01.bmp",2;
  632. sleep2 1500;
  633. npctalk "Lucile: I am Lucile from the Assassin Guild.", .@lucile$;
  634. sleep2 2000;
  635. npctalk "Officer Heim: Our back-up is from the Assassin Guild? Thanks for arriving in time.", .@heim$;
  636. sleep2 3000;
  637. npctalk "Lucile: The situation doesn't seem to be good.", .@lucile$;
  638. sleep2 3000;
  639. npctalk "Lucile: What happened to the brave knights of Prontera?", .@lucile$;
  640. sleep2 3000;
  641. npctalk "Officer Heim: Are you mocking me?", .@heim$;
  642. sleep2 3000;
  643. npctalk "Lucile: Not at all. I really want to know. What's going on upstairs?", .@lucile$;
  644. sleep2 2500;
  645. emotion ET_OHNO, getnpcid(0, .@heim$);
  646. sleep2 1000;
  647. npctalk "Officer Heim: How did you know that? Yes, the demons have stopped their attack from upstairs.", .@heim$;
  648. sleep2 3000;
  649. emotion ET_SMILE, getnpcid(0, .@lucile$);
  650. npctalk "Lucile: What do you think about the situation Magic Swordman?", .@lucile$;
  651. cutin "tnm_lucile01.bmp",0;
  652. sleep2 3000;
  653. npctalk "Magic swordman: Hmm, I will go and investigate.", instance_npcname("Magic Swordman#tnm01");
  654. cutin "tnm_loki.bmp",2;
  655. sleep2 2000;
  656. cutin "",255;
  657. disablenpc instance_npcname("Magic Swordman#tnm01");
  658. sleep2 1000;
  659. npctalk "Lucile: How are you so fast?", .@lucile$;
  660. cutin "tnm_lucile01.bmp",2;
  661. sleep2 2000;
  662. npctalk "Officer Heim: What are you doing? If you go alone you will be killed!", .@heim$;
  663. sleep2 3000;
  664. npctalk "Lucile: I won't be alone. There are still some uninjured soldiers!", .@lucile$;
  665. sleep2 2500;
  666. npctalk "Lucile: All right, I will ask you to be my back up. Hahaha right Dewey?", .@lucile$;
  667. sleep2 500;
  668. enablenpc instance_npcname("Assassin Dewey#tnm01");
  669. enablenpc instance_npcname("#tnm1stepmob");
  670. npctalk "Dewey: Okay, I will.", instance_npcname("Assassin Dewey#tnm01");
  671. 'devil_tower = 4;
  672. sleep2 500;
  673. cutin "",255;
  674. disablenpc .@lucile$;
  675. disablenpc instance_npcname("Assassin Huey#tnm01");
  676. disablenpc instance_npcname("Assassin Louie#tnm01");
  677. sleep2 2000;
  678. npctalk "Officer Heim: They are so unpredictable. You know what is going on right? Back them up...", .@heim$;
  679. sleep2 2500;
  680. npctalk "Officer Heim: Help us take care of the demons coming down from upstairs.", .@heim$;
  681. end;
  682. }
  683. }
  684. 1@tnm1,52,104,2 duplicate(Officer Heim#heim0) Magic Swordman#tnm01 4_M_ROKI
  685. 1@tnm1,42,104,4 duplicate(Officer Heim#heim0) Assassin Huey#tnm01 4_TOWER_15
  686. 1@tnm1,44,101,5 duplicate(Officer Heim#heim0) Assassin Louie#tnm01 4_M_ACROSS
  687. 1@tnm1,70,108,3 script Assassin Dewey#tnm01 4_M_ACROSS,{
  688. if ('devil_tower < 4)
  689. end;
  690. if (isbegin_quest(7569) == 0)
  691. setquest 7569;// Treat the injured
  692. if (isbegin_quest(7570) == 0)
  693. setquest 7570;// Destroy the demons
  694. mes "[Dewey]";
  695. mes "I will guide you to the upper floor.";
  696. mes "Do not forget to get rid of any demons that you encounter on the way.";
  697. next;
  698. if (select( "Move now", "I need more time to prepare." ) == 2) {
  699. mes "[Dewey]";
  700. mes "Be prepared for anything.";
  701. close;
  702. }
  703. mes "[Dewey]";
  704. mes "Travel carefully.";
  705. close2;
  706. warp 'map_tnm1$,91,23;
  707. devil_tower_can_reenter = 1;// nb. different from official (condition overcomplicated)
  708. end;
  709. }
  710. // Stairs tnm1
  711. // spawn inaccurate
  712. 1@tnm1,91,23,0 script #tnm1stepmob HIDDEN_WARP_NPC,1,1,{
  713. end;
  714. OnTouch:
  715. if ('devil_tower != 4)
  716. end;
  717. disablenpc instance_npcname("#tnm1stepmob");
  718. enablenpc instance_npcname("Assassin Louie#tnm02");
  719. enablenpc instance_npcname("Lucile#tnm02");
  720. initnpctimer;
  721. monster 'map_tnm1$,99,24,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  722. 'mob_id = $@mobid[0];
  723. end;
  724. OnTimer2000:
  725. if (unitexists('mob_id) == true)
  726. unittalk 'mob_id, "What is this? A human? How dare they must have lost their minds!";
  727. end;
  728. OnTimer5000:
  729. monster 'map_tnm1$,103,21,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  730. unittalk $@mobid[0], "Did you make a resolution?";
  731. monster 'map_tnm1$,103,26,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  732. unittalk $@mobid[0], "Ha ha ha ha....Let's fight..!!!";
  733. end;
  734. OnTimer11000:
  735. monster 'map_tnm1$,106,25,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  736. monster 'map_tnm1$,106,27,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  737. monster 'map_tnm1$,110,20,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  738. monster 'map_tnm1$,112,24,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  739. monster 'map_tnm1$,107,22,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  740. monster 'map_tnm1$,114,24,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  741. end;
  742. OnTimer17000:
  743. monster 'map_tnm1$,120,20,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  744. monster 'map_tnm1$,122,23,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  745. end;
  746. OnTimer23000:
  747. monster 'map_tnm1$,116,25,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  748. monster 'map_tnm1$,116,21,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  749. end;
  750. OnTimer29000:
  751. monster 'map_tnm1$,134,21,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  752. monster 'map_tnm1$,130,25,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  753. monster 'map_tnm1$,129,27,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  754. monster 'map_tnm1$,120,27,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  755. monster 'map_tnm1$,118,22,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  756. end;
  757. OnTimer35000:
  758. monster 'map_tnm1$,138,27,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  759. monster 'map_tnm1$,144,23,"Evil Shadow",2939,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW1
  760. monster 'map_tnm1$,129,20,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  761. end;
  762. OnTimer41000:
  763. monster 'map_tnm1$,140,24,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  764. monster 'map_tnm1$,144,20,"Evil Shadow",2940,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW2
  765. monster 'map_tnm1$,130,27,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  766. monster 'map_tnm1$,127,24,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  767. monster 'map_tnm1$,142,27,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  768. monster 'map_tnm1$,140,22,"Evil Shadow",2941,1, instance_npcname("#tnm1stepmob") + "::OnMobDead"; // MM_EVIL_SHADOW3
  769. stopnpctimer;
  770. end;
  771. OnMobDead:
  772. end;
  773. }
  774. 1@tnm1,158,24,3 script Assassin Louie#tnm02 4_M_ACROSS,{
  775. if ('devil_tower < 4)
  776. end;
  777. if (checkquest(7570,HUNTING) != 2) {
  778. mes "[Louie]";
  779. mes "The Captain says that we need to get rid of all of the demons...";
  780. mes "Better get to it.";
  781. close;
  782. }
  783. mes "[Louie]";
  784. mes "A lot of soldiers still survived the attacks.";
  785. mes "They got rid of all the demons.";
  786. next;
  787. mes "[Louie]";
  788. mes "I was making sure that no one goes upstairs, I was afraid something might happen again.";
  789. next;
  790. mes "[Louie]";
  791. mes "I wish you would help me.";
  792. mes "I will guide you.";
  793. if (isbegin_quest(7571) == 0) {
  794. erasequest 7569;// Treat the injured
  795. erasequest 7570;// Destroy the demons
  796. setquest 7571;// Tower Expedition
  797. }
  798. next;
  799. mes "I have been exploring the passages of this tower for a while now.";
  800. close2;
  801. warp 'map_tnm1$,124,86;
  802. end;
  803. }
  804. // Stairs 2 tnm1
  805. 1@tnm1,138,96,3 script Lucile#tnm02 4_F_LUCILE,{
  806. if (isbegin_quest(7571) == 0)
  807. end;
  808. if (is_party_leader() == false) {
  809. mes "You wave your hand in front of her but she doesn't react.";
  810. close;
  811. }
  812. if ('devil_tower < 4)
  813. end;
  814. if ('devil_tower < 6) {
  815. if ('devil_tower == 4) {
  816. mes "[Lucile]";
  817. mes "I am sorry if I'm giving you any attitude but I can't move.";
  818. npctalk "Lucile: I am sorry if I'm giving you any attitude but I can't move.";
  819. cutin "tnm_lucile02.bmp",2;
  820. next;
  821. select("Can I help?");
  822. mes "[Lucile]";
  823. mes "I can use self-recovery but I don't have time for that.";
  824. mes "Will you share your power with me?";
  825. npctalk "Lucile: I can use self-recovery but I don't have time for that. Will you share your power with me?";
  826. next;
  827. mes "[Lucile]";
  828. mes "I need your help to activate my restoration system.";
  829. mes "Please hold tight.";
  830. npctalk "Lucile: I need your help to activate my restoration system.";
  831. next;
  832. sleep2 750;
  833. npctalk "Lucile: Please hold tight.";
  834. if (is_party_leader() == true && 'devil_tower == 4) {
  835. donpcevent instance_npcname("Huey#hui02") + "::OnEnable";
  836. 'devil_tower = 5;
  837. }
  838. percentheal -30,0;
  839. }
  840. cutin "tnm_lucile03.bmp",2;
  841. mes "Lucile seems to be a machine.";
  842. mes "I can hear mechanical sounds all of a sudden.";
  843. specialeffect EF_LEVEL99_3;
  844. // progressbar "000000",40; // fix me: progressbar doesn't display close button on cancel
  845. if (is_party_leader() == true && 'devil_tower == 5) {
  846. if (isbegin_quest(7572) == 0)
  847. setquest 7572;// Lucile...?
  848. 'devil_tower = 6;
  849. }
  850. mes "System is restored.";
  851. next;
  852. mes "[Lucile]";
  853. mes "Wow! You fixed it faster than I thought.";
  854. mes "Did that surprise you?";
  855. mes "I have to be fixed occasionally because I don't have a normal body";
  856. cutin "tnm_lucile02.bmp",2;
  857. next;
  858. mes "[Lucile]";
  859. mes "This body was a gift from the gods.";
  860. mes "Do you see the gate in the middle?";
  861. cutin "tnm_lucile01.bmp",2;
  862. next;
  863. mes "[Lucile]";
  864. mes "Hurry up or this world will be in a danger.";
  865. close2;
  866. cutin "",255;
  867. // continue
  868. }
  869. if ('devil_tower == 6) {
  870. sleep 1500;
  871. npctalk "Lucile: Let me excuse myself, follow me if you want to save the world.";
  872. sleep 2000;
  873. npctalk "Huey: sister...", instance_npcname("Huey#hui02");
  874. if ('devil_tower == 6) {
  875. disablenpc instance_npcname("Lucile#tnm02");
  876. enablenpc instance_npcname("Lucile#tnm03");
  877. enablenpc instance_npcname("Magic Swordman#tnm02");
  878. enablenpc instance_npcname("Demon Morocc#tnm01");
  879. 'devil_tower = 7;
  880. }
  881. }
  882. end;
  883. }
  884. 1@tnm1,135,99,5 script Huey#hui02 4_TOWER_15,{
  885. if ('devil_tower < 5)
  886. end;
  887. if ('devil_tower == 5 || 'devil_tower == 6) {
  888. mes "[Huey]";
  889. mes "I am concerned about her.";
  890. mes "It happens whenever she's wounded.";
  891. mes "Because she's mostly machine...";
  892. close;
  893. }
  894. if ('mob_count > 0) {
  895. mes "[Huey]";
  896. mes "I know the path upstairs...";
  897. mes "First of all, we have to get rid of these demons!";
  898. close;
  899. }
  900. mes "[Huey]";
  901. mes "I wonder how the others are doing...";
  902. mes "Only Thanatos and Lucile have ever entered to upper floor...";
  903. next;
  904. mes "[Huey]";
  905. mes "If you want to assist them, you must hurry.";
  906. mes "I will guide the way for you.";
  907. next;
  908. if (select( "Move immediately.", "Do not follow." ) == 2) {
  909. mes "[Huey]";
  910. mes "...I see.";
  911. close;
  912. }
  913. mes "[Huey]";
  914. mes "This way.";
  915. mes "Be careful.";
  916. close2;
  917. warp 'map_tnm2$,152,130;
  918. end;
  919. OnEnable:
  920. enablenpc instance_npcname("Huey#hui02");
  921. initnpctimer;
  922. end;
  923. OnTimer3000:
  924. npctalk "Huey: Oh no, sister watch out! Demons have suddenly appeared!";
  925. 'mob_count = 16;
  926. monster 'map_tnm1$,142,90,"Evil Shadow",2939,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW1
  927. monster 'map_tnm1$,139,91,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW2
  928. monster 'map_tnm1$,130,86,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  929. monster 'map_tnm1$,143,95,"Evil Shadow",2941,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW3
  930. monster 'map_tnm1$,134,90,"Evil Shadow",2941,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  931. end;
  932. OnTimer6000:
  933. npctalk "Huey: Where are they coming from? Demons again......";
  934. end;
  935. OnTimer8000:
  936. monster 'map_tnm1$,137,103,"Evil Shadow",2939,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW1
  937. monster 'map_tnm1$,140,102,"Evil Shadow",2939,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  938. monster 'map_tnm1$,132,103,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW2
  939. monster 'map_tnm1$,146,100,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  940. monster 'map_tnm1$,142,105,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  941. monster 'map_tnm1$,135,107,"Evil Shadow",2941,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW3
  942. end;
  943. OnTimer11000:
  944. npctalk "Huey: Oh, no...";
  945. end;
  946. OnTimer12000:
  947. monster 'map_tnm1$,135,107,"Evil Shadow",2939,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW1
  948. monster 'map_tnm1$,146,100,"Evil Shadow",2939,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  949. monster 'map_tnm1$,130,86,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW2
  950. monster 'map_tnm1$,137,103,"Evil Shadow",2940,1, instance_npcname("Huey#hui02") + "::OnMobDead";
  951. monster 'map_tnm1$,143,95,"Evil Shadow",2941,1, instance_npcname("Huey#hui02") + "::OnMobDead"; // MM_EVIL_SHADOW3
  952. stopnpctimer;
  953. end;
  954. OnMobDead:
  955. 'mob_count--;
  956. if ('mob_count == 0)
  957. npctalk "Huey: This way. This way... we can go upstairs by using the gap that the demons were coming from!";
  958. end;
  959. }
  960. // Morocc - Thanatos Battle
  961. 1@tnm2,136,139,3 script Magic Swordman#tnm02 THANATOS_KEEP,{
  962. mes "[Magic Swordman Thanatos]";
  963. mes "I am sorry but I have been through tough time...";
  964. close;
  965. }
  966. 1@tnm2,133,139,5 duplicate(Officer Heim#heim0) Demon Morocc#tnm01 1916
  967. 1@tnm2,144,137,3 script Lucile#tnm03 4_F_LUCILE,{
  968. if (is_party_leader() == false) {
  969. mes "[Lucile]";
  970. mes "I am talking to your party leader now so please step back for a while.";
  971. cutin "tnm_lucile01.bmp",2;
  972. close3;
  973. }
  974. if ('devil_tower == 7) {
  975. mes "[Lucile]";
  976. mes "Oh. You just have arrived in time.";
  977. mes "Do you want to take a look over there?";
  978. cutin "tnm_lucile01.bmp",2;
  979. next;
  980. mes "[Lucile]";
  981. mes "We need to stop the demon...";
  982. mes "Can you do that?";
  983. npctalk "Lucile: We need to stop the demon... Can you do that?";
  984. if (is_party_leader() == true && 'devil_tower == 7) {
  985. if (isbegin_quest(7573) == 0)
  986. setquest 7573;// Magic Swordman Thanatos
  987. 'demon$ = instance_npcname("Demon Morocc#tnm01");
  988. 'thanatos$ = instance_npcname("Magic Swordman#tnm02");
  989. initnpctimer;
  990. 'devil_tower = 8;
  991. }
  992. close3;
  993. }
  994. mes "[Lucile]";
  995. mes "We need to hold this spot until the trap is set by the Magic Swordman.";
  996. cutin "tnm_lucile01.bmp",2;
  997. close3;
  998. OnTimer2000:
  999. npctalk "Demon Morocc: You silly human. How long do you think you can manage to tie me up!", 'demon$;
  1000. end;
  1001. OnTimer5000:
  1002. npctalk "Demon Morocc: Shadows! Come out and kill all enemies of darkness!", 'demon$;
  1003. end;
  1004. OnTimer6000:
  1005. donpcevent instance_npcname("#devil_seal_timer") + "::OnStart";
  1006. end;
  1007. OnTimer8000:
  1008. npctalk "Thanatos: You are so desperate that you're begging me to save you.", 'thanatos$;
  1009. end;
  1010. OnTimer11500:
  1011. npctalk "Lucile: Thanatos. Sir, should you be bluffing like that?";
  1012. end;
  1013. OnTimer12000:
  1014. npctalk "Demon Morocc: Be afraid of the destruction that I will bring when I'm released!", 'demon$;
  1015. end;
  1016. OnTimer15000:
  1017. npctalk "Thanatos: Shut up! You will never leave here unless I kill you!", 'thanatos$;
  1018. end;
  1019. OnTimer16500:
  1020. npctalk "Thanatos: Lucile! Watch my back while I conjure up a shield to hold him!", 'thanatos$;
  1021. end;
  1022. OnTimer19500:
  1023. npctalk "Lucile: Yes sir.";
  1024. end;
  1025. OnTimer22500:
  1026. npctalk "Lucile: Okay everyone, now we know what to do. We have to prevent the Magic Seal from reaching here!";
  1027. stopnpctimer;
  1028. end;
  1029. }
  1030. 1@tnm2,1,1,0 script #devil_flamecross HIDDEN_WARP_NPC,{
  1031. end;
  1032. OnStart:
  1033. npctalk "Demon Morocc: No way!! Troublemakers!", 'demon$;
  1034. mapannounce 'map_tnm2$, "Demon Morocc: No way!! Troublemakers!", bc_map,0xFF0000;
  1035. initnpctimer;
  1036. end;
  1037. OnTimer1000:
  1038. setarray .@north[0], 138,151, 138,160, 140,165, 140,176, 140,170, 140,181, 140,186, 140,191;
  1039. setarray .@north_west[0], 126,149, 122,151, 118,153, 113,154, 107,156, 101,158, 96,160, 91,161, 86,162, 81,163;
  1040. setarray .@south_west[0], 128,130, 125,127, 122,124, 118,121, 115,118, 112,115, 109,114, 106,106, 102,102, 99,98;
  1041. setarray .@south_east[0], 145,130, 148,126, 151,122, 156,120, 160,117, 164,113, 168,109, 172,105, 176,101, 180,97;
  1042. setarray .@north_east[0], 146,149, 148,149, 150,151, 155,152, 162,153, 167,154, 173,156, 179,158, 185,160, 191,161;
  1043. .@label$ = instance_npcname("#devil_flamecross") + "::OnFlameDead";
  1044. for ( .@i = 0; .@i < 20; .@i += 2 ) {
  1045. if (.@north[.@i] > 0) // 8 mobs for north
  1046. monster 'map_tnm2$,.@north[.@i],.@north[.@i+1], "",2960,1, .@label$;
  1047. monster 'map_tnm2$,.@north_west[.@i],.@north_west[.@i+1], "",2960,1, .@label$;
  1048. monster 'map_tnm2$,.@south_west[.@i],.@south_west[.@i+1], "",2960,1, .@label$;
  1049. monster 'map_tnm2$,.@south_east[.@i],.@south_east[.@i+1], "",2960,1, .@label$;
  1050. monster 'map_tnm2$,.@north_east[.@i],.@north_east[.@i+1], "",2960,1, .@label$;
  1051. sleep 200;
  1052. }
  1053. end;
  1054. OnTimer6000:
  1055. killmonster 'map_tnm2$, instance_npcname("#devil_flamecross") + "::OnFlameDead";
  1056. end;
  1057. OnTimer20000:
  1058. stopnpctimer;
  1059. donpcevent instance_npcname("#devil_flamecross") + "::OnStart";
  1060. end;
  1061. OnStop:
  1062. stopnpctimer;
  1063. killmonster 'map_tnm2$, instance_npcname("#devil_flamecross") + "::OnFlameDead";
  1064. end;
  1065. OnFlameDead:
  1066. end;
  1067. }
  1068. 1@tnm2,1,1,0 script #devil_seal_timer HIDDEN_WARP_NPC,{
  1069. end;
  1070. OnStart:
  1071. enablenpc instance_npcname("#devil_seal_timer");
  1072. enablenpc instance_npcname("#devil_flamecross");
  1073. setarray .@direction$[0], "DIR_NORTHWEST", "DIR_SOUTHWEST", "DIR_SOUTHEAST", "DIR_NORTHEAST", "DIR_NORTH";
  1074. for ( .@i = 0; .@i < 5; .@i++ ) {
  1075. enablenpc instance_npcname("devil_seal_spawn#" + .@direction$[.@i]);
  1076. enablenpc instance_npcname("seal_reach_center#" + .@direction$[.@i]);
  1077. }
  1078. enablenpc instance_npcname("#devil_seal_dead");
  1079. donpcevent instance_npcname("#devil_seal_spawn_global") + "::OnCoord";
  1080. initnpctimer;
  1081. end;
  1082. OnTimer5000:
  1083. mapannounce 'map_tnm2$, "A Magic Seal has just appeared in southeast direction of the tower.", bc_map,0xFFFFFF;
  1084. donpcevent instance_npcname("#devil_seal_spawn_global") + "::OnFirstSpawn";
  1085. end;
  1086. OnTimer10000:
  1087. donpcevent instance_npcname("#devil_flamecross") + "::OnStart";
  1088. end;
  1089. OnTimer25000:
  1090. mapannounce 'map_tnm2$, "Lucile: We should stop before Magic Seal has just started to move again.", bc_map,0xFFFFFF;
  1091. end;
  1092. OnTimer65000:
  1093. mapannounce 'map_tnm2$, "Lucile: We should stop before Magic Seal reaches the center.", bc_map,0xFFFFFF;
  1094. end;
  1095. OnTimer95000:
  1096. mapannounce 'map_tnm2$, "Lucile: The Magic Seal has just started to move again.", bc_map,0xFFFFFF;
  1097. end;
  1098. OnTimer125000:
  1099. mapannounce 'map_tnm2$, "Lucile: It is coming closer... No... It's too dangerous.", bc_map,0xFFFFFF;
  1100. end;
  1101. OnTimer155000:
  1102. mapannounce 'map_tnm2$, "Lucile: The Magic Seal is almost approaching the center!!", bc_map,0xFFFFFF;
  1103. end;
  1104. OnTimer180000:
  1105. donpcevent instance_npcname("#devil_flamecross") + "::OnStop";
  1106. end;
  1107. OnTimer185000:
  1108. mapannounce 'map_tnm2$, "Lucile: We should stop it now!", bc_map,0xFFFFFF;
  1109. end;
  1110. OnTimer191000:
  1111. npctalk "Thanatos: What are you doing!!! Are you playing a game now?!", 'thanatos$;
  1112. mapannounce 'map_tnm2$, "Thanatos: What are you doing!!! Are you playing a game now?!", bc_map,0xFF00;
  1113. end;
  1114. OnTimer193000:
  1115. specialeffect EF_MAGNUMBREAK,AREA, 'thanatos$;
  1116. specialeffect EF_LORD,AREA, 'thanatos$;
  1117. setarray .@direction$[0], "DIR_NORTHWEST", "DIR_SOUTHWEST", "DIR_SOUTHEAST", "DIR_NORTHEAST", "DIR_NORTH";
  1118. for ( .@i = 0; .@i < 5; .@i++ )
  1119. donpcevent instance_npcname("devil_seal_spawn#" + .@direction$[.@i]) + "::OnStop";
  1120. end;
  1121. OnTimer195000:
  1122. npctalk "Demon Morocc: Are you going to keep disturbing me!!!", 'demon$;
  1123. mapannounce 'map_tnm2$, "Demon Morocc: Are you going to keep disturbing me!!!", bc_map,0xFF0000;
  1124. end;
  1125. OnTimer198000:
  1126. npctalk "Demon Morocc: Okay, Let's see who is going to win!!! Come out!", 'demon$;
  1127. mapannounce 'map_tnm2$, "Demon Morocc: Okay, Let's see who is going to win!!! Come out!", bc_map,0xFF0000;
  1128. end;
  1129. OnTimer201000:
  1130. npctalk "Thanatos: It will be the same no matter how many times you try! Give up and go back to demon world!!", 'thanatos$;
  1131. mapannounce 'map_tnm2$, "Thanatos: It will be the same no matter how many times you try! Give up and go back to demon world!!", bc_map,0xFF00;
  1132. initnpctimer;
  1133. end;
  1134. OnStop:
  1135. stopnpctimer;
  1136. donpcevent instance_npcname("#devil_flamecross") + "::OnStop";
  1137. disablenpc instance_npcname("#devil_flamecross");
  1138. disablenpc instance_npcname("#devil_seal_timer");
  1139. end;
  1140. }
  1141. 1@tnm2,1,1,0 script #devil_seal_spawn_global HIDDEN_WARP_NPC,{
  1142. end;
  1143. OnCoord:
  1144. enablenpc instance_npcname("#devil_seal_spawn_global");
  1145. // setarray 'coord_seal_DIR_NORTHWEST[0], 68,167, 78,165, 88,163, 98,160, 108,156, 118,152, 127,147;
  1146. setarray 'coord_seal_DIR_NORTHWEST[0], 68,167, 78,165, 88,163, 98,160, 108,156, 118,152, 118,152;// officially
  1147. setarray 'coord_seal_DIR_SOUTHWEST[0], 90, 86, 96, 95, 103,103, 110,110, 116,116, 122,122, 129,130;
  1148. setarray 'coord_seal_DIR_SOUTHEAST[0], 191,86, 183, 94, 174,103, 165,112, 156,120, 147,128, 143,131;
  1149. setarray 'coord_seal_DIR_NORTHEAST[0], 197,162, 188,161, 179,158, 170,155, 161,152, 152,149, 144,148;
  1150. setarray 'coord_seal_DIR_NORTH[0], 142,214, 140,205, 140,195, 140,185, 140,173, 139,161, 138,150;
  1151. end;
  1152. OnFirstSpawn:
  1153. 'round[DIR_NORTHWEST] = 'round[DIR_SOUTHWEST] = 'round[DIR_SOUTHEAST] = 'round[DIR_NORTHEAST] = 'round[DIR_NORTH] = 0;
  1154. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHWEST") + "::OnFirstSpawn";
  1155. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHWEST") + "::OnFirstSpawn";
  1156. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHEAST") + "::OnFirstSpawn";
  1157. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHEAST") + "::OnFirstSpawn";
  1158. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTH") + "::OnFirstSpawn";
  1159. initnpctimer;
  1160. end;
  1161. OnTimer2000:
  1162. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHWEST") + "::OnSlaves";
  1163. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHWEST") + "::OnSlaves";
  1164. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHEAST") + "::OnSlaves";
  1165. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHEAST") + "::OnSlaves";
  1166. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTH") + "::OnSlaves";
  1167. end;
  1168. OnTimer20000:
  1169. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHWEST") + "::OnStart";
  1170. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHEAST") + "::OnStart";
  1171. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTH") + "::OnStart";
  1172. end;
  1173. OnTimer30000:
  1174. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHWEST") + "::OnStart";
  1175. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHEAST") + "::OnStart";
  1176. end;
  1177. OnStop:
  1178. stopnpctimer;
  1179. disablenpc instance_npcname("#devil_seal_spawn_global");
  1180. end;
  1181. }
  1182. 1@tnm2,1,1,0 script devil_seal_spawn#DIR_NORTHWEST HIDDEN_WARP_NPC,{
  1183. end;
  1184. OnStart:
  1185. .@num = getd( strnpcinfo(2) );
  1186. if ('seal_id[.@num] == 0 || unitexists('seal_id[.@num]) == 0)
  1187. stopnpctimer;
  1188. else {
  1189. getunitdata 'seal_id[.@num], .@data;
  1190. 'seal_hp[.@num] = .@data[UMOB_HP];
  1191. killmonster 'map_tnm2$, instance_npcname("#devil_seal_dead") + "::OnSeal_" + strnpcinfo(2);
  1192. initnpctimer;
  1193. }
  1194. end;
  1195. OnFirstSpawn:
  1196. OnTimer5000:
  1197. .@num = getd( strnpcinfo(2) );
  1198. .@index = 'round[.@num] * 2;
  1199. if (.@index == 0 || 'seal_id[.@num]) {
  1200. .@direction$ = strnpcinfo(2);
  1201. .@x = getd( "'coord_seal_" + .@direction$ + "[" + .@index + "]" );
  1202. .@y = getd( "'coord_seal_" + .@direction$ + "[" + (.@index+1) + "]" );
  1203. monster 'map_tnm2$,.@x,.@y,"Magic Seal",2938,1, instance_npcname("#devil_seal_dead") + "::OnSeal_" + .@direction$; // MM_MAGIC_SEAL
  1204. 'seal_id[.@num] = $@mobid[0];
  1205. if (.@index == 0)
  1206. setunitdata 'seal_id[.@num], UMOB_HP, 3000000;
  1207. else if ('seal_hp[.@num] > 0)
  1208. setunitdata 'seal_id[.@num], UMOB_HP, 'seal_hp[.@num];
  1209. else
  1210. stopnpctimer;
  1211. 'round[.@num]++;
  1212. if ('round[.@num] == 7)
  1213. donpcevent instance_npcname("seal_reach_center#" + .@direction$) + "::OnStart";
  1214. }
  1215. end;
  1216. OnSlaves:
  1217. OnTimer7000:
  1218. killmonster 'map_tnm2$, instance_npcname(strnpcinfo(0)) + "::OnMobDead";
  1219. .@num = getd( strnpcinfo(2) );
  1220. if ('seal_id[.@num] && unitexists('seal_id[.@num])) {
  1221. .@direction$ = strnpcinfo(2);
  1222. .@index = ('round[.@num] - 1) * 2;
  1223. .@x = getd( "'coord_seal_" + .@direction$ + "[" + .@index + "]" );
  1224. .@y = getd( "'coord_seal_" + .@direction$ + "[" + (.@index+1) + "]" );
  1225. areamonster 'map_tnm2$,(.@x-1),(.@y-1),(.@x+1),(.@y+1),"Evil Shadow",2939,2, instance_npcname(strnpcinfo(0)) + "::OnMobDead"; // MM_EVIL_SHADOW1
  1226. areamonster 'map_tnm2$,(.@x-1),(.@y-1),(.@x+1),(.@y+1),"Evil Shadow",2940,2, instance_npcname(strnpcinfo(0)) + "::OnMobDead"; // MM_EVIL_SHADOW2
  1227. if ('round[.@num] == 7)
  1228. stopnpctimer;
  1229. }
  1230. end;
  1231. OnTimer30000:
  1232. donpcevent instance_npcname("devil_seal_spawn#" + strnpcinfo(2)) + "::OnStart";
  1233. end;
  1234. OnDisable:
  1235. stopnpctimer;
  1236. killmonster 'map_tnm2$, instance_npcname(strnpcinfo(0)) + "::OnMobDead"; // note : officially still alive
  1237. killmonster 'map_tnm2$, instance_npcname("#devil_seal_dead") + "::OnSeal_" + strnpcinfo(2); // note : officially still alive
  1238. disablenpc instance_npcname(strnpcinfo(0));
  1239. end;
  1240. OnStop:
  1241. stopnpctimer;
  1242. killmonster 'map_tnm2$, instance_npcname(strnpcinfo(0)) + "::OnMobDead";
  1243. killmonster 'map_tnm2$, instance_npcname("#devil_seal_dead") + "::OnSeal_" + strnpcinfo(2);
  1244. end;
  1245. OnMobDead:
  1246. end;
  1247. }
  1248. 1@tnm2,1,1,0 duplicate(devil_seal_spawn#DIR_NORTHWEST) devil_seal_spawn#DIR_SOUTHWEST HIDDEN_WARP_NPC
  1249. 1@tnm2,1,1,0 duplicate(devil_seal_spawn#DIR_NORTHWEST) devil_seal_spawn#DIR_SOUTHEAST HIDDEN_WARP_NPC
  1250. 1@tnm2,1,1,0 duplicate(devil_seal_spawn#DIR_NORTHWEST) devil_seal_spawn#DIR_NORTHEAST HIDDEN_WARP_NPC
  1251. 1@tnm2,1,1,0 duplicate(devil_seal_spawn#DIR_NORTHWEST) devil_seal_spawn#DIR_NORTH HIDDEN_WARP_NPC
  1252. 1@tnm2,1,1,0 script seal_reach_center#DIR_NORTHWEST HIDDEN_WARP_NPC,{
  1253. end;
  1254. OnStart:
  1255. enablenpc instance_npcname(strnpcinfo(0));
  1256. initnpctimer;
  1257. end;
  1258. OnTimer2000:
  1259. npctalk "Demon Morocc: Kuh ha ha ha ha Pieces of my power! Gather here again!!!", 'demon$;
  1260. mapannounce 'map_tnm2$, "Demon Morocc: Kuh ha ha ha ha Pieces of my power! Gather here again!!!", bc_map,0xFF0000;
  1261. end;
  1262. OnTimer4000:
  1263. npctalk "Thanatos: Stop him! Prevent him from coming closer!!!", 'thanatos$;
  1264. mapannounce 'map_tnm2$, "Thanatos: Stop him! Prevent him from coming closer!!!", bc_map,0xFF00;
  1265. stopnpctimer;
  1266. disablenpc instance_npcname(strnpcinfo(0));
  1267. end;
  1268. }
  1269. 1@tnm2,1,1,0 duplicate(seal_reach_center#DIR_NORTHWEST) seal_reach_center#DIR_SOUTHWEST HIDDEN_WARP_NPC
  1270. 1@tnm2,1,1,0 duplicate(seal_reach_center#DIR_NORTHWEST) seal_reach_center#DIR_SOUTHEAST HIDDEN_WARP_NPC
  1271. 1@tnm2,1,1,0 duplicate(seal_reach_center#DIR_NORTHWEST) seal_reach_center#DIR_NORTHEAST HIDDEN_WARP_NPC
  1272. 1@tnm2,1,1,0 duplicate(seal_reach_center#DIR_NORTHWEST) seal_reach_center#DIR_NORTH HIDDEN_WARP_NPC
  1273. 1@tnm2,1,1,0 script #devil_seal_dead HIDDEN_WARP_NPC,{
  1274. end;
  1275. OnSeal_DIR_NORTHWEST: callsub( S_Sealdead, DIR_NORTHWEST );
  1276. OnSeal_DIR_SOUTHWEST: callsub( S_Sealdead, DIR_SOUTHWEST );
  1277. OnSeal_DIR_SOUTHEAST: callsub( S_Sealdead, DIR_SOUTHEAST );
  1278. OnSeal_DIR_NORTHEAST: callsub( S_Sealdead, DIR_NORTHEAST );
  1279. OnSeal_DIR_NORTH: callsub( S_Sealdead, DIR_NORTH );
  1280. S_Sealdead:
  1281. 'seal_id[ getarg(0) ] = 0;
  1282. 'seal_dead[ getarg(0) ] = 1;
  1283. .@total_seal = 'seal_dead[DIR_NORTHWEST] + 'seal_dead[DIR_SOUTHWEST] + 'seal_dead[DIR_SOUTHEAST] + 'seal_dead[DIR_NORTHEAST] + 'seal_dead[DIR_NORTH];
  1284. if (.@total_seal != 5) {
  1285. if (getarg(0) == DIR_NORTHWEST)
  1286. mapannounce 'map_tnm2$, "Lucile: It is too early to feel easy! There are Magic Seals that haven't been destroyed yet.", bc_map,0xFF00;
  1287. else
  1288. mapannounce 'map_tnm2$, "There are still Magic Seals to destroy.", bc_map,0xFF00;
  1289. }
  1290. else {
  1291. donpcevent instance_npcname("#devil_seal_spawn_global") + "::OnStop";
  1292. donpcevent instance_npcname("#devil_seal_timer") + "::OnStop"; // stop timer of npc #devil_flamecross as well
  1293. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHWEST") + "::OnDisable";// note: on official seals and slaves are alive
  1294. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHWEST") + "::OnDisable";
  1295. donpcevent instance_npcname("devil_seal_spawn#DIR_SOUTHEAST") + "::OnDisable";
  1296. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTHEAST") + "::OnDisable";
  1297. donpcevent instance_npcname("devil_seal_spawn#DIR_NORTH") + "::OnDisable";
  1298. mapannounce 'map_tnm2$, "Demon Morocc: No.. This can't be.. Who the hell.. are you!", bc_map,0xFF0000;
  1299. npctalk "Demon Morocc: No.. This can't be.. Who the hell.. are you!", 'demon$;
  1300. initnpctimer;
  1301. }
  1302. end;
  1303. OnTimer3000:
  1304. mapannounce 'map_tnm2$, "Thanatos: It will be the last time to show off!! Good bye!!!", bc_map,0xFF0000;
  1305. npctalk "Thanatos: It will be the last time to show off!! Good bye!!!", 'thanatos$;
  1306. end;
  1307. OnTimer5000:
  1308. specialeffect EF_LORD,AREA, 'thanatos$;
  1309. end;
  1310. OnTimer7000:
  1311. stopnpctimer;
  1312. disablenpc 'demon$;
  1313. disablenpc 'thanatos$;
  1314. disablenpc instance_npcname("Lucile#tnm03");
  1315. enablenpc instance_npcname("Lucile#tnm04");
  1316. enablenpc instance_npcname("#tnm3event01");
  1317. enablenpc instance_npcname("Young Girl#tnm01");
  1318. 'devil_tower = 9;
  1319. 'demon$ = 'thanatos$ = "";
  1320. 'round[DIR_NORTHWEST] = 'round[DIR_SOUTHWEST] = 'round[DIR_SOUTHEAST] = 'round[DIR_NORTHEAST] = 'round[DIR_NORTH] = 0;
  1321. 'seal_id[DIR_NORTHWEST] = 'seal_id[DIR_SOUTHWEST] = 'seal_id[DIR_SOUTHEAST] = 'seal_id[DIR_NORTHEAST] = 'seal_id[DIR_NORTH] = 0;
  1322. 'seal_hp[DIR_NORTHWEST] = 'seal_hp[DIR_SOUTHWEST] = 'seal_hp[DIR_SOUTHEAST] = 'seal_hp[DIR_NORTHEAST] = 'seal_hp[DIR_NORTH] = 0;
  1323. 'seal_dead[DIR_NORTHWEST] = 'seal_dead[DIR_SOUTHWEST] = 'seal_dead[DIR_SOUTHEAST] = 'seal_dead[DIR_NORTHEAST] = 'seal_dead[DIR_NORTH] = 0;
  1324. deletearray 'coord_seal_DIR_NORTHWEST[0],14;
  1325. deletearray 'coord_seal_DIR_SOUTHWEST[0],14;
  1326. deletearray 'coord_seal_DIR_SOUTHEAST[0],14;
  1327. deletearray 'coord_seal_DIR_NORTHEAST[0],14;
  1328. deletearray 'coord_seal_DIR_NORTH[0],14;
  1329. end;
  1330. }
  1331. 1@tnm2,144,137,3 script Lucile#tnm04 4_F_LUCILE,{
  1332. if ('devil_tower < 9)
  1333. end;
  1334. if (isbegin_quest(7574) == 0) {
  1335. if (isbegin_quest(7572) == 1)
  1336. erasequest 7572;// Lucile...?
  1337. if (isbegin_quest(7573) == 1) // leader
  1338. erasequest 7573;// Magic Swordman Thanatos
  1339. setquest 7574;// Thanatos Tower
  1340. mes "[Lucile]";
  1341. mes "I guess the power of Demon Morocc to break the shield of seal has collided with Thanatos.";
  1342. cutin "tnm_lucile01.bmp",2;
  1343. next;
  1344. mes "[Lucile]";
  1345. mes "It has gone too far somewhere in the south";
  1346. mes "Will you go there?";
  1347. }
  1348. else {
  1349. mes "[Lucile]";
  1350. mes "The collision of those two powers is too much to handle.";
  1351. mes "It could have influenced the south of Rune Midgard.";
  1352. }
  1353. next;
  1354. if (select( "Follow.", "Stop." ) == 2) {
  1355. mes "[Lucile]";
  1356. mes "...I guess this is what you are able to?";
  1357. cutin "tnm_lucile02.bmp",2;
  1358. close3;
  1359. }
  1360. mes "[Lucile]";
  1361. mes "Good luck.";
  1362. close2;
  1363. warp 'map_tnm3$,21,171;
  1364. end;
  1365. }
  1366. // tnm3 Stairs 1
  1367. 1@tnm3,21,171,0 script #tnm3event01 HIDDEN_NPC,1,1,{
  1368. end;
  1369. OnTouch:
  1370. if ('devil_tower != 9)
  1371. end;
  1372. mes ""; // todo fix me "workinprogress"
  1373. disablenpc instance_npcname("#tnm3event01");
  1374. enablenpc instance_npcname("Young Girl#tnm01");
  1375. sleep2 4000;
  1376. mapannounce 'map_tnm3$, "Young Girl: Odin Preserve me! A demon!! Help me!", bc_map,0xFF00;
  1377. 'mob_count = 12;
  1378. initnpctimer;
  1379. end;
  1380. OnTimer1000:
  1381. monster 'map_tnm3$,33,171,"Evil Shadow",2939,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW1
  1382. end;
  1383. OnTimer2000:
  1384. monster 'map_tnm3$,39,172,"Evil Shadow",2939,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW1
  1385. end;
  1386. OnTimer3000:
  1387. monster 'map_tnm3$,34,177,"Evil Shadow",2940,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW2
  1388. end;
  1389. OnTimer4000:
  1390. monster 'map_tnm3$,36,176,"Evil Shadow",2940,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW2
  1391. end;
  1392. OnTimer5000:
  1393. monster 'map_tnm3$,37,175,"Evil Shadow",2940,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW2
  1394. end;
  1395. OnTimer6000:
  1396. monster 'map_tnm3$,37,173,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1397. monster 'map_tnm3$,36,172,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1398. end;
  1399. OnTimer7000:
  1400. monster 'map_tnm3$,29,178,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1401. monster 'map_tnm3$,35,172,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1402. end;
  1403. OnTimer8000:
  1404. monster 'map_tnm3$,34,173,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1405. monster 'map_tnm3$,35,172,"Evil Shadow",2939,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW1
  1406. end;
  1407. OnTimer9000:
  1408. monster 'map_tnm3$,34,173,"Evil Shadow",2941,1, instance_npcname("Young Girl#tnm01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1409. stopnpctimer;
  1410. end;
  1411. }
  1412. 1@tnm3,43,175,3 script Young Girl#tnm01 4_F_DST_CHILD,{
  1413. if ('devil_tower < 9)
  1414. end;
  1415. if ('devil_tower == 9) {
  1416. mes "[Young Girl]";
  1417. mes "Why are there demons in the castle?!";
  1418. mes "HELP ME!";
  1419. close;
  1420. }
  1421. if ('devil_tower == 10) {
  1422. if (is_party_leader() == false) {
  1423. mes "[Young Girl]";
  1424. mes "*weeping* The demons are so scary.";
  1425. close;
  1426. }
  1427. mes "[Young Girl]";
  1428. mes "Why would demons come all of a sudden,";
  1429. mes "lots of guards are hurt.";
  1430. npctalk "Young Girl: Why would demons come all of a sudden, lots of guards are hurt.";
  1431. next;
  1432. select("Where are they?");
  1433. unittalk getcharid(3), "" + strcharinfo(0) + " : Where are they?";
  1434. mes "[Young Girl]";
  1435. mes "They are in Morroc castle. My father is a knight.";
  1436. npctalk "They are in Morroc castle. My father is a knight.";
  1437. next;
  1438. mes "[Young Girl]";
  1439. mes "It seems like something is happening, I hear strange noises downstairs.";
  1440. npctalk "Young Girl: It seems like something is happening, I hear strange noises downstairs.";
  1441. next;
  1442. mes "[Young Girl]";
  1443. mes "I saw some guys in black entering. What is going on in the castle?";
  1444. npctalk "Young Girl: I saw some guys in black entering. What is going on in the castle?";
  1445. next;
  1446. mes "[Young Girl]";
  1447. mes "Papa.. Papa please be safe. *sob*";
  1448. mes "Please come with me through the passage behind that shelf!";
  1449. npctalk "Young Girl: Please come with me through the passage behind that shelf!";
  1450. close2;
  1451. if (is_party_leader() == true && 'devil_tower == 10) {
  1452. enablenpc instance_npcname("#tnm3gate01");
  1453. enablenpc instance_npcname("#tnm3event02ect");
  1454. 'devil_tower = 11;
  1455. }
  1456. end;
  1457. }
  1458. if ('devil_tower == 11) {
  1459. mes "[Young Girl]";
  1460. mes "Behind that shelf is a secret passage to the basement!";
  1461. mes "Please come with me to make sure my Papa is safe.";
  1462. close;
  1463. }
  1464. end;
  1465. OnMobDead:
  1466. 'mob_count--;
  1467. if ('mob_count == 0) {
  1468. 'devil_tower = 10;
  1469. npctalk "Young Girl: Thank you for saving me... but why is there a demon?";
  1470. }
  1471. end;
  1472. }
  1473. 1@tnm3,52,176,0 warp #tnm3gate01 2,2,1@tnm3,85,178
  1474. // tnm3 Stairs 2
  1475. 1@tnm3,85,178,0 script #tnm3event02ect HIDDEN_NPC,1,1,{
  1476. end;
  1477. OnTouch:
  1478. if ('devil_tower != 11)
  1479. end;
  1480. disablenpc instance_npcname("#tnm3event02ect");
  1481. enablenpc instance_npcname("Young Girl#tnm02");
  1482. npctalk "Young Girl: Look! More demons, they will overwhelm the castle soon!", instance_npcname("Young Girl#tnm02");
  1483. 'mob_count = 18;
  1484. initnpctimer;
  1485. end;
  1486. OnTimer1000:
  1487. .@label$ = instance_npcname("Young Girl#tnm02") + "::OnMobDead";
  1488. monster 'map_tnm3$,97,174,"Evil Shadow",2939,1, .@label$;
  1489. monster 'map_tnm3$,98,175,"Evil Shadow",2939,1, .@label$;
  1490. monster 'map_tnm3$,100,166,"Evil Shadow",2939,1, .@label$;
  1491. monster 'map_tnm3$,108,171,"Evil Shadow",2940,1, .@label$;
  1492. monster 'map_tnm3$,104,172,"Evil Shadow",2940,1, .@label$;
  1493. end;
  1494. OnTimer3000:
  1495. .@label$ = instance_npcname("Young Girl#tnm02") + "::OnMobDead";
  1496. monster 'map_tnm3$,109,169,"Evil Shadow",2941,1, .@label$;
  1497. monster 'map_tnm3$,111,173,"Evil Shadow",2941,1, .@label$;
  1498. monster 'map_tnm3$,113,167,"Evil Shadow",2941,1, .@label$;
  1499. monster 'map_tnm3$,101,176,"Evil Shadow",2939,1, .@label$;
  1500. monster 'map_tnm3$,116,170,"Evil Shadow",2941,1, .@label$;
  1501. end;
  1502. OnTimer5000:
  1503. .@label$ = instance_npcname("Young Girl#tnm02") + "::OnMobDead";
  1504. monster 'map_tnm3$,107,175,"Evil Shadow",2940,1, .@label$;
  1505. monster 'map_tnm3$,106,174,"Evil Shadow",2940,1, .@label$;
  1506. monster 'map_tnm3$,106,169,"Evil Shadow",2939,1, .@label$;
  1507. monster 'map_tnm3$,103,177,"Evil Shadow",2940,1, .@label$;
  1508. end;
  1509. OnTimer7000:
  1510. stopnpctimer;
  1511. .@label$ = instance_npcname("Young Girl#tnm02") + "::OnMobDead";
  1512. monster 'map_tnm3$,121,171,"Evil Shadow",2941,1, .@label$;
  1513. monster 'map_tnm3$,119,173,"Evil Shadow",2941,1, .@label$;
  1514. monster 'map_tnm3$,127,166,"Evil Shadow",2941,1, .@label$;
  1515. monster 'map_tnm3$,125,166,"Evil Shadow",2941,1, .@label$;
  1516. end;
  1517. }
  1518. 1@tnm3,89,179,4 script Young Girl#tnm02 4_F_DST_CHILD,{
  1519. end;
  1520. OnMobDead:
  1521. 'mob_count--;
  1522. if ('mob_count == 0) {
  1523. mapannounce 'map_tnm3$, "Young Girl: The way underground is along this aisle!", bc_map,0xFF00;
  1524. disablenpc instance_npcname("Young Girl#tnm02");
  1525. enablenpc instance_npcname("Young Girl#tnm03");
  1526. npctalk "Young Girl: The way underground is along this aisle!", instance_npcname("Young Girl#tnm03");
  1527. enablenpc instance_npcname("#tnm3gate02");
  1528. enablenpc instance_npcname("Evil Shadow#tnm3mob01");
  1529. }
  1530. end;
  1531. }
  1532. 1@tnm3,128,164,3 script Young Girl#tnm03 4_F_DST_CHILD,{
  1533. mes "[Young Girl]";
  1534. mes "From here.. I do not know well...";
  1535. mes "I see so many stairs...";
  1536. mes "See there are so many demons. My father will be in a danger!";
  1537. mes "Please save him.";
  1538. close;
  1539. }
  1540. 1@tnm3,134,156,0 warp #tnm3gate02 1,1,1@tnm3,169,165
  1541. // tnm3 Stairs 3
  1542. 1@tnm3,179,172,3 script Evil Shadow#tnm3mob01 2941,4,4,{
  1543. end;
  1544. OnTouch_:
  1545. if ('devil_tower == 11) {
  1546. 'devil_tower = 12;
  1547. mes ""; // todo fix me "workinprogress"
  1548. sleep2 1000;
  1549. npctalk "Evil Shadow: I thought I smelled rats sneaking in here. I was right!!";
  1550. sleep2 3000;
  1551. npctalk "Evil Shadow: You will rue your curiosity and interference. Time to feed!";
  1552. sleep2 3000;
  1553. npctalk "Evil Shadow: I summon the Darkness!!";
  1554. disablenpc instance_npcname("Evil Shadow#tnm3mob01");
  1555. donpcevent instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnSummon";
  1556. }
  1557. end;
  1558. }
  1559. 1@tnm3,1,1,0 script Evil Shadow kill#tnm3mob01 HIDDEN_WARP_NPC,{
  1560. end;
  1561. OnSummon:
  1562. enablenpc instance_npcname("Evil Shadow kill#tnm3mob01");
  1563. 'mob_count = 5;
  1564. initnpctimer;
  1565. monster 'map_tnm3$,179,172, "Evil Shadow",2941,1, instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnMobDead";// MM_EVIL_SHADOW3
  1566. end;
  1567. OnTimer1000:
  1568. monster 'map_tnm3$,181,172, "Evil Shadow",2940,1, instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnMobDead";// MM_EVIL_SHADOW2
  1569. monster 'map_tnm3$,178,172, "Evil Shadow",2940,1, instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnMobDead";
  1570. end;
  1571. OnTimer2000:
  1572. monster 'map_tnm3$,179,172, "Evil Shadow",2939,1, instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnMobDead";// MM_EVIL_SHADOW1
  1573. monster 'map_tnm3$,176,173, "Evil Shadow",2939,1, instance_npcname("Evil Shadow kill#tnm3mob01") + "::OnMobDead";
  1574. stopnpctimer;
  1575. end;
  1576. OnMobDead:
  1577. 'mob_count--;
  1578. if ('mob_count == 0) {
  1579. enablenpc instance_npcname("#tnm3gate03");
  1580. enablenpc instance_npcname("Demonic Shade#mobmaster");
  1581. enablenpc instance_npcname("Morocc Lord Knight#mocl");
  1582. enablenpc instance_npcname("Loki#tnmloki01");
  1583. }
  1584. end;
  1585. }
  1586. 1@tnm3,183,177,0 warp #tnm3gate03 1,1,1@tnm3,97,6
  1587. // Demonic Shade (Boss room)
  1588. 1@tnm3,97,18,3 script Demonic Shade#mobmaster 2939,5,5,{
  1589. end;
  1590. OnTouch_:// possibility to skip this step
  1591. if ('devil_tower < 12)
  1592. end;
  1593. if ('shade == 0) {
  1594. 'shade = 1;
  1595. mes ""; // todo fix me "workinprogress"
  1596. sleep2 1000;
  1597. npctalk "Demonic Shade: So you are the trouble makers!";
  1598. sleep2 2000;
  1599. npctalk "Demonic Shade: Tsk, You couldn't even manage to protect..?.whatever.. you will all die here.";
  1600. sleep2 3000;
  1601. npctalk "Demonic Shade: The eternal truth is I will turn your deaths into the Demon's life with your hearts' blood!!!";
  1602. disablenpc instance_npcname("Demonic Shade#mobmaster");
  1603. donpcevent instance_npcname("#mobmaster_kill") + "::OnSummon";
  1604. }
  1605. end;
  1606. }
  1607. 1@tnm3,1,1,0 script #mobmaster_kill HIDDEN_WARP_NPC,{
  1608. end;
  1609. OnSummon:
  1610. enablenpc instance_npcname("#mobmaster_kill");
  1611. initnpctimer;
  1612. monster 'map_tnm3$,97,18, "Demonic Shade",2939,1, instance_npcname("#mobmaster_kill") + "::OnMobDead";
  1613. end;
  1614. OnTimer1000:
  1615. .@label$ = instance_npcname("#mobmaster_kill") + "::OnMobDead";
  1616. stopnpctimer;
  1617. monster 'map_tnm3$,94,18, "Demonic Shade",2940,1, .@label$;
  1618. monster 'map_tnm3$,96,18, "Demonic Shade",2940,1, .@label$;
  1619. monster 'map_tnm3$,113,18, "Demonic Shade",2939,1, .@label$;
  1620. monster 'map_tnm3$,119,22, "Demonic Shade",2939,1, .@label$;
  1621. monster 'map_tnm3$,116,18, "Demonic Shade",2940,1, .@label$;
  1622. monster 'map_tnm3$,116,18, "Demonic Shade",2941,1, .@label$;
  1623. monster 'map_tnm3$,114,12, "Demonic Shade",2941,1, .@label$;
  1624. monster 'map_tnm3$,116,21, "Demonic Shade",2940,1, .@label$;
  1625. monster 'map_tnm3$,74,18, "Demonic Shade",2939,1, .@label$;
  1626. monster 'map_tnm3$,75,12, "Demonic Shade",2940,1, .@label$;
  1627. monster 'map_tnm3$,76,21, "Demonic Shade",2940,1, .@label$;
  1628. monster 'map_tnm3$,69,16, "Demonic Shade",2941,1, .@label$;
  1629. monster 'map_tnm3$,57,43, "Demonic Shade",2941,1, .@label$;
  1630. monster 'map_tnm3$,58,44, "Demonic Shade",2939,1, .@label$;
  1631. monster 'map_tnm3$,59,46, "Demonic Shade",2939,1, .@label$;
  1632. monster 'map_tnm3$,60,48, "Demonic Shade",2941,1, .@label$;
  1633. monster 'map_tnm3$,56,45, "Demonic Shade",2940,1, .@label$;
  1634. monster 'map_tnm3$,57,44, "Demonic Shade",2940,1, .@label$;
  1635. monster 'map_tnm3$,80,71, "Demonic Shade",2940,1, .@label$;
  1636. monster 'map_tnm3$,59,77, "Demonic Shade",2940,1, .@label$;
  1637. monster 'map_tnm3$,77,73, "Demonic Shade",2941,1, .@label$;
  1638. monster 'map_tnm3$,77,72, "Demonic Shade",2940,1, .@label$;
  1639. monster 'map_tnm3$,59,70, "Demonic Shade",2939,1, .@label$;
  1640. monster 'map_tnm3$,81,66, "Demonic Shade",2941,1, .@label$;
  1641. monster 'map_tnm3$,60,69, "Demonic Shade",2939,1, .@label$;
  1642. monster 'map_tnm3$,57,73, "Demonic Shade",2940,1, .@label$;
  1643. monster 'map_tnm3$,62,74, "Demonic Shade",2941,1, .@label$;
  1644. monster 'map_tnm3$,78,67, "Demonic Shade",2939,1, .@label$;
  1645. monster 'map_tnm3$,75,22, "Demonic Shade",2941,1, .@label$;
  1646. monster 'map_tnm3$,81,69, "Demonic Shade",2939,1, .@label$;
  1647. monster 'map_tnm3$,77,11, "Demonic Shade",2939,1, .@label$;
  1648. monster 'map_tnm3$,58,74, "Demonic Shade",2941,1, .@label$;
  1649. end;
  1650. OnMobDead:
  1651. end;
  1652. }
  1653. 1@tnm3,93,52,4 script Morocc Lord Knight#mocl 1_M_MOC_LORD,{
  1654. mes "[Morocc Lord Knight]";
  1655. mes "You were the rats who were sneaking around here!";
  1656. close;
  1657. }
  1658. 1@tnm3,97,48,3 script Loki#tnmloki01 4_M_ROKI2,{
  1659. if ('devil_tower == 12) {
  1660. 'devil_tower = 13;
  1661. donpcevent instance_npcname("#morroc_lord_talk") + "::OnStart";
  1662. end;
  1663. }
  1664. mes "[Loki]";
  1665. mes "You have no power here.";
  1666. close;
  1667. }
  1668. 1@tnm3,94,51,4 duplicate(Officer Heim#heim0) Young Girl#tnm04 4_F_DST_CHILD
  1669. 1@tnm2,1,1,0 script #morroc_lord_talk HIDDEN_WARP_NPC,{
  1670. end;
  1671. OnStart:
  1672. enablenpc instance_npcname("#morroc_lord_talk");
  1673. 'morroc$ = instance_npcname("Morocc Lord Knight#mocl");
  1674. 'loki$ = instance_npcname("Loki#tnmloki01");
  1675. npctalk "Morocc Lord Knight: So.. the rat was an assassin? You came here to die?", 'morroc$;
  1676. initnpctimer;
  1677. end;
  1678. OnTimer3000:
  1679. npctalk "Loki: What will you accomplish by waking the Demon in the Wall?", 'loki$;
  1680. end;
  1681. OnTimer6000:
  1682. npctalk "Loki: My mission brought me here to bury it again.", 'loki$;
  1683. end;
  1684. OnTimer9000:
  1685. npctalk "Morocc Lord Knight: Really.. the Assassin guild who I thought was on a mission to balance power in the world.", 'morroc$;
  1686. end;
  1687. OnTimer12000:
  1688. npctalk "Morocc Lord Knight: Resurrecting the demon would bring balance! Even the mightiest become slaves to a god..", 'morroc$;
  1689. end;
  1690. OnTimer15000:
  1691. npctalk "Morocc Lord Knight: The gods have their own plans. Do you know what the gods plan for you or I?", 'morroc$;
  1692. end;
  1693. OnTimer18000:
  1694. npctalk "Morocc Lord Knight: They want this world to only be in their image. Where do we fit into that?!", 'morroc$;
  1695. end;
  1696. OnTimer20000:
  1697. npctalk "Loki: Shut up!", 'loki$;
  1698. end;
  1699. OnTimer22000:
  1700. npctalk "Loki: I do not care about gods or demons or the plans that they have made. The only thing that matters is kill you.", 'loki$;
  1701. end;
  1702. OnTimer25000:
  1703. npctalk "Loki: That is my mission!", 'loki$;
  1704. end;
  1705. OnTimer28000:
  1706. npctalk "Morocc Lord Knight: So all you want is to finish your damn mission?..", 'morroc$;
  1707. end;
  1708. OnTimer31000:
  1709. npctalk "Loki: *Grins* Of course!!", 'loki$;
  1710. specialeffect EF_BEGINSPELL3,AREA, 'loki$;
  1711. end;
  1712. OnTimer33000:
  1713. npctalk "Loki: Mind blaster-!!!", 'loki$;
  1714. end;
  1715. OnTimer34000:
  1716. enablenpc instance_npcname("Young Girl#tnm04");
  1717. npctalk "Young Girl: No..!! Don't hurt my Papa!!!", instance_npcname("Young Girl#tnm04");
  1718. specialeffect EF_HIT3,AREA, instance_npcname("Young Girl#tnm04");
  1719. end;
  1720. OnTimer34500:
  1721. specialeffect EF_HIT2,AREA, instance_npcname("Young Girl#tnm04");
  1722. end;
  1723. OnTimer35500:
  1724. specialeffect EF_ICECRASH,AREA, instance_npcname("Young Girl#tnm04");
  1725. end;
  1726. OnTimer36500:
  1727. npctalk "!!!", 'loki$;
  1728. end;
  1729. OnTimer38500:
  1730. npctalk "Morocc Lord Knight: Oh no.. They should have sent better than you, Mr. Assassin, for this mission.", 'morroc$;
  1731. end;
  1732. OnTimer41500:
  1733. npctalk "Young Girl: Something is wrong....", instance_npcname("Young Girl#tnm04");
  1734. end;
  1735. OnTimer44500:
  1736. npctalk "Young Girl: My Papa would never act this way.. Ugh..", instance_npcname("Young Girl#tnm04");
  1737. end;
  1738. OnTimer47500:
  1739. npctalk "Morocc Lord Knight: Human.. To do such a stupid thing.. a sacrifice.", 'morroc$;
  1740. end;
  1741. OnTimer50500:
  1742. npctalk "Morocc Lord Knight: You know, the truth is, that it is useless.", 'morroc$;
  1743. end;
  1744. OnTimer53500:
  1745. npctalk "Morocc Lord Knight: Gwuaaa hahahaha. You stupid humans I will kill you all as sacrifices for the demon!!", 'morroc$;
  1746. specialeffect EF_COUPLECASTING,AREA, 'morroc$;
  1747. specialeffect EF_VOLCANO,AREA, 'morroc$;
  1748. end;
  1749. OnTimer54500:
  1750. npctalk "Loki:... tsk! useless....!", 'loki$;
  1751. end;
  1752. OnTimer55500:
  1753. enablenpc instance_npcname("Loki#tnmloki02");
  1754. mapwarp 'map_tnm3$, 'map_tnm3$,136,62;// todo area 1x1
  1755. 'devil_tower = 13;
  1756. stopnpctimer;
  1757. disablenpc instance_npcname("#morroc_lord_talk");
  1758. disablenpc instance_npcname("Morocc Lord Knight#mocl");
  1759. disablenpc instance_npcname("Loki#tnmloki01");
  1760. disablenpc instance_npcname("Young Girl#tnm04");
  1761. end;
  1762. }
  1763. 1@tnm3,137,65,3 script Loki#tnmloki02 4_M_ROKI2,{
  1764. if ('devil_tower != 13)
  1765. end;
  1766. if (is_party_leader() == false) {
  1767. mes "[Loki]";
  1768. mes "I am talking to your boss.";
  1769. close;
  1770. }
  1771. if (getmercinfo(0) > 0) {
  1772. mes "[Loki]";
  1773. mes "...embarrassing.";
  1774. mes "You should ^4d4dffTerminate the mercenary contract^000000, if you want to help me on this mission.";
  1775. close;
  1776. }
  1777. mes "[Loki]";
  1778. mes "Where did you come from?";
  1779. mes "I may need help here.";
  1780. npctalk "Loki: Where did you come from? I may need help here.", instance_npcname("Loki#tnmloki02");
  1781. next;
  1782. mes "[Loki]";
  1783. mes "The Lord Knight is no longer human. I have to send him to his eternity for his demonic followings.";
  1784. npctalk "Loki: The Lord Knight is no longer human. I have to send him to his eternity.", instance_npcname("Loki#tnmloki02");
  1785. next;
  1786. mes "[Loki]";
  1787. mes "^4d4dffThe ones who are infernally blessed by demons are invincible. We can sever the blessing with Mind Blaster.^000000";
  1788. npctalk "Loki: The ones who are infernally blessed by demons are invincible. We can sever the blessing with Mind Blaster.", instance_npcname("Loki#tnmloki02");
  1789. next;
  1790. mes "[Loki]";
  1791. mes "You will be in charge of activating Mind Blaster.";
  1792. npctalk "Loki: You will be in charge of activating Mind Blaster.", instance_npcname("Loki#tnmloki02");
  1793. next;
  1794. if (is_party_leader() == true && 'devil_tower == 13) {
  1795. disablenpc instance_npcname("Loki#tnmloki02");
  1796. mes "^4d4dffLoki, Guillotine Cross of the Assassin Guild, has joined your party.";
  1797. mes "We have to get rid of the demonic Lord Knight by Mind Blasting him with Loki's skill.^000000";
  1798. 'devil_tower = 14;
  1799. mercenary_create 2937,1800000;// M_LOKI
  1800. mapannounce 'map_tnm3$, "Demon Worshipper's Voice: Such rubbish! Where did you hide yourself?", bc_map,0xFF00;
  1801. initnpctimer;
  1802. }
  1803. close;
  1804. OnTimer500:
  1805. enablenpc instance_npcname("#boss_skills_timer");
  1806. monster 'map_tnm3$,93,52,"Evil Believer",2942,1, instance_npcname("#boss_skills_timer") + "::OnBossDead";// MM_EVIL_FANATICS
  1807. 'boss_id = $@mobid[0];
  1808. end;
  1809. OnTimer2000:
  1810. mapannounce 'map_tnm3$, "Demon Worshipper's Voice: You will all be sacrificed to awaken the Demon!!!", bc_map,0xFF00;
  1811. end;
  1812. OnTimer12000:
  1813. donpcevent instance_npcname("#boss_skills_timer") + "::OnStart";
  1814. stopnpctimer;
  1815. end;
  1816. }
  1817. 1@tnm3,1,1,0 script #boss_skills_timer HIDDEN_WARP_NPC,{
  1818. end;
  1819. OnStart:
  1820. 'label$ = instance_npcname("#boss_skills_timer") + "::OnMobDead";
  1821. initnpctimer;
  1822. end;
  1823. OnTimer1000:// + form
  1824. getunitdata 'boss_id, .@data;
  1825. 'x_boss = .@data[UMOB_X];
  1826. 'y_boss = .@data[UMOB_Y];
  1827. monster 'map_tnm3$, 'x_boss, 'y_boss, "",2943,1, 'label$;// MM_ICE_MINE
  1828. monster 'map_tnm3$, ('x_boss-5), 'y_boss, "",2943,1, 'label$;
  1829. monster 'map_tnm3$, ('x_boss+5), 'y_boss, "",2943,1, 'label$;
  1830. monster 'map_tnm3$, 'x_boss, ('y_boss-5), "",2943,1, 'label$;
  1831. monster 'map_tnm3$, 'x_boss, ('y_boss+5), "",2943,1, 'label$;
  1832. end;
  1833. OnTimer3000:
  1834. monster 'map_tnm3$, ('x_boss-10), 'y_boss, "",2943,1, 'label$;// MM_ICE_MINE
  1835. monster 'map_tnm3$, ('x_boss+10), 'y_boss, "",2943,1, 'label$;
  1836. monster 'map_tnm3$, 'x_boss, ('y_boss-10), "",2943,1, 'label$;
  1837. monster 'map_tnm3$, 'x_boss, ('y_boss+10), "",2943,1, 'label$;
  1838. end;
  1839. OnTimer6000:
  1840. killmonster 'map_tnm3$, 'label$;
  1841. end;
  1842. OnTimer21000:// X form
  1843. getunitdata 'boss_id, .@data;
  1844. 'x_boss = .@data[UMOB_X];
  1845. 'y_boss = .@data[UMOB_Y];
  1846. monster 'map_tnm3$, ('x_boss+3), ('y_boss+3), "",2960,1, 'label$;// MM_FLAMECROSS
  1847. monster 'map_tnm3$, ('x_boss+3), ('y_boss-3), "",2960,1, 'label$;
  1848. monster 'map_tnm3$, ('x_boss-3), ('y_boss+3), "",2960,1, 'label$;
  1849. monster 'map_tnm3$, ('x_boss-3), ('y_boss-3), "",2960,1, 'label$;
  1850. end;
  1851. OnTimer21350:
  1852. monster 'map_tnm3$, ('x_boss+6), ('y_boss+6), "",2960,1, 'label$;// MM_FLAMECROSS
  1853. monster 'map_tnm3$, ('x_boss+6), ('y_boss-6), "",2960,1, 'label$;
  1854. monster 'map_tnm3$, ('x_boss-6), ('y_boss+6), "",2960,1, 'label$;
  1855. monster 'map_tnm3$, ('x_boss-6), ('y_boss-6), "",2960,1, 'label$;
  1856. end;
  1857. OnTimer21700:
  1858. monster 'map_tnm3$, ('x_boss+9), ('y_boss+9), "",2960,1, 'label$;// MM_FLAMECROSS
  1859. monster 'map_tnm3$, ('x_boss+9), ('y_boss-9), "",2960,1, 'label$;
  1860. monster 'map_tnm3$, ('x_boss-9), ('y_boss+9), "",2960,1, 'label$;
  1861. monster 'map_tnm3$, ('x_boss-9), ('y_boss-9), "",2960,1, 'label$;
  1862. end;
  1863. OnTimer22050:
  1864. monster 'map_tnm3$, ('x_boss+13), ('y_boss+13), "",2960,1, 'label$;// MM_FLAMECROSS
  1865. monster 'map_tnm3$, ('x_boss+13), ('y_boss-13), "",2960,1, 'label$;
  1866. monster 'map_tnm3$, ('x_boss-13), ('y_boss+13), "",2960,1, 'label$;
  1867. monster 'map_tnm3$, ('x_boss-13), ('y_boss-13), "",2960,1, 'label$;
  1868. end;
  1869. OnTimer30000:
  1870. killmonster 'map_tnm3$, 'label$;
  1871. end;
  1872. OnTimer51000:// X form
  1873. getunitdata 'boss_id, .@data;
  1874. 'x_boss = .@data[UMOB_X];
  1875. 'y_boss = .@data[UMOB_Y];
  1876. monster 'map_tnm3$, 'x_boss, 'y_boss, "",2943,1, 'label$;// MM_ICE_MINE
  1877. monster 'map_tnm3$, ('x_boss+5), ('y_boss+5), "",2943,1, 'label$;
  1878. monster 'map_tnm3$, ('x_boss-5), ('y_boss-5), "",2943,1, 'label$;
  1879. monster 'map_tnm3$, ('x_boss+10), ('y_boss+10), "",2943,1, 'label$;
  1880. monster 'map_tnm3$, ('x_boss-10), ('y_boss-10), "",2943,1, 'label$;
  1881. end;
  1882. OnTimer53000:
  1883. monster 'map_tnm3$, ('x_boss-5), ('y_boss+5), "",2943,1, 'label$;// MM_ICE_MINE
  1884. monster 'map_tnm3$, ('x_boss+5), ('y_boss-5), "",2943,1, 'label$;
  1885. monster 'map_tnm3$, ('x_boss-10), ('y_boss+10), "",2943,1, 'label$;
  1886. monster 'map_tnm3$, ('x_boss+10), ('y_boss-10), "",2943,1, 'label$;
  1887. end;
  1888. OnTimer56000:
  1889. killmonster 'map_tnm3$, 'label$;
  1890. end;
  1891. OnTimer81000:// S form
  1892. getunitdata 'boss_id, .@data;
  1893. 'x_boss = .@data[UMOB_X];
  1894. 'y_boss = .@data[UMOB_Y];
  1895. monster 'map_tnm3$, ('x_boss-2), ('y_boss+5), "",2960,1, 'label$;// MM_FLAMECROSS
  1896. end;
  1897. OnTimer81300:
  1898. monster 'map_tnm3$, ('x_boss+4), ('y_boss+8), "",2960,1, 'label$;
  1899. end;
  1900. OnTimer81600:
  1901. monster 'map_tnm3$, ('x_boss+10), ('y_boss+2), "",2960,1, 'label$;
  1902. end;
  1903. OnTimer82000:
  1904. monster 'map_tnm3$, ('x_boss+10), ('y_boss-1), "",2960,1, 'label$;
  1905. end;
  1906. OnTimer82300:
  1907. monster 'map_tnm3$, ('x_boss+7), ('y_boss-7), "",2960,1, 'label$;
  1908. end;
  1909. OnTimer82600:
  1910. monster 'map_tnm3$, ('x_boss+1), ('y_boss-10), "",2960,1, 'label$;
  1911. end;
  1912. OnTimer83000:
  1913. monster 'map_tnm3$, ('x_boss-11), ('y_boss-1), "",2960,1, 'label$;
  1914. end;
  1915. OnTimer83300:
  1916. monster 'map_tnm3$, ('x_boss-11), ('y_boss+5), "",2960,1, 'label$;
  1917. end;
  1918. OnTimer83600:
  1919. monster 'map_tnm3$, ('x_boss-8), ('y_boss+11), "",2960,1, 'label$;
  1920. end;
  1921. OnTimer84000:
  1922. monster 'map_tnm3$, ('x_boss-2), ('y_boss+17), "",2960,1, 'label$;
  1923. end;
  1924. OnTimer84300:
  1925. monster 'map_tnm3$, ('x_boss+7), ('y_boss+20), "",2960,1, 'label$;
  1926. end;
  1927. OnTimer90000:
  1928. killmonster 'map_tnm3$, 'label$;
  1929. initnpctimer;
  1930. end;
  1931. OnMobDead:
  1932. end;
  1933. OnBossDead:
  1934. stopnpctimer;
  1935. killmonster 'map_tnm3$, 'label$;
  1936. 'x_boss = 'y_boss = 'boss_id = 0;
  1937. 'label$ = "";
  1938. mapannounce 'map_tnm3$, "Demon Worshipper's Voice: NO it is impossible. It cannot be.. This force.. power.. you.. may..be you are..", bc_map,0xFF0000;
  1939. sleep2 1000;
  1940. warpparty 'map_tnm3$,71,70, getcharid(1), 'map_tnm3$,1,1;
  1941. enablenpc instance_npcname("Loki#tnmloki03");
  1942. enablenpc instance_npcname("box#tnmbosang");
  1943. disablenpc instance_npcname("#boss_skills_timer");
  1944. 'devil_tower = 15;
  1945. end;
  1946. }
  1947. 1@tnm3,69,70,3 script box#tnmbosang 4_TREASURE_BOX,{
  1948. if ('devil_tower != 15)
  1949. end;
  1950. specialeffect EF_COIN;
  1951. disablenpc instance_npcname("box#tnmbosang");
  1952. makeitem 7293,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)); // Rose Quartz
  1953. makeitem 749,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)); // Frozen Rose
  1954. makeitem 7511,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)); // Rune of Darkness
  1955. if (rand(100) < 75)
  1956. makeitem 616,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)); // Old Card Album
  1957. if (rand(100) < 50)
  1958. makeitem 748,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)); // Witherless_Rose
  1959. setarray .@item_id_list[0],
  1960. 1671, // Devil_Won_Staff
  1961. 13094, // Devil_Pierced_Dagger
  1962. 16027, // Hammer_Of_Evil_Slayer
  1963. 18120, // Bow_Of_Evil_Slayer
  1964. 21010, // Tw_Sword_Of_Evil_Slayer
  1965. 28001; // Katar_Of_Evil_Slayer
  1966. setarray .@bonus_list1[0],
  1967. 4800, // SP50
  1968. 4811, // Fighting_Spirit1
  1969. 4810, // Fighting_Spirit2
  1970. 4809, // Fighting_Spirit3
  1971. 4808, // Fighting_Spirit4
  1972. 4820, // Fighting_Spirit5
  1973. 4821, // Fighting_Spirit6
  1974. 4815, // Spell1
  1975. 4814, // Spell2
  1976. 4813, // Spell3
  1977. 4812, // Spell4
  1978. 4786; // Mdef2
  1979. setarray .@bonus_list2[0],
  1980. 4815, // Spell1
  1981. 4814, // Spell2
  1982. 4813, // Spell3
  1983. 4812, // Spell4
  1984. 4826, // Spell5
  1985. 4811, // Fighting_Spirit1
  1986. 4810, // Fighting_Spirit2
  1987. 4809, // Fighting_Spirit3
  1988. 4808, // Fighting_Spirit4
  1989. 4820, // Fighting_Spirit5
  1990. 4786; // Mdef2
  1991. setarray .@bonus_list3[0],
  1992. 4815, // Spell1
  1993. 4814, // Spell2
  1994. 4813, // Spell3
  1995. 4812, // Spell4
  1996. 4811, // Fighting_Spirit1
  1997. 4810, // Fighting_Spirit2
  1998. 4809, // Fighting_Spirit3
  1999. 4808, // Fighting_Spirit4
  2000. 4820, // Fighting_Spirit5
  2001. 4821, // Fighting_Spirit6
  2002. 4791, // DEF+3
  2003. 4786; // Mdef2
  2004. .@item_id = .@item_id_list[ rand( getarraysize(.@item_id_list) ) ];
  2005. .@refine = rand(1,6);
  2006. .@bonus1 = .@bonus_list1[ rand( getarraysize(.@bonus_list1) ) ];
  2007. .@bonus2 = .@bonus_list1[ rand( getarraysize(.@bonus_list2) ) ];
  2008. .@bonus3 = .@bonus_list1[ rand( getarraysize(.@bonus_list3) ) ];
  2009. makeitem2 .@item_id,1, 'map_tnm3$, (69 + rand(-5,5)), (70 + rand(-5,5)), 0, .@refine,0, 0,.@bonus1,.@bonus2,.@bonus3;
  2010. end;
  2011. }
  2012. //1@tnm3,69,72,3 script Loki#tnmloki03 4_M_ROKI2,5,5,{
  2013. 1@tnm3,69,72,3 script Loki#tnmloki03 4_M_ROKI2,{
  2014. if ('devil_tower != 15)
  2015. end;
  2016. if (isbegin_quest(7576) == 0) {
  2017. mes "[Loki]";
  2018. mes ".. annoying";
  2019. mes "The demon was destroyed before the resurrection ceremony was completed.";
  2020. mes "Things will be fine for awhile.";
  2021. setquest 7576;// Morocc castle seal
  2022. next;
  2023. mes "I have gained unexpected information during my exploration of the Tower.";
  2024. next;
  2025. mes "[Loki]";
  2026. mes "I will remain apart from my conscience for a bit longer";
  2027. mes "someday I'll let myself feel again, and today will occupy my thoughts..";
  2028. close;
  2029. }
  2030. mes "[Loki]";
  2031. mes "Interesting.. there is a daughter..";
  2032. mes "What should be done about it?";
  2033. mes "I am not sure of what my next move is to be..";
  2034. next;
  2035. mes "[Loki]";
  2036. mes "But no matter, you obviously shouldn't be here, now.";
  2037. mes "Will stay here any longer?";
  2038. mes "I can send you back where and when you belong.";
  2039. next;
  2040. if (select( "Get out of here.", "Take a look around." ) == 2) {
  2041. mes "[Loki]";
  2042. mes "It is unwise to linger where time is distorted.";
  2043. close;
  2044. }
  2045. mes "[Loki]";
  2046. mes "Perhaps, our missions will ally us again in the future..";
  2047. close2;
  2048. warp "dali02",134,112;
  2049. end;
  2050. OnInstanceInit:
  2051. 'heal_count = 0;
  2052. 'devil_tower = 0;
  2053. 'mob_count = 0;
  2054. 'shade = 0;
  2055. 'map_tnm1$ = instance_mapname("1@tnm1");
  2056. 'map_tnm2$ = instance_mapname("1@tnm2");
  2057. 'map_tnm3$ = instance_mapname("1@tnm3");
  2058. // Entrance
  2059. disablenpc instance_npcname("Officer Heim#heim");
  2060. disablenpc instance_npcname("Healer Fama#feima");
  2061. for ( .@i = 1; .@i < 8; .@i++ )
  2062. disablenpc instance_npcname( "Injured Soldier#" + .@i );
  2063. disablenpc instance_npcname("Lucile#tnm01");
  2064. disablenpc instance_npcname("Magic Swordman#tnm01");
  2065. disablenpc instance_npcname("Assassin Huey#tnm01");
  2066. disablenpc instance_npcname("Assassin Louie#tnm01");
  2067. disablenpc instance_npcname("Assassin Dewey#tnm01");
  2068. // Stairs tnm1
  2069. disablenpc instance_npcname("#tnm1stepmob");
  2070. disablenpc instance_npcname("Assassin Louie#tnm02");
  2071. // Stairs 2 tnm1
  2072. disablenpc instance_npcname("Lucile#tnm02");
  2073. disablenpc instance_npcname("Huey#hui02");
  2074. // Morocc - Thanatos Battle
  2075. disablenpc instance_npcname("Magic Swordman#tnm02");
  2076. disablenpc instance_npcname("Demon Morocc#tnm01");
  2077. disablenpc instance_npcname("Lucile#tnm03");
  2078. disablenpc instance_npcname("Lucile#tnm04");
  2079. disablenpc instance_npcname("#devil_flamecross");
  2080. disablenpc instance_npcname("#devil_seal_timer");
  2081. disablenpc instance_npcname("#devil_seal_spawn_global");
  2082. setarray .@direction$[0], "DIR_NORTHWEST", "DIR_SOUTHWEST", "DIR_SOUTHEAST", "DIR_NORTHEAST", "DIR_NORTH";
  2083. for ( .@i = 0; .@i < 5; .@i++ ) {
  2084. disablenpc instance_npcname("devil_seal_spawn#" + .@direction$[.@i]);
  2085. disablenpc instance_npcname("seal_reach_center#" + .@direction$[.@i]);
  2086. }
  2087. disablenpc instance_npcname("#devil_seal_dead");
  2088. 'demon$ = 'thanatos$ = "";
  2089. 'round[DIR_NORTHWEST] = 'round[DIR_SOUTHWEST] = 'round[DIR_SOUTHEAST] = 'round[DIR_NORTHEAST] = 'round[DIR_NORTH] = 0;
  2090. 'seal_id[DIR_NORTHWEST] = 'seal_id[DIR_SOUTHWEST] = 'seal_id[DIR_SOUTHEAST] = 'seal_id[DIR_NORTHEAST] = 'seal_id[DIR_NORTH] = 0;
  2091. 'seal_hp[DIR_NORTHWEST] = 'seal_hp[DIR_SOUTHWEST] = 'seal_hp[DIR_SOUTHEAST] = 'seal_hp[DIR_NORTHEAST] = 'seal_hp[DIR_NORTH] = 0;
  2092. 'seal_dead[DIR_NORTHWEST] = 'seal_dead[DIR_SOUTHWEST] = 'seal_dead[DIR_SOUTHEAST] = 'seal_dead[DIR_NORTHEAST] = 'seal_dead[DIR_NORTH] = 0;
  2093. deletearray 'coord_seal_DIR_NORTHWEST[0],14;
  2094. deletearray 'coord_seal_DIR_SOUTHWEST[0],14;
  2095. deletearray 'coord_seal_DIR_SOUTHEAST[0],14;
  2096. deletearray 'coord_seal_DIR_NORTHEAST[0],14;
  2097. deletearray 'coord_seal_DIR_NORTH[0],14;
  2098. // tnm3 Stairs 1
  2099. disablenpc instance_npcname("#tnm3event01");
  2100. disablenpc instance_npcname("Young Girl#tnm01");
  2101. disablenpc instance_npcname("#tnm3gate01");
  2102. // tnm3 Stairs 2
  2103. disablenpc instance_npcname("#tnm3event02ect");
  2104. disablenpc instance_npcname("Young Girl#tnm02");
  2105. disablenpc instance_npcname("Young Girl#tnm03");
  2106. disablenpc instance_npcname("#tnm3gate02");
  2107. // tnm3 Stairs 3
  2108. disablenpc instance_npcname("Evil Shadow#tnm3mob01");
  2109. disablenpc instance_npcname("Evil Shadow kill#tnm3mob01");
  2110. disablenpc instance_npcname("#tnm3gate03");
  2111. // Demonic Shade (Boss room)
  2112. disablenpc instance_npcname("Demonic Shade#mobmaster");
  2113. disablenpc instance_npcname("#mobmaster_kill");
  2114. // Boss
  2115. disablenpc instance_npcname("Morocc Lord Knight#mocl");
  2116. disablenpc instance_npcname("#morroc_lord_talk");
  2117. disablenpc instance_npcname("Loki#tnmloki01");
  2118. disablenpc instance_npcname("Young Girl#tnm04");
  2119. disablenpc instance_npcname("Loki#tnmloki02");
  2120. disablenpc instance_npcname("#boss_skills_timer");
  2121. 'x_boss = 'y_boss = 'boss_id = 0;
  2122. 'label$ = "";
  2123. // Final
  2124. disablenpc instance_npcname("Loki#tnmloki03");
  2125. disablenpc instance_npcname("box#tnmbosang");
  2126. end;
  2127. }