diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-26 22:47:28 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-26 22:47:28 +0000 |
commit | f83fd90579f5258ff145f9685499b67c5cd1fc68 (patch) | |
tree | 3160a65314e936898791cd2705d952f4241c8dc4 | |
parent | 829350723346e4dda27c4eaf3395c3d36f12c409 (diff) | |
download | hercules-f83fd90579f5258ff145f9685499b67c5cd1fc68.tar.gz hercules-f83fd90579f5258ff145f9685499b67c5cd1fc68.tar.bz2 hercules-f83fd90579f5258ff145f9685499b67c5cd1fc68.tar.xz hercules-f83fd90579f5258ff145f9685499b67c5cd1fc68.zip |
* instance_npcname will now error if the NPC being looked up is not found, care of ramsey.
* delitem/2 will now send the close button when failing to find all neccecary items to delete.
- Still do to, items should not be deleted as-found, and should be deleted once counted
and in the event of delitem failure, nothing should be consumed. This is a design flaw
in eathena, and should be fixed as soon as possible.
* Implemented the Endless Tower instance.
* Updated announces and dialogs in KVM.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14395 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 6 | ||||
-rw-r--r-- | db/item_db.txt | 2 | ||||
-rw-r--r-- | db/quest_db.txt | 4 | ||||
-rw-r--r-- | npc/Changelog.txt | 3 | ||||
-rw-r--r-- | npc/battleground/kvm/kvm01.txt | 98 | ||||
-rw-r--r-- | npc/battleground/kvm/kvm02.txt | 97 | ||||
-rw-r--r-- | npc/battleground/kvm/kvm03.txt | 95 | ||||
-rw-r--r-- | npc/battleground/kvm/kvm_enter.txt | 33 | ||||
-rw-r--r-- | npc/instances/EndlessTower.txt | 4084 | ||||
-rw-r--r-- | npc/scripts_athena.conf | 2 | ||||
-rw-r--r-- | src/map/script.c | 8 |
11 files changed, 4269 insertions, 163 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 37e7984b6..3cccc6059 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,12 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2010/08/26 + * Rev. 14395 instance_npcname will now error if the NPC being looked up is not found, care of ramsey. [L0ne_W0lf] + * delitem/2 will now send the close button when failing to find all neccecary items to delete. + - Still do to, items should not be deleted as-found, and should be deleted once counted + and in the event of delitem failure, nothing should be consumed. This is a design flaw + in eathena, and should be fixed as soon as possible. 2010/08/21 * Rev. 14393 Follow up to r14392, forgot to remove the old snprintf. [L0ne_W0lf] * Rev. 14392 Mob chat now strips "#unique" names off monsters, curtosy of Daegaladh. [L0ne_W0lf] diff --git a/db/item_db.txt b/db/item_db.txt index 0ba2c20a1..310a02d54 100644 --- a/db/item_db.txt +++ b/db/item_db.txt @@ -1289,7 +1289,7 @@ 2380,Medic_Robe,Medic's Robe,5,0,,0,,3,,1,0x00008110,7,2,16,,80,1,0,{ bonus bMaxHP,150; bonus bMdef,2; bonus2 bSubRace,RC_DemiHuman,2; if (isequipped(2539,2436)) { bonus2 bSubRace,RC_NonDemiHuman,-300; bonus bInt,3; bonus bMaxHPRate,12; bonus2 bCastrate,156,-50; bonus bHealPower,6; autobonus2 "{ bonus bDefEle,Ele_Ghost; }",30,10000,BF_WEAPON,"{ specialeffect2 EF_ENERGYCOAT; }"; }; },{},{} 2381,Elite_Archer_Suit,Elite Archer Suit,5,0,,0,,3,,1,0x00080808,7,2,16,,80,1,0,{ bonus bMaxHP,150; bonus bMdef,2; bonus2 bSubRace,RC_DemiHuman,2; if (isequipped(2539,2436)) { bonus2 bSubRace,RC_NonDemiHuman,-300; bonus bDex,3; bonus bMaxHPRate,12; bonus bLongAtkDef,10; bonus bDelayRate,-25; }; },{},{} 2382,Elite_Shooter_Suit,Elite Shooter Suit,5,0,,0,,3,,1,0x01000000,7,2,16,,80,1,0,{ bonus bMaxHP,150; bonus bMdef,2; bonus2 bSubRace,RC_DemiHuman,2; if (isequipped(2540,2437)) { bonus2 bSubRace,RC_NonDemiHuman,-300; bonus bDex,3; bonus bMaxHPRate,12; bonus bLongAtkDef,10; bonus bDelayRate,-25; }; },{},{} -2383,Brynhild,Brynhild,5,0,,400,,,,0,0xFFFFFFFF,7,2,16,,94,0,0,{ bonus bMdef,10; bonus bMaxHP,20*BaseLevel; bonus bMaxSP,5*BaseLevel; bonus2 bAddRace,RC_NonBoss,10; bonus2 bAddRace,RC_Boss,10; bonus bMatkRate,10; bonus bUnbreakableArmor,0; bonus bNoKnockback,0; },{},{} +2383,Brynhild,Brynhild,5,0,,400,,10,,0,0xFFFFFFFF,7,2,16,,94,0,0,{ bonus bMdef,10; bonus bMaxHP,20*BaseLevel; bonus bMaxSP,5*BaseLevel; bonus2 bAddRace,RC_NonBoss,10; bonus2 bAddRace,RC_Boss,10; bonus bMatkRate,10; bonus bUnbreakableArmor,0; bonus bNoKnockback,0; },{},{} 2384,Spritual_Tunic,Spiritual Tunic,5,20,,0,,10,,0,0xFFFFFFFF,7,2,16,,0,0,0,{ bonus bMaxHP,800; bonus2 bResEff,Eff_Freeze,10000; bonus2 bSubEle,Ele_Earth,20; bonus2 bSubEle,Ele_Fire,20; bonus2 bSubEle,Ele_Wind,20; bonus2 bSubEle,Ele_Poison,20; bonus2 bSubEle,Ele_Holy,20; bonus2 bSubEle,Ele_Dark,20; bonus2 bSubEle,Ele_Ghost,20; bonus2 bSubEle,Ele_Undead,20; },{},{} 2385,Recuperative_Armor,Recuperative Armor,5,20,,0,,12,,0,0xFFFFFFFF,7,2,16,,0,0,0,{ bonus bNoRegen,1; bonus bNoRegen,2; bonus bHPGainValue,60; bonus bSPGainValue,6; bonus bMagicHPGainValue,60; bonus bMagicSPGainValue,6; },{},{ heal 0,-100; } 2386,Chameleon_Armor,Chameleon Armor,5,20,,1700,,5,,0,0x000FDF80,2,2,16,,70,1,0,{ bonus bMaxHP,(BaseLevel*7); bonus bMaxSP,(BaseLevel/2); autobonus2 "{ bonus bNoMagicDamage,100; }",10,2000,BF_MAGIC,"{ specialeffect2 EF_ENERGYCOAT; }"; if( BaseClass == Job_Mage || BaseClass == Job_Archer || BaseClass == Job_Acolyte ) bonus bMdef,5; else if( BaseClass == Job_Swordman || BaseClass == Job_Merchant || BaseClass == Job_Thief ) bonus bDef,3; },{},{} diff --git a/db/quest_db.txt b/db/quest_db.txt index cafed9de9..f196f8a02 100644 --- a/db/quest_db.txt +++ b/db/quest_db.txt @@ -1409,8 +1409,8 @@ 60189,0,1365,100,0,0,0,0,"Hunting Apocalypse" 60190,0,1365,150,0,0,0,0,"Hunting Apocalypse" // -60200,0,0,0,0,0,0,0,"Endless Tower Effect" -60201,0,0,0,0,0,0,0,"Endless Tower Time Limit" +60200,604800,0,0,0,0,0,0,"Endless Tower Effect" +60201,14400,0,0,0,0,0,0,"Endless Tower Time Limit" 60301,0,1155,100,0,0,0,0,"Dragon Hunting" 60302,0,1155,200,0,0,0,0,"Dragon Hunting" 60303,0,1714,100,0,0,0,0,"Dragon Hunting" diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 5ddcaac1a..abafe2a51 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -1,5 +1,8 @@ Date Added ====== +2010/08/26 + * Rev. 14395 Implemented the Endless Tower instance. [L0ne_W0lf] + * Updated announces and dialogs in KVM. 2010/08/21 * Rev. 14392 Touched up the Airship scripts. Fixed up some content based on official files. [L0ne_W0lf] * Rev. 14391 Fixed silly copy paste errors in Tierra Gorge entrance npcs. (bugreport:4401) [L0ne_W0lf] diff --git a/npc/battleground/kvm/kvm01.txt b/npc/battleground/kvm/kvm01.txt index bf2a8a127..854e9bb8b 100644 --- a/npc/battleground/kvm/kvm01.txt +++ b/npc/battleground/kvm/kvm01.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= ???, L0ne_W0lf //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= eAthena 1.0 //===== Description: ========================================= @@ -14,6 +14,9 @@ //===== Additional Comments: ================================= //= 1.0 First Version. //= 1.1 Updated using official Aegis files. [L0ne_W0lf] +//= 1.2 Upated some announces and dialogs from iRO. +//= Changed how the scoreboard works slightly. +//= Removed the areapercentheals, and minor things. //============================================================ // Waiting Room NPCs @@ -143,12 +146,11 @@ OnGuillaumeDie: if( $@KvM01BG == 2 ) { set .Guillaume_Count, .Guillaume_Count - 1; - set .Croix_Score, .Croix_Score + 1; - bg_updatescore "bat_c01",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c01",.Guillaume_Count,.Croix_Count; if( .Guillaume_Count < 1 ) donpcevent "KvM01_BG::OnCroixWin"; else { - mapannounce "bat_c01", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -159,12 +161,11 @@ OnCroixDie: if( $@KvM01BG == 2 ) { set .Croix_Count, .Croix_Count - 1; - set .Guillaume_Score, .Guillaume_Score + 1; - bg_updatescore "bat_c01",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c01",.Guillaume_Count,.Croix_Count; if( .Croix_Count < 1 ) donpcevent "KvM01_BG::OnGuillaumeWin"; else { - mapannounce "bat_c01", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -191,9 +192,6 @@ OnStart: // Warp Teams bg_warp $@KvM01BG_id1,"bat_c01",53,128; bg_warp $@KvM01BG_id2,"bat_c01",146,55; - // ScoreBoard - set .Guillaume_Score, 0; - set .Croix_Score, 0; initnpctimer; end; @@ -255,34 +253,32 @@ OnTimer61000: end; } set $@KvM01BG, 2; // Playing - areapercentheal "bat_c01",50,123,58,131,100,100; bg_warp $@KvM01BG_id1,"bat_c01",61,120; - areapercentheal "bat_c01",141,52,149,60,100,100; bg_warp $@KvM01BG_id2,"bat_c01",138,63; end; OnTimer300000: - mapannounce "bat_c01", "KVM will be ending in 1 minute.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "1 minute remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer330000: - mapannounce "bat_c01", "KVM will be ending in 30 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "30 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer345000: - mapannounce "bat_c01", "KVM will be ending in 15 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "15 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer350000: - mapannounce "bat_c01", "KVM will be ending in 10 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "10 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer355000: - mapannounce "bat_c01", "KVM will be ending in 5 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "5 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer360000: - mapannounce "bat_c01", "KVM has ended.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The KVM battle is over.",bc_map,"0x00ff00"; if( .Croix_Count > .Guillaume_Count ) donpcevent "KvM01_BG::OnCroixWin"; else if( .Croix_Count < .Guillaume_Count ) @@ -291,9 +287,9 @@ OnTimer360000: { // Draw Game set $@KvM01BG, 3; set $@KvM01BG_Victory, 3; - mapannounce "bat_c01", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Regardless of the outcome of the two camps.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c01", "This battle has ended in a draw.",bc_map,"0x00ff00"; donpcevent "KvM01_BG::OnStop"; } end; @@ -301,18 +297,18 @@ OnTimer360000: OnGuillaumeWin: set $@KvM01BG, 3; set $@KvM01BG_Victory, 1; - mapannounce "bat_c01", "Guillaume camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Congratulations to all Guillaume members.",bc_map,"0x00ff00"; - mapannounce "bat_c01", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Guillaume wins!",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Congratulations to Guillaume members.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM01_BG::OnStop"; end; OnCroixWin: set $@KvM01BG, 3; set $@KvM01BG_Victory, 2; - mapannounce "bat_c01", "Croix camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Congratulations to all Croix members.",bc_map,"0x00ff00"; - mapannounce "bat_c01", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Croix wins!",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Congratulations to Croix members.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM01_BG::OnStop"; end; @@ -329,8 +325,6 @@ OnStop: OnReset: set .Croix_Count, 0; set .Guillaume_Count, 0; - set .Croix_Score, 0; - set .Guillaume_Score, 0; set $@KvM01BG_Victory, 0; if( $@KvM01BG_id1 ) { bg_destroy $@KvM01BG_id1; set $@KvM01BG_id1, 0; } if( $@KvM01BG_id2 ) { bg_destroy $@KvM01BG_id2; set $@KvM01BG_id2, 0; } @@ -338,7 +332,7 @@ OnReset: disablenpc "KVM Officer#KVM01B"; mapwarp "bat_c01","bat_room",154,150; maprespawnguildid "bat_c01",0,3; // Just in case someone else - bg_updatescore "bat_c01",0,0; + bg_updatescore "bat_c01",5,5; set $@KvM01BG, 0; donpcevent "KvM01_BG::OnReadyCheck"; // Maybe a game is ready to start end; @@ -361,8 +355,12 @@ OnTimer3000: end; OnTimer5000: - mapannounce "bat_c01", "If you do not claim your points now, you will not be able to.",bc_map,"0x00ff00"; - mapannounce "bat_c01", "Please make sure to collect before the time expires.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Unless you talk to the Officer, you cannot gain the points.",bc_map,"0x00ff00"; + mapannounce "bat_c01", "Please be careful.",bc_map,"0x00ff00"; + end; + +OnTimer:55000: + mapannounce "bat_c01", "You will be sent back.",bc_map,"0x00ff00"; end; OnTimer60000: @@ -379,19 +377,19 @@ bat_c01,51,130,5 script KVM Officer#KVM01A 419,{ if( $@KvM01BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 5; - mes "[Swandery]"; - mes "Blessed Guillaume!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 5"; close2; } else { // set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "You lost, but you're dedicated to this battle."; - mes "This is a reward for your great dedication by Guillaume Marollo!"; - mes "Just take this defeat a lesson, and later you would definitely learn."; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 1"; close2; } bg_leave; @@ -408,19 +406,19 @@ bat_c01,148,53,1 script KVM Officer#KVM01B 415,{ if( $@KvM01BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 5; - mes "[Swandery]"; - mes "Blessed Croax!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 5"; close2; } else { // set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "Oh, " + strcharinfo(0) + ". Don't be sad."; - mes "Even though we didn't win, we did our best."; - mes "This is a Royal gift from Croix, and please don't forget this battle. We can win the next."; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 1"; close2; } bg_leave; diff --git a/npc/battleground/kvm/kvm02.txt b/npc/battleground/kvm/kvm02.txt index 677172c38..8acfcae31 100644 --- a/npc/battleground/kvm/kvm02.txt +++ b/npc/battleground/kvm/kvm02.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= ???, L0ne_W0lf //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= eAthena 1.0 //===== Description: ========================================= @@ -14,6 +14,9 @@ //===== Additional Comments: ================================= //= 1.0 First Version. //= 1.1 Updated using official Aegis files. [L0ne_W0lf] +//= 1.2 Upated some announces and dialogs from iRO. +//= Changed how the scoreboard works slightly. +//= Removed the areapercentheals, and minor things. //============================================================ // Waiting Room NPCs @@ -143,12 +146,11 @@ OnGuillaumeDie: if( $@KvM02BG == 2 ) { set .Guillaume_Count, .Guillaume_Count - 1; - set .Croix_Score, .Croix_Score + 1; - bg_updatescore "bat_c02",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c02",.Guillaume_Count,.Croix_Count; if( .Guillaume_Count < 1 ) donpcevent "KvM02_BG::OnCroixWin"; else { - mapannounce "bat_c02", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -159,12 +161,11 @@ OnCroixDie: if( $@KvM02BG == 2 ) { set .Croix_Count, .Croix_Count - 1; - set .Guillaume_Score, .Guillaume_Score + 1; - bg_updatescore "bat_c02",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c02",.Guillaume_Count,.Croix_Count; if( .Croix_Count < 1 ) donpcevent "KvM02_BG::OnGuillaumeWin"; else { - mapannounce "bat_c02", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -191,9 +192,6 @@ OnStart: // Warp Teams bg_warp $@KvM02BG_id1,"bat_c02",53,128; bg_warp $@KvM02BG_id2,"bat_c02",146,55; - // ScoreBoard - set .Guillaume_Score, 0; - set .Croix_Score, 0; initnpctimer; end; @@ -255,34 +253,32 @@ OnTimer61000: end; } set $@KvM02BG, 2; // Playing - areapercentheal "bat_c02",50,123,58,131,100,100; bg_warp $@KvM02BG_id1,"bat_c02",62,119; - areapercentheal "bat_c02",141,52,149,60,100,100; bg_warp $@KvM02BG_id2,"bat_c02",137,64; end; OnTimer300000: - mapannounce "bat_c02", "KVM will be ending in 1 minute.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "1 minute remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer330000: - mapannounce "bat_c02", "KVM will be ending in 30 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "30 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer345000: - mapannounce "bat_c02", "KVM will be ending in 15 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "15 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer350000: - mapannounce "bat_c02", "KVM will be ending in 10 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "10 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer355000: - mapannounce "bat_c02", "KVM will be ending in 5 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "5 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer360000: - mapannounce "bat_c02", "KVM has ended.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The KVM battle is over.",bc_map,"0x00ff00"; if( .Croix_Count > .Guillaume_Count ) donpcevent "KvM02_BG::OnCroixWin"; else if( .Croix_Count < .Guillaume_Count ) @@ -291,9 +287,9 @@ OnTimer360000: { // Draw Game set $@KvM02BG, 3; set $@KvM02BG_Victory, 3; - mapannounce "bat_c02", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Regardless of the outcome of the two camps.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c02", "This battle has ended in a draw.",bc_map,"0x00ff00"; donpcevent "KvM02_BG::OnStop"; } end; @@ -301,18 +297,18 @@ OnTimer360000: OnGuillaumeWin: set $@KvM02BG, 3; set $@KvM02BG_Victory, 1; - mapannounce "bat_c02", "Guillaume camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Congratulations to all Guillaume members.",bc_map,"0x00ff00"; - mapannounce "bat_c02", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Guillaume wins!",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Congratulations to Guillaume members.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM02_BG::OnStop"; end; OnCroixWin: set $@KvM02BG, 3; set $@KvM02BG_Victory, 2; - mapannounce "bat_c02", "Croix camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Congratulations to all Croix members.",bc_map,"0x00ff00"; - mapannounce "bat_c02", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Croix wins!",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Congratulations to Croix members.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM02_BG::OnStop"; end; @@ -329,8 +325,6 @@ OnStop: OnReset: set .Croix_Count, 0; set .Guillaume_Count, 0; - set .Croix_Score, 0; - set .Guillaume_Score, 0; set $@KvM02BG_Victory, 0; if( $@KvM02BG_id1 ) { bg_destroy $@KvM02BG_id1; set $@KvM02BG_id1, 0; } if( $@KvM02BG_id2 ) { bg_destroy $@KvM02BG_id2; set $@KvM02BG_id2, 0; } @@ -338,7 +332,7 @@ OnReset: disablenpc "KVM Officer#KVM02B"; mapwarp "bat_c02","bat_room",154,150; maprespawnguildid "bat_c02",0,3; // Just in case someone else - bg_updatescore "bat_c02",0,0; + bg_updatescore "bat_c02",5,5; set $@KvM02BG, 0; donpcevent "KvM02_BG::OnReadyCheck"; // Maybe a game is ready to start end; @@ -361,8 +355,12 @@ OnTimer3000: end; OnTimer5000: - mapannounce "bat_c02", "If you do not claim your points now, you will not be able to.",bc_map,"0x00ff00"; - mapannounce "bat_c02", "Please make sure to collect before the time expires.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Unless you talk to the Officer, you cannot gain the points.",bc_map,"0x00ff00"; + mapannounce "bat_c02", "Please be careful.",bc_map,"0x00ff00"; + end; + +OnTimer:55000: + mapannounce "bat_c02", "You will be sent back.",bc_map,"0x00ff00"; end; OnTimer60000: @@ -379,16 +377,18 @@ bat_c02,51,130,5 script KVM Officer#KVM02A 419,{ if( $@KvM02BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "Blessed Guillaume!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 5"; close2; } else { // - mes "[Swandery]"; - mes "You lost, but you're dedicated to this battle."; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 0"; close2; } bg_leave; @@ -405,19 +405,18 @@ bat_c02,148,53,1 script KVM Officer#KVM02B 415,{ if( $@KvM02BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "Blessed Croax!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; - mes "Just take this defeat a lesson, and later you would definitely learn."; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 1"; close2; } else { // - mes "[Swandery]"; - mes "Oh, " + strcharinfo(0) + ". Don't be sad."; - mes "Even though we didn't win, we did our best."; - mes "Please don't forget this battle. We can win the next."; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 0"; close2; } bg_leave; diff --git a/npc/battleground/kvm/kvm03.txt b/npc/battleground/kvm/kvm03.txt index f9e744202..1664e6dd3 100644 --- a/npc/battleground/kvm/kvm03.txt +++ b/npc/battleground/kvm/kvm03.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= ???, L0ne_W0lf //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= eAthena 1.0 //===== Description: ========================================= @@ -14,6 +14,9 @@ //===== Additional Comments: ================================= //= 1.0 First Version. //= 1.1 Updated using official Aegis files. [L0ne_W0lf] +//= 1.2 Upated some announces and dialogs from iRO. +//= Changed how the scoreboard works slightly. +//= Removed the areapercentheals, and minor things. //============================================================ // Waiting Room NPCs @@ -143,12 +146,11 @@ OnGuillaumeDie: if( $@KvM03BG == 2 ) { set .Guillaume_Count, .Guillaume_Count - 1; - set .Croix_Score, .Croix_Score + 1; - bg_updatescore "bat_c03",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c03",.Guillaume_Count,.Croix_Count; if( .Guillaume_Count < 1 ) donpcevent "KvM03_BG::OnCroixWin"; else { - mapannounce "bat_c03", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -159,12 +161,11 @@ OnCroixDie: if( $@KvM03BG == 2 ) { set .Croix_Count, .Croix_Count - 1; - set .Guillaume_Score, .Guillaume_Score + 1; - bg_updatescore "bat_c03",.Guillaume_Score,.Croix_Score; + bg_updatescore "bat_c03",.Guillaume_Count,.Croix_Count; if( .Croix_Count < 1 ) donpcevent "KvM03_BG::OnGuillaumeWin"; else { - mapannounce "bat_c03", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; } } end; @@ -191,9 +192,6 @@ OnStart: // Warp Teams bg_warp $@KvM03BG_id1,"bat_c03",53,128; bg_warp $@KvM03BG_id2,"bat_c03",146,55; - // ScoreBoard - set .Guillaume_Score, 0; - set .Croix_Score, 0; initnpctimer; end; @@ -255,30 +253,28 @@ OnTimer61000: end; } set $@KvM03BG, 2; // Playing - areapercentheal "bat_c03",50,123,58,131,100,100; bg_warp $@KvM03BG_id1,"bat_c03",62,119; - areapercentheal "bat_c03",141,52,149,60,100,100; bg_warp $@KvM03BG_id2,"bat_c03",137,64; end; OnTimer300000: - mapannounce "bat_c03", "KVM will be ending in 1 minute.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "1 minute remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer330000: - mapannounce "bat_c03", "KVM will be ending in 30 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "30 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer345000: - mapannounce "bat_c03", "KVM will be ending in 15 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "15 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer350000: - mapannounce "bat_c03", "KVM will be ending in 10 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "10 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer355000: - mapannounce "bat_c03", "KVM will be ending in 5 seconds.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "5 seconds remaining to finish the KVM battle.",bc_map,"0x00ff00"; end; OnTimer360000: @@ -291,9 +287,9 @@ OnTimer360000: { // Draw Game set $@KvM03BG, 3; set $@KvM03BG_Victory, 3; - mapannounce "bat_c03", "Number of Guillaume survivors "+.Guillaume_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Number of Croix survivors "+.Croix_Count+".",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Regardless of the outcome of the two camps.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Guillaumes is "+.Guillaume_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "The number of Croixes is "+.Croix_Count+".",bc_map,"0x00ff00"; + mapannounce "bat_c03", "This battle has ended in a draw.",bc_map,"0x00ff00"; donpcevent "KvM03_BG::OnStop"; } end; @@ -301,18 +297,18 @@ OnTimer360000: OnGuillaumeWin: set $@KvM03BG, 3; set $@KvM03BG_Victory, 1; - mapannounce "bat_c03", "Guillaume camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Congratulations to all Guillaume members.",bc_map,"0x00ff00"; - mapannounce "bat_c03", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Guillaume wins!",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Congratulations to Guillaume members.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM03_BG::OnStop"; end; OnCroixWin: set $@KvM03BG, 3; set $@KvM03BG_Victory, 2; - mapannounce "bat_c03", "Croix camp victory.",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Congratulations to all Croix members.",bc_map,"0x00ff00"; - mapannounce "bat_c03", "All personnel move to the starting zone.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Croix wins!",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Congratulations to Croix members.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Everyone will be moved to the start point.",bc_map,"0x00ff00"; donpcevent "KvM03_BG::OnStop"; end; @@ -329,8 +325,6 @@ OnStop: OnReset: set .Croix_Count, 0; set .Guillaume_Count, 0; - set .Croix_Score, 0; - set .Guillaume_Score, 0; set $@KvM03BG_Victory, 0; if( $@KvM03BG_id1 ) { bg_destroy $@KvM03BG_id1; set $@KvM03BG_id1, 0; } if( $@KvM03BG_id2 ) { bg_destroy $@KvM03BG_id2; set $@KvM03BG_id2, 0; } @@ -338,7 +332,7 @@ OnReset: disablenpc "VintenarKvM03b"; mapwarp "bat_c03","bat_room",154,150; maprespawnguildid "bat_c03",0,3; // Just in case someone else - bg_updatescore "bat_c03",0,0; + bg_updatescore "bat_c03",5,5; set $@KvM03BG, 0; donpcevent "KvM03_BG::OnReadyCheck"; // Maybe a game is ready to start end; @@ -361,8 +355,12 @@ OnTimer3000: end; OnTimer5000: - mapannounce "bat_c03", "If you do not claim your points now, you will not be able to.",bc_map,"0x00ff00"; - mapannounce "bat_c03", "Please make sure to collect before the time expires.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Unless you talk to the Officer, you cannot gain the points.",bc_map,"0x00ff00"; + mapannounce "bat_c03", "Please be careful.",bc_map,"0x00ff00"; + end; + +OnTimer:55000: + mapannounce "bat_c03", "You will be sent back.",bc_map,"0x00ff00"; end; OnTimer60000: @@ -379,18 +377,19 @@ bat_c03,51,130,5 script KVM Officer#KVM03A 419,{ if( $@KvM03BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 2; - mes "[Swandery]"; - mes "Blessed Guillaume!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 2"; close2; } else { // set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "You lost, but you're dedicated to this battle."; - mes "This is a reward for your great dedication by Guillaume Marollo!"; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 1"; close2; } bg_leave; @@ -407,19 +406,19 @@ bat_c03,148,53,1 script KVM Officer#KVM03B 415,{ if( $@KvM03BG_Victory == Bat_Team ) { // Victory set kvm_point,kvm_point + 2; - mes "[Swandery]"; - mes "Blessed Croax!!"; - mes "Let's enjoy our glorious victory!"; - mes "" + strcharinfo(0) + ", its a sign reflecting victory"; + mes "[KVM Officer]"; + mes "Good Game."; + mes "May the glory of KVM be with you."; + mes "You aquire the winning points: 2"; close2; } else { // set kvm_point,kvm_point + 1; - mes "[Swandery]"; - mes "Oh, " + strcharinfo(0) + ". Don't be sad."; - mes "Even though we didn't win, we did our best."; - mes "This is a Royal gift from Croix, and please don't forget this battle. We can win the next."; + mes "[KVM Officer]"; + mes "I am so sorry."; + mes "I wish you better luck next time."; + mes "You aquire the losing points: 1"; close2; } bg_leave; diff --git a/npc/battleground/kvm/kvm_enter.txt b/npc/battleground/kvm/kvm_enter.txt index c6d50e87a..95ef27b0c 100644 --- a/npc/battleground/kvm/kvm_enter.txt +++ b/npc/battleground/kvm/kvm_enter.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.0 +//= 1.1 //===== Compatible With: ===================================== //= eAthena 1.0 //===== Description: ========================================= @@ -12,27 +12,33 @@ //= Original NPCs scrapped from bg_common. //===== Additional Comments: ================================= //= 1.0 First Version. +//= 1.1 Corrected some typos, and shifted messages around. +//= Corrected iRO style quest log entries, however it's +//= advisable that you not use them, as they conflict. //============================================================ // KvM Officer - Guillaume //============================================================ bat_room,164,178,5 script KVM Mercenary Officer#1 418,{ /* - set .@kvm,checkquest(6027,PLAYTIME); + set .@kvm,checkquest(6026,PLAYTIME); if ((.@kvm == 0) || (.@kvm == 1)) { mes "[Croix Mercenary Officer]"; - mes "It seems you ahve recently participated in a KVM battle. You must wait 5 minutes before signing up again."; + mes "I know that you've already signed with the Croix. Go back and join their team. We will not accept traitors to fight for us."; close; } + else if (.@kvm == 2) { + erasequest 6026; + } */ set .@permit,checkquest(6025,PLAYTIME); if ((.@permit == 0) || (.@permit == 1)) { mes "[Guillaume Mercenary Officer]"; - mes "I know that you've already signed with the Croix. Go back and join their team. We will not accept traitors to fight for us."; + mes "It seems you have recently participated in a KVM battle. You must wait 5 minutes before signing up again."; close; } - else { - if (checkquest(6025) >= 0) erasequest 6025; + else if (.@permit == 2) { + erasequest 6025; } mes "[Guillaume Mercenary Officer]"; mes "Let them know the real might of Guillaume!"; @@ -43,6 +49,7 @@ bat_room,164,178,5 script KVM Mercenary Officer#1 418,{ mes "Show them how strong we are."; mes "Today, everyone will hear the shout of triumph from Guillaume!"; close2; + //setquest 6025; if (BaseLevel > 79) { warp "bat_room",169,223; } @@ -124,21 +131,24 @@ bat_room,167,178,5 script Guillaume Knight#kvm 417,{ //============================================================ bat_room,164,121,1 script KVM Mercenary Officer#2 414,{ /* - set .@kvm,checkquest(6027,PLAYTIME); + set .@kvm,checkquest(6025,PLAYTIME); if ((.@kvm == 0) || (.@kvm == 1)) { mes "[Croix Mercenary Officer]"; - mes "It seems you ahve recently participated in a KVM battle. You must wait 5 minutes before signing up again."; + mes "I know that you've already signed with the Guillaume. Go back and join their team. We will not accept traitors to fight for us."; close; } + else if (.@kvm == 2) { + erasequest 6025; + } */ set .@permit,checkquest(6025,PLAYTIME); if ((.@permit == 0) || (.@permit == 1)) { mes "[Croix Mercenary Officer]"; - mes "I know that you've already signed with the Guillaume. Go back and join their team. We will not accept traitors to fight for us."; + mes "It seems you have recently participated in a KVM battle. You must wait 5 minutes before signing up again."; close; } - else { - if (checkquest(6025) >= 0) erasequest 6025; + else if (.@permit == 2) { + erasequest 6025; } mes "[Croix Mercenary Officer]"; mes "Let them know the real might of Croix!"; @@ -149,6 +159,7 @@ bat_room,164,121,1 script KVM Mercenary Officer#2 414,{ mes "Show them how strong we are."; mes "Today, everyone will hear the shout of triumph from Croix!"; close2; + //setquest 6026; if (BaseLevel > 79) { warp "bat_room",169,207; } diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt new file mode 100644 index 000000000..9dbdfb3fd --- /dev/null +++ b/npc/instances/EndlessTower.txt @@ -0,0 +1,4084 @@ +//===== eAthena Script ======================================= +//= Endless Tower +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.0 +//===== Compatible With: ===================================== +//= eAthena SVN +//===== Description: ========================================= +//= [Aegis Conversion] +//= Endless Tower Memorial Dungeon +//= Consists of 101 floors. +//===== Additional Comments: ================================= +//= 1.0 First version. +//============================================================ + +alberta,214,77,6 script Captain Janssen 709,{ + if (checkweight(1201,1) == 0) { + mes "^008800Wait here!!"; + mes "You're carrying too much stuff. Why don't you put some of it away, and then come back.^000000"; + close; + } + set .@name_102$,strcharinfo(0); + if (BaseLevel < 50) { + mes "[Captain Janssen]"; + mes "Sigh... I don't know if I can ever go back to sailing the sea..."; + close; + } + if (in_102tower == 1) { + mes "^0000ffLooking incredibly excited, the old man ran into the marine shop hurriedly ordering goods. You don't have anything better to do, so you decide to ask him why he is in such a rush.^000000"; + next; + mes "^0000ffThe old man, after finishing his orders, walks towards you.^000000"; + next; + mes "[Captain Janssen]"; + mes "I was touched when you accepted a request from me, a stranger, so easily. You must truly be one of those good, heroic adventurers. Are you interested in setting out on an ocean voyage?"; + next; + mes "["+.@name_102$+"]"; + mes "I've sailed a few times... But now that I think about it, I've never gone across the continent."; + next; + mes "[Captain Janssen]"; + mes "No, that's good enough. I may just have one small fishing vessel, but I used to be a captain that commanded a fleet."; + next; + mes "[Captain Janssen]"; + mes "As you may know after a few sea voyages, not many people have gone across the ocean beyond the continent. I too have failed to conquer the ocean."; + next; + mes "^0000ffMr. Janssen talked about his perilous ocean journeys for quite a while. You had enough time on your hands, so you sat down, quietly listening to his story.^000000"; + next; + mes "^0000ffAt least half of his story sounded grossly exaggerated, but something caught your ear: he insists that a humongous tower exists on the ocean, and that it's so tall, it scrapes across the sky.^000000"; + set in_102tower,2; + close; + } + else if (in_102tower == 2) { + mes "[Captain Janssen]"; + mes "So all I could do was cast anchor at that humongous tower after my fleet was wrecked. At first, we were only going to stay there until the rainstorm was over, but it didn't end as soon as we had hoped."; + next; + mes "[Captain Janssen]"; + mes "My crew was starving, and a few of them walked into the tower of the unknown in order to find food... They never came back."; + next; + mes "["+.@name_102$+"]"; + mes "Why didn't you go in there with them?"; + next; + mes "[Captain Janssen]"; + mes "My instincts told me that tower was dangerous. I was curious, but I wasn't going to risk my life. We waited for them to come back for 7 days until the rainstorm was finally over, but no one returned."; + next; + mes "[Captain Janssen]"; + mes "In our desperation to survive, we abandoned all our goods, and left the tower only with a little bit of the water and edible plants we'd found around the tower. When we finally reached land, I was the only one alive..."; + next; + mes "^0000ffYou could imagine the heartrending scene of the dying fleet on their last voyage, even if he didn't explain it any further. A look of somber regret swept his face as he remained silent a while, and then he said:^000000"; + next; + mes "[Captain Janssen]"; + mes "I have something I must do before I die. I must retrieve the remains of my crew that died in the tower, and give them a proper burial."; + next; + mes "[Captain Janssen]"; + mes "I feel so lucky to meet a warm-hearted adventurer like you. With the money you've given me, I can finally go sailing to the tower again."; + next; + mes "["+.@name_102$+"]"; + mes "How about hiring me as your first mate?"; + next; + mes "[Captain Janssen]"; + mes "Thank you, but it is an extremely dangerous place. I have my duty to fulfill, but you don't have any obligation to me or them. I don't wish to sacrifice someone as young as you to such a dangerous place."; + next; + mes "["+.@name_102$+"]"; + mes "No..."; + mes "."; + mes "."; + mes "As an adventurer, there's my obligation to those in need. I'm also very curious about that place..."; + next; + mes "[Captain Janssen]"; + mes "I was going to leave right away, but since you've joined me, I should give you time to prepare. I'll be waiting here until you're ready to go."; + next; + mes "[Captain Janssen]"; + mes "...Okay then..."; + mes "Welcome aboard, first mate."; + set in_102tower,3; + close; + } + else if (in_102tower == 3) { + mes "[Captain Janssen]"; + mes "Shall we leave now?"; + next; + switch(select("Yes, let's go!:No, I'm not quite ready...")) { + case 1: + mes "[Captain Janssen]"; + mes "Then pull up the anchor, first mate!"; + close2; + set in_102tower,4; + warp "e_tower",70,114; + end; + case 2: + mes "[Captain Janssen]"; + mes "Sure, no problem. Come back when you're ready."; + close; + } + } + else if (in_102tower > 3) { + mes "[Captain Janssen]"; + mes "Well, to travel the ocean again, we need to restock on goods. If you give me 10,000 Zeny, I'll take care of the rest."; + next; + switch(select("I'll come back later.:Let's go, now!")) { + case 1: + mes "["+.@name_102$+"]"; + mes "I'm sorry, but I don't have that much money. I'll come back when I save enough."; + next; + mes "[Captain Janssen]"; + mes "Sure, no problem. I'll be waiting for your return."; + close; + case 2: + if (zeny < 10000) { + mes "[Captain Janssen]"; + mes "I'm sorry, but you don't have enough money. I need at least 10,000 Zeny to restock our supplies..."; + close; + } + else { + mes "[Captain Janssen]"; + mes "Excellent! Now we're good to go. Let's pull up the anchor again!"; + set zeny,zeny-10000; + close2; + warp "e_tower",70,114; + end; + } + } + } + else { + mes "[Captain Janssen]"; + mes "Excuse me, are you an adventurer?"; + next; + mes "[Captain Janssen]"; + mes "I'm sorry to ask you this, especially when this is the first time we've ever met, but can you do me a favor? I'll make it short."; + next; + mes "[Captain Janssen]"; + mes "Can you donate ^0000ff10,000 Zeny^000000 to me? It's for a cause that's important to me..."; + next; + switch(select("No!:Sure thing.")) { + case 1: + mes "["+.@name_102$+"]"; + mes "I'm sorry, but you've got the wrong person to ask that."; + next; + mes "[Captain Janssen]"; + mes "I see... Sorry to bother you. I understand it was too rude to ask something like that to begin with."; + close; + case 2: + mes "[Captain Janssen]"; + mes "Huh? Are you sure that you don't mind giving me that much money? Wow, thank you so much!"; + next; + if (zeny < 10000) { + mes "[Captain Janssen]"; + mes "...I'm sorry, but I don't think you have 10,000 Zeny. Thank you for your kindness, but I need more than that."; + close; + } + else { + mes "["+.@name_102$+"]"; + mes "I don't know why you'd need so much money, but here. You can take it."; + next; + mes "^0000ffYou have donated 10,000 Zeny to Captain Janssen^000000."; + next; + mes "[Captain Janssen]"; + mes "Thank you so much! Now I can stock food and materials for my ship. You're kind, very kind!"; + set zeny,zeny-10000; + set in_102tower,1; + close; + } + } + } +} + +e_tower,81,105,0 script Tower Protection Stone 406,{ + + set .@party_id,getcharid(1); + set .@ins_mas,getpartyleader(.@party_id,2); + set .@p_name$,getpartyname(.@party_id); + set .@p_reader$,strcharinfo(0); + set .@md_name$,"Endless Tower"; + set .@p_name2$,strcharinfo(0); + + getpartymember(.@party_id); + set .@partymembercount,$@partymembercount; + copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount; + + set .@dun_lim_time,etower_timer+604800; // 1 week + set .@dun_lim_time2,etower_timer+14400; // 4 hours + set .@dun_cur_time,gettimetick(2); + set .@dun_ent_t,(.@dun_lim_time - .@dun_cur_time); + set .@dun_h,(.@dun_ent_t / 3600); + set .@dun_m,(.@dun_ent_t - (.@dun_h * 3600)) / 60; + set .@dun_s,.@dun_ent_t - ((.@dun_h * 3600) + (.@dun_m * 60)); + + if ((.@party_id > 0) && (.@partymembercount > 1)) { + if (etower_timer < 1) { + if (.@ins_mas == getcharid(0)) { + mes "Confirmed the party has been made. Would you like to reserve for entrance to the Endless Tower?"; + next; + switch(select(.@md_name$ + " Dungeon Generated:Enter the dungeon:Return to Alberta:Cancel")) { + case 1: + set .@instance, instance_create(.@md_name$, .@party_id); + if (.@instance < 0) { + mes "Party Name:"+.@p_name$+""; + mes "Party Leader:"+.@p_reader$+""; + mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!"; + } + else { + mes "^0000ff"+.@md_name$+"^000000 - Try to reserve"; + mes "After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon."; + for( set .@i, 1; .@i <= 6; set .@i, .@i + 1 ) { + if( instance_attachmap(.@i + "@tower", .@instance) == "" ) + break; + } + if( .@i < 6 ) { + mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!"; + instance_destroy(.@instance); + close; + } + instance_attach(.@instance); + instance_set_timeout 14400,300,.@instance; + instance_init(.@instance); + // Spawn the first floor of each map, which will then spawn the rest when cleared. + donpcevent instance_npcname("#1F Controller", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Immortal Furnace#1", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Immortal Furnace#2", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Immortal Furnace#3", instance_id())+"::OnInstanceInit"; + // Disable the warps on all floor. (enable as floors are cleared) + for( set .@i, 1; .@i <= 99; set .@i, .@i + 1 ) + donpcevent instance_npcname(.@i+"FGate102tower", instance_id())+"::OnInstanceInit"; + // Warps activate on timer, so players can't get unlimited Ashes. + donpcevent instance_npcname("25FGate102tower-2", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("50FGate102tower-2", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("75FGate102tower-2", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("99FGate102tower-2", instance_id())+"::OnInstanceInit"; + // Disable and ready NPCs for the 100th and 101st floors. + donpcevent instance_npcname("Lucid Crystal#102", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#102Effect1", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#102Effect2", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#102FShadowDust1", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#102FShadowDust", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Spring of Life#1", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Tyrant's Throne#", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#Effect30", instance_id())+"::OnInstanceInit"; + donpcevent instance_npcname("#Effect31", instance_id())+"::OnInstanceInit"; + } + break; + case 2: + if (has_instance("1@tower") == "") { + mes "The memorial dungeon " + .@md_name$ + " does not exist."; + mes "The party leader did not generate the dungeon yet."; + } + else if ((has_instance("1@tower") != "") && (.@partymembercount < 2)) + mes "You can enter the dungeon after making a party."; + else { + mapannounce "e_tower", .@p_name2$ + " of the party, " + .@p_name$ + ", is entering the dungeon, " + .@md_name$ + ".",bc_map,"0x00ff99",FW_NORMAL,12; + set etower_timer,gettimetick(2); + warp "1@tower",52,354; + end; + } + break; + case 3: + mes "I will move you to Alberta."; + close2; + warp "alberta",223,36; + end; + case 4: + break; + } + close; + } + else { + switch(select(.@md_name$ + "Enter the dungeon:Return to Alberta:Cancel")) { + case 1: + if (has_instance("1@tower") == "") { + mes "The memorial dungeon " + .@md_name$ + " does not exist."; + mes "The party leader did not generate the dungeon yet."; + } + else if ((has_instance("1@orcs") != "") && (.@partymembercount < 2)) + mes "You can enter the dungeon after making a party."; + else { + mapannounce "e_tower", .@p_name2$ + " of the party, " + .@p_name$ + ", is entering the dungeon, " + .@md_name$ + ".",bc_map,"0x00ff99",FW_NORMAL,12; + set etower_timer,gettimetick(2); + warp "1@tower",52,354; + end; + } + break; + case 2: + mes "I will move you to Alberta."; + close2; + warp "alberta",223,36; + end; + case 3: + break; + } + close; + } + } + else if ((etower_timer > 0) && (.@dun_cur_time < .@dun_lim_time2)) { + mes "If you have the dungeon generated already, you can enter it. "; + next; + switch(select(.@md_name$ + "Enter the dungeon:Return to Alberta:Cancel")) { + case 1: + if (has_instance("1@tower") == "") { + mes "The memorial dungeon " + .@md_name$ + " does not exist."; + mes "The party leader did not generate the dungeon yet."; + } + else if ((has_instance("1@orcs") != "") && (.@partymembercount < 2)) + mes "You can enter the dungeon after making a party."; + else { + mapannounce "e_tower", .@p_name2$ + " of the party, " + .@p_name$ + ", is entering the dungeon, " + .@md_name$ + ".",bc_map,"0x00ff99",FW_NORMAL,12; + set etower_timer,gettimetick(2); + warp "1@tower",52,354; + end; + } + break; + case 2: + mes "I will move you to Alberta."; + close2; + warp "alberta",223,36; + end; + case 3: + break; + } + close; + } + else if ((.@dun_cur_time > .@dun_lim_time2) && (.@dun_cur_time < .@dun_lim_time)) { + mes "Due to the entree aftereffect, you cannot enter the dungeon right now, " + .@dun_h + "hours " + .@dun_m + "minutes " + .@dun_s + "seconds left to enter the next dungeon."; + next; + mes "It is dangerous here. Let me move you to Alberta."; + close2; + warp "alberta",223,36; + end; + } + else { + set etower_timer,0; + mes "^0000ffThe records and after effects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000"; + close; + } + } + else { + mes "Make or join the party with more than 1 member and try again."; + close; + } +} + +e_tower,30,30,2 script Huge Vortex 844,2,2,{ +OnTouch: + mapannounce "e_tower","[ " + strcharinfo(0) + " ], seems to be engulfed by a huge vortex",bc_map,"0x00ff99",FW_NORMAL,12; + warp "alberta",223,36; + end; +} + +/* +e_tower,1,1,2 script #102Administrator Mode104 844,{ + mes "Please enter the password"; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + switch(select("Generate Purification Stone:Remove Purification Stone:Cancel")) { + case 1: + mes "Create the Purification Stone that stays for 30 minutes."; + donpcevent "Purification Stone#et1::Enable"; + break; + case 2: + mes "Destroy the Purification Stone immediately"; + donpcevent "Purification Stone#et1::OnDisable"; + break; + case 3: + mes "You have canceled it."; + break; + } + close; + } + else { + mes "Enter the password exactly."; + close; + } +} + +e_tower,69,117,4 script Purification Stone#et1 406,{ + set etower_timer,0; + mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000"; + close; + +OnInit: + disablenpc "Purification Stone#et1"; + end; + +OnEnable: + initnpctimer; + end; + +OnDisable: + stopnpctimer; + disablenpc "Purification Stone#et1"; + end; + +OnTimer1000: + enablenpc "Purification Stone#et1"; + end; + +OnTimer1740000: + mapannounce "e_tower", "The Purification Stone will be destroyed in one minute.",bc_map,"0x00ff99"; + end; + +OnTimer1800000: + disablenpc "Purification Stone#et1"; + end; +} + +e_tower,151,185,4 script Purification Stone#et2 844,{ + set etower_timer,0; + mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000"; + close; + warp "e_tower",75,108; + end; +} +*/ + +// Floors 1-25 +1@tower,50,360,0 script Immortal Brazier# 844,{ + mes "- A Message is Engraved on the Brazier -"; + mes "The one who scatters the ashes of the darkness in this place shall become one step closer to Nacht Sieger, the Hegemon King of the Darkness..."; + next; + set .@move_name$,strcharinfo(0); + switch(select("26th Floor:51st Floor:76th Floor")) { + case 1: + if (countitem(6000) < 1) { + mes "-Warning-"; + mes "To warp to the 26th Floor, you need 1 Ashes of the Darkness."; + close; + } + else { + delitem 6000,1; //Dark_Ashes + instance_announce 0, .@move_name$ + ". You will be warped to the 26th Floor.",bc_map,"0x00ff99"; + warp "2@tower",52,354; + } + break; + case 2: + if (countitem(6000) < 2) { + mes "-Warning-"; + mes "To warp to the 51st Floor, you need 2 Ashes of the Darkness."; + close; + } + else { + delitem 6000,2; //Dark_Ashes + instance_announce 0, .@move_name$ + ". You will be warped to the 51st Floor.",bc_map,"0x00ff99"; + warp "3@tower",52,354; + } + break; + case 3: + if (countitem(6000) < 3) { + mes "-Warning-"; + mes "To warp to the 76th Floor, you need 3 Ashes of the Darkness."; + close; + } + else { + delitem 6000,3; //Dark_Ashes + instance_announce 0, .@move_name$ + ". You will be warped to the 76th Floor.",bc_map,"0x00ff99"; + warp "4@tower",52,354; + } + break; + } + end; +} + +1@tower,29,365,1 script #1F Controller 844,{ +OnInstanceInit: + areamonster "1@tower",7,351,17,387,"Metaling",1613,15,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",7,351,17,387,"Marin",1242,5,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",7,351,17,387,"Poporing",1031,5,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",7,351,17,387,"Drops",1113,5,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",7,351,17,387,"Mastering",1090,1,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",7,351,17,387,"Poring",1002,5,instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("#1F Controller", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 1st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("1FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 1 + } + else + instance_announce 0, "Remaining Monsters on the 1st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,12,393,0 script 1FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("1FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("1FGate102tower", instance_id()); + areamonster "1@tower",93,351,103,387,"Desert Wolf",1106,20,instance_npcname("1FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,351,103,387,"Vagabond Wolf",1092,1,instance_npcname("1FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,351,103,387,"Baby Desert Wolf",1107,10,instance_npcname("1FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",136,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("1FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 2nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("2FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 2 + } + else + instance_announce 0, "Remaining Monsters on the 2nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,96,393,0 script 2FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("2FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("2FGate102tower", instance_id()); + areamonster "1@tower",181,351,191,387,"Archer Skeleton",1016,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,351,191,387,"Skel Worker",1169,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,351,191,387,"Soldier Skeleton",1028,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,351,191,387,"Orc Skeleton",1152,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,351,191,387,"Pirate Skeleton",1071,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,351,191,387,"Skeleton",1076,5,instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",224,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("2FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 3rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("3FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 3 + } + else + instance_announce 0, "Remaining Monsters on the 3rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,184,393,0 script 3FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("3FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("3FGate102tower", instance_id()); + areamonster "1@tower",267,351,277,387,"Argiope",1099,15,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,351,277,387,"Mantis",1139,5,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,351,277,387,"Argos",1100,5,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,351,277,387,"Vocal",1088,1,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,351,277,387,"Rocker",1052,5,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,351,277,387,"Hornet",1004,5,instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",310,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("3FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 4th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("4FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 4 + } + else + instance_announce 0, "Remaining Monsters on 4th the Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,270,393,0 script 4FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("4FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("4FGate102tower", instance_id()); + areamonster "1@tower",352,351,362,387,"Golden Thief Bug",1086,1,instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,351,362,387,"Theif Bug Male",1054,15,instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,351,362,387,"Thief Bug Female",1053,15,instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,351,362,387,"Thief Bug",1051,15,instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,351,362,387,"Thief Bug Egg",1048,5,instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",395,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("4FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 5th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("5FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 5 + } + else + instance_announce 0, "Remaining Monsters on the 5th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,355,393,0 script 5FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("5FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("5FGate102tower", instance_id()); + areamonster "1@tower",9,267,19,303,"Dragon Egg",1721,5,instance_npcname("5FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,267,19,303,"Thief Bug Egg",1048,5,instance_npcname("5FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,267,19,303,"Ant Egg",1097,5,instance_npcname("5FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,267,19,303,"Pupa",1008,5,instance_npcname("5FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",52,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("5FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 6th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("6FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 6 + } + else + instance_announce 0, "Remaining Monsters on the 6th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,12,309,0 script 6FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("6FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("6FGate102tower", instance_id()); + areamonster "1@tower",93,267,103,303,"Explosion",1383,15,instance_npcname("6FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,267,103,303,"Drainliar",1111,15,instance_npcname("6FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,267,103,303,"Anopheles",1627,15,instance_npcname("6FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,267,103,303,"Farmiliar",1005,15,instance_npcname("6FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",136,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("6FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 7th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("7FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 7 + } + else + instance_announce 0, "Remaining Monsters on the 7th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,96,309,0 script 7FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("7FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("7FGate102tower", instance_id()); + areamonster "1@tower",181,267,191,303,"Firelock Soldier",1403,15,instance_npcname("7FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,267,191,303,"Cruiser",1248,15,instance_npcname("7FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",224,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("7FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 8th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("8FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 8 + } + else + instance_announce 0, "Remaining Monsters on the 8th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,184,309,0 script 8FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("8FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("8FGate102tower", instance_id()); + areamonster "1@tower",267,267,277,303,"Obsidian",1615,15,instance_npcname("8FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,267,277,303,"Golem",1040,15,instance_npcname("8FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,267,277,303,"Stapo",1784,10,instance_npcname("8FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",310,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("8FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 9th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("9FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 9 + } + else + instance_announce 0, "Remaining Monsters on the 9th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,270,309,0 script 9FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("9FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("9FGate102tower", instance_id()); + areamonster "1@tower",352,267,362,303,"Mistress",1059,1,instance_npcname("9FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,267,362,303,"Giant Hornet",1303,25,instance_npcname("9FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,267,362,303,"Hornet",1004,20,instance_npcname("9FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",395,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("9FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 10th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("10FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 10 + } + else + instance_announce 0, "Remaining Monsters on the 10th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,355,309,0 script 10FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("10FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("10FGate102tower", instance_id()); + areamonster "1@tower",9,180,19,216,"Dryad",1493,15,instance_npcname("10FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,180,19,216,"Parasite",1500,15,instance_npcname("10FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,180,19,216,"Hermit Plant",1413,15,instance_npcname("10FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,180,19,216,"Rafflesia",1162,5,instance_npcname("10FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",52,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("10FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 11th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("11FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 11 + } + else + instance_announce 0, "Remaining Monsters on the 11th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,12,222,0 script 11FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("11FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("11FGate102tower", instance_id()); + areamonster "1@tower",93,180,103,216,"Demon Pungus",1378,25,instance_npcname("11FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,180,103,216,"Punk",1199,25,instance_npcname("11FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",136,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("11FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 12th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("12FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 12 + } + else + instance_announce 0, "Remaining Monsters on the 12th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,96,222,0 script 12FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("12FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("12FGate102tower", instance_id()); + areamonster "1@tower",181,180,191,216,"Yao Yun",1512,15,instance_npcname("12FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,180,191,216,"Bongunn",1188,15,instance_npcname("12FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,180,191,216,"Munak",1026,10,instance_npcname("12FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",224,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("12FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 13th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("13FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 13 + } + else + instance_announce 0, "Remaining Monsters on the 13th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,184,222,0 script 13FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("13FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("13FGate102tower", instance_id()); + areamonster "1@tower",267,180,277,216,"High Orc",1213,15,instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,180,277,216,"Orc Archer",1189,10,instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,180,277,216,"Orc Lady",1273,10,instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,180,277,216,"Orc Warrior",1023,5,instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,180,277,216,"Orc Baby",1686,5,instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",310,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("13FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 14th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("14FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 14 + } + else + instance_announce 0, "Remaining Monsters on the 14th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,270,222,0 script 14FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("14FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("14FGate102tower", instance_id()); + areamonster "1@tower",352,180,362,216,"Maya",1147,1,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,180,362,216,"Phreeoni",1159,1,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,180,362,216,"Deniro",1105,15,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,180,362,216,"Pierre",1160,15,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,180,362,216,"Andre",1095,15,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,180,362,216,"Ant Egg",1097,5,instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + + warp "1@tower",395,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("14FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 15th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("15FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 15 + } + else + instance_announce 0, "Remaining Monsters on the 15th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,355,222,0 script 15FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("15FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("15FGate102tower", instance_id()); + areamonster "1@tower",9,96,19,132,"Raydric Archer",1276,10,instance_npcname("15FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,96,19,132,"Orc Archer",1189,10,instance_npcname("15FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,96,19,132,"Gargoyle",1253,10,instance_npcname("15FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,96,19,132,"Archer Skeleton",1016,10,instance_npcname("15FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",52,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("15FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 16th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("16FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 16 + } + else + instance_announce 0, "Remaining Monsters on the 16th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,12,138,0 script 16FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("16FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("16FGate102tower", instance_id()); + areamonster "1@tower",93,96,103,132,"Merman",1264,10,instance_npcname("16FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,96,103,132,"Baphomet Jr.",1101,10,instance_npcname("16FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,96,103,132,"Strouf",1065,15,instance_npcname("16FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,96,103,132,"Hill Wind",1629,5,instance_npcname("16FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",136,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("16FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 17th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("17FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 17 + } + else + instance_announce 0, "Remaining Monsters on the 17th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,96,138,0 script 17FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("17FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("17FGate102tower", instance_id()); + areamonster "1@tower",181,96,191,132,"Cramp",1209,25,instance_npcname("17FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,96,191,132,"Tarou",1175,15,instance_npcname("17FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",224,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("17FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 18th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("18FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 18 + } + else + instance_announce 0, "Remaining Monsters on the 18th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,184,138,0 script 18FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("18FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("18FGate102tower", instance_id()); + areamonster "1@tower",267,96,277,132,"Deviace",1108,10,instance_npcname("18FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,96,277,132,"Megalodon",1064,10,instance_npcname("18FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,96,277,132,"Swordfish",1069,10,instance_npcname("18FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,96,277,132,"Phen",1158,10,instance_npcname("18FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",310,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("18FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 19th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("19FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 19 + } + else + instance_announce 0, "Remaining Monsters on the 19th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,270,138,0 script 19FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("19FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("19FGate102tower", instance_id()); + areamonster "1@tower",352,96,362,132,"Drake",1112,1,instance_npcname("19FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,96,362,132,"Pirate Skeleton",1071,50,instance_npcname("19FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",395,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("19FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 20th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("20FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 20 + } + else + instance_announce 0, "Remaining Monsters on 20th the Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,355,138,0 script 20FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("20FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("20FGate102tower", instance_id()); + areamonster "1@tower",9,9,19,45,"Plasma",1693,10,instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,9,19,45,"Plasma",1696,10,instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,9,19,45,"Plasma",1695,5,instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,9,19,45,"Plasma",1697,5,instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",9,9,19,45,"Plasma",1694,5,instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",52,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("20FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 21st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("21FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 21 + } + else + instance_announce 0, "Remaining Monsters on the 21st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,12,51,0 script 21FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("21FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("21FGate102tower", instance_id()); + areamonster "1@tower",93,9,103,45,"Muscipular",1780,15,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,9,103,45,"Drosera",1781,15,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,9,103,45,"Flora",1118,15,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,9,103,45,"Hydra",1068,15,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,9,103,45,"Mandragora",1020,10,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",93,9,103,45,"Rafflesia",1162,10,instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",136,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("21FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 22nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("22FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 22 + } + else + instance_announce 0, "Remaining Monsters on the 22nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,96,51,0 script 22FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("22FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("22FGate102tower", instance_id()); + areamonster "1@tower",181,9,191,45,"Penomena",1216,15,instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,9,191,45,"Obeaune",1044,10,instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,9,191,45,"Marse",1144,10,instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,9,191,45,"Swordfish",1069,10,instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",181,9,191,45,"Hydra",1068,5,instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",224,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("22FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 23rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("23FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 23 + } + else + instance_announce 0, "Remaining Monsters on the 23rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,184,51,0 script 23FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("23FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("23FGate102tower", instance_id()); + areamonster "1@tower",267,9,277,45,"Joker",1131,15,instance_npcname("23FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,9,277,45,"Carat",1267,15,instance_npcname("23FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",267,9,277,45,"Jakk",1130,10,instance_npcname("23FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",310,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("23FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 24th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("24FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 24 + } + else + instance_announce 0, "Remaining Monsters on the 24th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,270,51,0 script 24FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("24FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("24FGate102tower", instance_id()); + areamonster "1@tower",352,9,362,45,"Cat o' Nine Tails",1307,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,9,362,45,"Moonlight",1150,1,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "1@tower",352,9,362,45,"Nine Tail",1180,15,instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "1@tower",395,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("1@tower",instance_npcname("24FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 25th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("25FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 25 + } + else + instance_announce 0, "Remaining Monsters on the 25th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +1@tower,355,51,0 script 25FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("25FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("25FGate102tower", instance_id()); + initnpctimer; + end; + +OnTouch_: + getitem 6000,1; //Dark_Ashes + warp "2@tower",52,354; + end; + +OnTimer120000: + disablenpc instance_npcname("25FGate102tower", instance_id()); + donpcevent instance_npcname("25FGate102tower-2", instance_id())+"::OnEnable"; + stopnpctimer; + end; +} + +1@tower,355,51,0 script 25FGate102tower-2 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("25FGate102tower-2", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("25FGate102tower-2", instance_id()); + end; + +OnTouch_: + warp "2@tower",52,354; + end; +} + +/* +1@tower,71,1,0 script #Manager Mode1 844,{ + mes "Please enter the password."; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + mes "This NPC manages the tower from the 1st to the 25th Floor."; + mes "Please enter the Floor number to open."; + mes "(i.g.: 1F->1, 25F->25)"; + input .@input,1,25; + next; + if (.@input < 1 || .@input > 25) + mes "You can only enter a number from 1 to 25."; + else { + donpcevent instance_npcname(.@input+"FGate102tower", instance_id())+"::OnEnable"; + mes "*** Floor "+ .@input + " is now being opened. ***"; + } + } + close; +} +*/ + +// Floors 26-50 +2@tower,29,365,2 script Immortal Furnace#1 844,{ +OnInstanceInit: + areamonster "2@tower",9,351,19,387,"Gibbet",1503,10,instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,351,19,387,"Enchanted Peach Tree",1410,10,instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,351,19,387,"Wooden Golem",1497,10,instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,351,19,387,"Stone Shooter",1495,10,instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,351,19,387,"Elder Willow",1033,5,instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("Immortal Furnace#1", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 26th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("26FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 26 + } + else + instance_announce 0, "Remaining Monsters on the 26th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,12,393,0 script 26FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("26FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("26FGate102tower", instance_id()); + areamonster "2@tower",93,351,103,387,"Goblin Archer",1258,10,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,351,103,387,"Goblin",1122,10,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,351,103,387,"Goblin",1123,5,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,351,103,387,"Goblin",1124,5,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,351,103,387,"Gobin",1125,5,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,351,103,387,"Goblin",1126,5,instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",136,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("26FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 27th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("27FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 27 + } + else + instance_announce 0, "Remaining Monsters on the 27th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,96,393,0 script 27FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("27FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("27FGate102tower", instance_id()); + areamonster "2@tower",181,351,191,387,"Arclouse",1194,30,instance_npcname("27FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,351,191,387,"Neraid",1255,15,instance_npcname("27FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,351,191,387,"Pest",1256,15,instance_npcname("27FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,351,191,387,"Kukre",1070,10,instance_npcname("27FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",224,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("27FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 28th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("28FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 28 + } + else + instance_announce 0, "Remaining Monsters on the 28th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,184,393,0 script 28FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("28FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("28FGate102tower", instance_id()); + areamonster "2@tower",267,351,277,387,"Dark Frame",1260,10,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,351,277,387,"The Paper",1375,10,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,351,277,387,"Hylozoist",1510,10,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,351,277,387,"Quve",1508,5,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,351,277,387,"Lude",1509,5,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,351,277,387,"Whisper",1179,10,instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + + warp "2@tower",310,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("28FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 29th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("29FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 29 + } + else + instance_announce 0, "Remaining Monsters on the 29th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,270,393,0 script 29FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("29FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("29FGate102tower", instance_id()); + areamonster "2@tower",352,351,362,387,"White Lady",1518,1,instance_npcname("29FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,351,362,387,"Evil Nymph",1416,30,instance_npcname("29FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",395,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("29FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 30th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("30FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 30 + } + else + instance_announce 0, "Remaining Monsters on the 30th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,355,393,0 script 30FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("30FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("30FGate102tower", instance_id()); + areamonster "2@tower",9,267,19,303,"Gig",1387,20,instance_npcname("30FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,267,19,303,"Iron Fist",1212,15,instance_npcname("30FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,267,19,303,"Argiope",1099,10,instance_npcname("30FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,267,19,303,"Scorpion",1001,5,instance_npcname("30FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",52,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("30FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 31st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("31FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 31 + } + else + instance_announce 0, "Remaining Monsters on the 31st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,12,309,0 script 31FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("31FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("31FGate102tower", instance_id()); + areamonster "2@tower",93,267,103,303,"Goblin Leader",1299,1,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin Archer",1258,10,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin",1122,10,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin",1123,5,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin",1124,5,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin",1125,5,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,267,103,303,"Goblin",1126,5,instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",136,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("31FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 32nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("32FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 32 + } + else + instance_announce 0, "Remaining Monsters on the 32nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,96,309,0 script 32FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("32FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("32FGate102tower", instance_id()); + areamonster "2@tower",181,267,191,303,"Kobold Leader",1296,1,instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,267,191,303,"Kobold",1133,15,instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,267,191,303,"Kobold_Archer",1282,15,instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,267,191,303,"Kobold",1134,10,instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,267,191,303,"Kobold",1135,5,instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",224,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("32FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 33rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("33FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 33 + } + else + instance_announce 0, "Remaining Monsters on the 33rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,184,309,0 script 33FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("33FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("33FGate102tower", instance_id()); + areamonster "2@tower",267,267,277,303,"Flame Skull",1869,20,instance_npcname("33FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,267,277,303,"Whisper",1179,10,instance_npcname("33FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,267,277,303,"Giant Whisper",1186,10,instance_npcname("33FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",310,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("33FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 34th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("34FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 34 + } + else + instance_announce 0, "Remaining Monsters on the 34th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,270,309,0 script 34FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("34FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("34FGate102tower", instance_id()); + areamonster "2@tower",352,267,362,303,"Turtle General",1312,1,instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,267,362,303,"Freezer",1319,10,instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,267,362,303,"Solider",1316,10,instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,267,362,303,"Heater",1318,10,instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,267,362,303,"Permeter",1314,10,instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",395,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("34FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 35th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("35FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 35 + } + else + instance_announce 0, "Remaining Monsters on the 35th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,355,309,0 script 35FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("35FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("35FGate102tower", instance_id()); + areamonster "2@tower",9,180,19,216,"Anolian",1206,30,instance_npcname("35FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,180,19,216,"Grove",1687,10,instance_npcname("35FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,180,19,216,"Alligator",1271,10,instance_npcname("35FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",52,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("35FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 36th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("36FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 36 + } + else + instance_announce 0, "Remaining Monsters on the 36th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,12,222,0 script 36FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("36FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("36FGate102tower", instance_id()); + areamonster "2@tower",93,180,103,216,"Clock Tower Manager",1270,10,instance_npcname("36FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,180,103,216,"Clock",1269,10,instance_npcname("36FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,180,103,216,"Alarm",1193,30,instance_npcname("36FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",136,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("36FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 37th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("37FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 37 + } + else + instance_announce 0, "Remaining Monsters on the 37th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,96,222,0 script 37FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("37FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("37FGate102tower", instance_id()); + areamonster "2@tower",181,180,191,216,"Death Word",1698,25,instance_npcname("37FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,180,191,216,"Rideword",1195,25,instance_npcname("37FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",224,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("37FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 38th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("38FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 38 + } + else + instance_announce 0, "Remaining Monsters on the 38th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,184,222,0 script 38FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("38FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("38FGate102tower", instance_id()); + areamonster "2@tower",267,180,277,216,"Evil Nymph",1416,10,instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,180,277,216,"Mao Gui",1513,10,instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,180,277,216,"Taoist Hermit",1412,10,instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,180,277,216,"Zhu Po Long",1514,10,instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,180,277,216,"Jin Guai",1517,5,instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",310,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("38FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 39th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("39FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 39 + } + else + instance_announce 0, "Remaining Monsters on the 39th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,270,222,0 script 39FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("39FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("39FGate102tower", instance_id()); + areamonster "2@tower",352,180,362,216,"Samurai Specter",1492,1,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,180,362,216,"Shinobi",1401,10,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,180,362,216,"Tengu",1405,10,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,180,362,216,"Firelock Soldier",1403,5,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,180,362,216,"Miyabi Doll",1404,10,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,180,362,216,"Karakasa",1400,5,instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",395,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("39FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 40th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("40FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 40 + } + else + instance_announce 0, "Remaining Monsters on the 40th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,355,222,0 script 40FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("40FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("40FGate102tower", instance_id()); + areamonster "2@tower",9,96,19,132,"Kraben",1587,50,instance_npcname("40FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",52,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("40FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 41st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("41FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 41 + } + else + instance_announce 0, "Remaining Monsters on the 41st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,12,138,0 script 41FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("41FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("41FGate102tower", instance_id()); + areamonster "2@tower",93,96,103,132,"Sleeper",1386,20,instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,96,103,132,"Sting",1207,10,instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,96,103,132,"Mi Gao",1516,10,instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,96,103,132,"Sandman",1165,5,instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,96,103,132,"Hode",1127,5,instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",136,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("41FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 42nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("42FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 42 + } + else + instance_announce 0, "Remaining Monsters on the 42nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,96,138,0 script 42FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("42FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("42FGate102tower", instance_id()); + areamonster "2@tower",181,96,191,132,"Medusa",1148,10,instance_npcname("42FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,96,191,132,"Sidewinder",1037,40,instance_npcname("42FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,96,191,132,"Anacondaq",1030,5,instance_npcname("42FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,96,191,132,"Boa",1025,5,instance_npcname("42FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",224,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("42FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 43rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("43FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 43 + } + else + instance_announce 0, "Remaining Monsters on the 43rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,184,138,0 script 43FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("43FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("43FGate102tower", instance_id()); + areamonster "2@tower",267,96,277,132,"Hatii Baby",1515,20,instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,96,277,132,"Baphomet Jr.",1101,20,instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,96,277,132,"Orc Baby",1686,1,instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,96,277,132,"Baby Desert Wolf",1107,10,instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,96,277,132,"Savage Babe",1167,10,instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",310,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("43FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 44th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("44FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 44 + } + else + instance_announce 0, "Remaining Monsters on the 44th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,270,138,0 script 44FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("44FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("44FGate102tower", instance_id()); + areamonster "2@tower",352,96,362,132,"Osiris",1038,1,instance_npcname("44FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,96,362,132,"Ancient Mummy",1297,15,instance_npcname("44FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,96,362,132,"Verit",1032,15,instance_npcname("44FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,96,362,132,"Mummy",1041,20,instance_npcname("44FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",395,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("44FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 45th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("45FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 45 + } + else + instance_announce 0, "Remaining Monsters on the 45th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,355,138,0 script 45FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("45FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("45FGate102tower", instance_id()); + areamonster "2@tower",9,9,19,45,"Seeker",1774,20,instance_npcname("45FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",9,9,19,45,"Beholder",1633,20,instance_npcname("45FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",52,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("45FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 46th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("46FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 46 + } + else + instance_announce 0, "Remaining Monsters on the 46th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,12,51,0 script 46FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("46FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("46FGate102tower", instance_id()); + areamonster "2@tower",93,9,103,45,"Deleter",1384,20,instance_npcname("46FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,9,103,45,"Deleter",1385,10,instance_npcname("46FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,9,103,45,"Petite",1156,10,instance_npcname("46FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",93,9,103,45,"Petite",1155,10,instance_npcname("46FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",136,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("46FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 47th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("47FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 47 + } + else + instance_announce 0, "Remaining Monsters on the 47 Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,96,51,0 script 47FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("47FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("47FGate102tower", instance_id()); + areamonster "2@tower",181,9,191,45,"Ancient Worm",1305,10,instance_npcname("47FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,9,191,45,"Ancient Mummy",1297,10,instance_npcname("47FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",181,9,191,45,"Ancient Mimic",1699,10,instance_npcname("47FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",224,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("47FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 48th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("48FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 48 + } + else + instance_announce 0, "Remaining Monsters on the 48th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,184,51,0 script 48FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("48FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("48FGate102tower", instance_id()); + areamonster "2@tower",267,9,277,45,"Grizzly",1381,20,instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,9,277,45,"Leib Olmai",1306,7,instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,9,277,45,"Zipper Bear",1417,5,instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,9,277,45,"Sasquatch",1243,5,instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",267,9,277,45,"Bigfoot",1060,5,instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",310,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("48FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 49th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("49FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 49 + } + else + instance_announce 0, "Remaining Monsters on the 49th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,270,51,0 script 49FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("49FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("49FGate102tower", instance_id()); + areamonster "2@tower",352,9,362,45,"Pharaoh",1157,1,instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,9,362,45,"Amon Ra",1511,1,instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,9,362,45,"Anubis",1098,10,instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,9,362,45,"Marduk",1140,10,instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "2@tower",352,9,362,45,"Matyr",1146,10,instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "2@tower",395,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("2@tower",instance_npcname("49FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 50th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("50FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 50 + } + else + instance_announce 0, "Remaining Monsters on the 50th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +2@tower,355,51,0 script 50FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("50FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("50FGate102tower", instance_id()); + initnpctimer; + end; + +OnTouch_: + getitem 6000,1; //Dark_Ashes + warp "3@tower",52,354; + end; + +OnTimer120000: + disablenpc instance_npcname("50FGate102tower", instance_id()); + donpcevent instance_npcname("50FGate102tower-2", instance_id())+"::OnEnable"; + stopnpctimer; + end; +} + +2@tower,355,51,0 script 50FGate102tower-2 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("50FGate102tower-2", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("50FGate102tower-2", instance_id()); + end; + +OnTouch_: + warp "3@tower",52,354; + end; +} + +2@tower,71,1,0 script #Manager Mode2 844,{ + mes "Please enter the password."; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + mes "This NPC manages the tower from the 26st to the 50th Floor."; + mes "Please enter the Floor number to open."; + mes "(i.g.: 26F->26, 50F->50)"; + input .@input,26,50; + next; + if (.@onput < 26 || .@input > 50) + mes "You can only enter a number from 26 to 50."; + else { + donpcevent instance_npcname(.@input+"FGate102tower", instance_id())+"::OnEnable"; + mes "*** Floor "+ .@input + " is now being opened. ***"; + } + } + close; +} + +// Floors 51-75 +3@tower,29,365,2 script Immortal Furnace#2 844,{ +OnInstanceInit: + areamonster "3@tower",9,351,19,387,"Mini Demon",1292,20,instance_npcname("Immortal Furnace#2", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,351,19,387,"Diabolic",1382,20,instance_npcname("Immortal Furnace#2", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,351,19,387,"Deviruchi",1109,10,instance_npcname("Immortal Furnace#2", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("Immortal Furnace#2", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 51st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("51FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 51 + } + else + instance_announce 0, "Remaining Monsters on the 51st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,12,393,0 script 51FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("51FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("51FGate102tower", instance_id()); + areamonster "3@tower",93,351,103,387,"Harpy",1376,20,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,351,103,387,"Grand Peco",1369,10,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,351,103,387,"Bloody Butterfly",1408,10,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,351,103,387,"Gargoyle",1253,10,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,351,103,387,"Hill Wind",1680,5,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,351,103,387,"Hill Wind",1629,5,instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",136,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("51FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 52nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("52FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 52 + } + else + instance_announce 0, "Remaining Monsters on the 52nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,96,393,0 script 52FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("52FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("52FGate102tower", instance_id()); + areamonster "3@tower",181,351,191,387,"Assaulter",1315,25,instance_npcname("52FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,351,191,387,"Shinobi",1401,30,instance_npcname("52FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",224,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("52FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 53rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("53FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 53 + } + else + instance_announce 0, "Remaining Monsters on the 53rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,184,393,0 script 53FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("53FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("53FGate102tower", instance_id()); + areamonster "3@tower",267,351,277,387,"Chepet",1250,10,instance_npcname("53FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,351,277,387,"Mariontte",1143,10,instance_npcname("53FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,351,277,387,"Miyabi Doll",1404,10,instance_npcname("53FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",310,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("53FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 54th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("54FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 54 + } + else + instance_announce 0, "Remaining Monsters on the 54th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,270,393,0 script 54FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("54FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("54FGate102tower", instance_id()); + areamonster "3@tower",352,351,362,387,"Medusa",1148,25,instance_npcname("54FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,351,362,387,"Evil Snake Lord",1418,1,instance_npcname("54FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,351,362,387,"Isis",1029,15,instance_npcname("54FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,351,362,387,"Sidewinder",1037,15,instance_npcname("54FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",395,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("54FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 55th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("55FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 55 + } + else + instance_announce 0, "Remaining Monsters on the 55th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,355,393,0 script 55FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("55FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("55FGate102tower", instance_id()); + areamonster "3@tower",9,267,19,303,"Freezer",1319,10,instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,267,19,303,"Hatii Baby",1515,10,instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,267,19,303,"Ice Titan",1777,15,instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,267,19,303,"Snowier",1775,10,instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,267,19,303,"Gazeti",1778,10,instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",52,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("55FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 56th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("56FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 56 + } + else + instance_announce 0, "Remaining Monsters on the 56th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,12,309,0 script 56FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("56FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("56FGate102tower", instance_id()); + areamonster "3@tower",93,267,103,303,"Arc Angeling",1388,1,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Deviling",1582,1,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Angeling",1096,1,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Ghostring",1120,1,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Mastering",1090,1,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Metaling",1613,25,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Marin",1242,5,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Poporing",1031,5,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,267,103,303,"Drops",1113,5,instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",136,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("56FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 57th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("57FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 57 + } + else + instance_announce 0, "Remaining Monsters on the 57th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,96,309,0 script 57FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("57FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("57FGate102tower", instance_id()); + areamonster "3@tower",181,267,191,303,"Phendark",1202,20,instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,267,191,303,"Rybio",1201,10,instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,267,191,303,"Zombie Prisoner",1197,10,instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,267,191,303,"Skeleton Prisoner",1196,5,instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,267,191,303,"Injustice",1257,5,instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",224,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("57FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 58th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("58FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 58 + } + else + instance_announce 0, "Remaining Monsters on the 58th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,184,309,0 script 58FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("58FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("58FGate102tower", instance_id()); + areamonster "3@tower",267,267,277,303,"Ancient Mimic",1699,30,instance_npcname("58FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,267,277,303,"Mimic",1191,20,instance_npcname("58FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,267,277,303,"Mystcase",1249,10,instance_npcname("58FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",310,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("58FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 59th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("59FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 59 + } + else + instance_announce 0, "Remaining Monsters on the 59th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,270,309,0 script 59FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("59FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("59FGate102tower", instance_id()); + areamonster "3@tower",352,267,362,303,"Egnigem Cenia",1658,1,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Doppelganger",1046,1,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Armeyer Dinze",1654,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Wickebine Tres",1653,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Laurell Winder",1657,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Kavach Icarus",1656,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Errende Ebecee",1655,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,267,362,303,"Egnigem Cenia",1652,10,instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",395,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("59FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 60th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("60FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 60 + } + else + instance_announce 0, "Remaining Monsters on the 60th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,355,309,0 script 60FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("60FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("60FGate102tower", instance_id()); + areamonster "3@tower",9,180,19,216,"Agav",1769,10,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,180,19,216,"Echio",1770,10,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,180,19,216,"Isilla",1772,5,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,180,19,216,"Mobster",1313,10,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,180,19,216,"Pasana",1154,10,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,180,19,216,"Vanberk",1771,5,instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",52,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("60FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 61st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("61FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 61 + } + else + instance_announce 0, "Remaining Monsters on the 61st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,12,222,0 script 61FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("61FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("61FGate102tower", instance_id()); + areamonster "3@tower",93,180,103,216,"Wanderer",1208,35,instance_npcname("61FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",136,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("61FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 62nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("62FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 62 + } + else + instance_announce 0, "Remaining Monsters on the 62nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,96,222,0 script 62FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("62FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("62FGate102tower", instance_id()); + areamonster "3@tower",181,180,191,216,"Ragged Zombie",1865,20,instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,180,191,216,"Zombie Master",1298,10,instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,180,191,216,"Zombie Prisoner",1197,5,instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,180,191,216,"Orc Zombie",1153,5,instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,180,191,216,"Zombie",1015,5,instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",224,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("62FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 63rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("63FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 63 + } + else + instance_announce 0, "Remaining Monsters on the 63rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,184,222,0 script 63FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("63FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("63FGate102tower", instance_id()); + areamonster "3@tower",267,180,277,216,"Ungoliant",1618,30,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,180,277,216,"Ancient Worm",1305,2,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,180,277,216,"Caterpillar",1300,2,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,180,277,216,"Creamy Fear",1293,2,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,180,277,216,"Killer Mantis",1294,2,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,180,277,216,"Giant Hornet",1303,2,instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",310,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("63FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 64th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("64FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 64 + } + else + instance_announce 0, "Remaining Monsters on the 64th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,270,222,0 script 64FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("64FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("64FGate102tower", instance_id()); + areamonster "3@tower",352,180,362,216,"Atros",1785,1,instance_npcname("64FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,180,362,216,"Galion",1783,20,instance_npcname("64FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",395,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("64FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 65th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("65FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 65 + } + else + instance_announce 0, "Remaining Monsters on the 65th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,355,222,0 script 65FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("65FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("65FGate102tower", instance_id()); + areamonster "3@tower",9,96,19,132,"Incubus",1374,20,instance_npcname("65FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,96,19,132,"Aliot",1736,20,instance_npcname("65FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,96,19,132,"Injustice",1257,10,instance_npcname("65FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",52,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("65FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 66th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("66FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 66 + } + else + instance_announce 0, "Remaining Monsters on the 66th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,12,138,0 script 66FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("66FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("66FGate102tower", instance_id()); + areamonster "3@tower",93,96,103,132,"Acidus",1716,10,instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,96,103,132,"Acidus",1713,10,instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,96,103,132,"Deleter",1384,5,instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,96,103,132,"Mutant Dragonoid",1262,10,instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,96,103,132,"Petite",1156,5,instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",136,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("66FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 67th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("67FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 67 + } + else + instance_announce 0, "Remaining Monsters on the 67th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,96,138,0 script 67FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("67FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("67FGate102tower", instance_id()); + areamonster "3@tower",181,96,191,132,"Lava Golem",1366,10,instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,96,191,132,"Stalactic Golem",1278,10,instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,96,191,132,"Ice Titan",1777,10,instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,96,191,132,"Wooden Golem",1497,5,instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,96,191,132,"Golem",1040,5,instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",224,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("67FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 68th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("68FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 68 + } + else + instance_announce 0, "Remaining Monsters on the 68th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,184,138,0 script 68FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("68FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("68FGate102tower", instance_id()); + areamonster "3@tower",267,96,277,132,"Dame of Sentinel",1700,20,instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,96,277,132,"Mistress of Shelter",1701,10,instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,96,277,132,"Baroness of Retribution",1702,10,instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,96,277,132,"Lady Solace",1703,10,instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,96,277,132,"False Angel",1371,10,instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",310,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("68FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 69th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("69FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 69 + } + else + instance_announce 0, "Remaining Monsters on the 69th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,270,138,0 script 69FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("69FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("69FGate102tower", instance_id()); + areamonster "3@tower",352,96,362,132,"Orc Hero",1087,1,instance_npcname("69FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,96,362,132,"Orc Lord",1190,1,instance_npcname("69FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,96,362,132,"Orc Baby",1686,20,instance_npcname("69FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",395,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("69FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 70th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("70FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 70 + } + else + instance_announce 0, "Remaining Monsters on the 70th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,355,138,0 script 70FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("70FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("70FGate102tower", instance_id()); + areamonster "3@tower",9,9,19,45,"Succubus",1370,20,instance_npcname("70FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,9,19,45,"Nightmare Terror",1379,20,instance_npcname("70FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,9,19,45,"Incubus",1374,20,instance_npcname("70FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",9,9,19,45,"Nightmare",1061,5,instance_npcname("70FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",52,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("70FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 71st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("71FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 71 + } + else + instance_announce 0, "Remaining Monsters on the 71st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,12,51,0 script 71FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("71FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("71FGate102tower", instance_id()); + areamonster "3@tower",93,9,103,45,"Margaretha Sorin",1637,10,instance_npcname("71FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,9,103,45,"Permeter",1314,10,instance_npcname("71FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,9,103,45,"Errende Ebecee",1655,10,instance_npcname("71FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",93,9,103,45,"Enchanted Peach Tree",1410,10,instance_npcname("71FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",136,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("71FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 72nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("72FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 72 + } + else + instance_announce 0, "Remaining Monsters on the 72nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,96,51,0 script 72FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("72FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("72FGate102tower", instance_id()); + areamonster "3@tower",181,9,191,45,"Succubus",1370,10,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,9,191,45,"Loli Ruri",1505,20,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,9,191,45,"Aliza",1737,10,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,9,191,45,"Zealotus",1200,5,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,9,191,45,"Alice",1275,5,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",181,9,191,45,"Green Maiden",1519,10,instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",224,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("72FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 73rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("73FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 73 + } + else + instance_announce 0, "Remaining Monsters on the 73rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,184,51,0 script 73FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("73FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("73FGate102tower", instance_id()); + areamonster "3@tower",267,9,277,45,"Dimik",1671,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Dimik",1673,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Dimik",1672,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Venatu",1677,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Dimik",1670,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Archdam",1668,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Venatu",1678,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Venatu",1679,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",267,9,277,45,"Venatu",1676,6,instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",310,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("73FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 74th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("74FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 74 + } + else + instance_announce 0, "Remaining Monsters on the 74th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,270,51,0 script 74FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("74FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("74FGate102tower", instance_id()); + areamonster "3@tower",352,9,362,45,"Baphomet",1039,1,instance_npcname("74FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,9,362,45,"Dark Lord",1272,1,instance_npcname("74FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,9,362,45,"Baphomet Jr.",1101,20,instance_npcname("74FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "3@tower",352,9,362,45,"Dark Illusion",1302,10,instance_npcname("74FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "3@tower",395,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("3@tower",instance_npcname("74FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "All Monsters on the 75th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("75FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 75 + } + else + instance_announce 0, "Remaining Monsters on the 75th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +3@tower,355,51,0 script 75FGate102tower 45,1,1,{ +OnInstanceInit: + disablenpc instance_npcname("75FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("75FGate102tower", instance_id()); + initnpctimer; + end; + +OnTouch_: + getitem 6000,1; //Dark_Ashes + warp "4@tower",52,354; + end; + +OnTimer120000: + disablenpc instance_npcname("75FGate102tower", instance_id()); + donpcevent instance_npcname("75FGate102tower-2", instance_id())+"::OnEnable"; + stopnpctimer; + end; +} + +3@tower,355,51,0 script 75FGate102tower-2 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("75FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("75FGate102tower", instance_id()); + end; + +OnTouch_: + warp "4@tower",52,354; + end; +} + +3@tower,71,1,0 script #Manager Mode3 844,{ + mes "Please enter the password."; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + mes "This NPC manages the tower from the 51st to the 75th Floor."; + mes "Please enter the Floor number to open."; + mes "(i.g.: 51F->51, 75F->75)"; + input .@input,51,75; + next; + if (.@input < 51 || .@input > 75) + mes "You can only enter a number from 51 to 75."; + else { + donpcevent instance_npcname(.@input+"FGate102tower", instance_id())+"::OnEnable"; + mes "*** Floor "+ .@input + " is now being opened. ***"; + } + } + close; +} + +// Floors 76-99 +4@tower,29,365,2 script Immortal Furnace#3 844,{ +OnInstanceInit: + areamonster "4@tower",9,351,19,387,"Abysmal Knight",1219,30,instance_npcname("Immortal Furnace#3", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,351,19,387,"Nightmare Terror",1379,20,instance_npcname("Immortal Furnace#3", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,351,19,387,"Nightmare",1061,10,instance_npcname("Immortal Furnace#3", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("Immortal Furnace#3", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 76th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("76FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 76 + } + else + instance_announce 0,"Remaining Monsters on the 76th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,12,393,0 script 76FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("76FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("76FGate102tower", instance_id()); + areamonster "4@tower",93,351,103,387,"Banshee",1867,30,instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,351,103,387,"Wraith Dead",1291,10,instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,351,103,387,"Evil Druid",1117,10,instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,351,103,387,"Wraith",1192,10,instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,351,103,387,"Wind Ghost",1263,10,instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",136,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("76FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 77th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("77FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 77 + } + else + instance_announce 0,"Remaining Monsters on the 77th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,96,393,0 script 77FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("77FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("77FGate102tower", instance_id()); + areamonster "4@tower",181,351,191,387,"Sword Master",1829,5,instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,351,191,387,"Bloody Knight",1268,10,instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,351,191,387,"Abysmal Knight",1219,5,instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,351,191,387,"Dullahan",1504,10,instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,351,191,387,"Raydric",1163,20,instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",224,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("77FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the Floor 78th have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("78FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 78 + } + else + instance_announce 0,"Remaining Monsters on the 78th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,184,393,0 script 78FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("78FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("78FGate102tower", instance_id()); + areamonster "4@tower",267,351,277,387,"Hydro",1720,10,instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,351,277,387,"Ferus",1714,10,instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,351,277,387,"Ferus",1717,10,instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,351,277,387,"Deleter",1385,5,instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,351,277,387,"Petite",1155,5,instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",310,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("78FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 79th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("79FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 79 + } + else + instance_announce 0,"Remaining Monsters on the 79th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,270,393,0 script 79FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("79FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("79FGate102tower", instance_id()); + areamonster "4@tower",352,351,362,387,"Falling Bishop",1871,1,instance_npcname("79FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,351,362,387,"Necromancer",1870,15,instance_npcname("79FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",395,354; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("79FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 80th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("80FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 80 + } + else + instance_announce 0,"Remaining Monsters on the 80th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,355,393,0 script 80FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("80FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("80FGate102tower", instance_id()); + areamonster "4@tower",9,267,19,303,"Mysteltainn",1203,20,instance_npcname("80FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,267,19,303,"Ogretooth",1204,20,instance_npcname("80FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,267,19,303,"Executioner",1205,20,instance_npcname("80FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",52,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("80FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 81st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("81FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 81 + } + else + instance_announce 0,"Remaining Monsters on the 81st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,12,309,0 script 81FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("81FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("81FGate102tower", instance_id()); + areamonster "4@tower",93,267,103,303,"Bloody Knight",1268,10,instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,267,103,303,"Agav",1769,10,instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,267,103,303,"Bloody Murderer",1507,10,instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,267,103,303,"Skogul",1752,10,instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,267,103,303,"Injustice",1257,10,instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",136,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("81FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 82nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("82FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 82 + } + else + instance_announce 0,"Remaining Monsters on the 82nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,96,309,0 script 82FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("82FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("82FGate102tower", instance_id()); + areamonster "4@tower",181,267,191,303,"Skeggiold",1754,10,instance_npcname("82FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,267,191,303,"Dark Illusion",1302,10,instance_npcname("82FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,267,191,303,"Gryphon",1259,10,instance_npcname("82FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,267,191,303,"Chimera",1283,10,instance_npcname("82FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",224,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("82FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 83rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("83FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 83 + } + else + instance_announce 0,"Remaining Monsters on the 83rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,184,309,0 script 83FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("83FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("83FGate102tower", instance_id()); + areamonster "4@tower",267,267,277,303,"Succubus",1370,10,instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,267,277,303,"Dark Illusion",1302,20,instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,267,277,303,"Owl Duke",1320,10,instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,267,277,303,"Owl Baron",1295,10,instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,267,277,303,"Incubus",1374,10,instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",310,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("83FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 84th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("84FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 84 + } + else + instance_announce 0,"Remaining Monsters on the 84th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,270,309,0 script 84FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("84FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("84FGate102tower", instance_id()); + areamonster "4@tower",352,267,362,303,"Ifrit",1832,1,instance_npcname("84FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",395,270; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("84FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 85th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("85FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 85 + } + else + instance_announce 0,"Remaining Monsters on the 85th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,355,309,0 script 85FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("85FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("85FGate102tower", instance_id()); + areamonster "4@tower",9,180,19,216,"Hydro",1720,10,instance_npcname("85FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,180,19,216,"Gryphon",1259,10,instance_npcname("85FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,180,19,216,"Chimera",1283,10,instance_npcname("85FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,180,19,216,"Majoruros",1310,10,instance_npcname("85FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",52,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("85FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 86th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("86FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 86 + } + else + instance_announce 0,"Remaining Monsters on the 86th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,12,222,0 script 86FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("86FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("86FGate102tower", instance_id()); + areamonster "4@tower",93,180,103,216,"Salamander",1831,15,instance_npcname("86FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,180,103,216,"Kasa",1833,20,instance_npcname("86FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,180,103,216,"Lava Golem",1366,15,instance_npcname("86FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,180,103,216,"Gajomart",1309,10,instance_npcname("86FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",136,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("86FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 87th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("87FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 87 + } + else + instance_announce 0,"Remaining Monsters on the 87th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,96,222,0 script 87FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("87FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("87FGate102tower", instance_id()); + areamonster "4@tower",181,180,191,216,"Necromancer",1870,15,instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,180,191,216,"Anubis",1098,15,instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,180,191,216,"Wraith Dead",1291,10,instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,180,191,216,"Ancient Mummy",1297,10,instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,180,191,216,"Khalitzburg",1132,10,instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",224,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("87FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 88th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("88FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 88 + } + else + instance_announce 0,"Remaining Monsters on the 88th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,184,222,0 script 88FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("88FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("88FGate102tower", instance_id()); + areamonster "4@tower",267,180,277,216,"Odium of Thanatos",1704,6,instance_npcname("88FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,180,277,216,"Despero of Thanatos",1705,6,instance_npcname("88FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,180,277,216,"Maero of Thanatos",1706,6,instance_npcname("88FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,180,277,216,"Dolor of Thanatos",1707,6,instance_npcname("88FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",310,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("88FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 89th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("89FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 89 + } + else + instance_announce 0,"Remaining Monsters on the 89th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,270,222,0 script 89FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("89FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("89FGate102tower", instance_id()); + areamonster "4@tower",352,180,362,216,"Valkyrie Randgris",1751,1,instance_npcname("89FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,180,362,216,"Baroness of Retribution",1702,10,instance_npcname("89FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,180,362,216,"Lady Solace",1703,10,instance_npcname("89FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,180,362,216,"False Angel",1371,10,instance_npcname("89FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",395,183; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("89FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 90th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("90FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 90 + } + else + instance_announce 0,"Remaining Monsters on the 90th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,355,222,0 script 90FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("90FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("90FGate102tower", instance_id()); + areamonster "4@tower",9,96,19,132,"Cecil Damon",1638,10,instance_npcname("90FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,96,19,132,"Bow Master",1830,10,instance_npcname("90FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,96,19,132,"Kavac",1656,30,instance_npcname("90FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",52,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("90FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 91st Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("91FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 91 + } + else + instance_announce 0,"Remaining Monsters on the 91st Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,12,138,0 script 91FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("91FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("91FGate102tower", instance_id()); + areamonster "4@tower",93,96,103,132,"Kathryne Keyron",1639,15,instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,96,103,132,"Elder",1377,10,instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,96,103,132,"Laurell Weinder",1657,10,instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,96,103,132,"Wind Ghost",1263,10,instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,96,103,132,"Marduk",1140,10,instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",136,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("91FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 92nd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("92FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 92 + } + else + instance_announce 0,"Remaining Monsters on the 92nd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,96,138,0 script 92FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("92FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("92FGate102tower", instance_id()); + areamonster "4@tower",181,96,191,132,"Seyren Windsor",1634,15,instance_npcname("92FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,96,191,132,"Bloody Knight",1268,10,instance_npcname("92FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,96,191,132,"Abysmal Knight",1219,10,instance_npcname("92FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,96,191,132,"Wanderer",1208,10,instance_npcname("92FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",224,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("92FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 93rd Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("93FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 93 + } + else + instance_announce 0,"Remaining Monsters on the 93rd Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,184,138,0 script 93FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("93FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("93FGate102tower", instance_id()); + areamonster "4@tower",267,96,277,132,"Sword Master",1829,15,instance_npcname("93FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",267,96,277,132,"Bow Master",1830,15,instance_npcname("93FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",310,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("93FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 94th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("94FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 94 + } + else + instance_announce 0,"Remaining Monsters on the 94th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,270,138,0 script 94FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("94FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("94FGate102tower", instance_id()); + areamonster "4@tower",352,96,362,132,"Beelzebub",1873,1,instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,96,362,132,"Hunter Fly",1035,30,instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,96,362,132,"Steel Chonchon",1042,5,instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,96,362,132,"Dragon FLy",1091,5,instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",352,96,362,132,"Chonchon",1011,5,instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",395,99; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("94FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 95th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("95FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 95 + } + else + instance_announce 0,"Remaining Monsters on the 95th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,355,138,0 script 95FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("95FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("95FGate102tower", instance_id()); + areamonster "4@tower",9,9,19,45,"Valkyrie",1765,5,instance_npcname("95FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,9,19,45,"Skeggiold",1755,10,instance_npcname("95FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",9,9,19,45,"Skeggiold",1754,10,instance_npcname("95FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",52,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("95FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 96th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("96FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 96 + } + else + instance_announce 0,"Remaining Monsters on the 96th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,12,51,0 script 96FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("96FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("96FGate102tower", instance_id()); + areamonster "4@tower",93,9,103,45,"Incarnation of Morroc",1918,5,instance_npcname("96FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,9,103,45,"Incarnation of Morroc",1919,5,instance_npcname("96FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,9,103,45,"Incarnation of Morroc",1920,5,instance_npcname("96FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",93,9,103,45,"Incarnation of Morroc",1921,5,instance_npcname("96FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",136,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("96FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 97th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("97FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 97 + } + else + instance_announce 0,"Remaining Monsters on the 97th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,96,51,0 script 97FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("97FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("97FGate102tower", instance_id()); + areamonster "4@tower",181,9,191,45,"Kathryne Keyron",1639,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,9,191,45,"Seyren Windsor",1634,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,9,191,45,"Margaretha Sorin",1637,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,9,191,45,"Eremes Guile",1635,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,9,191,45,"Howard Alt-Eisen",1636,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + areamonster "4@tower",181,9,191,45,"Cecil Damon",1638,2,instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"; + end; + +OnTouch_: + warp "4@tower",224,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("97FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 98th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("98FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 98 + } + else + instance_announce 0,"Remaining Monsters on the 98th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,184,51,0 script 98FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("98FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("98FGate102tower", instance_id()); + for( set .@i, 1; .@i <= 7; set .@i, .@i + 1 ) { + set .@mob_ran,rand(1,30); + if (.@mob_ran == 1) + areamonster "4@tower",267,9,277,45,"Kathryne Keyron",1639,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 2) + areamonster "4@tower",267,9,277,45,"Seyren Windsor",1634,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 3) + areamonster "4@tower",267,9,277,45,"Margaretha Sorin",1637,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 4) + areamonster "4@tower",267,9,277,45,"Eremes Guile",1635,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 5) + areamonster "4@tower",267,9,277,45,"Howard Alt-Eisen",1636,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 6) + areamonster "4@tower",267,9,277,45,"Cecil Damon",1638,2,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 7) + areamonster "4@tower",267,9,277,45,"Incarnation of Morroc",1918,5,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 8) + areamonster "4@tower",267,9,277,45,"Incarnation of Morroc",1919,5,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 9) + areamonster "4@tower",267,9,277,45,"Incarnation of Morroc",1920,5,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 10) + areamonster "4@tower",267,9,277,45,"Incarnation of Morroc",1921,5,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 11) + areamonster "4@tower",267,9,277,45,"Valkyrie",1765,5,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 12) + areamonster "4@tower",267,9,277,45,"Skeggiold",1755,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 13) + areamonster "4@tower",267,9,277,45,"Skeggiold",1754,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 14) + areamonster "4@tower",267,9,277,45,"Seyren Windsor",1634,15,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 15) + areamonster "4@tower",267,9,277,45,"Bloody Knight",1268,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 16) + areamonster "4@tower",267,9,277,45,"Abysmal Knight",1219,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 17) + areamonster "4@tower",267,9,277,45,"Wanderer",1208,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 18) + areamonster "4@tower",267,9,277,45,"Sword Master",1829,15,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 19) + areamonster "4@tower",267,9,277,45,"Bow Master",1830,15,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 20) + areamonster "4@tower",267,9,277,45,"Kathryne Keyron",1639,15,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 21) + areamonster "4@tower",267,9,277,45,"Elder",1377,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 22) + areamonster "4@tower",267,9,277,45,"Laurell Weinder",1657,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 23) + areamonster "4@tower",267,9,277,45,"Wind Ghost",1263,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 24) + areamonster "4@tower",267,9,277,45,"Marduk",1140,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 25) + areamonster "4@tower",267,9,277,45,"Cecil Damon",1638,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 26) + areamonster "4@tower",267,9,277,45,"Bow Master",1830,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 27) + areamonster "4@tower",267,9,277,45,"Kavach Icarus",1656,30,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 28) + areamonster "4@tower",267,9,277,45,"Baroness of Retribution",1702,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else if (.@mob_ran == 29) + areamonster "4@tower",267,9,277,45,"Lady Solace",1703,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + else + areamonster "4@tower",267,9,277,45,"False Angel",1371,10,instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"; + } + end; + +OnTouch_: + warp "4@tower",309,12; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("4@tower",instance_npcname("98FGate102tower", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0,"All Monsters on the 99th Floor have been defeated.",bc_map,"0xffff00"; + donpcevent instance_npcname("99FGate102tower", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 99 + } + else + instance_announce 0,"Remaining Monsters on the 99th Floor - " + .@mob_dead_num,bc_map,"0x00ff99"; + end; +} + +4@tower,271,51,0 script 99FGate102tower 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("99FGate102tower", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("99FGate102tower", instance_id()); + initnpctimer; + end; + +OnTouch_: + getitem 6000,1; //Dark_Ashes + warp "5@tower",101,72; + end; + +OnTimer120000: + disablenpc instance_npcname("99FGate102tower", instance_id()); + donpcevent instance_npcname("99FGate102tower-2", instance_id())+"::OnEnable"; + stopnpctimer; + end; +} + +4@tower,271,51,0 script 99FGate102tower-2 45,2,2,{ +OnInstanceInit: + disablenpc instance_npcname("99FGate102tower-2", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("99FGate102tower-2", instance_id()); + end; + +OnTouch_: + warp "5@tower",101,72; + end; +} + +4@tower,71,1,0 script #Manager Mode4 844,{ + mes "Please enter the password."; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + mes "This NPC manages the tower from the 76th to the 99th Floor."; + mes "Please enter the Floor number to open."; + mes "(i.g.: 76F->76, 99F->99)"; + input .@input,76,99; + next; + if (.@input < 76 || .@input > 99) + mes "You can only enter a number from 76 to 99."; + else { + donpcevent instance_npcname(.@input+"FGate102tower", instance_id())+"::OnEnable"; + mes "*** Floor "+ .@input + " is now being opened. ***"; + } + } + close; +} + +// Floor 100 +5@tower,106,109,2 script Lucid Crystal#102 844,{ + if (in_102tower < 10) { + mes "^0000ffA mysterious voice echoes through the room as you touch the lucid crystal radiating a strong light.^000000"; + next; + mes "[Mysterious Voice]"; + mes "Welcome to my place, intruders. I've had fun watching you endure all the difficulties I've set before you."; + next; + mes "[Mysterious Voice]"; + mes "Unfortunately, the time has come to end the show."; + next; + mes "[Mysterious Voice]"; + mes "It's still too early to celebrate your victory against my right-hand man Knothen because he isn't completely destroyed!"; + next; + mes "[Mysterious Voice]"; + mes "I shall resurrect him for your next show. Defeat him again, and then I'll gladly accept your challenge."; + next; + mes "[Mysterious Voice]"; + mes "Good-bye for now."; + mes "Once again, I had such a great time, humans. I look forward to seeing you again."; + next; + mes "^0000ffAs soon as the voice stopped talking, an irresistible force lifted and moved you to another space."; + close2; + set in_102tower,10; + warp "alberta",223,36; + } + else { + mes "^0000ffThe radiating crystal piece seems to beckon you, just like last time.^000000"; + next; + mes "[Mysterious Voice]"; + mes "I must have underestimated you... I didn't expect to see you again."; + next; + mes "[Mysterious Voice]"; + mes "I can smell your sweat, hear the gasps of your exhaustion in combat. Ah~ The human desire for victory always excites me."; + next; + mes "[Mysterious Voice]"; + mes "I now allow you to come receive an audience from me. Come to me, to Nacht Sieger the Hegemon-King of the Darkness!"; + close2; + warp "6@tower",32,12; + } + end; + +OnInstanceInit: + disablenpc instance_npcname("Lucid Crystal#102", instance_id()); + end; + +OnDisable: + disablenpc instance_npcname("Lucid Crystal#102", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("Lucid Crystal#102", instance_id()); + donpcevent instance_npcname("#102Effect1", instance_id())+"::OnEnable"; + end; +} + +5@tower,106,109,2 script #102Effect1 844,{ +OnInstanceInit: + disablenpc instance_npcname("#102Effect1", instance_id()); + end; + +OnDisable: + disablenpc instance_npcname("#102Effect1", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("#102Effect1", instance_id()); + initnpctimer; + end; + +OnTimer500: + specialeffect EF_ENHANCE; + stopnpctimer; + donpcevent instance_npcname("#102Effect2", instance_id())+"::OnEnable"; + end; +} + +5@tower,106,109,2 script #102Effect2 844,{ +OnInstanceInit: + disablenpc instance_npcname("#102Effect2", instance_id()); + end; + +OnDisable: + disablenpc instance_npcname("#102Effect2", instance_id()); + end; + +OnEnable: + enablenpc instance_npcname("#102Effect2", instance_id()); + initnpctimer; + end; + +OnTimer500: + specialeffect EF_ENHANCE; + stopnpctimer; + donpcevent instance_npcname("#102Effect1", instance_id())+"::OnEnable"; + end; +} + +5@tower,82,112,2 script #102FShadowDust1 844,{ +OnInstanceInit: + disablenpc instance_npcname("#102FShadowDust1", instance_id()); + donpcevent instance_npcname("#102FShadowDust", instance_id())+"::OnEnable"; + monster "5@tower",83,85,"Entweihen Crothen",1957,1,instance_npcname("#102FShadowDust1", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("5@tower",instance_npcname("#102FShadowDust1", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + instance_announce 0, "Mysterious Voice: Who are you to dare intrude upon my sanctuary?!",bc_map,"0xffff00"; + donpcevent instance_npcname("#102FShadowDust", instance_id())+"::OnDisable"; + donpcevent instance_npcname("Lucid Crystal#102", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 100 + } +} + +5@tower,82,113,2 script #102FShadowDust 844,{ +OnInstanceInit: + disablenpc instance_npcname("#102FShadowDust", instance_id()); + end; + +OnDisable: + killmonsterall "5@tower"; + end; + +OnEnable: + monster "5@tower",72,93,"Thorny Skeleton",1958,1; + monster "5@tower",70,87,"Thorn of Magic",1960,1; + monster "5@tower",68,83,"Thorn of Pureness",1961,1; + monster "5@tower",70,80,"Thorny Skeleton",1958,1; + monster "5@tower",74,81,"Thorn of Magic",1960,1; + monster "5@tower",78,72,"Thorn of Magic",1960,1; + monster "5@tower",81,70,"Thorny Skeleton",1958,1; + monster "5@tower",78,84,"Thorn of Recovery",1959,1; + monster "5@tower",85,72,"Thorn of Magic",1960,1; + monster "5@tower",91,74,"Thorny Skeleton",1958,1; + monster "5@tower",79,77,"Thorn of Pureness",1961,1; + monster "5@tower",82,80,"Thorn of Recovery",1959,1; + monster "5@tower",87,83,"Thorn of Recovery",1959,1; + monster "5@tower",80,92,"Thorn of Pureness",1961,1; + monster "5@tower",81,89,"Thorny Skeleton",1958,1; + monster "5@tower",85,93,"Thorn of Magic",1960,1; + monster "5@tower",86,90,"Thorn of Recovery",1959,1; + monster "5@tower",88,88,"Thorny Skeleton",1958,1; + monster "5@tower",91,87,"Thorn of Magic",1960,1; + monster "5@tower",95,94,"Thorn of Magic",1960,1; + monster "5@tower",91,96,"Thorny Skeleton",1958,1; + monster "5@tower",90,82,"Thorn of Pureness",1961,1; + monster "5@tower",96,98,"Thorn of Magic",1960,1; + monster "5@tower",83,76,"Thorny Skeleton",1958,1; + monster "5@tower",74,85,"Thorny Skeleton",1958,1; + set .@mob_ran,rand(1,3); + if (.@mob_ran == 1) + monster "5@tower",82,85,"Thorny Skeleton",1958,1; + else if (.@mob_ran == 2) + monster "5@tower",82,85,"Thorn of Magic",1960,1; + else + monster "5@tower",82,85,"Thorn of Pureness",1961,1; + set .@mob_ran2,rand(1,3); + if (.@mob_ran2 == 1) + monster "5@tower",84,85,"Thorny Skeleton",1958,1; + else if (.@mob_ran2 == 2) + monster "5@tower",84,85,"Thorn of Magic",1960,1; + else + monster "5@tower",84,85,"Thorn of Pureness",1961,1; + end; +} + +5@tower,71,1,0 script #Manager Mode5 844,{ + mes "This NPC manages the crystal on the 100th Floor. Please enter the password."; + input .@inputstr$; + next; + if (.@inputstr$ == "dmc2008") { + donpcevent instance_npcname("Lucid Crystal#102", instance_id())+"::OnEnable"; + mes "The 100th Floor's crystal has been activated."; + } + else + mes "Please enter the correct password."; + close; +} + +// Floor 101 +6@tower,45,89,2 script Spring of Life#1 844,{ + set .@pc_hp,MaxHp-Hp; + set .@pc_sp,MaxSp-Sp; + mes "^0066ffYou took a sip of the spring's clear water, and you feel invigorated.^000000"; + percentheal .@pc_hp,.@pc_sp; + close; + +OnInstanceInit: + donpcevent instance_npcname("Spring of Life#2", instance_id())+"::OnEnable"; + end; + +} + +6@tower,45,89,2 script Spring of Life#2 844,{ +OnEnable: + specialeffect EF_BUBBLE; + initnpctimer; + end; + +OnTimer2000: + stopnpctimer;; + donpcevent instance_npcname("Spring of Life#3", instance_id())+"::OnEnable"; + end; +} + +6@tower,45,89,2 script Spring of Life#3 844,{ +OnEnable: + specialeffect EF_BUBBLE; + initnpctimer; + end; + +OnTimer2000: + stopnpctimer; + donpcevent instance_npcname("Spring of Life#2", instance_id())+"::OnEnable"; + end; +} + +6@tower,32,100,0 warp 102FGate102tower 2,2,6@tower,155,64 + +6@tower,156,151,2 script Tyrant's Throne# 844,{ + end; + +OnInstanceInit: + areamonster "6@tower",154,73,156,75,"Anopheles",1627,10,instance_npcname("Tyrant's Throne#", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("6@tower",instance_npcname("Tyrant's Throne#", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + donpcevent instance_npcname("#1st Beeper", instance_id())+"::OnEnable"; + disablenpc instance_npcname("Tyrant's Throne#", instance_id()); + } + end; +} + +6@tower,156,151,2 script #1st Beeper 844,{ +OnEnable: + initnpctimer; + end; + +OnTimer500: + instance_announce 0,"Guests, huh? I hope you've come here knowing that you'll be buried in this place. If you didn't know, well... it's too late!",bc_map,"0x00ffcc"; + end; + +OnTimer5500: + instance_announce 0,"This is why you adventurers always end up dead.",bc_map,"0x00ffcc"; + end; + +OnTimer10500: + instance_announce 0,"I may applaud you for your courage... Of course, I intend to play with you a little bit first.",bc_map,"0x00ffcc"; + end; + +OnTimer15500: + instance_announce 0,"You know, I like watching humans running around in fear.",bc_map,"0x00ffcc"; + end; + +OnTimer20500: + instance_announce 0,"Let's see who runs fastest. Are you ready?",bc_map,"0x00ffcc"; + areamonster "6@tower",151,66,153,106,"Bone Guardian",1152,50,instance_npcname("#1st Beeper", instance_id())+"::OnMyMobDead"; + areamonster "6@tower",158,66,160,106,"Bone Guardian",1152,50,instance_npcname("#1st Beeper", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("6@tower",instance_npcname("#1st Beeper", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + donpcevent instance_npcname("#2nd Beeper", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 101 + } + else + instance_announce 0,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99"; + end; +} + +6@tower,156,151,2 script #2nd Beeper 844,{ +OnEnable: + initnpctimer; + end; + +OnTimer500: + instance_announce 0,"Well, I guess they aren't too challenging for you.",bc_map,"0x00ffcc"; + end; + +OnTimer5500: + instance_announce 0,"Let's speed up a little bit, shall we?",bc_map,"0x00ffcc"; + end; + +OnTimer10500: + instance_announce 0,"I demand an encore!",bc_map,"0x00ffcc"; + areamonster "6@tower",151,66,153,106,"Wind Guardian",1263,30,instance_npcname("#2nd Beeper", instance_id())+"::OnMyMobDead"; + areamonster "6@tower",158,66,160,106,"Wind Guardian",1263,30,instance_npcname("#2nd Beeper", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("6@tower",instance_npcname("#2nd Beeper", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + donpcevent instance_npcname("#3rd Beeper", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 102 + } + else + instance_announce 0,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99"; + end; +} + +6@tower,156,151,2 script #3rd Beeper 844,{ +OnEnable: + initnpctimer; + end; + +OnTimer500: + instance_announce 0,"Yes, this is getting exciting!",bc_map,"0x00ffcc"; + end; + +OnTimer5500: + instance_announce 0,"I'll remember you as one of a few that have managed to entertain me.",bc_map,"0x00ffcc"; + end; + +OnTimer10500: + instance_announce 0,"How would you like to play one more round?",bc_map,"0x00ffcc"; + areamonster "6@tower",151,66,153,106,"Sword Edge Guardian",1132,20,instance_npcname("#3rd Beeper", instance_id())+"::OnMyMobDead"; + areamonster "6@tower",158,66,160,106,"Sword Edge Guardian",1132,20,instance_npcname("#3rd Beeper", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + set .@mob_dead_num,mobcount("6@tower",instance_npcname("#3rd Beeper", instance_id())+"::OnMyMobDead"); + if (.@mob_dead_num < 1) { + donpcevent instance_npcname("#4th Beeper", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 103 + } + else + instance_announce 0,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99"; + end; +} + +6@tower,156,151,2 script #4th Beeper 844,{ +OnEnable: + initnpctimer; + end; + +OnTimer500: + instance_announce 0,"Okay, the time has come to make my appearance!",bc_map,"0x00ffcc"; + end; + +OnTimer5500: + instance_announce 0,"Do you want to know who I am?",bc_map,"0x00ffcc"; + end; + +OnTimer10500: + instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc"; + stopnpctimer; + monster "6@tower",156,147,"Naght Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead"; + end; + +OnMyMobDead: + donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable"; + end; +} + +6@tower,169,127,2 script Lost Soul#102 796,{ + if (checkweight(1201,1) == 0) { + mes "You're carrying too much stuff. Why don't you put some of it away, and then come back?"; + close; + } + mes "[Lost Souls]"; + mes "It's you that have liberated us from the evil Nacht Sieger."; + next; + mes "[Lost Souls]"; + mes "Thank you so much. Now we can escape from this cold and dark place... to heaven."; + next; + if ((countitem(13412) > 0) && (countitem(13413) > 0)) { + mes "[Lost Souls]"; + mes "Hey, you have the remnants of Nacht Sieger with you."; + next; + mes "[Lost Souls]"; + mes "They may appear to be one-handed swords, but I can put them together to make a two-handed one if you want. That's the only way I can repay you for freeing me."; + next; + switch(select("Make a Two-Handed Sword.:No, thanks.")) { + case 1: + mes "[Lost Souls]"; + mes "Good, then I'll combine these to create a two-handed sword."; + next; + delitem 13412,1; //Twin_Edge_B + delitem 13413,1; //Twin_Edge_R + getitem 1185,1; //Violet_Fear + mes "[Lost Souls]"; + mes "I'd like to talk to you more, but I've... I've got to go now."; + next; + break; + case 2: + mes "[Lost Souls]"; + mes "I see. I guess you aren't as greedy or ambitious as those other adventurers."; + next; + mes "[Lost Souls]"; + mes "I'd like to talk to you more, but I've... I've got to go now."; + next; + break; + } + } + mes "[Lost Souls]"; + mes "Farewell, young adventurer. I wish you good luck."; + close2; + warp "alberta",223,36; + end; + +OnInstanceInit: + disablenpc instance_npcname("Lost Soul#102", instance_id()); + end; + +OnEnable: + initnpctimer; + enablenpc instance_npcname("Lost Soul#102", instance_id()); + donpcevent instance_npcname("#Effect30", instance_id())+"::OnEnable"; + //SetItemPartyInMap in_102floor 104 + end; + +OnTimer500: + instance_announce 0,"This... This can't be happening! I can't be defeated!",bc_map,"0xffff00"; + end; + +OnTimer5500: + instance_announce 0,"Nooo! My soul... My shell...! Nooo~!",bc_map,"0xffff00"; + end; + +OnTimer10500: + instance_announce 0,"Nacht Sieger's body has turned into dark ashes that scattered in the wind.",bc_map,"0x00ffcc"; + stopnpctimer; + end; +} + +6@tower,169,127,2 script #Effect30 844,{ +OnInstanceInit: + disablenpc instance_npcname("#Effect30", instance_id()); + end; + +OnEnable: + specialeffect EF_CONE; + initnpctimer; + end; + +OnTimer1000: + stopnpctimer; + donpcevent instance_npcname("#Effect31", instance_id())+"::OnEnable"; + end; +} + +6@tower,169,127,2 script #Effect31 844,{ +OnInstanceInit: + disablenpc instance_npcname("#Effect31", instance_id()); + end; + +OnEnable: + specialeffect EF_CONE; + initnpctimer; + end; + +OnTimer1000: + stopnpctimer; + donpcevent instance_npcname("#Effect30", instance_id())+"::OnEnable"; + end; +} diff --git a/npc/scripts_athena.conf b/npc/scripts_athena.conf index afd0fe471..5b6d2cb87 100644 --- a/npc/scripts_athena.conf +++ b/npc/scripts_athena.conf @@ -339,7 +339,7 @@ npc: npc/battleground/kvm/kvm03.txt // -------------------------------------------------------------- // ------------------------ Instances --------------------------- npc: npc/instances/SealedShrine.txt -//npc: npc/instances/EndlessTower.txt +npc: npc/instances/EndlessTower.txt npc: npc/instances/OrcsMemory.txt //npc: npc/instances/NydhoggsNext.txt // -------------------------------------------------------------- diff --git a/src/map/script.c b/src/map/script.c index c0a44d90f..4304aeea7 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5721,6 +5721,7 @@ BUILDIN_FUNC(delitem) ShowError("script:delitem: failed to delete %d items (AID=%d item_id=%d).\n", amount, sd->status.account_id, nameid); st->state = END; + clif_scriptclose(sd, st->oid); return 1; } @@ -5819,6 +5820,7 @@ BUILDIN_FUNC(delitem2) ShowError("script:delitem2: failed to delete %d items (AID=%d item_id=%d).\n", amount, sd->status.account_id, nameid); st->state = END; + clif_scriptclose(sd, st->oid); return 1; } @@ -14193,7 +14195,11 @@ BUILDIN_FUNC(instance_npcname) script_pushconststr(st,npcname); } else - script_pushconststr(st,""); + { + ShowError("script:instance_npcname: invalid instance NPC (instance_id: %d, NPC name: \"%s\".)\n", instance_id, str); + st->state = END; + return 1; + } return 0; } |