diff options
Diffstat (limited to 'world/map/npc/027-7')
-rw-r--r-- | world/map/npc/027-7/_import.txt | 8 | ||||
-rw-r--r-- | world/map/npc/027-7/_mobs.txt | 9 | ||||
-rw-r--r-- | world/map/npc/027-7/_warps.txt | 3 | ||||
-rw-r--r-- | world/map/npc/027-7/general_razha.txt | 231 | ||||
-rw-r--r-- | world/map/npc/027-7/general_razha_exitdoor.txt | 14 | ||||
-rw-r--r-- | world/map/npc/027-7/mapflags.txt | 2 |
6 files changed, 267 insertions, 0 deletions
diff --git a/world/map/npc/027-7/_import.txt b/world/map/npc/027-7/_import.txt new file mode 100644 index 00000000..6e3d2cae --- /dev/null +++ b/world/map/npc/027-7/_import.txt @@ -0,0 +1,8 @@ +// Map 027-7: Crypt Sub-Basement Two +// This file is generated automatically. All manually changes will be removed when running the Converter. +map: 027-7.gat +npc: npc/027-7/_mobs.txt +npc: npc/027-7/_warps.txt +npc: npc/027-7/general_razha.txt +npc: npc/027-7/general_razha_exitdoor.txt +npc: npc/027-7/mapflags.txt diff --git a/world/map/npc/027-7/_mobs.txt b/world/map/npc/027-7/_mobs.txt new file mode 100644 index 00000000..4c40b389 --- /dev/null +++ b/world/map/npc/027-7/_mobs.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Crypt Sub-Basement Two mobs + + + +027-7.gat,0,0,0|script|Mob027-7|-1, +{ + end; +} diff --git a/world/map/npc/027-7/_warps.txt b/world/map/npc/027-7/_warps.txt new file mode 100644 index 00000000..5b56046c --- /dev/null +++ b/world/map/npc/027-7/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually changes will be removed when running the Converter. +// Crypt Sub-Basement Two warps + diff --git a/world/map/npc/027-7/general_razha.txt b/world/map/npc/027-7/general_razha.txt new file mode 100644 index 00000000..ddd66d84 --- /dev/null +++ b/world/map/npc/027-7/general_razha.txt @@ -0,0 +1,231 @@ +// author: Jenalya, wushin +// Based off Cindy Fight +// General Razha Fight + +027-7.gat,39,25,0|script|General Razha|400, +{ + if ($@CRYPT_FIGHT2 != 0) + end; + + set @RAZHA_SOUL_REQ, 3; + set @RAZHA_ROTTEN_RAGS_REQ, 5; + set @RAZHA_UNDEAD_EYE_REQ, 5; + set @RAZHA_UNDEAD_EAR_REQ, 5; + set @minlevel, 70; + + mes "[Tome]"; + mes "The Tome is open to a page about a summon ritual that can be performed in this chamber."; + next; + goto L_TomeMain; + +L_TomeMain: + mes "What do you want to do?"; + menu + "Read reagent List.", L_SummonReagents, + "Perform Ritual.", L_Ritual, + "Nothing.", L_Close; + +L_SummonReagents: + mes "Says we need " + @RAZHA_SOUL_REQ + " Souls, " + @RAZHA_ROTTEN_RAGS_REQ + " Diseased Hearts, " + @RAZHA_UNDEAD_EYE_REQ + " Undead Eyes, and " + @RAZHA_UNDEAD_EAR_REQ + " Undead Ears to perform the ritual."; + next; + goto L_TomeMain; + +L_MissingReagents: + mes "It appears we are missing something, lets check the reagent list again."; + next; + goto L_SummonReagents; + +L_Ritual: + if (BaseLevel < @minlevel) + goto L_ToWeak; + if ( (countitem("Soul") < @RAZHA_SOUL_REQ) + || (countitem("RottenRags") < @RAZHA_ROTTEN_RAGS_REQ) + || (countitem("UndeadEye") < @RAZHA_UNDEAD_EYE_REQ) + || (countitem("UndeadEar") < @RAZHA_UNDEAD_EAR_REQ) ) + goto L_MissingReagents; + delitem "Soul", @RAZHA_SOUL_REQ; + delitem "RottenRags", @RAZHA_ROTTEN_RAGS_REQ; + delitem "UndeadEye", @RAZHA_UNDEAD_EYE_REQ; + delitem "UndeadEar", @RAZHA_UNDEAD_EAR_REQ; + mes "As you perform the ritual you can feel the energy amass."; + next; + mes "A cold shiver runs down your spine as you feel something manifesting out of the void."; + if ($@CRYPT_FIGHT2 != 0) + goto L_Close; + + // initialize fight + set $@CRYPT_FIGHT2, 1; + set $@CRYPT_FIGHT2_WAVE, 0; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, 2; + set $@CRYPT_FIGHT2_PLAYER_COUNT, getmapusers("027-7.gat"); + areamonster "027-7.gat", 0, 0, 79, 84, "", 1036, 1, "General Razha::OnPetDeath"; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1124, 1, "General Razha::OnPetDeath"; + + initnpctimer; + goto L_Announce; + +L_ToWeak: + mes "You try to perform the ritual but nothing happens. You don't seem experienced enough."; + goto L_Close; + +L_Close: + set @bonus, 0; + set @minlevel, 0; + set @RAZHA_SOUL_REQ, 0; + set @RAZHA_ROTTEN_RAGS_REQ, 0; + set @RAZHA_UNDEAD_EYE_REQ, 0; + set @RAZHA_UNDEAD_EAR_REQ, 0; + close; + +// Fight logic attached to npc +OnTimer5000: + setnpctimer 0; + if ($@CRYPT_FIGHT2 != 0) + goto L_CryptLogic; + goto L_Return_1; + +L_Return_1: + set $@CRYPT_FIGHT2_PLAYER_COUNT, 0; + areatimer "027-7.gat", 0, 0, 79, 84, 10, "General Razha::OnTick"; + end; + +L_CryptLogic: + set $@CRYPT_FIGHT2_ROUND_PEN, $@CRYPT_FIGHT2_PLAYER_COUNT; + if ($@CRYPT_FIGHT2_ROUND_PEN > 60) + set $@CRYPT_FIGHT2_ROUND_PEN, 60; + if ($@CRYPT_FIGHT2_PLAYER_COUNT <= 0) + goto L_CleanUpLosers; + set $@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER, $@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER + 5; // Advance 5 seconds + if (mobcount("027-7.gat", "General Razha::OnPetDeath") < 0) + goto L_NextWave; + if ($@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER + $@CRYPT_FIGHT2_ROUND_PEN >= 120) + goto L_NextWave; + goto L_Return_1; + +L_NextWave: + set $@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER, 0; + set $@CRYPT_FIGHT2_WAVE, $@CRYPT_FIGHT2_WAVE + 1; + if ( ($@CRYPT_FIGHT2_WAVE > 10) && ($@CRYPT_FIGHT2_SUMMONS_COUNT == 0) ) + goto L_CleanUp; + if ( ($@CRYPT_FIGHT2_WAVE > 10) && ($@CRYPT_FIGHT2_WAVE < 22) ) + goto L_Return_1; + if ($@CRYPT_FIGHT2_WAVE > 22) + goto L_SummonNuke; + if ($@CRYPT_FIGHT2_WAVE < 5) + goto L_WeakSummons; + if ( ($@CRYPT_FIGHT2_WAVE < 10) && ($@CRYPT_FIGHT2_WAVE >= 5) ) + goto L_StrongSummons; + if ($@CRYPT_FIGHT2_WAVE == 10) + goto L_BossSummons; + goto L_SummonNuke; + +L_SummonNuke: + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT + $@CRYPT_FIGHT2_WAVE*2 + $@CRYPT_FIGHT2_PLAYER_COUNT*4; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1036, $@CRYPT_FIGHT2_WAVE*2 + $@CRYPT_FIGHT2_PLAYER_COUNT*4, "General Razha::OnPetDeath"; + goto L_Announce; + +L_WeakSummons: + set $@CRYPT_FIGHT2_SUMMONS_NUMBER, (5 + (1 * $@CRYPT_FIGHT2_WAVE) + (2 * $@CRYPT_FIGHT2_PLAYER_COUNT))/2; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2) + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2); + + areamonster "027-7.gat", 0, 0, 79, 84, "", 1036, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1045, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + goto L_Announce; + +L_StrongSummons: + set $@CRYPT_FIGHT2_SUMMONS_NUMBER, (5 + (1 * $@CRYPT_FIGHT2_WAVE) + (2 * $@CRYPT_FIGHT2_PLAYER_COUNT))/2; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2) + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2); + + areamonster "027-7.gat", 0, 0, 79, 84, "", 1036, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1124, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + goto L_Announce; + +L_BossSummons: + set $@CRYPT_FIGHT2_SUMMONS_NUMBER, (5 + (1 * $@CRYPT_FIGHT2_WAVE) + (2 * $@CRYPT_FIGHT2_PLAYER_COUNT))/2; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2) + ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2); + areamonster "027-7.gat", 0, 0, 79, 84, "", 1036, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1124, ($@CRYPT_FIGHT2_SUMMONS_NUMBER/2), "General Razha::OnPetDeath"; + areamonster "027-7.gat", 0, 0, 79, 84, "", 1128, 1, "General Razha::OnPetDeath"; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT + 1; + goto L_Announce; + +L_Announce: + set $@msg$, $@CRYPT_FIGHT2_MESSAGES$[$@CRYPT_FIGHT2_WAVE]; + if ($@msg$ == "") + goto L_Return_1; + mapannounce "027-7.gat", $@msg$, 0; + mapannounce "027-4.gat", $@msg$, 0; + set $@msg$, ""; + goto L_Return_1; + +// Called on each player once every 5 seconds +OnTick: + if (isdead()) end; + set $@CRYPT_FIGHT2_PLAYER_COUNT, $@CRYPT_FIGHT2_PLAYER_COUNT + 1; + end; + +OnPetDeath: + set $@CRYPT_FIGHT2_SUMMONS_COUNT, $@CRYPT_FIGHT2_SUMMONS_COUNT - 1; + end; + +L_CleanUpLosers: + set $@CRYPT_FIGHT2, 0; + set $@CRYPT_FIGHT2_PLAYER_COUNT, 0; + set $@CRYPT_FIGHT2_WAVE, 0; + set $@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER, 0; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, 0; + set $@CRYPT_FIGHT2_ROUND_PEN, 0; + set $@CRYPT_FIGHT2_SUMMONS_NUMBER, 0; + killmonster "027-7.gat", "General Razha::OnPetDeath"; + stopnpctimer; + setnpctimer 0; + end; + +L_CleanUp: + areatimer "027-7.gat", 0, 0, 79, 84, 10, "General Razha::OnReward"; + set $@CRYPT_FIGHT2, 0; + set $@CRYPT_FIGHT2_PLAYER_COUNT, 0; + set $@CRYPT_FIGHT2_WAVE, 0; + set $@CRYPT_FIGHT2_SUMMONS_ROUND_TIMER, 0; + set $@CRYPT_FIGHT2_SUMMONS_COUNT, 0; + set $@CRYPT_FIGHT2_ROUND_PEN, 0; + set $@CRYPT_FIGHT2_SUMMONS_NUMBER, 0; + killmonster "027-7.gat", "General Razha::OnPetDeath"; + stopnpctimer; + setnpctimer 0; + end; + +OnReward: + if (isdead()) end; + set @bonus, (BaseLevel/2); + set DailyQuestBonus, DailyQuestBonus + @bonus; + message strcharinfo(0), "You feel a temporary rush of power and zest for action. " + @bonus + " daily bonus gained." ; + set BOSS_POINTS, BOSS_POINTS + 50; + message strcharinfo(0), "You gain 50 Boss Points giving you a total of " + BOSS_POINTS + "."; + goto L_End; + +L_End: + set @bonus, 0; + set @minlevel, 0; + set @RAZHA_SOUL_REQ, 0; + set @RAZHA_ROTTEN_RAGS_REQ, 0; + set @RAZHA_UNDEAD_EYE_REQ, 0; + set @RAZHA_UNDEAD_EAR_REQ, 0; + end; + +OnInit: + setarray $@CRYPT_FIGHT2_MESSAGES$, + "General Razha : Haha, Thank you mortal. You have released me from my prison. To show my graditude you can die swiftly at my hands and become part of my undead army. MUhahahahaha! Minions, Dispose of these Adventurers!", + "General Razha : Ha, Looks like your tougher then I thought.", + "General Razha : and here I thought I wasn't going to enjoy this.", + "General Razha : More of them are coming!", + "General Razha : Minions! Kill them already!", + "General Razha : *facepalm* I knew I should have hired better help.", + "General Razha : Well at least you will make a good addition to my army.", + "General Razha : To the Abyss with you already!", + "General Razha : How about you try a different approach and kill them already!", + "General Razha : Minions! Last chance or it's back to being part of an ossuary for you!", + "General Razha : Looks like if you want something done right you have to do it yourself.", + "General Razha : Charge!."; + end; +} diff --git a/world/map/npc/027-7/general_razha_exitdoor.txt b/world/map/npc/027-7/general_razha_exitdoor.txt new file mode 100644 index 00000000..97468895 --- /dev/null +++ b/world/map/npc/027-7/general_razha_exitdoor.txt @@ -0,0 +1,14 @@ +// Mini-Boss +// General Razha + +027-7.gat,36,61,0|script|#GeneralExit2|35,6,0 +{ + if ($@CRYPT_FIGHT2 != 0) + goto L_Block; + warp "027-4.gat",73,77; + end; + +L_Block: + message strcharinfo(0), "A force field seems to be blocking you from exiting."; + end; +} diff --git a/world/map/npc/027-7/mapflags.txt b/world/map/npc/027-7/mapflags.txt new file mode 100644 index 00000000..012a5cf5 --- /dev/null +++ b/world/map/npc/027-7/mapflags.txt @@ -0,0 +1,2 @@ +027-7.gat|mapflag|nosave|027-4,73,78 +027-7.gat|mapflag|resave|027-4,73,78 |