OldGlastHeim.txt 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250
  1. //===== rAthena Script =======================================
  2. //= Old Glast Heim
  3. //===== Description: =========================================
  4. //= Discover the history of events that took place in the
  5. //= Glast Heim castle and how it ended up in ruins.
  6. //===== Changelogs: =================================
  7. //= 1.0 First version. [Euphy, Ziu, Heris]
  8. //= This is a custom version, and may contain bugs.
  9. //= 1.1 Bug fixes; removed redundant OnInstanceInit scripts.
  10. //= 1.2 Add NPC Hugin's Follower [exneval]
  11. //= NPC that give access to Glast Heim Nightmare Mode.
  12. //= 1.3 Add some NPCs placeholder. [exneval]
  13. //= 1.4 Update to its official text. [exneval]
  14. //= Support merchant, enchant, socket features.
  15. //= 1.5 idAthena merge. Removed Hugin's Follower NPCs. [Secretdataz]
  16. //= Changed `set` calls to direct assignments.
  17. //= Cleaned up the script.
  18. //= TODO: Confirm Hugin NPC's code flow.
  19. //= 1.6 Cleaned up the dialogue. [Aleos]
  20. //= 1.7 Implemented fast mode. [Atemo]
  21. // Note: The treasure room is not accessible in fast mode.
  22. //============================================================
  23. glast_01,204,273,5 script Hugin 4_M_SAGE_C,{
  24. if (BaseLevel < 130) {
  25. mes "[Hugin]";
  26. mes "Why don't you come back after becoming stronger?";
  27. mes "Maybe, level 130.";
  28. close;
  29. }
  30. if (isbegin_quest(12316) == 0) {
  31. mes "[Hugin]";
  32. mes "A long time ago, this castle did not look like this.";
  33. next;
  34. mes "[Hugin]";
  35. mes "Ah, I'm sorry. I'm muttering in front of a stranger.";
  36. next;
  37. mes "[Hugin]";
  38. mes "My name is Hugin. I'm studying the dimensional gap between time and space.";
  39. next;
  40. select("There's something like that here?");
  41. mes "[Hugin]";
  42. mes "Have you ever wondered about the history of Glast Heim?";
  43. next;
  44. mes "[Hugin]";
  45. mes "There was a King named Shumiche who was known as a tyrant in the history of the Rune-Midgarts Kingdom.";
  46. next;
  47. mes "[Hugin]";
  48. mes "Time will reveal the true answers if we look in the right places.";
  49. next;
  50. if (select("I don't care about history","That is interesting. Did you find anything?") == 1) {
  51. mes "[Hugin]";
  52. mes "Really? Hmm, please come back later when you are interested then.";
  53. close;
  54. }
  55. mes "[Hugin]";
  56. mes "Actually, dimensional time travel is possible but I'm too afraid to go there.";
  57. next;
  58. mes "[Hugin]";
  59. mes "It might be possible for you!";
  60. next;
  61. mes "[Hugin]";
  62. mes "Do you want to time travel?";
  63. next;
  64. if (select("No, thanks.","Yes, of course I do!") == 1) {
  65. mes "[Hugin]";
  66. mes "Really? But, jumping gigawatts, this is such a great opportunity.";
  67. close;
  68. }
  69. mes "[Hugin]";
  70. mes "I knew that you would understand what I said. Well, please tell me what you want to do.";
  71. setquest 12316;// Meeting Hugin
  72. completequest 12316;
  73. }
  74. else {
  75. mes "[Hugin]";
  76. mes "Umm? Did you see me at another place? I don't think so. What about this time?";
  77. if (isbegin_quest(12322) == 1)
  78. erasequest 12322;
  79. }
  80. next;
  81. switch( checkquest(12317,PLAYTIME) ) {
  82. case -1:
  83. .@party_id = getcharid(1);
  84. .@p_name$ = getpartyname(.@party_id);
  85. .@md_name$ = "Old Glast Heim";
  86. if (!instance_check_party(.@party_id)) {
  87. mes "[Hugin]";
  88. mes "Why don't you make a party with more than 1 person and talk to me again?";
  89. close;
  90. }
  91. if (is_party_leader() == true)
  92. .@menu$ = "Generate Time Gap";
  93. else {
  94. mes "[Hugin]";
  95. mes "Have we met before? No way. It's my first time seeing you. What do you want?";
  96. }
  97. if (isbegin_quest(12318) == 0)
  98. setquest 12318;// Corrupted Soul Hunt
  99. switch( select( .@menu$, "Enter Old Glast Heim", "Cancel" ) ) {
  100. case 1:
  101. switch( instance_create(.@md_name$) ) {
  102. case -3:
  103. dispbottom "Memorial Dungeon, 'Old Glast Heim' is already in progress.",0xFFFFFF;
  104. close;
  105. case -4:
  106. case -2:
  107. case -1:
  108. mes "Party Name: " + getpartyname( getcharid(1) );
  109. mes "Party Leader: " + strcharinfo(0);
  110. mes "^0000ff" + .@md_name$ + "^000000 - time gap generation failed.";
  111. close;
  112. }
  113. mes "[Hugin]";
  114. mes "After the time gap opens, please tell me again.";
  115. close;
  116. case 2:
  117. switch( instance_enter(.@md_name$) ) {
  118. case IE_OTHER:
  119. mes "[Hugin]";
  120. mes "An unknown error has occurred.";
  121. close;
  122. case IE_NOINSTANCE:
  123. mes "[Hugin]";
  124. mes "The time gap is not yet open.";
  125. close;
  126. case IE_NOMEMBER:
  127. mes "[Hugin]";
  128. mes "Your body is not fit to enter the time gap. You won't be able to get in if you're not in a party.";
  129. close;
  130. case IE_OK:
  131. mapannounce "glast_01", "" + getpartyname( getcharid(1) ) + " party member " + strcharinfo(0) + " enters the " + .@md_name$ + ".", bc_map,0x00FF99;
  132. setquest 12317;// Trace of Time Travel
  133. // warp "1@gl_k",150,20;
  134. end;
  135. }
  136. case 3:
  137. close;
  138. }
  139. case 0:
  140. case 1:
  141. mes "[Hugin]";
  142. mes "Oh, my...";
  143. mes "You still have after-effects of time travel. You can't travel again with this condition.";
  144. next;
  145. mes "[Hugin]";
  146. mes "Staying healthy is important, so please take a break and come back again later.";
  147. close;
  148. case 2:
  149. mes "^0000ffAll traces of access to Old Glast Heim have been removed. Now you can talk with Hugin again.^000000";
  150. if (isbegin_quest(12318) == 0)
  151. setquest 12318;// Corrupted Soul Hunt
  152. erasequest 12317;
  153. close;
  154. }
  155. }
  156. // Warps
  157. 1@gl_k,96,80,0 warp #2Control 2,2,1@gl_k,80,80
  158. 1@gl_k,90,80,0 warp #2Control2 2,2,1@gl_k,105,80
  159. 1@gl_k,202,79,0 warp #3Control 2,2,1@gl_k,215,79
  160. 1@gl_k,206,79,0 warp #3Control2 2,2,1@gl_k,195,79
  161. 1@gl_k,227,216,0 warp #4Control 2,2,1@gl_k,215,216
  162. 1@gl_k,222,216,0 warp #4Control2 2,2,1@gl_k,233,216
  163. // 1@gl_k,150,284,0 warp #2F Entrance 2,2,2@gl_k,150,46
  164. 2@gl_k,149,32,0 warp #1 Control 2,2,1@gl_k,150,270
  165. 2@gl_k,145,123,0 warp #22 Control 2,2,2@gl_k,126,123
  166. 2@gl_k,136,122,0 warp #22 Control2 2,2,2@gl_k,150,116
  167. 2@gl_k,154,101,0 warp #23 Control 2,2,2@gl_k,174,101
  168. 2@gl_k,165,101,0 warp #23 Control2 2,2,2@gl_k,150,111
  169. 2@gl_k,150,163,0 warp #24 Control 2,2,2@gl_k,150,179
  170. 2@gl_k,150,167,0 warp #24 Control2 2,2,2@gl_k,150,149
  171. 1@gl_k,69,168,0 warp #Secret Room Exit 2,2,1@gl_k,48,168
  172. // Floor 1
  173. //============================================================
  174. 1@gl_k,149,41,5 script Varmundt#0 4_M_BARMUND,{
  175. if (is_party_leader() == false) {
  176. mes "[Varmundt]";
  177. mes "Where's your leader? I need his help.";
  178. cutin "gl_barmund2",2;
  179. close3;
  180. }
  181. // If the instance has already been completed once, the player can skip sector 1,2,3 and starts from the 1st boss MG_CORRUPTION_ROOT
  182. if (isbegin_quest(12321) == 2) {
  183. mes "You have a previous clear record. You can skip the scenario and proceed accordingly.";
  184. next;
  185. if (select( "Omit moderately.", "Appreciate everything." ) == 1) {
  186. cutin "GL_BARMUND1.bmp",2;
  187. mes "[Varmundt]";
  188. mes "I've seen you, " + strcharinfo(0) + ".";
  189. mes "I'm sure I can trust you. Let's leave right away.";
  190. close2;
  191. cutin "",255;
  192. if ('step == 0) {
  193. 'step = 1;
  194. 'mode = 2;
  195. disablenpc();
  196. enablenpc instance_npcname("Heinrich#1");
  197. enablenpc instance_npcname("Varmundt#1");
  198. }
  199. end;
  200. }
  201. // (original scenario)
  202. }
  203. .@account_id = getcharid(3);
  204. .@player_name$ = strcharinfo(0);
  205. mes "[Varmundt]";
  206. mes "Are you the one ^0000ffHerico^000000 sent to help me?";
  207. npctalk "Varmundt: Are you the one Herico sent to help me?";
  208. cutin "gl_barmund1",2;
  209. next;
  210. select("Oh. Well I...");
  211. mes "[" + .@player_name$ + "]";
  212. mes "Ah yes, I am. Herico told me to meet you.";
  213. unittalk .@account_id, .@player_name$ + " : Ah yes, I am. Herico told me to meet you.";
  214. next;
  215. mes "[Varmundt]";
  216. mes "We don't have much time. We must report to Sir Heinrich about Himelmez's invasion.";
  217. npctalk "Varmundt: We don't have much time. We must report to Sir Heinrich about Himelmez's invasion.";
  218. cutin "gl_barmund2",2;
  219. next;
  220. select("Himelmez...");
  221. mes "[" + .@player_name$ + "]";
  222. mes "Who is Himelmez?";
  223. unittalk .@account_id, .@player_name$ + " : Who is Himelmez?";
  224. next;
  225. mes "[Varmundt]";
  226. mes "Herico didn't tell you?";
  227. npctalk "Varmundt: Herico didn't tell you?";
  228. cutin "gl_barmund3",2;
  229. next;
  230. mes "[Varmundt]";
  231. mes "She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the heart of Ymir from us.";
  232. npctalk "Varmundt: She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the heart of Ymir from us.";
  233. cutin "gl_barmund2",2;
  234. next;
  235. mes "[Varmundt]";
  236. mes "She might even destroy this whole castle if she wanted to.";
  237. npctalk "Varmundt: She might even destroy this whole castle if she wanted to.";
  238. next;
  239. mes "[Varmundt]";
  240. mes "Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!";
  241. npctalk "Varmundt: Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!";
  242. close2;
  243. cutin "",255;
  244. if ('step == 0) {
  245. 'step = 1;
  246. 'mode = 1;
  247. disablenpc instance_npcname("Varmundt#0");
  248. enablenpc instance_npcname("Heinrich#1");
  249. enablenpc instance_npcname("Varmundt#1");
  250. }
  251. end;
  252. }
  253. 1@gl_k,145,104,6 script Khalitzburg Knightage#1 4_F_KHALITZBURG,{
  254. mes "[Khalitzburg Knightage]";
  255. mes "My work shift will be over soon, but the next crew is not coming.";
  256. close;
  257. }
  258. 1@gl_k,154,104,3 script Khalitzburg Knightage#2 4_F_KHALITZBURG,{
  259. mes "[Khalitzburg Knightage]";
  260. mes "Something you want to tell me?";
  261. close;
  262. }
  263. 1@gl_k,145,99,6 script White Knight#3 4_WHITEKNIGHT,{
  264. mes "[White Knight]";
  265. mes "Are you with Varmundt? Commander is waiting for you.";
  266. close;
  267. }
  268. 1@gl_k,154,99,3 duplicate(Khalitzburg Knightage#1) White Knight#4 4_WHITEKNIGHT
  269. 1@gl_k,145,94,6 script Khalitzburg Knightage#5 4_F_KHALITZBURG,{
  270. mes "[Khalitzburg Knightage]";
  271. mes "I had a weird dream last night. My mom was in it... Wonder if she is ok...";
  272. close;
  273. }
  274. 1@gl_k,154,94,3 duplicate(White Knight#3) Khalitzburg Knightage#6 4_F_KHALITZBURG
  275. 1@gl_k,145,89,6 script White Knight#7 4_WHITEKNIGHT,{
  276. mes "[White Knight]";
  277. mes "Please do not make a mess here.";
  278. close;
  279. }
  280. 1@gl_k,154,89,3 duplicate(White Knight#7) White Knight#8 4_WHITEKNIGHT
  281. 1@gl_k,145,84,6 script Khalitzburg Knightage#9 4_F_KHALITZBURG,{
  282. mes "[Khalitzburg Knightage]";
  283. mes "Orders please.";
  284. close;
  285. }
  286. 1@gl_k,154,84,3 duplicate(Khalitzburg Knightage#9) Khalitzburg Knightage#10 4_F_KHALITZBURG
  287. 1@gl_k,145,79,6 script White Knight#11 4_WHITEKNIGHT,{
  288. mes "[White Knight]";
  289. mes "How do you know Varmundt? I heard that he's not really a friendly man...";
  290. close;
  291. }
  292. 1@gl_k,154,79,3 duplicate(White Knight#11) White Knight#12 4_WHITEKNIGHT
  293. 1@gl_k,145,74,6 script Khalitzburg Knightage#13 4_F_KHALITZBURG,{
  294. mes "[Khalitzburg Knightage]";
  295. mes "Doesn't this castle seem weird all of a sudden? Something's not quite right.";
  296. close;
  297. }
  298. 1@gl_k,154,74,3 duplicate(Khalitzburg Knightage#13) Khalitzburg Knightage#14 4_F_KHALITZBURG
  299. 1@gl_k,145,69,6 script White Knight#15 4_WHITEKNIGHT,{
  300. mes "[White Knight]";
  301. mes "I do not like to chat during work.";
  302. close;
  303. }
  304. 1@gl_k,154,69,3 duplicate(White Knight#15) White Knight#16 4_WHITEKNIGHT
  305. 1@gl_k,145,64,6 script Khalitzburg Knightage#17 4_F_KHALITZBURG,{
  306. mes "[Khalitzburg Knightage]";
  307. mes "...";
  308. close;
  309. }
  310. 1@gl_k,154,64,3 duplicate(Khalitzburg Knightage#17) Khalitzburg Knightage#18 4_F_KHALITZBURG
  311. 1@gl_k,145,59,6 script White Knight#19 4_WHITEKNIGHT,{
  312. mes "[White Knight]";
  313. mes "What can I do for you?";
  314. close;
  315. }
  316. 1@gl_k,154,59,3 duplicate(White Knight#19) White Knight#20 4_WHITEKNIGHT
  317. 1@gl_k,145,54,6 script Khalitzburg Knightage#21 4_F_KHALITZBURG,{
  318. mes "[Khalitzburg Knightage]";
  319. mes "Is there something you need?";
  320. close;
  321. }
  322. 1@gl_k,154,54,3 duplicate(Khalitzburg Knightage#21) Khalitzburg Knightage#22 4_F_KHALITZBURG
  323. 1@gl_k,149,100,5 script Heinrich#1 4_M_HEINRICH,{
  324. if (is_party_leader() == false || 'step != 1) {
  325. mes "[Heinrich]";
  326. mes "Where is your leader? I must talk to him.";
  327. cutin "gl_heinrich2",2;
  328. close3;
  329. }
  330. if ('mode == 2) {
  331. cutin "GL_HEINRICH2.bmp",2;
  332. select( "Heinrich, you are in the castle now..." );
  333. mes "[Heinrich]";
  334. mes "Ohh " + strcharinfo(0) + "";
  335. mes "I guess I can trust you. Let's leave right away.";
  336. close2;
  337. cutin "",255;
  338. if ('step == 1) {
  339. 'step = 2;
  340. donpcevent instance_npcname("#talkinstance2") + "::OnEnable";
  341. }
  342. end;
  343. }
  344. .@account_id = getcharid(3);
  345. .@player_name$ = strcharinfo(0);
  346. cutin "gl_heinrich2",2;
  347. select("Sir Heinrich. Varmundt...");
  348. mes "[" + .@player_name$ + "]";
  349. mes "Sir Heinrich. Do you know what is happening in the castle now?";
  350. unittalk .@account_id, .@player_name$ + " : Sir Heinrich. Do you know what is happening in the castle now?";
  351. next;
  352. mes "[Heinrich]";
  353. mes "Aren't you the adventurer that came along with Varmundt?";
  354. npctalk "Heinrich: Aren't you the adventurer that came along with Varmundt?";
  355. next;
  356. mes "[Heinrich]";
  357. mes "What is it? Something wrong with the castle?";
  358. npctalk "Heinrich: What is it? Something wrong with the castle?";
  359. next;
  360. select("Himelmez's invasion...");
  361. mes "[" + .@player_name$ + "]";
  362. mes "Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!";
  363. unittalk .@account_id, .@player_name$ + " : Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!";
  364. next;
  365. mes "[Heinrich]";
  366. mes "Haha. Funny. Do you really think that is possible?";
  367. npctalk "Heinrich: Haha. Funny. Do you really think that is possible?";
  368. cutin "gl_heinrich1",2;
  369. next;
  370. mes "[Varmundt]";
  371. mes "I'm not kidding, Sir Heinrich. If I'm correct, then she will be here very soon.";
  372. npctalk "Varmundt: I'm not kidding, Sir Heinrich. If I'm correct, then she will be here very soon.", instance_npcname("Varmundt#1");
  373. cutin "gl_barmund2",2;
  374. next;
  375. mes "[Varmundt]";
  376. mes "We must hide the heart piece in a safe place before Himelmez's attack starts!";
  377. npctalk "Varmundt: We must hide the heart piece in a safe place before Himelmez's attack starts!", instance_npcname("Varmundt#1");
  378. next;
  379. select("Even if you don't believe me...");
  380. mes "[" + .@player_name$ + "]";
  381. mes "I can't make you believe me, but there's no time to argue!";
  382. unittalk .@account_id, .@player_name$ + " : I can't make you believe me, but there's no time to argue!";
  383. cutin "",255;
  384. next;
  385. mes "[Heinrich]";
  386. mes "Thank you for the help. But we don't even have our king with us right now.";
  387. npctalk "Heinrich: Thank you for the help. But we don't even have our king with us right now.";
  388. cutin "gl_heinrich1",2;
  389. next;
  390. mes "[Heinrich]";
  391. mes "We cannot risk moving the heart just because some stranger says so.";
  392. npctalk "Heinrich: We cannot risk moving the heart just because some stranger says so.";
  393. close2;
  394. cutin "",255;
  395. if ('step == 1) {
  396. 'step = 2;
  397. donpcevent instance_npcname("#talkinstance1") + "::OnEnable";
  398. }
  399. end;
  400. }
  401. 1@gl_k,152,97,3 duplicate(dummy_npc) Varmundt#1 4_M_BARMUND
  402. 1@gl_k,149,97,5 duplicate(Varmundt#1) Heinrich#2 4_M_HEINRICH
  403. 1@gl_k,149,100,5 duplicate(Varmundt#1) Heinrich#3 4_M_HEINRICH
  404. 1@gl_k,149,89,1 duplicate(Varmundt#1) Himelmez#1 4_F_HIMEL
  405. // Control Timer
  406. //============================================================
  407. 1@gl_k,1,1,0 script #talkinstance1 HIDDEN_WARP_NPC,{
  408. end;
  409. OnEnable:
  410. disablenpc instance_npcname("Heinrich#1");
  411. enablenpc instance_npcname("Heinrich#2");
  412. enablenpc instance_npcname("Himelmez#1");
  413. mapannounce 'map_name$[0], "????'s: Muahahahaha~!", bc_map,0xFFFF00,FW_NORMAL,18;
  414. initnpctimer;
  415. 'npc_himelmez1$ = instance_npcname("Himelmez#1");
  416. 'npc_varmundt1$ = instance_npcname("Varmundt#1");
  417. 'npc_heinrich2$ = instance_npcname("Heinrich#2");
  418. 'npc_heinrich3$ = instance_npcname("Heinrich#3");
  419. end;
  420. OnTimer1500:
  421. npctalk "Heinrich: Who are you?", 'npc_heinrich2$;
  422. end;
  423. OnTimer4500:
  424. npctalk "Himelmez: Well well~ Am I interrupting you? Weren't you expecting me?", 'npc_himelmez1$;
  425. end;
  426. OnTimer10000:
  427. npctalk "Varmundt: Himelmez!! Already!", 'npc_varmundt1$;
  428. end;
  429. OnTimer17500:
  430. npctalk "Himelmez: My name is Lisa Kahn Himelmez. Master of Dullahan, Dead man's Valkyrie, that's what they call me.", 'npc_himelmez1$;
  431. end;
  432. OnTimer22000:
  433. npctalk "Heinrich: Aren't you a little too feminine to be the Ruler of death? We are not afraid of you...", 'npc_heinrich2$;
  434. end;
  435. OnTimer28500:
  436. npctalk "Himelmez: Let's see if you can relax like that after you find out where your king is.", 'npc_himelmez1$;
  437. end;
  438. OnTimer36000:
  439. npctalk "Heinrich: What?", 'npc_heinrich2$;
  440. end;
  441. OnTimer41000:
  442. npctalk "Himelmez: Hmm, now I have your attention do I not?", 'npc_himelmez1$;
  443. end;
  444. OnTimer47000:
  445. npctalk "Himelmez: You don't want the king's position, just wait for him to come back. I like your purity.", 'npc_himelmez1$;
  446. end;
  447. OnTimer54000:
  448. npctalk "Himelmez: It's a pity to meet you in a situation like this.", 'npc_himelmez1$;
  449. end;
  450. OnTimer59000:
  451. npctalk "Heinrich: My king is visiting the Rune-Midgarts royal family. He's not back yet.", 'npc_heinrich2$;
  452. end;
  453. OnTimer66500:
  454. npctalk "Heinrich: And now you are trying to trick me, what has happened to him?!", 'npc_heinrich2$;
  455. end;
  456. OnTimer71500:
  457. npctalk "Himelmez: Well~ I would love to sit down and explain for you, but I'm kind of busy today~", 'npc_himelmez1$;
  458. end;
  459. OnTimer78000:
  460. npctalk "Himelmez: I have business to take care of. My minions will treat you well enough for me~", 'npc_himelmez1$;
  461. end;
  462. OnTimer84500:
  463. npctalk "Heinrich: She probably already knows where the Ymir's heart piece is.", 'npc_heinrich2$;
  464. disablenpc 'npc_himelmez1$;
  465. end;
  466. OnTimer90500:
  467. npctalk "Heinrich: All Khalitzburg and White Knights should follow me now...", 'npc_heinrich2$;
  468. end;
  469. OnTimer92000:
  470. for (.@i = 1; .@i <= 20; .@i += 4) {
  471. hideonnpc instance_npcname("Khalitzburg Knightage#" + .@i);
  472. hideonnpc instance_npcname("Khalitzburg Knightage#" + (.@i+1));
  473. hideonnpc instance_npcname("White Knight#" + (.@i+2));
  474. hideonnpc instance_npcname("White Knight#" + (.@i+3));
  475. }
  476. hideonnpc instance_npcname("Khalitzburg Knightage#21");
  477. hideonnpc instance_npcname("Khalitzburg Knightage#22");
  478. .@label$ = instance_npcname("#talkinstance1") + "::OnMyMobDead";
  479. monster 'map_name$[0],145,59,"Abysmal Knight",2470,1,.@label$;// MG_KNIGHT_OF_ABYSS
  480. monster 'map_name$[0],154,59,"Abysmal Knight",2470,1,.@label$;
  481. monster 'map_name$[0],145,69,"Abysmal Knight",2470,1,.@label$;
  482. monster 'map_name$[0],154,69,"Abysmal Knight",2470,1,.@label$;
  483. monster 'map_name$[0],145,79,"Abysmal Knight",2470,1,.@label$;
  484. monster 'map_name$[0],154,79,"Abysmal Knight",2470,1,.@label$;
  485. monster 'map_name$[0],145,89,"Abysmal Knight",2470,1,.@label$;
  486. monster 'map_name$[0],154,89,"Abysmal Knight",2470,1,.@label$;
  487. monster 'map_name$[0],145,99,"Abysmal Knight",2470,1,.@label$;
  488. monster 'map_name$[0],154,99,"Abysmal Knight",2470,1,.@label$;
  489. monster 'map_name$[0],145,54,"Khalitzburg",2471,1,.@label$;// G_MG_KHALITZBURG
  490. unittalk $@mobid[0],"Water... Someone give me water...";
  491. monster 'map_name$[0],154,54,"Khalitzburg",2471,1,.@label$;
  492. unittalk $@mobid[0],"Kkkrrrruughgh...";
  493. monster 'map_name$[0],145,64,"Khalitzburg",2471,1,.@label$;
  494. unittalk $@mobid[0],"Sir Heinrich. Save me...";
  495. monster 'map_name$[0],154,64,"Khalitzburg",2471,1,.@label$;
  496. unittalk $@mobid[0],"I miss my sister...";
  497. monster 'map_name$[0],145,74,"Khalitzburg",2471,1,.@label$;
  498. unittalk $@mobid[0],"Don't leave me alone, help me.";
  499. monster 'map_name$[0],154,74,"Khalitzburg",2471,1,.@label$;
  500. unittalk $@mobid[0],"Aaarrrrrhhhh";
  501. monster 'map_name$[0],145,84,"Khalitzburg",2471,1,.@label$;
  502. unittalk $@mobid[0],"I am so thirsty.";
  503. monster 'map_name$[0],154,84,"Khalitzburg",2471,1,.@label$;
  504. unittalk $@mobid[0],"Oh...No...I can't die yet...";
  505. monster 'map_name$[0],145,94,"Khalitzburg",2471,1,.@label$;
  506. unittalk $@mobid[0],"I feel sick to my stomach urrgg";
  507. monster 'map_name$[0],154,94,"Khalitzburg",2471,1,.@label$;
  508. unittalk $@mobid[0],"Can someone...";
  509. monster 'map_name$[0],145,104,"Khalitzburg",2471,1,.@label$;
  510. unittalk $@mobid[0],"Arrgg... My body";
  511. monster 'map_name$[0],154,104,"Khalitzburg",2471,1,.@label$;
  512. unittalk $@mobid[0],"My throat is burning!";
  513. end;
  514. OnTimer94000:
  515. npctalk "Heinrich: My men... This can't be happening!", 'npc_heinrich2$;
  516. end;
  517. OnTimer96500:
  518. npctalk "Varmundt: Sir Heinrich, they're all monsters. You need to give them rest!", 'npc_varmundt1$;
  519. end;
  520. OnTimer100000:
  521. npctalk "Heinrich: I'm so sorry...", 'npc_heinrich2$;
  522. end;
  523. OnTimer103000:
  524. npctalk "Heinrich: I am sorry, my knights! Forgive me!", 'npc_heinrich2$;
  525. end;
  526. OnTimer106000:
  527. mapannounce 'map_name$[0], "Sir Heinrich: Death to all!", bc_map,0xFFFF33,FW_NORMAL,15;
  528. end;
  529. OnTimer109000:
  530. mapannounce 'map_name$[0], "Sir Heinrich: Go back to the darkness!", bc_map,0xFFFF33,FW_NORMAL,15;
  531. end;
  532. OnTimer109500:
  533. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#1");
  534. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#2");
  535. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#1");
  536. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#2");
  537. end;
  538. OnTimer110000:
  539. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#3");
  540. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#4");
  541. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#5");
  542. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#6");
  543. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#3");
  544. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#4");
  545. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#5");
  546. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#6");
  547. end;
  548. OnTimer110500:
  549. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#7");
  550. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#8");
  551. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#9");
  552. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#10");
  553. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#7");
  554. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#8");
  555. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#9");
  556. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#10");
  557. end;
  558. OnTimer111000:
  559. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#11");
  560. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#12");
  561. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#13");
  562. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#14");
  563. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#11");
  564. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#12");
  565. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#13");
  566. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#14");
  567. end;
  568. OnTimer111500:
  569. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#15");
  570. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#16");
  571. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#17");
  572. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#18");
  573. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#15");
  574. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#16");
  575. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#17");
  576. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#18");
  577. end;
  578. OnTimer112000:
  579. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#19");
  580. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#20");
  581. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#21");
  582. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#22");
  583. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#19");
  584. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#20");
  585. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#21");
  586. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#22");
  587. disablenpc 'npc_heinrich2$;
  588. enablenpc 'npc_heinrich3$;
  589. killmonster 'map_name$[0], instance_npcname("#talkinstance1") + "::OnMyMobDead";
  590. end;
  591. OnTimer112500:
  592. npctalk "Heinrich: I killed my own men...", 'npc_heinrich3$;
  593. end;
  594. OnTimer115500:
  595. npctalk "Varmundt: Sir Heinrich! We don't have much time!", 'npc_varmundt1$;
  596. end;
  597. OnTimer118500:
  598. npctalk "Varmundt: If you hurry now, there's a chance!", 'npc_varmundt1$;
  599. end;
  600. OnTimer121500:
  601. npctalk "Heinrich: Varmundt is right. Now is not the time for mourning.", 'npc_heinrich3$;
  602. end;
  603. OnTimer124500:
  604. npctalk "Heinrich: I have a request to you followers.", 'npc_heinrich3$;
  605. end;
  606. OnTimer127500:
  607. npctalk "Heinrich: Himelmez can turn living beings into monsters.", 'npc_heinrich3$;
  608. end;
  609. OnTimer130500:
  610. npctalk "Heinrich: But, there might still be survivors here.", 'npc_heinrich3$;
  611. end;
  612. OnTimer134500:
  613. npctalk "Heinrich: Destroy the monsters and find any survivors.", 'npc_heinrich3$;
  614. end;
  615. OnTimer138500:
  616. npctalk "Heinrich: Varmundt and I will chase Himelmez.", 'npc_heinrich3$;
  617. end;
  618. OnTimer143500:
  619. npctalk "Heinrich: Very well, Varmundt. Let's find Himelmez.", 'npc_heinrich3$;
  620. end;
  621. OnTimer147500:
  622. disablenpc 'npc_heinrich3$;
  623. end;
  624. OnTimer148500:
  625. stopnpctimer;
  626. donpcevent instance_npcname("#ghmemorialmob01") + "::OnStart";
  627. disablenpc 'npc_varmundt1$;
  628. disablenpc instance_npcname("#talkinstance1");
  629. 'npc_himelmez1$ = 'npc_varmundt1$ = 'npc_heinrich2$ = 'npc_heinrich3$ = "";
  630. end;
  631. OnMyMobDead:
  632. end;
  633. }
  634. // Fast mode
  635. 1@gl_k,1,1,0 script #talkinstance2 HIDDEN_WARP_NPC,{
  636. end;
  637. OnEnable:
  638. disablenpc instance_npcname("Heinrich#1");
  639. enablenpc instance_npcname("Heinrich#2");
  640. enablenpc instance_npcname("Himelmez#1");
  641. mapannounce 'map_name$[0], "????'s: Muahahahaha~!", bc_map,0xFFFF00,FW_NORMAL,18;
  642. initnpctimer;
  643. 'npc_himelmez1$ = instance_npcname("Himelmez#1");
  644. 'npc_varmundt1$ = instance_npcname("Varmundt#1");
  645. 'npc_heinrich2$ = instance_npcname("Heinrich#2");
  646. 'npc_heinrich3$ = instance_npcname("Heinrich#3");
  647. end;
  648. OnTimer1500:
  649. npctalk "Heinrich: Who are you?", 'npc_heinrich2$;
  650. end;
  651. OnTimer3500:
  652. npctalk "Himelmez: Well well~ Am I interrupting you? Weren't you expecting me?", 'npc_himelmez1$;
  653. end;
  654. OnTimer7500:
  655. npctalk "Himelmez: I have business to take care of. My minions will treat you well enough for me~", 'npc_himelmez1$;
  656. end;
  657. OnTimer11500:
  658. disablenpc 'npc_himelmez1$;
  659. end;
  660. OnTimer12500:
  661. npctalk "Heinrich: She probably already knows where the Ymir's heart piece is.", 'npc_heinrich2$;
  662. end;
  663. OnTimer16500:
  664. for (.@i = 1; .@i <= 20; .@i += 4) {
  665. hideonnpc instance_npcname("Khalitzburg Knightage#" + .@i);
  666. hideonnpc instance_npcname("Khalitzburg Knightage#" + (.@i+1));
  667. hideonnpc instance_npcname("White Knight#" + (.@i+2));
  668. hideonnpc instance_npcname("White Knight#" + (.@i+3));
  669. }
  670. hideonnpc instance_npcname("Khalitzburg Knightage#21");
  671. hideonnpc instance_npcname("Khalitzburg Knightage#22");
  672. .@label$ = instance_npcname("#talkinstance1") + "::OnMyMobDead";
  673. monster 'map_name$[0],145,59,"Abysmal Knight",2470,1,.@label$;// MG_KNIGHT_OF_ABYSS
  674. monster 'map_name$[0],154,59,"Abysmal Knight",2470,1,.@label$;
  675. monster 'map_name$[0],145,69,"Abysmal Knight",2470,1,.@label$;
  676. monster 'map_name$[0],154,69,"Abysmal Knight",2470,1,.@label$;
  677. monster 'map_name$[0],145,79,"Abysmal Knight",2470,1,.@label$;
  678. monster 'map_name$[0],154,79,"Abysmal Knight",2470,1,.@label$;
  679. monster 'map_name$[0],145,89,"Abysmal Knight",2470,1,.@label$;
  680. monster 'map_name$[0],154,89,"Abysmal Knight",2470,1,.@label$;
  681. monster 'map_name$[0],145,99,"Abysmal Knight",2470,1,.@label$;
  682. monster 'map_name$[0],154,99,"Abysmal Knight",2470,1,.@label$;
  683. monster 'map_name$[0],145,54,"Khalitzburg",2471,1,.@label$;// G_MG_KHALITZBURG
  684. unittalk $@mobid[0],"Water... Someone give me water...";
  685. monster 'map_name$[0],154,54,"Khalitzburg",2471,1,.@label$;
  686. unittalk $@mobid[0],"Kkkrrrruughgh...";
  687. monster 'map_name$[0],145,64,"Khalitzburg",2471,1,.@label$;
  688. unittalk $@mobid[0],"Sir Heinrich. Save me...";
  689. monster 'map_name$[0],154,64,"Khalitzburg",2471,1,.@label$;
  690. unittalk $@mobid[0],"I miss my sister...";
  691. monster 'map_name$[0],145,74,"Khalitzburg",2471,1,.@label$;
  692. unittalk $@mobid[0],"Don't leave me alone, help me.";
  693. monster 'map_name$[0],154,74,"Khalitzburg",2471,1,.@label$;
  694. unittalk $@mobid[0],"Aaarrrrrhhhh";
  695. monster 'map_name$[0],145,84,"Khalitzburg",2471,1,.@label$;
  696. unittalk $@mobid[0],"I am so thirsty.";
  697. monster 'map_name$[0],154,84,"Khalitzburg",2471,1,.@label$;
  698. unittalk $@mobid[0],"Oh...No...I can't die yet...";
  699. monster 'map_name$[0],145,94,"Khalitzburg",2471,1,.@label$;
  700. unittalk $@mobid[0],"I feel sick to my stomach urrgg";
  701. monster 'map_name$[0],154,94,"Khalitzburg",2471,1,.@label$;
  702. unittalk $@mobid[0],"Can someone...";
  703. monster 'map_name$[0],145,104,"Khalitzburg",2471,1,.@label$;
  704. unittalk $@mobid[0],"Arrgg... My body";
  705. monster 'map_name$[0],154,104,"Khalitzburg",2471,1,.@label$;
  706. unittalk $@mobid[0],"My throat is burning!";
  707. end;
  708. OnTimer17500:
  709. npctalk "The dead go where the dead belong! Everyone go back!", 'npc_heinrich2$;
  710. end;
  711. OnTimer18500:
  712. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#1");
  713. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#2");
  714. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#1");
  715. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#2");
  716. end;
  717. OnTimer19000:
  718. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#3");
  719. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#4");
  720. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#5");
  721. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#6");
  722. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#3");
  723. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#4");
  724. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#5");
  725. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#6");
  726. end;
  727. OnTimer19500:
  728. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#7");
  729. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#8");
  730. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#9");
  731. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#10");
  732. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#7");
  733. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#8");
  734. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#9");
  735. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#10");
  736. end;
  737. OnTimer20000:
  738. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#11");
  739. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#12");
  740. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#13");
  741. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#14");
  742. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#11");
  743. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#12");
  744. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#13");
  745. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#14");
  746. end;
  747. OnTimer20500:
  748. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#15");
  749. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#16");
  750. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#17");
  751. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#18");
  752. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#15");
  753. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#16");
  754. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#17");
  755. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#18");
  756. end;
  757. OnTimer21500:
  758. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#19");
  759. specialeffect EF_GRANDCROSS,AREA, instance_npcname("White Knight#20");
  760. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#21");
  761. specialeffect EF_GRANDCROSS,AREA, instance_npcname("Khalitzburg Knightage#22");
  762. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#19");
  763. specialeffect EF_LEXAETERNA,AREA, instance_npcname("White Knight#20");
  764. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#21");
  765. specialeffect EF_LEXAETERNA,AREA, instance_npcname("Khalitzburg Knightage#22");
  766. disablenpc 'npc_heinrich2$;
  767. enablenpc 'npc_heinrich3$;
  768. killmonster 'map_name$[0], instance_npcname("#talkinstance1") + "::OnMyMobDead";
  769. npctalk "Heinrich: Very well, Varmundt. Let's find Himelmez.", 'npc_heinrich3$;
  770. end;
  771. OnTimer25500:
  772. npctalk "Varmundt: Wait, I don't have time to go around the castle and clear a path. I will open a portal that can be tracked as quickly as possible.", 'npc_varmundt1$;
  773. end;
  774. OnTimer27000:
  775. specialeffect EF_BEGINSPELL_N5, AREA, 'npc_varmundt1$;
  776. end;
  777. OnTimer28500:
  778. stopnpctimer;
  779. disablenpc 'npc_heinrich3$;
  780. disablenpc 'npc_varmundt1$;
  781. enablenpc instance_npcname("#cut01");
  782. enablenpc instance_npcname("#Mimelon");
  783. enablenpc instance_npcname("Himelmez#2");
  784. enablenpc instance_npcname("Varmundt#2");
  785. enablenpc instance_npcname("Heinrich#4");
  786. 'step = 4;
  787. 'npc_himelmez1$ = 'npc_varmundt1$ = 'npc_heinrich2$ = 'npc_heinrich3$ = "";
  788. end;
  789. OnMyMobDead:
  790. end;
  791. }
  792. 1@gl_k,149,96,1 script #cut01 GATE_SKYBLUE,{
  793. warp 'map_name$[0],151,232;
  794. end;
  795. }
  796. // Sector 1 Mobs
  797. //============================================================
  798. 1@gl_k,1,1,0 script #ghmemorialmob01 HIDDEN_WARP_NPC,{
  799. end;
  800. OnStart:
  801. enablenpc instance_npcname("#ghmemorialmob01");
  802. enablenpc instance_npcname("#2Control");
  803. enablenpc instance_npcname("#2Control2");
  804. mapannounce 'map_name$[0], "A portal has opened to the west.", bc_map,0xFFFF00;
  805. // note: x17 MG_GHOUL / x17 MG_ZOMBIE / x17 MG_WRAITH
  806. .@label$ = instance_npcname("#ghmemorialmob01") + "::OnMyMobDead";
  807. areamonster 'map_name$[0],76,99,87,10,"Grand Chamberlain in pain",2466,14,.@label$;
  808. areamonster 'map_name$[0],67,39,12, 6,"Corrupted Monk",2465,17,.@label$;
  809. areamonster 'map_name$[0],67,39,12, 6,"Grand Chamberlain in pain",2466,3,.@label$;
  810. areamonster 'map_name$[0],32,75,51,58,"Corrupted Steward",2464,5,.@label$;
  811. areamonster 'map_name$[0],45,84,6,137,"Corrupted Steward",2464,12,.@label$;
  812. end;
  813. OnMyMobDead:
  814. .@label$ = instance_npcname("#ghmemorialmob01") + "::OnMyMobDead";
  815. .@mob_dead_num = 51 - mobcount('map_name$[0],.@label$);
  816. if (.@mob_dead_num > 35) {
  817. mapannounce 'map_name$[0], "Himelmez's curse is getting weaker. Find any survivors!", bc_map,0xFFFFFF;
  818. killmonster 'map_name$[0], .@label$;
  819. enablenpc instance_npcname("Altar boy Domun#1");
  820. disablenpc instance_npcname("#ghmemorialmob01");
  821. }
  822. end;
  823. }
  824. 1@gl_k,17,51,3 script Altar boy Domun#1 4_M_KID1,{
  825. if (is_party_leader() == false || 'step != 2) {
  826. mes "[Altar boy Domun]";
  827. mes "Save me, save me, please...";
  828. close;
  829. }
  830. .@account_id = getcharid(3);
  831. .@player_name$ = strcharinfo(0);
  832. mes "[Altar boy Domun]";
  833. mes "Save me! Save me!!!";
  834. npctalk "Save me! Save me!!!";
  835. next;
  836. select("Hold on! Are you the only survivor?");
  837. mes "[" + .@player_name$ + "]";
  838. mes "Hold on! Are you the only survivor?";
  839. unittalk .@account_id, .@player_name$ + " : Hold on! Are you the only survivor?";
  840. next;
  841. mes "[Altar boy Domun]";
  842. mes "Chamberlains... monks... They all turned into monsters. I couldn't do anything.";
  843. npctalk "Altar boy Domun: Chamberlains... monks... They all turned into monsters. I couldn't do anything.";
  844. next;
  845. mes "[Altar boy Domun]";
  846. mes "All I could do was... Just hide in here... Nothing, nothing I could do...";
  847. npctalk "Altar boy Domun: All I could do was... Just hide in here... Nothing, nothing I could do...";
  848. next;
  849. select("Pull it together!");
  850. mes "[" + .@player_name$ + "]";
  851. mes "Wake up kid! Go east and find the middle passage to the outside! It is safe there!";
  852. unittalk .@account_id, .@player_name$ + " : Wake up kid! Go east and find the middle passage to the outside! It is safe there!";
  853. next;
  854. mes "[Altar boy Domun]";
  855. mes "To the east passage? Alone? How?";
  856. npctalk "Altar boy Domun: To the east passage? Alone? How?";
  857. next;
  858. select("I will give you a weapon.");
  859. mes "[" + .@player_name$ + "]";
  860. mes "Here's a weapon. Just close your eye and swing for those monsters.";
  861. unittalk .@account_id, .@player_name$ + " : Here's a weapon. Just close your eye and swing for those monsters.";
  862. next;
  863. mes "[Altar boy Domun]";
  864. mes "Ok, I... I'll try.";
  865. npctalk "Altar boy Domun: Ok, I... I'll try.";
  866. if ('step == 2) {
  867. 'step = 3;
  868. disablenpc instance_npcname("Altar boy Domun#1");
  869. donpcevent instance_npcname("#ghmemorialmob02") + "::OnStart";
  870. }
  871. close;
  872. }
  873. // Sector 2 Mobs
  874. //============================================================
  875. 1@gl_k,1,1,0 script #ghmemorialmob02 HIDDEN_WARP_NPC,{
  876. end;
  877. OnStart:
  878. enablenpc instance_npcname("#ghmemorialmob02");
  879. enablenpc instance_npcname("#3Control");
  880. enablenpc instance_npcname("#3Control2");
  881. for ( .@i = 1; .@i <= 26; .@i++ )
  882. enablenpc instance_npcname("A dead man#" + .@i);
  883. mapannounce 'map_name$[0], "A portal has opened to the east.", bc_map,0xFFFF00;
  884. // note: x34 MG_ZOMBIE / x35 MG_GHOUL
  885. .@label$ = instance_npcname("#ghmemorialmob02") + "::OnMyMobDead";
  886. areamonster 'map_name$[0],236,12,288,52,"Outraged Refiner",2466,18,.@label$;// MG_GHOUL
  887. areamonster 'map_name$[0],236,12,288,52,"Decomposed Blacksmith",2464,17,.@label$;// MG_ZOMBIE
  888. areamonster 'map_name$[0],242,71,286,145,"Outraged Refiner",2466,17,.@label$;
  889. areamonster 'map_name$[0],242,71,286,145,"Decomposed Blacksmith",2464,17,.@label$;
  890. end;
  891. OnMyMobDead:
  892. .@label$ = instance_npcname("#ghmemorialmob02") + "::OnMyMobDead";
  893. .@mob_dead_num = 69 - mobcount('map_name$[0],.@label$);
  894. if (.@mob_dead_num > 56) {
  895. mapannounce 'map_name$[0], "Himelmez's curse is getting weaker. Find any survivors!", bc_map,0xFFFFFF;
  896. killmonster 'map_name$[0],.@label$;
  897. enablenpc instance_npcname("Holgren the Destroyer#1");
  898. disablenpc instance_npcname("#ghmemorialmob02");
  899. }
  900. end;
  901. }
  902. 1@gl_k,291,145,3 script Holgren the Destroyer#1 4_F_JOB_BLACKSMITH,{
  903. if (is_party_leader() == false || 'step != 3) {
  904. mes "[Holgren the Destroyer]";
  905. mes "You human?";
  906. close;
  907. }
  908. .@account_id = getcharid(3);
  909. .@player_name$ = strcharinfo(0);
  910. mes "[Holgren the Destroyer]";
  911. mes "Die!! You shall die!!!";
  912. npctalk "Holgren the Destroyer: Die!! You shall die!!!";
  913. specialeffect EF_CRASHEARTH;
  914. next;
  915. select("Relax! I'm not a monster!");
  916. mes "[" + .@player_name$ + "]";
  917. mes "Relax! I am Human. Are you alone? Is anyone else here?";
  918. unittalk .@account_id, .@player_name$ + " : Relax! I am Human. Are you alone? Is anyone else here?";
  919. next;
  920. mes "[Holgren the Destroyer]";
  921. mes "It's only me.";
  922. npctalk "Holgren the Destroyer: It's only me.";
  923. next;
  924. select("It's dangerous here...");
  925. mes "[" + .@player_name$ + "]";
  926. mes "It's dangerous here. You know the way to the middle passage? Can you move?";
  927. unittalk .@account_id, .@player_name$ + " : It's dangerous here. You know the way to the middle passage? Can you move?";
  928. next;
  929. mes "[Holgren the Destroyer]";
  930. mes "Yes, I can move. I need to get out of here.";
  931. npctalk "Holgren the Destroyer: Yes, I can move. I need to get out of here.";
  932. next;
  933. select("Be safe...");
  934. mes "[" + .@player_name$ + "]";
  935. mes "Sorry, I can't go with you.";
  936. unittalk .@account_id, .@player_name$ + " : Sorry, I can't go with you.";
  937. next;
  938. mes "[Holgren the Destroyer]";
  939. mes "It's ok. You've already done enough. I can help myself. Good luck to you too.";
  940. npctalk "Holgren the Destroyer: It's ok. You've already done enough. I can help myself. Good luck to you too.";
  941. if ('step == 3) {
  942. 'step = 4;
  943. disablenpc instance_npcname("Holgren the Destroyer#1");
  944. donpcevent instance_npcname("#ghmemorialmob03") + "::OnEnable";
  945. }
  946. close;
  947. }
  948. // Tramp Mobs
  949. //============================================================
  950. 1@gl_k,221,82,3 script A dead man#1 4_M_DIEMAN,5,5,{
  951. end;
  952. OnTouch_:
  953. .@i = rand(1,10);
  954. if (.@i == 1) .@mobs = 3;
  955. else if (.@i == 2) .@mobs = 4;
  956. else if (.@i == 3) .@mobs = 5;
  957. else if (.@i < 7) .@mobs = 6;
  958. else .@mobs = 7;
  959. getmapxy .@map$,.@x,.@y, BL_NPC;
  960. specialeffect EF_VENOMDUST;
  961. monster .@map$,.@x,.@y,"Maggot",2467,.@mobs;
  962. disablenpc();
  963. end;
  964. }
  965. 1@gl_k,233,123,4 duplicate(A dead man#1) A dead man#2 4_M_DIEMAN,5,5
  966. 1@gl_k,258,150,2 duplicate(A dead man#1) A dead man#3 4_M_DIEMAN,5,5
  967. 1@gl_k,255,157,5 duplicate(A dead man#1) A dead man#4 4_M_DIEMAN,5,5
  968. 1@gl_k,280,167,4 duplicate(A dead man#1) A dead man#5 4_M_DIEMAN,5,5
  969. 1@gl_k,293,161,2 duplicate(A dead man#1) A dead man#6 4_M_DIEMAN,5,5
  970. 1@gl_k,249,101,3 duplicate(A dead man#1) A dead man#7 4_M_DIEMAN,5,5
  971. 1@gl_k,241,86,6 duplicate(A dead man#1) A dead man#8 4_M_DIEMAN,5,5
  972. 1@gl_k,246,62,0 duplicate(A dead man#1) A dead man#9 4_M_DIEMAN,5,5
  973. 1@gl_k,240,43,7 duplicate(A dead man#1) A dead man#10 4_M_DIEMAN,5,5
  974. 1@gl_k,271,19,1 duplicate(A dead man#1) A dead man#11 4_M_DIEMAN,5,5
  975. 1@gl_k,282,48,5 duplicate(A dead man#1) A dead man#12 4_M_DIEMAN,5,5
  976. 1@gl_k,285,81,7 duplicate(A dead man#1) A dead man#13 4_M_DIEMAN,5,5
  977. 1@gl_k,276,106,0 duplicate(A dead man#1) A dead man#14 4_M_DIEMAN,5,5
  978. 1@gl_k,261,164,0 duplicate(A dead man#1) A dead man#15 4_M_DIEMAN,5,5
  979. 1@gl_k,269,173,0 duplicate(A dead man#1) A dead man#16 4_M_DIEMAN,5,5
  980. 1@gl_k,252,120,0 duplicate(A dead man#1) A dead man#17 4_M_DIEMAN,5,5
  981. 1@gl_k,213,63,0 duplicate(A dead man#1) A dead man#18 4_M_DIEMAN,5,5
  982. 1@gl_k,222,39,0 duplicate(A dead man#1) A dead man#19 4_M_DIEMAN,5,5
  983. 1@gl_k,214,27,0 duplicate(A dead man#1) A dead man#20 4_M_DIEMAN,5,5
  984. 1@gl_k,223,17,1 duplicate(A dead man#1) A dead man#21 4_M_DIEMAN,5,5
  985. 1@gl_k,230,50,2 duplicate(A dead man#1) A dead man#22 4_M_DIEMAN,5,5
  986. 1@gl_k,235,16,3 duplicate(A dead man#1) A dead man#23 4_M_DIEMAN,5,5
  987. 1@gl_k,226,96,4 duplicate(A dead man#1) A dead man#24 4_M_DIEMAN,5,5
  988. 1@gl_k,222,119,5 duplicate(A dead man#1) A dead man#25 4_M_DIEMAN,5,5
  989. 1@gl_k,251,20,6 duplicate(A dead man#1) A dead man#26 4_M_DIEMAN,5,5
  990. // Sector 3 Mobs
  991. //============================================================
  992. 1@gl_k,1,1,0 script #ghmemorialmob03 HIDDEN_WARP_NPC,{
  993. end;
  994. OnEnable:
  995. enablenpc instance_npcname("#ghmemorialmob03");
  996. enablenpc instance_npcname("#4Control");
  997. enablenpc instance_npcname("#4Control2");
  998. mapannounce 'map_name$[0], "A portal has appeared to the northwest.", bc_map,0xFFFF00;
  999. // note: x50 MG_RAYDRIC / x50 MG_RAYDRIC_ARCHER
  1000. .@label$ = instance_npcname("#ghmemorialmob03") + "::OnMyMobDead";
  1001. areamonster 'map_name$[0],16,186,43,280,"Outraged Archer",2469,25,.@label$;
  1002. areamonster 'map_name$[0],44,191,89,225,"Hungry Palace Guard",2468,25,.@label$;
  1003. areamonster 'map_name$[0],115,215,188,273,"Corrupted Palace Guard",2468,20,.@label$;
  1004. areamonster 'map_name$[0],108,232,193,281,"Corrupted Palace Guard",2468,5,.@label$;
  1005. areamonster 'map_name$[0],158,236,230,250,"Wandering Archer",2469,12,.@label$;
  1006. areamonster 'map_name$[0],65,231,155,256,"Wandering Archer",2469,13,.@label$;
  1007. end;
  1008. OnMyMobDead:
  1009. .@label$ = instance_npcname("#ghmemorialmob03") + "::OnMyMobDead";
  1010. .@mob_dead_num = 100 - mobcount('map_name$[0],.@label$);
  1011. if (.@mob_dead_num > 85) {
  1012. killmonster 'map_name$[0],.@label$;
  1013. enablenpc instance_npcname("#Mimelon");
  1014. enablenpc instance_npcname("Himelmez#2");
  1015. enablenpc instance_npcname("Varmundt#2");
  1016. enablenpc instance_npcname("Heinrich#4");
  1017. disablenpc instance_npcname("#ghmemorialmob03");
  1018. mapannounce 'map_name$[0], "Himelmez: Not bad. Thought you would be dead by now by my creatures~", bc_map,0xFFFFFF;
  1019. initnpctimer;
  1020. }
  1021. end;
  1022. OnTimer5000:
  1023. mapannounce 'map_name$[0], "Himelmez: I'll wait for you at the north of the castle. I want to see how lucky you are.", bc_map,0xFFFFFF;
  1024. stopnpctimer;
  1025. end;
  1026. }
  1027. // 1st MVP
  1028. //============================================================
  1029. 1@gl_k,144,258,6 script Heinrich#4 4_M_HEINRICH,{
  1030. mes "[Heinrich]";
  1031. mes "Himelmez... I will never forget what you've done to my men.";
  1032. cutin "gl_heinrich1",2;
  1033. close3;
  1034. }
  1035. 1@gl_k,156,258,3 script Varmundt#2 4_M_BARMUND,{
  1036. if ('step < 6)
  1037. end;
  1038. if (checkweight(6607,1, 6608,1) == 0) {
  1039. mes "^ff0000It seems like you have too many types or weights of items. Please organize your inventory.^000000";
  1040. close;
  1041. }
  1042. cutin "gl_barmund1",2;
  1043. mes "[Varmundt]";
  1044. if (checkquest(12318,HUNTING) != 2) {
  1045. mes "I guess this is it. Is it impossible to stop the time traveler's will?!";
  1046. mes "A portal seems to have appeared to the north.";
  1047. close3;
  1048. }
  1049. erasequest 12318;
  1050. if (isbegin_quest(12319) == 0)
  1051. setquest 12319;// Amdarais Hunt
  1052. if (isbegin_quest(12320) == 0) {
  1053. setquest 12320;// Time Traveler
  1054. completequest 12320;
  1055. getexp 250000,250000;
  1056. }
  1057. mes "This item has an extraordinary aura with it. Can be very useful for someone special.";
  1058. getitem 6607,1;// Temporal_Crystal
  1059. getitem 6608,1;// Coagulated_Spell
  1060. close3;
  1061. }
  1062. 1@gl_k,150,257,3 script Himelmez#2 4_F_HIMEL,{
  1063. cutin "gl_himel2",2;
  1064. mes "[Himelmez]";
  1065. mes "Don't look at me nervous like that. It will be over soon...";
  1066. close3;
  1067. }
  1068. 1@gl_k,150,257,0 script #Mimelon HIDDEN_WARP_NPC,7,7,{
  1069. end;
  1070. OnTouch_:
  1071. if ('step != 4)
  1072. end;
  1073. 'step = 5;
  1074. disablenpc();
  1075. if ('mode == 1)
  1076. donpcevent instance_npcname("#talkinstance3") + "::OnStart";
  1077. else if ('mode == 2)
  1078. donpcevent instance_npcname("#talkinstance4") + "::OnStart";
  1079. end;
  1080. }
  1081. 1@gl_k,1,1,0 script #talkinstance3 HIDDEN_WARP_NPC,{
  1082. end;
  1083. OnStart:
  1084. initnpctimer;
  1085. 'npc_himelmez2$ = instance_npcname("Himelmez#2");
  1086. 'npc_heinrich4$ = instance_npcname("Heinrich#4");
  1087. end;
  1088. OnTimer3000:
  1089. npctalk "Himelmez: Guess you are either lucky or powerful to make it this far.", 'npc_himelmez2$;
  1090. end;
  1091. OnTimer6000:
  1092. npctalk "Himelmez: But it doesn't matter.", 'npc_himelmez2$;
  1093. end;
  1094. OnTimer9000:
  1095. npctalk "Himelmez: You will all die here.", 'npc_himelmez2$;
  1096. end;
  1097. OnTimer12000:
  1098. npctalk "Heinrich: Himelmez! We will not let you get away from us!", 'npc_heinrich4$;
  1099. end;
  1100. OnTimer15000:
  1101. npctalk "Himelmez: Ha ha ha, worry about yourself. You think I am alone here?", 'npc_himelmez2$;
  1102. end;
  1103. OnTimer18000:
  1104. npctalk "Varmundt: Sir Heinrich! I sense something strange and strong coming!", instance_npcname("Varmundt#2");
  1105. end;
  1106. OnTimer21000:
  1107. npctalk "Heinrich: What... These are!", 'npc_heinrich4$;
  1108. end;
  1109. OnTimer24000:
  1110. npctalk "Himelmez: I will go on my way while my new toy entertains you.", 'npc_himelmez2$;
  1111. end;
  1112. OnTimer27000:
  1113. npctalk "Himelmez: Fare well~, hope to see you again sometime, Heinrich.", 'npc_himelmez2$;
  1114. end;
  1115. OnTimer28000:
  1116. disablenpc 'npc_himelmez2$;
  1117. end;
  1118. OnTimer31000:
  1119. npctalk "Heinrich: Sir Varmundt! Help those adventurers. I will go after Himelmez!", 'npc_heinrich4$;
  1120. end;
  1121. OnTimer32000:
  1122. disablenpc 'npc_heinrich4$;
  1123. end;
  1124. OnTimer35000:
  1125. mapannounce 'map_name$[0], "An echoing comes from deep inside of the knight's shrine.", bc_map,0xFFFFFF;
  1126. end;
  1127. OnTimer38000:
  1128. donpcevent instance_npcname("#ghmemorialmob04") + "::OnStart";
  1129. stopnpctimer;
  1130. 'npc_himelmez2$ = 'npc_heinrich4$ = "";
  1131. end;
  1132. }
  1133. 1@gl_k,1,1,0 script #talkinstance4 HIDDEN_WARP_NPC,{
  1134. end;
  1135. OnStart:
  1136. initnpctimer;
  1137. 'npc_himelmez2$ = instance_npcname("Himelmez#2");
  1138. 'npc_heinrich4$ = instance_npcname("Heinrich#4");
  1139. npctalk "Himelmez: Guess you are either lucky or powerful to make it this far.", 'npc_himelmez2$;
  1140. end;
  1141. OnTimer3500:
  1142. disablenpc 'npc_himelmez2$;
  1143. end;
  1144. OnTimer4500:
  1145. npctalk "Heinrich: Sir Varmundt! Help those adventurers. I will go after Himelmez!", 'npc_heinrich4$;
  1146. end;
  1147. OnTimer6500:
  1148. disablenpc 'npc_heinrich4$;
  1149. end;
  1150. OnTimer9500:
  1151. mapannounce 'map_name$[0], "An echoing comes from deep inside of the knight's shrine.", bc_map,0xFFFFFF;
  1152. end;
  1153. OnTimer14500:
  1154. stopnpctimer;
  1155. donpcevent instance_npcname("#ghmemorialmob04") + "::OnStart";
  1156. 'npc_himelmez2$ = 'npc_heinrich4$ = "";
  1157. end;
  1158. }
  1159. 1@gl_k,1,1,0 script #ghmemorialmob04 HIDDEN_WARP_NPC,{
  1160. end;
  1161. OnStart:
  1162. enablenpc instance_npcname("#ghmemorialmob04");
  1163. monster 'map_name$[0],150,259,"Corrupted Soul",2475,1, instance_npcname("#ghmemorialmob04") + "::OnMyMobDead";// MG_CORRUPTION_ROOT
  1164. unittalk $@mobid[0],"Grrrrrrhh~~~";
  1165. end;
  1166. OnMyMobDead:
  1167. if (mobcount('map_name$[0], instance_npcname("#ghmemorialmob04") + "::OnMyMobDead") < 1) {
  1168. mapannounce 'map_name$[0], "Opening 2nd floor entrance towards 12 O'clock direction.", bc_map,0xFFFF00;
  1169. npctalk "Varmundt: I collected some items dropped from its body. You can take it from me.", instance_npcname("Varmundt#2");
  1170. enablenpc instance_npcname("#2F Entrance");
  1171. enablenpc instance_npcname("#1 Control");
  1172. enablenpc instance_npcname("#Servanton");
  1173. enablenpc instance_npcname("Heinrich#21");
  1174. enablenpc instance_npcname("Varmundt#21");
  1175. donpcevent instance_npcname("#ghmemorialmob05") + "::OnStart";
  1176. disablenpc instance_npcname("#ghmemorialmob04");
  1177. 'step = 6;
  1178. }
  1179. end;
  1180. }
  1181. 1@gl_k,150,284,0 script #2F Entrance WARPNPC,2,2,{
  1182. end;
  1183. OnTouch:
  1184. if (checkquest(12318,HUNTING) == 2) {
  1185. mes "^0000ffIt seems that you did not receive a reward for clearing the first floor. Talk to Varmundt and receive your reward.^000000";
  1186. close2;
  1187. warp 'map_name$[0],156,256;
  1188. end;
  1189. }
  1190. warp 'map_name$[1],150,46;
  1191. end;
  1192. }
  1193. // Floor 2
  1194. //============================================================
  1195. 2@gl_k,148,67,1 script Heinrich#21 4_M_HEINRICH,{
  1196. mes "[Heinrich]";
  1197. mes "Himelmez's closed space covers everywhere...";
  1198. cutin "gl_heinrich1",2;
  1199. close3;
  1200. }
  1201. 2@gl_k,151,71,7 script Varmundt#21 4_M_BARMUND,{
  1202. mes "[Varmundt]";
  1203. mes "How many times have I done this job? In my dream, I did it over and over again...";
  1204. cutin "gl_barmund2",2;
  1205. close3;
  1206. }
  1207. 2@gl_k,150,66,0 script #Servanton_effect HIDDEN_WARP_NPC,{
  1208. end;
  1209. OnEffect:
  1210. specialeffect EF_LORD;
  1211. end;
  1212. }
  1213. 2@gl_k,150,66,0 script #Servanton HIDDEN_WARP_NPC,7,7,{
  1214. end;
  1215. OnTouch_:
  1216. if ('step != 6)
  1217. end;
  1218. 'step = 7;
  1219. disablenpc();
  1220. if ('mode == 1)
  1221. donpcevent instance_npcname("#talkinstance5") + "::OnStart";
  1222. else if ('mode == 2)
  1223. donpcevent instance_npcname("#talkinstance6") + "::OnStart";
  1224. end;
  1225. }
  1226. 2@gl_k,1,1,0 script #talkinstance5 HIDDEN_WARP_NPC,{
  1227. end;
  1228. OnStart:
  1229. initnpctimer;
  1230. 'npc_heinrich$ = instance_npcname("Heinrich#21");
  1231. 'npc_varmundt$ = instance_npcname("Varmundt#21");
  1232. end;
  1233. OnTimer3000:
  1234. npctalk "Heinrich: This structure was not in the castle before!", 'npc_heinrich$;
  1235. end;
  1236. OnTimer6000:
  1237. npctalk "Varmundt: This is Himelmez's closed space. We blocked each area and aisle.", 'npc_varmundt$;
  1238. end;
  1239. OnTimer9000:
  1240. npctalk "Heinrich: We tried to break it down but it's really strong.", 'npc_heinrich$;
  1241. end;
  1242. OnTimer12000:
  1243. npctalk "Varmundt: Step back. Let me try to dispel the magic.", 'npc_varmundt$;
  1244. end;
  1245. OnTimer15000:
  1246. specialeffect EF_LORD,AREA, instance_npcname("#Servanton_effect");
  1247. disablenpc instance_npcname("#Servanton_effect");
  1248. end;
  1249. OnTimer18000:
  1250. npctalk "Varmundt: I think that part of closed space is broken down.", 'npc_varmundt$;
  1251. end;
  1252. OnTimer21000:
  1253. npctalk "Varmundt: I have never seen this closed space.", 'npc_varmundt$;
  1254. end;
  1255. OnTimer24000:
  1256. npctalk "Varmundt: Himelmez hides stone chains in undead people's body.", 'npc_varmundt$;
  1257. end;
  1258. OnTimer27000:
  1259. npctalk "Varmundt: Maybe this closed space is maintained with these stone chains.", 'npc_varmundt$;
  1260. end;
  1261. OnTimer30000:
  1262. npctalk "Varmundt: If you want to break it, you have to kill one of those who have a stone chain.", 'npc_varmundt$;
  1263. end;
  1264. OnTimer33000:
  1265. npctalk "Varmundt: But we can't recognize who has a stone chain so we have to purify everything.", 'npc_varmundt$;
  1266. end;
  1267. OnTimer36000:
  1268. npctalk "Heinrich: It is inexcusable behavior.", 'npc_heinrich$;
  1269. end;
  1270. OnTimer39000:
  1271. npctalk "Heinrich: I already exterminated all my soldiers and maybe more...", 'npc_heinrich$;
  1272. end;
  1273. OnTimer42000:
  1274. npctalk "Varmundt: Commander...", 'npc_varmundt$;
  1275. end;
  1276. OnTimer45000:
  1277. npctalk "Varmundt: Commander! You need to be strong.", 'npc_varmundt$;
  1278. end;
  1279. OnTimer48000:
  1280. npctalk "Varmundt: Our enemy is not human.", 'npc_varmundt$;
  1281. end;
  1282. OnTimer51000:
  1283. npctalk "Varmundt: Even though you deny it, they'll never turn back to human.", 'npc_varmundt$;
  1284. end;
  1285. OnTimer54000:
  1286. npctalk "Heinrich: ...", 'npc_heinrich$;
  1287. end;
  1288. OnTimer57000:
  1289. npctalk "Varmundt: Well, let's go then.", 'npc_varmundt$;
  1290. end;
  1291. OnTimer60000:
  1292. npctalk "Varmundt: And you guys, just take a break and follow us.", 'npc_varmundt$;
  1293. end;
  1294. OnTimer63000:
  1295. npctalk "Varmundt: It could be hard fighting so stay strong.", 'npc_varmundt$;
  1296. end;
  1297. OnTimer66000:
  1298. npctalk "Varmundt: Ok, it's time to begin Heinrich.", 'npc_varmundt$;
  1299. end;
  1300. OnTimer69000:
  1301. mapannounce 'map_name$[1], "A portal to the west has opened in the central hallway.", bc_map,0xFFFF00;
  1302. disablenpc 'npc_varmundt$;
  1303. disablenpc 'npc_heinrich$;
  1304. stopnpctimer;
  1305. 'npc_varmundt$ = 'npc_heinrich$ = "";
  1306. enablenpc instance_npcname("#22 Control");
  1307. enablenpc instance_npcname("#22 Control2");
  1308. end;
  1309. }
  1310. 2@gl_k,1,1,0 script #talkinstance6 HIDDEN_WARP_NPC,{
  1311. end;
  1312. OnStart:
  1313. initnpctimer;
  1314. 'npc_heinrich$ = instance_npcname("Heinrich#21");
  1315. 'npc_varmundt$ = instance_npcname("Varmundt#21");
  1316. npctalk "Heinrich: This structure was not in the castle before!", 'npc_heinrich$;
  1317. end;
  1318. OnTimer2000:
  1319. npctalk "Varmundt: Ok, it's time to begin Heinrich.", 'npc_varmundt$;
  1320. end;
  1321. OnTimer3500:
  1322. stopnpctimer;
  1323. mapannounce 'map_name$[1], "A portal to the west has opened in the central hallway.", bc_map,0xFFFF00;
  1324. disablenpc 'npc_varmundt$;
  1325. disablenpc 'npc_heinrich$;
  1326. 'npc_varmundt$ = 'npc_heinrich$ = "";
  1327. enablenpc instance_npcname("#22 Control");
  1328. enablenpc instance_npcname("#22 Control2");
  1329. end;
  1330. }
  1331. // Spots
  1332. // Note: timer is the only condition for them to respawn
  1333. 2@gl_k,118,141,0 script #ogh_2-1 HIDDEN_WARP_NPC,20,20,{
  1334. end;
  1335. OnTouch_:
  1336. disablenpc();
  1337. .@hidden_name$ = strnpcinfo(2);
  1338. .@event_type = atoi( charat(.@hidden_name$,4) );
  1339. .@event_number = atoi( charat(.@hidden_name$,6) );
  1340. if (.@event_type == 2)
  1341. .@event$ = instance_npcname("#ghmemorialmob05") + "::OnMyMobDead" + .@event_number; // left side
  1342. else
  1343. .@event$ = instance_npcname("#ghmemorialmob06") + "::OnMyMobDead" + .@event_number; // right side
  1344. killmonster 'map_name$[1], .@event$;
  1345. getmapxy .@map$,.@x,.@y, BL_NPC;
  1346. monster .@map$,.@x,.@y, "Corrupted Palace Guard", 2468,1, .@event$;
  1347. monster .@map$,.@x,.@y, "Archer of Death", 2469,1, .@event$;
  1348. monster .@map$,.@x,.@y, "Corrupted Abysmal Knight", 2470,1, .@event$;
  1349. monster .@map$,.@x,.@y, "Suffered Khalitzburg", 2471,1, .@event$;
  1350. monster .@map$,.@x,.@y, "Bloody Knight", 2472,1, .@event$;
  1351. initnpctimer;
  1352. end;
  1353. OnTimer30000:
  1354. enablenpc();
  1355. stopnpctimer;
  1356. end;
  1357. OnStop:
  1358. disablenpc();
  1359. stopnpctimer;
  1360. end;
  1361. }
  1362. 2@gl_k,128,81,0 duplicate(#ogh_2-1) #ogh_2-2 HIDDEN_WARP_NPC,20,20
  1363. 2@gl_k,131,54,0 duplicate(#ogh_2-1) #ogh_2-3 HIDDEN_WARP_NPC,20,20
  1364. 2@gl_k,89,48,0 duplicate(#ogh_2-1) #ogh_2-4 HIDDEN_WARP_NPC,20,20
  1365. 2@gl_k,64,117,0 duplicate(#ogh_2-1) #ogh_2-5 HIDDEN_WARP_NPC,20,20
  1366. 2@gl_k,62,82,0 duplicate(#ogh_2-1) #ogh_2-6 HIDDEN_WARP_NPC,20,20
  1367. 2@gl_k,38,138,0 duplicate(#ogh_2-1) #ogh_2-7 HIDDEN_WARP_NPC,20,20
  1368. 2@gl_k,171,120,0 duplicate(#ogh_2-1) #ogh_3-1 HIDDEN_WARP_NPC,20,20
  1369. 2@gl_k,232,133,0 duplicate(#ogh_2-1) #ogh_3-2 HIDDEN_WARP_NPC,20,20
  1370. 2@gl_k,256,149,0 duplicate(#ogh_2-1) #ogh_3-3 HIDDEN_WARP_NPC,20,20
  1371. 2@gl_k,212,106,0 duplicate(#ogh_2-1) #ogh_3-4 HIDDEN_WARP_NPC,20,20
  1372. 2@gl_k,243,73,0 duplicate(#ogh_2-1) #ogh_3-5 HIDDEN_WARP_NPC,20,20
  1373. 2@gl_k,229,26,0 duplicate(#ogh_2-1) #ogh_3-6 HIDDEN_WARP_NPC,20,20
  1374. 2@gl_k,181,34,0 duplicate(#ogh_2-1) #ogh_3-7 HIDDEN_WARP_NPC,20,20
  1375. // Commander 1
  1376. 2@gl_k,1,1,0 script #ghmemorialmob05 HIDDEN_WARP_NPC,{
  1377. end;
  1378. OnStart:
  1379. enablenpc instance_npcname("#ghmemorialmob05");
  1380. for ( .@i = 1; .@i <= 7; .@i++ )
  1381. enablenpc instance_npcname("#ogh_2-" + .@i);
  1382. end;
  1383. OnMyMobDead1:
  1384. OnMyMobDead2:
  1385. OnMyMobDead3:
  1386. OnMyMobDead4:
  1387. OnMyMobDead5:
  1388. OnMyMobDead6:
  1389. OnMyMobDead7:
  1390. if (mobcount('map_name$[1], instance_npcname("#ghmemorialmob05") + "::OnBossDead") > 0) // Prevent boss re-spawn
  1391. end;
  1392. if ('mode == 2) // Higher (but unknown) spawn rate in fast mode
  1393. .@r = 10;
  1394. else
  1395. .@r = 50;
  1396. if (rand(.@r) == 0) {
  1397. mapannounce 'map_name$[1], "Evil Forces are appearing in this area.", bc_map,0xFFFF44,FW_NORMAL,15;
  1398. killmonster 'map_name$[1], instance_npcname("#ghmemorialmob05") + "::OnBossDead";
  1399. .@r = rand(4) * 2;
  1400. setarray .@coord[0], 41,146, 58,44, 122,148, 131,64;
  1401. monster 'map_name$[1],.@coord[.@r],.@coord[.@r+1], "1st Commander of Destruction",2473,1, instance_npcname("#ghmemorialmob05") + "::OnBossDead";
  1402. }
  1403. end;
  1404. OnBossDead:
  1405. disablenpc();
  1406. mapannounce 'map_name$[1], "A portal has opened to the east in the central hallway.", bc_map,0xFFFF00;
  1407. enablenpc instance_npcname("#23 Control");
  1408. enablenpc instance_npcname("#23 Control2");
  1409. donpcevent instance_npcname("#ghmemorialmob06") + "::OnStart";
  1410. // Event stopped and monsters in this sector killed
  1411. for ( .@i = 1; .@i <= 7; .@i++ )
  1412. donpcevent instance_npcname("#ogh_2-" + .@i) + "::OnStop";
  1413. .@npc_name$ = instance_npcname("#ghmemorialmob05");
  1414. for ( .@i = 1; .@i <= 7; .@i++ )
  1415. killmonster 'map_name$[1], .@npc_name$ + "::OnMyMobDead" + .@i;
  1416. end;
  1417. }
  1418. // Commander 2
  1419. 2@gl_k,1,1,0 script #ghmemorialmob06 HIDDEN_WARP_NPC,{
  1420. end;
  1421. OnStart:
  1422. enablenpc instance_npcname("#ghmemorialmob06");
  1423. for ( .@i = 1; .@i <= 7; .@i++ )
  1424. enablenpc instance_npcname("#ogh_3-" + .@i);
  1425. // Fix spawn
  1426. .@label$ = instance_npcname("#ghmemorialmob06") + "::OnMyMobDead";
  1427. monster 'map_name$[1],252, 75, "Corrupted Palace Guard",2468,1, .@label$;
  1428. monster 'map_name$[1],253, 76, "Corrupted Palace Guard",2468,1, .@label$;
  1429. monster 'map_name$[1],247, 77, "Corrupted Palace Guard",2468,1, .@label$;
  1430. monster 'map_name$[1],248, 80, "Corrupted Palace Guard",2468,1, .@label$;
  1431. monster 'map_name$[1],236,100, "Corrupted Palace Guard",2468,1, .@label$;
  1432. monster 'map_name$[1],240,100, "Corrupted Palace Guard",2468,1, .@label$;
  1433. monster 'map_name$[1],242,100, "Corrupted Palace Guard",2468,1, .@label$;
  1434. monster 'map_name$[1],244,100, "Corrupted Palace Guard",2468,1, .@label$;
  1435. monster 'map_name$[1],199,111, "Corrupted Palace Guard",2468,1, .@label$;
  1436. monster 'map_name$[1],181,107, "Wandering Archer",2469,1, .@label$;
  1437. monster 'map_name$[1],177,110, "Wandering Archer",2469,1, .@label$;
  1438. monster 'map_name$[1],236, 27, "Wandering Archer",2469,1, .@label$;
  1439. monster 'map_name$[1],242, 27, "Wandering Archer",2469,1, .@label$;
  1440. monster 'map_name$[1],252, 26, "Wandering Archer",2469,1, .@label$;
  1441. monster 'map_name$[1],172,130, "Wandering Archer",2469,1, .@label$;
  1442. monster 'map_name$[1],171,127, "Wandering Archer",2469,1, .@label$;
  1443. monster 'map_name$[1],173,127, "Wandering Archer",2469,1, .@label$;
  1444. monster 'map_name$[1],177, 69, "Corrupted Abysmal Knight",2470,1, .@label$;
  1445. monster 'map_name$[1],186, 66, "Corrupted Abysmal Knight",2470,1, .@label$;
  1446. monster 'map_name$[1],189, 67, "Corrupted Abysmal Knight",2470,1, .@label$;
  1447. monster 'map_name$[1],190, 68, "Corrupted Abysmal Knight",2470,1, .@label$;
  1448. monster 'map_name$[1],257,157, "Corrupted Abysmal Knight",2470,1, .@label$;
  1449. monster 'map_name$[1],246,159, "Corrupted Abysmal Knight",2470,1, .@label$;
  1450. monster 'map_name$[1],237,158, "Corrupted Abysmal Knight",2470,1, .@label$;
  1451. monster 'map_name$[1],206,159, "Corrupted Abysmal Knight",2470,1, .@label$;
  1452. monster 'map_name$[1],172,120, "Corrupted Abysmal Knight",2470,1, .@label$;
  1453. monster 'map_name$[1],226, 30, "Suffered Khalitzburg",2471,1, .@label$;
  1454. monster 'map_name$[1],226, 38, "Suffered Khalitzburg",2471,1, .@label$;
  1455. monster 'map_name$[1],228, 29, "Suffered Khalitzburg",2471,1, .@label$;
  1456. monster 'map_name$[1],226, 63, "Suffered Khalitzburg",2471,1, .@label$;
  1457. monster 'map_name$[1],268,137, "Suffered Khalitzburg",2471,1, .@label$;
  1458. monster 'map_name$[1],263,138, "Suffered Khalitzburg",2471,1, .@label$;
  1459. monster 'map_name$[1],259,138, "Suffered Khalitzburg",2471,1, .@label$;
  1460. monster 'map_name$[1],259,138, "Suffered Khalitzburg",2471,1, .@label$;
  1461. monster 'map_name$[1],187,121, "Suffered Khalitzburg",2471,1, .@label$;
  1462. monster 'map_name$[1],265, 52, "Bloody Knight",2472,1, .@label$;
  1463. monster 'map_name$[1],265, 55, "Bloody Knight",2472,1, .@label$;
  1464. monster 'map_name$[1],264, 79, "Bloody Knight",2472,1, .@label$;
  1465. monster 'map_name$[1],225, 92, "Bloody Knight",2472,1, .@label$;
  1466. monster 'map_name$[1],237, 92, "Bloody Knight",2472,1, .@label$;
  1467. monster 'map_name$[1],249, 92, "Bloody Knight",2472,1, .@label$;
  1468. monster 'map_name$[1],256, 93, "Bloody Knight",2472,1, .@label$;
  1469. monster 'map_name$[1],264,100, "Bloody Knight",2472,1, .@label$;
  1470. monster 'map_name$[1],181,120, "Bloody Knight",2472,1, .@label$;
  1471. end;
  1472. OnMyMobDead:
  1473. OnMyMobDead1:
  1474. OnMyMobDead2:
  1475. OnMyMobDead3:
  1476. OnMyMobDead4:
  1477. OnMyMobDead5:
  1478. OnMyMobDead6:
  1479. OnMyMobDead7:
  1480. if (mobcount('map_name$[1], instance_npcname("#ghmemorialmob06") + "::OnBossDead") > 0) // Prevent boss re-spawn
  1481. end;
  1482. if ('mode == 2) // Higher (but unknown) spawn rate in fast mode
  1483. .@r = 10;
  1484. else
  1485. .@r = 50;
  1486. if (rand(.@r) == 0) {
  1487. mapannounce 'map_name$[1], "An evil presence has teleported into this area.", bc_map,0xFFFF44,FW_NORMAL,15;
  1488. killmonster 'map_name$[1], instance_npcname("#ghmemorialmob06") + "::OnBossDead";
  1489. .@r = rand(4) * 2;
  1490. setarray .@coord[0], 166,119, 211,45, 227,139, 245,74;
  1491. monster 'map_name$[1],.@coord[.@r],.@coord[.@r+1], "2nd Commander of Destruction",2474,1, instance_npcname("#ghmemorialmob06") + "::OnBossDead";
  1492. }
  1493. end;
  1494. OnBossDead:
  1495. disablenpc();
  1496. mapannounce 'map_name$[1], "A new portal has appeared at the end of the central corridor.", bc_map,0xFFFF00;
  1497. enablenpc instance_npcname("#24 Control");
  1498. enablenpc instance_npcname("#24 Control2");
  1499. enablenpc instance_npcname("#Geron");
  1500. for ( .@i = 1; .@i <= 35; .@i++ )
  1501. enablenpc instance_npcname("Decomposed body#" + .@i);
  1502. // Event stopped and monsters in this sector killed
  1503. for ( .@i = 1; .@i <= 7; .@i++ )
  1504. donpcevent instance_npcname("#ogh_3-" + .@i) + "::OnStop";
  1505. .@npc_name$ = instance_npcname("#ghmemorialmob06");
  1506. killmonster 'map_name$[1], .@npc_name$ + "::OnMyMobDead";
  1507. for ( .@i = 1; .@i <= 7; .@i++ )
  1508. killmonster 'map_name$[1], .@npc_name$ + "::OnMyMobDead" + .@i;
  1509. // Hidden mobs
  1510. setarray .@coord[0],
  1511. 37,265, 57,265, 77,265, 97,265, 117,265, 188,264, 208,264,
  1512. 50,172, 70,172, 90,172, 110,172, 170,172, 210,172, 230,172,
  1513. 88,214, 108,214, 128,214, 180,219, 200,219, 220,219, 240,219;
  1514. .@size = getarraysize(.@coord);
  1515. for ( .@i = 0; .@i < .@size; .@i += 2 )
  1516. monster 'map_name$[1], .@coord[.@i], .@coord[.@i+1], "Flame of destruction",2337,1;// HIDDEN_MOB
  1517. end;
  1518. }
  1519. // Amdarais Room Entrance
  1520. 2@gl_k,150,180,0 script #Geron HIDDEN_WARP_NPC,7,7,{
  1521. end;
  1522. OnTouch_:
  1523. if ('step != 7)
  1524. end;
  1525. 'step = 8;
  1526. disablenpc instance_npcname("#Geron");
  1527. mapannounce 'map_name$[1], "???: Do not come here! It's a trap... Kkkkah!!!", bc_map,0xFF7777,FW_NORMAL,15;
  1528. enablenpc instance_npcname("Himelmez#22");
  1529. enablenpc instance_npcname("Varmundt#23");
  1530. enablenpc instance_npcname("Heinrich#23");
  1531. enablenpc instance_npcname("Gerhalt#23");
  1532. end;
  1533. }
  1534. 2@gl_k,143,260,4 script Decomposed body#1 4_M_DIEMAN,5,5,{
  1535. end;
  1536. OnTouch_:
  1537. disablenpc();
  1538. .@i = rand(1,10);
  1539. if (.@i == 1) .@mobs = 3;
  1540. else if (.@i == 2) .@mobs = 4;
  1541. else if (.@i == 3) .@mobs = 5;
  1542. else if (.@i < 7) .@mobs = 6;
  1543. else .@mobs = 7;
  1544. .@event$ = instance_npcname( strnpcinfo(0) ) + "::OnMobDead";
  1545. killmonster 'map_name$[1], .@event$;
  1546. getmapxy .@map$,.@x,.@y, BL_NPC;
  1547. specialeffect EF_VENOMDUST;
  1548. monster .@map$,.@x,.@y,"Maggot",2467,.@mobs, .@event$;
  1549. initnpctimer;
  1550. end;
  1551. OnTimer45000:
  1552. enablenpc();
  1553. stopnpctimer;
  1554. end;
  1555. OnMobDead:
  1556. end;
  1557. }
  1558. 2@gl_k,145,236,4 duplicate(Decomposed body#1) Decomposed body#2 4_M_DIEMAN,5,5
  1559. 2@gl_k,141,222,2 duplicate(Decomposed body#1) Decomposed body#3 4_M_DIEMAN,5,5
  1560. 2@gl_k,147,203,5 duplicate(Decomposed body#1) Decomposed body#4 4_M_DIEMAN,5,5
  1561. 2@gl_k,167,225,4 duplicate(Decomposed body#1) Decomposed body#5 4_M_DIEMAN,5,5
  1562. 2@gl_k,172,233,2 duplicate(Decomposed body#1) Decomposed body#6 4_M_DIEMAN,5,5
  1563. 2@gl_k,176,244,3 duplicate(Decomposed body#1) Decomposed body#7 4_M_DIEMAN,5,5
  1564. 2@gl_k,184,248,6 duplicate(Decomposed body#1) Decomposed body#8 4_M_DIEMAN,5,5
  1565. 2@gl_k,193,228,0 duplicate(Decomposed body#1) Decomposed body#9 4_M_DIEMAN,5,5
  1566. 2@gl_k,206,250,7 duplicate(Decomposed body#1) Decomposed body#10 4_M_DIEMAN,5,5
  1567. 2@gl_k,130,249,1 duplicate(Decomposed body#1) Decomposed body#11 4_M_DIEMAN,5,5
  1568. 2@gl_k,122,236,5 duplicate(Decomposed body#1) Decomposed body#12 4_M_DIEMAN,5,5
  1569. 2@gl_k,130,228,7 duplicate(Decomposed body#1) Decomposed body#13 4_M_DIEMAN,5,5
  1570. 2@gl_k,106,226,0 duplicate(Decomposed body#1) Decomposed body#14 4_M_DIEMAN,5,5
  1571. 2@gl_k,104,245,0 duplicate(Decomposed body#1) Decomposed body#15 4_M_DIEMAN,5,5
  1572. 2@gl_k,131,187,0 duplicate(Decomposed body#1) Decomposed body#16 4_M_DIEMAN,5,5
  1573. 2@gl_k,121,197,0 duplicate(Decomposed body#1) Decomposed body#17 4_M_DIEMAN,5,5
  1574. 2@gl_k,107,194,0 duplicate(Decomposed body#1) Decomposed body#18 4_M_DIEMAN,5,5
  1575. 2@gl_k,92,187,0 duplicate(Decomposed body#1) Decomposed body#19 4_M_DIEMAN,5,5
  1576. 2@gl_k,153,214,3 duplicate(Decomposed body#1) Decomposed body#20 4_M_DIEMAN,5,5
  1577. 2@gl_k,155,195,4 duplicate(Decomposed body#1) Decomposed body#21 4_M_DIEMAN,5,5
  1578. 2@gl_k,154,188,2 duplicate(Decomposed body#1) Decomposed body#22 4_M_DIEMAN,5,5
  1579. 2@gl_k,143,195,5 duplicate(Decomposed body#1) Decomposed body#23 4_M_DIEMAN,5,5
  1580. 2@gl_k,132,214,4 duplicate(Decomposed body#1) Decomposed body#24 4_M_DIEMAN,5,5
  1581. 2@gl_k,125,208,2 duplicate(Decomposed body#1) Decomposed body#25 4_M_DIEMAN,5,5
  1582. 2@gl_k,114,210,3 duplicate(Decomposed body#1) Decomposed body#26 4_M_DIEMAN,5,5
  1583. 2@gl_k,137,182,6 duplicate(Decomposed body#1) Decomposed body#27 4_M_DIEMAN,5,5
  1584. 2@gl_k,138,246,0 duplicate(Decomposed body#1) Decomposed body#28 4_M_DIEMAN,5,5
  1585. 2@gl_k,132,260,7 duplicate(Decomposed body#1) Decomposed body#29 4_M_DIEMAN,5,5
  1586. 2@gl_k,128,251,1 duplicate(Decomposed body#1) Decomposed body#30 4_M_DIEMAN,5,5
  1587. 2@gl_k,179,260,3 duplicate(Decomposed body#1) Decomposed body#31 4_M_DIEMAN,5,5
  1588. 2@gl_k,170,261,4 duplicate(Decomposed body#1) Decomposed body#32 4_M_DIEMAN,5,5
  1589. 2@gl_k,177,219,2 duplicate(Decomposed body#1) Decomposed body#33 4_M_DIEMAN,5,5
  1590. 2@gl_k,190,214,5 duplicate(Decomposed body#1) Decomposed body#34 4_M_DIEMAN,5,5
  1591. 2@gl_k,201,214,4 duplicate(Decomposed body#1) Decomposed body#35 4_M_DIEMAN,5,5
  1592. // Amdarais Spawn
  1593. 2@gl_k,153,250,8 script Heinrich#23 4_M_HEINRICH,{
  1594. cutin "gl_heinrich1",2;
  1595. mes "[Heinrich]";
  1596. mes "What are you putting on Himelmez!";
  1597. close3;
  1598. }
  1599. 2@gl_k,162,250,1 script Varmundt#23 4_M_BARMUND,{
  1600. mes "[Varmundt]";
  1601. mes "Can't take off this bridle...";
  1602. cutin "gl_barmund2",2;
  1603. close3;
  1604. }
  1605. 2@gl_k,158,255,1 script Gerhalt#23 4_LEVITATEMAN,{
  1606. mes "[Gerhalt]";
  1607. mes "Uuuuu... Khhhah! Just run away with the commander.";
  1608. close;
  1609. }
  1610. 2@gl_k,158,252,1 script Himelmez#22 4_F_HIMEL,3,3,{
  1611. cutin "gl_himel2",2;
  1612. mes "[Himelmez]";
  1613. mes "That is amazing ~ you made it all the way here. May I say thank you?";
  1614. close3;
  1615. OnTouch_:
  1616. if ('step != 8)
  1617. end;
  1618. 'step = 9;
  1619. disablenpc();
  1620. if ('mode == 1)
  1621. donpcevent instance_npcname("#talkinstance7") + "::OnStart";
  1622. else if ('mode == 2)
  1623. donpcevent instance_npcname("#talkinstance8") + "::OnStart";
  1624. end;
  1625. }
  1626. 2@gl_k,1,1,0 script #talkinstance7 HIDDEN_WARP_NPC,{
  1627. end;
  1628. OnStart:
  1629. enablenpc instance_npcname("Himelmez#23");
  1630. initnpctimer;
  1631. 'npc_himelmez$ = instance_npcname("Himelmez#23");
  1632. 'npc_gerhalt$ = instance_npcname("Gerhalt#23");
  1633. 'npc_heinrich$ = instance_npcname("Heinrich#23");
  1634. 'npc_varmundt$ = instance_npcname("Varmundt#23");
  1635. end;
  1636. OnTimer3000:
  1637. npctalk "Himelmez: Amazing~ I thought that you were not even close to getting here...", 'npc_himelmez$;
  1638. end;
  1639. OnTimer6000:
  1640. npctalk "Gerhalt: Kkkkah! Run away! I can't endure anymore!", 'npc_gerhalt$;
  1641. end;
  1642. OnTimer9000:
  1643. npctalk "Heinrich: Gerhalt!", 'npc_heinrich$;
  1644. end;
  1645. OnTimer15000:
  1646. npctalk "Heinrich: What are you doing to my soldier Himelmez!", 'npc_heinrich$;
  1647. end;
  1648. OnTimer18000:
  1649. npctalk "Himelmez: Hoo hoo, I already found a piece of Ymir's heart, Heinrich.", 'npc_himelmez$;
  1650. end;
  1651. OnTimer21000:
  1652. npctalk "Himelmez: If he did not bother me it would have been faster.", 'npc_himelmez$;
  1653. end;
  1654. OnTimer24000:
  1655. npctalk "Gerhalt: Commandant... Come on, you need to run away from here... Ugh.", 'npc_gerhalt$;
  1656. end;
  1657. OnTimer27000:
  1658. npctalk "Himelmez: Really? What makes you think so?", 'npc_himelmez$;
  1659. end;
  1660. OnTimer30000:
  1661. npctalk "Heinrich: Himelmez! You already made what you wanted so there is no more need for a sacrifice!", 'npc_heinrich$;
  1662. end;
  1663. OnTimer33000:
  1664. npctalk "Heinrich: Let him go! I don't need to see anyone else suffer!", 'npc_heinrich$;
  1665. end;
  1666. OnTimer36000:
  1667. npctalk "Himelmez: Let him go? I think... No...", 'npc_himelmez$;
  1668. end;
  1669. OnTimer39000:
  1670. npctalk "Himelmez: Besides, this is your last surviving soldier, Heinrich.", 'npc_himelmez$;
  1671. end;
  1672. OnTimer42000:
  1673. npctalk "Himelmez: He made life difficult for me.", 'npc_himelmez$;
  1674. end;
  1675. OnTimer45000:
  1676. npctalk "Himelmez: He is perfectly fit for my new creation Amdarais.", 'npc_himelmez$;
  1677. end;
  1678. OnTimer48000:
  1679. npctalk "Heinrich: I'll never forgive you.", 'npc_heinrich$;
  1680. end;
  1681. OnTimer51000:
  1682. npctalk "Himelmez: Uh uh~ I'm so scared.", 'npc_himelmez$;
  1683. end;
  1684. OnTimer54000:
  1685. npctalk "Himelmez: Anyway, we will have a chance to see because we need to talk more.", 'npc_himelmez$;
  1686. end;
  1687. OnTimer57000:
  1688. npctalk "Himelmez: So long boys.", 'npc_himelmez$;
  1689. end;
  1690. OnTimer60000:
  1691. specialeffect EF_BARRIER, AREA, 'npc_gerhalt$;
  1692. end;
  1693. OnTimer63000:
  1694. disablenpc 'npc_himelmez$;
  1695. end;
  1696. OnTimer65000:
  1697. npctalk "Gerhalt: You can make my body but you can't take my soul, Himelmez!", 'npc_gerhalt$;
  1698. end;
  1699. OnTimer66000:
  1700. specialeffect EF_CHAINCOMBO, AREA, 'npc_gerhalt$;
  1701. end;
  1702. OnTimer67000:
  1703. npctalk "Heinrich: I'll never let you get away Himelmez!!", 'npc_heinrich$;
  1704. specialeffect EF_MAPPILLAR, AREA, 'npc_gerhalt$;
  1705. end;
  1706. OnTimer70000:
  1707. specialeffect EF_MAPPILLAR2, AREA, 'npc_gerhalt$;
  1708. specialeffect EF_MAPPILLAR, AREA, 'npc_gerhalt$;
  1709. disablenpc 'npc_heinrich$;
  1710. npctalk "Varmundt: We have no choice. We have to fight against Amdarais!", 'npc_varmundt$;
  1711. end;
  1712. OnTimer73000:
  1713. mapannounce 'map_name$[1], "Gerhalt's body is changing.", bc_map,0xFFFFFF;
  1714. end;
  1715. OnTimer76000:
  1716. specialeffect EF_LORD, AREA, 'npc_gerhalt$;
  1717. disablenpc 'npc_varmundt$;
  1718. mapannounce 'map_name$[1], "Varmundt: Let me help this battle with my illusion. Just follow the illusion's orders.", bc_map,0xFFFF00;
  1719. end;
  1720. OnTimer80000:
  1721. disablenpc 'npc_gerhalt$;
  1722. donpcevent instance_npcname("#ghmemorialmob07") + "::OnStart";
  1723. stopnpctimer;
  1724. 'npc_himelmez$ = 'npc_gerhalt$ = 'npc_heinrich$ = 'npc_varmundt$ = "";
  1725. end;
  1726. }
  1727. 2@gl_k,1,1,0 script #talkinstance8 HIDDEN_WARP_NPC,{
  1728. end;
  1729. OnStart:
  1730. enablenpc instance_npcname("Himelmez#23");
  1731. initnpctimer;
  1732. 'npc_himelmez$ = instance_npcname("Himelmez#23");
  1733. 'npc_gerhalt$ = instance_npcname("Gerhalt#23");
  1734. 'npc_heinrich$ = instance_npcname("Heinrich#23");
  1735. 'npc_varmundt$ = instance_npcname("Varmundt#23");
  1736. npctalk "Himelmez: Amazing~ I thought that you were not even close to getting here...", 'npc_himelmez$;
  1737. end;
  1738. OnTimer1500:
  1739. specialeffect EF_BARRIER, AREA, 'npc_gerhalt$;
  1740. end;
  1741. OnTimer3500:
  1742. specialeffect EF_MAPPILLAR, AREA, 'npc_gerhalt$;
  1743. end;
  1744. OnTimer5000:
  1745. specialeffect EF_MAPPILLAR2, AREA, 'npc_gerhalt$;
  1746. end;
  1747. OnTimer5500:
  1748. disablenpc 'npc_himelmez$;
  1749. end;
  1750. OnTimer7000:
  1751. specialeffect EF_CHAINCOMBO, AREA, 'npc_gerhalt$;
  1752. end;
  1753. OnTimer10000:
  1754. npctalk "Heinrich: I'll never let you get away Himelmez!!", 'npc_heinrich$;
  1755. end;
  1756. OnTimer11000:
  1757. disablenpc 'npc_heinrich$;
  1758. npctalk "Varmundt: We have no choice. We have to fight against Amdarais!", 'npc_varmundt$;
  1759. end;
  1760. OnTimer14000:
  1761. specialeffect EF_MAPPILLAR2, AREA, 'npc_gerhalt$;
  1762. specialeffect EF_MAPPILLAR, AREA, 'npc_gerhalt$;
  1763. end;
  1764. OnTimer14500:
  1765. mapannounce 'map_name$[1], "Gerhalt's body is changing.", bc_map,0xFFFFFF;
  1766. end;
  1767. OnTimer15500:
  1768. disablenpc 'npc_varmundt$;
  1769. mapannounce 'map_name$[1], "Varmundt: Let me help this battle with my illusion. Just follow the illusion's orders.", bc_map,0xFFFF00;
  1770. end;
  1771. OnTimer17500:
  1772. specialeffect EF_LORD, AREA, 'npc_gerhalt$;
  1773. end;
  1774. OnTimer20500:
  1775. stopnpctimer;
  1776. disablenpc 'npc_gerhalt$;
  1777. donpcevent instance_npcname("#ghmemorialmob07") + "::OnStart";
  1778. 'npc_himelmez$ = 'npc_gerhalt$ = 'npc_heinrich$ = 'npc_varmundt$ = "";
  1779. end;
  1780. }
  1781. 2@gl_k,158,252,4 script Himelmez#23 4_F_HIMEL,{
  1782. cutin "gl_himel2",2;
  1783. mes "[Himelmez]";
  1784. mes "That is amazing ~ you made it all the way here. May I say thank you?";
  1785. close3;
  1786. }
  1787. 2@gl_k,1,1,0 script #ghmemorialmob07 HIDDEN_WARP_NPC,{
  1788. end;
  1789. OnStart:
  1790. enablenpc instance_npcname("#ghmemorialmob07");
  1791. monster 'map_name$[1],158,255,"Amdarais",2476,1,instance_npcname("#ghmemorialmob07") + "::OnMyMobDead";// MG_AMDARAIS
  1792. 'boss_id = $@mobid[0];
  1793. unittalk 'boss_id, "Run away... run away from me...";
  1794. initnpctimer;
  1795. end;
  1796. OnTimer5000:
  1797. unittalk 'boss_id, "I don't want... I don't want to kill anyone. Uhuuuuuh";
  1798. end;
  1799. OnTimer10000:
  1800. unittalk 'boss_id, "Please kill me! Please!";
  1801. end;
  1802. OnTimer16000:
  1803. unittalk 'boss_id, "Eeeeee...eee...die... die...";
  1804. end;
  1805. OnTimer22000:
  1806. unittalk 'boss_id, "Demolition... Death!...";
  1807. end;
  1808. OnTimer55000:
  1809. donpcevent instance_npcname("#ghmemorialmob08") + "::OnStart";// Varmundt buffs and additionnal monsters
  1810. stopnpctimer;
  1811. end;
  1812. OnMyMobDead:
  1813. if (mobcount('map_name$[1], instance_npcname("#ghmemorialmob07") + "::OnMyMobDead") < 1) {
  1814. stopnpctimer;
  1815. enablenpc instance_npcname("Hugin#21");
  1816. enablenpc instance_npcname("#Secret Room Exit");
  1817. stopnpctimer;
  1818. disablenpc instance_npcname("#ghmemorialmob07");
  1819. // note: monsters from #ghmemorialmob08 still alive on Amdarais's dead
  1820. }
  1821. end;
  1822. }
  1823. // Varmundt Buffs
  1824. 2@gl_k,1,1,0 script #ghmemorialmob08 HIDDEN_WARP_NPC,{
  1825. end;
  1826. OnStart:
  1827. enablenpc instance_npcname("#ghmemorialmob08");
  1828. initnpctimer;
  1829. end;
  1830. OnTimer5000:
  1831. if (unitexists('boss_id) == 0) {
  1832. disablenpc instance_npcname("#ghmemorialmob08");
  1833. stopnpctimer;
  1834. end;
  1835. }
  1836. getunitdata 'boss_id, .@data;
  1837. .@percent_hp = (.@data[UMOB_HP] * 100) / .@data[UMOB_MAXHP];
  1838. mapannounce 'map_name$[1], "Amdarais HP " + .@percent_hp + "% reach!", bc_map,0x70DBDB;
  1839. // event type every 10%
  1840. switch( .@percent_hp / 10 ) {
  1841. case 10:
  1842. break;
  1843. case 9:
  1844. donpcevent instance_npcname("Varmundt's Ghost#Buff2") + "::OnEvent";
  1845. break;
  1846. case 8:
  1847. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1848. areamonster 'map_name$[1],140,220,175,255,"Suffered Khalitzburg",2471,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1849. break;
  1850. case 7:
  1851. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1852. areamonster 'map_name$[1],140,220,175,255,"Abysmal Knight",2470,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1853. break;
  1854. case 6:
  1855. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1856. areamonster 'map_name$[1],140,220,175,255,"Bloody Knight",2472,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1857. break;
  1858. case 5:
  1859. donpcevent instance_npcname("Varmundt's Ghost#Buff2") + "::OnEvent";
  1860. break;
  1861. case 4:
  1862. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1863. areamonster 'map_name$[1],140,220,175,255,"Wandering Archer",2469,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1864. break;
  1865. case 3:
  1866. donpcevent instance_npcname("Varmundt's Ghost#Buff1") + "::OnEvent";
  1867. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1868. areamonster 'map_name$[1],140,220,175,255,"Bloody Knight",2472,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1869. break;
  1870. case 2:
  1871. donpcevent instance_npcname("Varmundt's Ghost#Buff1") + "::OnEvent";
  1872. donpcevent instance_npcname("Varmundt's Ghost#Buff3") + "::OnEvent";
  1873. areamonster 'map_name$[1],140,220,175,255,"Abysmal Knight",2470,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1874. break;
  1875. case 1:
  1876. case 0:
  1877. donpcevent instance_npcname("Varmundt's Ghost#Buff1") + "::OnEvent";
  1878. donpcevent instance_npcname("Varmundt's Ghost#Buff4") + "::OnEvent";
  1879. areamonster 'map_name$[1],140,220,175,255,"Wandering Archer",2469,6, instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1880. break;
  1881. }
  1882. end;
  1883. OnTimer30000:
  1884. killmonster 'map_name$[1], instance_npcname("#ghmemorialmob08") + "::OnMobDead";
  1885. initnpctimer;
  1886. end;
  1887. OnMobDead:
  1888. end;
  1889. }
  1890. 2@gl_k,150,247,5 script Varmundt's Ghost#Buff1 4_M_BARMUND,2,2,{
  1891. end;
  1892. OnTouch:
  1893. specialeffect2 EF_ENHANCE;
  1894. .@num = atoi( replacestr(strnpcinfo(2), "Buff", "") );
  1895. if (.@num == 1)
  1896. sc_start SC_GLASTHEIM_HIDDEN,30000,90,10000,SCSTART_NOTICKDEF;
  1897. else if (.@num == 2)
  1898. sc_start SC_GLASTHEIM_STATE,30000,20,10000,SCSTART_NOTICKDEF;
  1899. else if (.@num == 3) {
  1900. sc_start2 SC_GLASTHEIM_HEAL,30000,100,50,10000,SCSTART_NOTICKDEF;
  1901. sc_start2 SC_GLASTHEIM_HPSP,30000,10000,1000,10000,SCSTART_NOTICKDEF;
  1902. }
  1903. else {
  1904. sc_start SC_GLASTHEIM_DEF,30000,100,10000,SCSTART_NOTICKDEF;
  1905. sc_start2 SC_GLASTHEIM_ITEMDEF,30000,200,50,10000,SCSTART_NOTICKDEF;
  1906. }
  1907. end;
  1908. OnEvent:
  1909. initnpctimer;
  1910. enablenpc();
  1911. .@num = atoi( replacestr(strnpcinfo(2), "Buff", "") );
  1912. if (.@num == 1)
  1913. npctalk "Varmundt's Ghost: Amdarais may use a strong magic shield! Stay close to me and I'll protect you!";
  1914. else if (.@num == 2)
  1915. npctalk "Varmundt's Ghost: Now's a chance to attack! Come closer to me and strike!";
  1916. else if (.@num == 3)
  1917. npctalk "Varmundt's Ghost: If you don't want to be attacked by Amdarais' zombie, come to me and get more power!";
  1918. else
  1919. npctalk "Varmundt's Ghost: If you don't want to be attacked by Amdarais's power, come to me and get more power!";
  1920. end;
  1921. OnTimer10000:
  1922. stopnpctimer;
  1923. disablenpc();
  1924. end;
  1925. }
  1926. 2@gl_k,165,247,3 duplicate(Varmundt's Ghost#Buff1) Varmundt's Ghost#Buff2 4_M_BARMUND,2,2
  1927. 2@gl_k,150,232,8 duplicate(Varmundt's Ghost#Buff1) Varmundt's Ghost#Buff3 4_M_BARMUND,2,2
  1928. 2@gl_k,165,232,2 duplicate(Varmundt's Ghost#Buff1) Varmundt's Ghost#Buff4 4_M_BARMUND,2,2
  1929. 2@gl_k,158,241,1 script Hugin#21 4_M_SAGE_C,{
  1930. if ('step != 9)
  1931. end;
  1932. if (checkquest(12319,HUNTING) == 2) {// note: complete hunting 'Corrupted Soul Hunt' prerequis
  1933. if (checkweight(6607,5, 6608,5) == 0) {
  1934. mes "^ff0000It seems like you have too many types or weights of items. Please organize your inventory.^000000";
  1935. close;
  1936. }
  1937. mes "[Hugin]";
  1938. mes "Hm, you are very well. First of all, let me give you some loot from Amdarais.";
  1939. erasequest 12319;
  1940. setquest 12322;// Space Distortion
  1941. if (isbegin_quest(12321) == 0) {
  1942. setquest 12321;// Time Conqueror
  1943. completequest 12321;
  1944. getitem 6607,5;// Temporal_Crystal
  1945. getitem 6608,5;// Coagulated_Spell
  1946. getexp 350000,350000;
  1947. }
  1948. else {
  1949. getitem 6607,1;// Temporal_Crystal
  1950. getitem 6608,1;// Coagulated_Spell
  1951. }
  1952. next;
  1953. mes "[Hugin]";
  1954. mes "Varmundt's time is stopped by me.";
  1955. mes "And your time will be distorted soon.";
  1956. specialeffect2 EF_BLIND;
  1957. soundeffect "_blind.wav",0;
  1958. next;
  1959. mes "[Hugin]";
  1960. mes "Maybe this poor time traveler will try to stop Glast Heim's tragedy from happening.";
  1961. next;
  1962. mes "[Hugin]";
  1963. mes "However, we will never overlook his behavior now and forever...";
  1964. next;
  1965. mes "[Hugin]";
  1966. mes "Now let me remove your memory. If you see me again it will be someone new.";
  1967. specialeffect2 EF_FREEZE;
  1968. close2;
  1969. warp 'map_name$[1],158,244;
  1970. end;
  1971. }
  1972. mes "[Hugin]";
  1973. mes "Oops. I almost distorted the time gap. Come over here. We need to go out!";
  1974. next;
  1975. select("You were just with me...");
  1976. mes "[Hugin]";
  1977. mes "What did you say just before?";
  1978. mes "Anyway, that is not important. The gap of time will be closed so we need to get out of here.";
  1979. next;
  1980. if (select("Let me look around more:Please let me out") == 1) {
  1981. mes "[Hugin]";
  1982. mes "Really? This place will be break down soon. Please look around quickly.";
  1983. close;
  1984. }
  1985. close2;
  1986. warp "glast_01",204,270;
  1987. end;
  1988. }
  1989. // Treasure Room
  1990. //============================================================
  1991. 1@gl_k,165,136,3 script Strange crack#2 CLEAR_NPC,{
  1992. if ('step != 9)
  1993. end;
  1994. if (isbegin_quest(12322) == 0) {// Space Distortion
  1995. mes "The crack looks suspicious but nothing more to check.";
  1996. close;
  1997. }
  1998. specialeffect EF_SPELLBREAKER;
  1999. .@random = rand(1,4);
  2000. switch( atoi(strnpcinfo(2)) ) {
  2001. case 2:
  2002. for ( .@i = 1; .@i <= .@random; ++.@i )
  2003. makeitem 719,1,"this",165,138;
  2004. makeitem 6608,1,"this",165,138;
  2005. break;
  2006. case 3:
  2007. for ( .@i = 1; .@i <= .@random; ++.@i )
  2008. makeitem 720,1,"this",159,138;
  2009. if (rand(1,4) == 4)
  2010. makeitem2 15066,1,"this",159,138,0,0,0,0,0,0,0;
  2011. makeitem 6608,1,"this",159,138;
  2012. makeitem 7229,1,"this",159,138;
  2013. break;
  2014. case 4:
  2015. for ( .@i = 1; .@i <= .@random; ++.@i )
  2016. makeitem 721,1,"this",153,138;
  2017. if (rand(1,4) == 4)
  2018. makeitem2 13086,1,"this",153,138,0,0,0,0,0,0,0;
  2019. makeitem 6608,1,"this",153,138;
  2020. makeitem 7230,1,"this",153,138;
  2021. break;
  2022. case 5:
  2023. for ( .@i = 1; .@i <= .@random; ++.@i )
  2024. makeitem 722,1,"this",147,138;
  2025. if (rand(1,4) == 4)
  2026. makeitem2 2949,1,"this",147,138,0,0,0,0,0,0,0;
  2027. makeitem 6612,1,"this",147,138;
  2028. makeitem 6613,1,"this",147,138;
  2029. makeitem 6608,1,"this",147,138;
  2030. break;
  2031. case 6:
  2032. for ( .@i = 1; .@i <= .@random; ++.@i )
  2033. makeitem 725,1,"this",141,138;
  2034. makeitem 7228,1,"this",141,138;
  2035. if (rand(1,4) == 4)
  2036. makeitem2 13440,1,"this",141,138,0,0,0,0,0,0,0;
  2037. makeitem 6608,1,"this",141,138;
  2038. break;
  2039. case 7:
  2040. for ( .@i = 1; .@i <= .@random; ++.@i )
  2041. makeitem 726,1,"this",135,138;
  2042. if (rand(1,4) == 4)
  2043. makeitem2 2022,1,"this",135,138,0,0,0,0,0,0,0;
  2044. makeitem 6608,1,"this",135,138;
  2045. break;
  2046. case 8:
  2047. for ( .@i = 1; .@i <= .@random; ++.@i )
  2048. makeitem 727,1,"this",129,138;
  2049. if (rand(1,4) == 4)
  2050. makeitem2 21007,1,"this",129,138,0,0,0,0,0,0,0;
  2051. makeitem 6608,1,"this",129,138;
  2052. break;
  2053. }
  2054. disablenpc();
  2055. end;
  2056. }
  2057. 1@gl_k,159,136,3 duplicate(Strange crack#2) Strange crack#3 CLEAR_NPC
  2058. 1@gl_k,153,136,3 duplicate(Strange crack#2) Strange crack#4 CLEAR_NPC
  2059. 1@gl_k,147,136,3 duplicate(Strange crack#2) Strange crack#5 CLEAR_NPC
  2060. 1@gl_k,141,136,3 duplicate(Strange crack#2) Strange crack#6 CLEAR_NPC
  2061. 1@gl_k,135,136,3 duplicate(Strange crack#2) Strange crack#7 CLEAR_NPC
  2062. 1@gl_k,129,136,3 duplicate(Strange crack#2) Strange crack#8 CLEAR_NPC
  2063. 1@gl_k,269,267,3 script Strange crack#1 CLEAR_NPC,{
  2064. if (isbegin_quest(12322) == 0) {// Space Distortion
  2065. mes "The crack looks suspicious but nothing more to check.";
  2066. close;
  2067. }
  2068. warp 'map_name$[0],149,198;
  2069. end;
  2070. OnInstanceInit:
  2071. 'step = 0;
  2072. 'mode = 0;
  2073. 'map_name$[0] = instance_mapname("1@gl_k");
  2074. 'map_name$[1] = instance_mapname("2@gl_k");
  2075. // Entrance
  2076. disablenpc instance_npcname("Himelmez#1");
  2077. disablenpc instance_npcname("Varmundt#1");
  2078. disablenpc instance_npcname("Heinrich#1");
  2079. disablenpc instance_npcname("Heinrich#2");
  2080. disablenpc instance_npcname("Heinrich#3");
  2081. // Rescue 1
  2082. disablenpc instance_npcname("#ghmemorialmob01");
  2083. disablenpc instance_npcname("Altar boy Domun#1");
  2084. // Rescue 2
  2085. disablenpc instance_npcname("#ghmemorialmob02");
  2086. disablenpc instance_npcname("Holgren the Destroyer#1");
  2087. for ( .@i = 1; .@i <= 26; .@i++ )
  2088. disablenpc instance_npcname("A dead man#" + .@i);
  2089. // Sector 3
  2090. disablenpc instance_npcname("#ghmemorialmob03");
  2091. // Root of Corruption
  2092. disablenpc instance_npcname("Himelmez#2");
  2093. disablenpc instance_npcname("Varmundt#2");
  2094. disablenpc instance_npcname("Heinrich#4");
  2095. disablenpc instance_npcname("#Mimelon");
  2096. disablenpc instance_npcname("#ghmemorialmob04");
  2097. // Entrance 2nd map
  2098. disablenpc instance_npcname("Varmundt#21");
  2099. disablenpc instance_npcname("Heinrich#21");
  2100. disablenpc instance_npcname("#Servanton");
  2101. hideonnpc instance_npcname("#Servanton_effect");
  2102. // Commanders
  2103. disablenpc instance_npcname("#ghmemorialmob05");
  2104. disablenpc instance_npcname("#ghmemorialmob06");
  2105. for ( .@i = 1; .@i <= 7; .@i++ ) {
  2106. disablenpc instance_npcname("#ogh_2-" + .@i);
  2107. disablenpc instance_npcname("#ogh_3-" + .@i);
  2108. }
  2109. // Amdarais Room Entrance
  2110. disablenpc instance_npcname("#Geron");
  2111. for ( .@i = 1; .@i <= 35; .@i++ )
  2112. disablenpc instance_npcname("Decomposed body#" + .@i);
  2113. // Amdarais Spawn
  2114. disablenpc instance_npcname("Gerhalt#23");
  2115. disablenpc instance_npcname("Himelmez#22");
  2116. disablenpc instance_npcname("Himelmez#23");
  2117. disablenpc instance_npcname("Varmundt#23");
  2118. disablenpc instance_npcname("Heinrich#23");
  2119. disablenpc instance_npcname("#ghmemorialmob07");
  2120. // Varmundt Buffs
  2121. disablenpc instance_npcname("#ghmemorialmob08");
  2122. disablenpc instance_npcname("Varmundt's Ghost#Buff1");
  2123. disablenpc instance_npcname("Varmundt's Ghost#Buff2");
  2124. disablenpc instance_npcname("Varmundt's Ghost#Buff3");
  2125. disablenpc instance_npcname("Varmundt's Ghost#Buff4");
  2126. disablenpc instance_npcname("Hugin#21");
  2127. // Warps
  2128. disablenpc instance_npcname("#2Control");
  2129. disablenpc instance_npcname("#2Control2");
  2130. disablenpc instance_npcname("#3Control");
  2131. disablenpc instance_npcname("#3Control2");
  2132. disablenpc instance_npcname("#4Control");
  2133. disablenpc instance_npcname("#4Control2");
  2134. disablenpc instance_npcname("#2F Entrance");
  2135. disablenpc instance_npcname("#1 Control");
  2136. disablenpc instance_npcname("#22 Control");
  2137. disablenpc instance_npcname("#22 Control2");
  2138. disablenpc instance_npcname("#23 Control");
  2139. disablenpc instance_npcname("#23 Control2");
  2140. disablenpc instance_npcname("#24 Control");
  2141. disablenpc instance_npcname("#24 Control2");
  2142. disablenpc instance_npcname("#Secret Room Exit");
  2143. // Fast mode
  2144. disablenpc instance_npcname("#cut01");
  2145. end;
  2146. }