User:CompleCCity/Walkthrough

=The Black Pits=

General notes

 * Gained gold is not party size dependent (first run of fights – check for repeats!)

OH9310.bcs
IF Delay(5) Global("BPISDEAD","OH9310",0) GlobalLT("T3_B5","GLOBAL",1) OR(2) !HPGT(Player1,1) Allegiance(Player1,EVILBUTBLUE) OR(2) !HPGT(Player2,1) Allegiance(Player2,EVILBUTBLUE) OR(2) !HPGT(Player3,1) Allegiance(Player3,EVILBUTBLUE) OR(2) !HPGT(Player4,1) Allegiance(Player4,EVILBUTBLUE) OR(2) !HPGT(Player5,1) Allegiance(Player5,EVILBUTBLUE) OR(2) !HPGT(Player6,1) Allegiance(Player6,EVILBUTBLUE) THEN RESPONSE #100 SetGlobal("BPISDEAD","OH9310",1) StartMovie("DEATHAND") GoToStartScreen END

IF Delay(5) Global("BPISDEAD","OH9310",0) GlobalGT("T3_B5","GLOBAL",0) !HPGT(Player1,0) !HPGT(Player2,0) !HPGT(Player3,0) !HPGT(Player4,0) !HPGT(Player5,0) !HPGT(Player6,0) THEN RESPONSE #100 SetGlobal("BPISDEAD","OH9310",1) StartMovie("DEATHAND") GoToStartScreen END

IF HPLT(Player1,2) OR(3) StateCheck(Player1,STATE_CHARMED) StateCheck(Player1,STATE_PANIC) StateCheck(Player1,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player1,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player1,MakeUnselectable(5000)) ActionOverride(Player1,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player1,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player2,2) OR(3) StateCheck(Player2,STATE_CHARMED) StateCheck(Player2,STATE_PANIC) StateCheck(Player2,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player2,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player2,MakeUnselectable(5000)) ActionOverride(Player2,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player2,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player3,2) OR(3) StateCheck(Player3,STATE_CHARMED) StateCheck(Player3,STATE_PANIC) StateCheck(Player3,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player3,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player3,MakeUnselectable(5000)) ActionOverride(Player3,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player3,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player4,2) OR(3) StateCheck(Player4,STATE_CHARMED) StateCheck(Player4,STATE_PANIC) StateCheck(Player4,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player4,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player4,MakeUnselectable(5000)) ActionOverride(Player4,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player4,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player5,2) OR(3) StateCheck(Player5,STATE_CHARMED) StateCheck(Player5,STATE_PANIC) StateCheck(Player5,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player5,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player5,MakeUnselectable(5000)) ActionOverride(Player5,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player5,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player6,2) OR(3) StateCheck(Player6,STATE_CHARMED) StateCheck(Player6,STATE_PANIC) StateCheck(Player6,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player6,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player6,MakeUnselectable(5000)) ActionOverride(Player6,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player6,PlayDeadInterruptible(9999)) Continue END

IF Global("BPINTRO","GLOBAL",2) THEN RESPONSE #100 ActionOverride("BPTAVE01",Kill(Myself)) ActionOverride("BPTAVE03",Kill(Myself)) SmallWait(15) ActionOverride("BPTAVE02",Kill(Myself)) SetGlobal("BPINTRO","GLOBAL",3) SetGlobal("T0_B0","GLOBAL",0) SetGlobal("BP_HOSTILE","GLOBAL",5) SetGlobal("START_BATTLE","GLOBAL",5) SetGlobal("BATTLE_COMPLETE","GLOBAL",0) END

IF !Global("T0_B0","GLOBAL",0) OR(3) AreaCheckObject("OH9310","BPTAVE01") // Tavern Patron AreaCheckObject("OH9310","BPTAVE02") // Tavern Bully AreaCheckObject("OH9310","BPTAVE03") // Tavern Bouncer THEN RESPONSE #100 ActionOverride("BPTAVE01",DestroySelf) ActionOverride("BPTAVE02",DestroySelf) ActionOverride("BPTAVE03",DestroySelf) Continue END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("BAELOT_INIT_BATTLE","GLOBAL",0) Global("START_BATTLE","GLOBAL",2) !Global("T3_B5","GLOBAL",1) GlobalGT("BPINTRO","GLOBAL",2) THEN RESPONSE #100 FadeToColor([1.0],0) MoveViewObject("BPBAELOT",INSTANT) // Baeloth StartCutSceneMode Wait(2) ActionOverride("BPBAELOT",FaceObject(Player1)) FadeFromColor([80.0],0) SmallWait(60) EndCutSceneMode ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) SetGlobal("BAELOT_INIT_BATTLE","GLOBAL",1) SetMasterArea("OH9310") MultiPlayerSync END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("START_BATTLE","GLOBAL",2) Global("T3_B5","GLOBAL",1) THEN RESPONSE #100 Wait(2) FadeToColor([1.0],0) FadeFromColor([80.0],0) SetMasterArea("OH9310") SetGlobal("START_BATTLE","GLOBAL",4) MultiPlayerSync END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("START_BATTLE","GLOBAL",3) THEN RESPONSE #100 SetGlobal("START_BATTLE","GLOBAL",4) SetGlobal("BP_HOSTILE","GLOBAL",5) SetGlobal("BATTLE_COMPLETE","GLOBAL",0) PlaySound("EFF_E07") CreateVisualEffectObject("spdimndr","BPBAELOT") // Baeloth Wait(4) Deactivate("BPBAELOT") // Baeloth END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("START_BATTLE","GLOBAL",5) Global("BATTLE_COMPLETE","GLOBAL",0) !AreaCheckAllegiance(ENEMY) THEN RESPONSE #100 SetGlobal("BAELOT_INIT_BATTLE","GLOBAL",0) SetGlobal("BATTLE_COMPLETE","GLOBAL",1) Continue END

IF Global("T0_B1","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 StartCutSceneMode CreateCreature("BPGIBB02",[473.453],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[473.453]) CreateCreature("BPGIBB02",[475.455],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[475.455]) CreateCreature("BPGIBB02",[478.458],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[478.458]) CreateCreature("BPGIBB02",[479.450],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[479.450]) CreateCreature("BPGIBB02",[470.440],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[470.440]) CreateCreature("BPGIBB02",[471.445],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[471.445]) CreateCreature("BPGIBB02",[473.450],SSW) // Diseased Gibberling CreateVisualEffect("spsdimpa",[473.450]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) SetGlobal("T0_B1","GLOBAL",2) EndCutSceneMode END

IF Global("T1_B1","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 StartCutSceneMode CreateCreature("BPBORT",[473.453],SSW) // Bort CreateVisualEffect("spsdimpa",[473.453]) CreateCreature("BPAPPLE",[455.417],SSW) // Apple CreateVisualEffect("spsdimpa",[455.417]) CreateCreature("BPFARGUS",[392.441],SSW) // Fargus CreateVisualEffect("spsdimpa",[392.441]) CreateCreature("BPREGINA",[519.403],SSW) // Reginald CreateVisualEffect("spsdimpa",[519.403]) CreateCreature("BPTIM",[411.375],SSW) // Tim CreateVisualEffect("spsdimpa",[411.375]) CreateCreature("BPERASMU",[461.362],SSW) // Erasmus CreateVisualEffect("spsdimpa",[461.362]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) SetGlobal("T1_B1","GLOBAL",2) SetGlobal("BLACK_PITS","GLOBAL",2) Wait(1) EndCutSceneMode RESPONSE #50 StartCutSceneMode CreateCreature("BPBORT",[733.377],SSW) // Bort CreateVisualEffect("spsdimpa",[733.377]) CreateCreature("BPAPPLE",[701.327],SSW) // Apple CreateVisualEffect("spsdimpa",[701.327]) CreateCreature("BPFARGUS",[646.353],SSW) // Fargus CreateVisualEffect("spsdimpa",[646.353]) CreateCreature("BPREGINA",[760.330],SSW) // Reginald CreateVisualEffect("spsdimpa",[760.330]) CreateCreature("BPTIM",[726.283],SSW) // Tim CreateVisualEffect("spsdimpa",[726.283]) CreateCreature("BPERASMU",[647.290],SSW) // Erasmus CreateVisualEffect("spsdimpa",[647.290]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) SetGlobal("T1_B1","GLOBAL",2) SetGlobal("BLACK_PITS","GLOBAL",2) Wait(1) EndCutSceneMode END

IF Global("T1_B2","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 StartCutSceneMode SetGlobal("T1_B2","GLOBAL",2) CreateCreature("BPHBAR1",[320.636],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[320.636]) CreateCreature("BPHBAR1",[570.517],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[570.517]) CreateCreature("BPHBAR1",[925.365],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[925.365]) CreateCreature("BPHBWR1",[387.648],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[387.648]) CreateCreature("BPHBWR1",[611.549],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[611.549]) CreateCreature("BPHBWR1",[869.393],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[869.393]) CreateCreature("BPHBWZ1",[297.679],SSW) // Redwater Wizard CreateVisualEffect("spsdimpa",[297.679]) CreateCreature("BPHBWZ1",[833.347],SSW) // Redwater Wizard CreateVisualEffect("spsdimpa",[833.347]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode RESPONSE #50 StartCutSceneMode SetGlobal("T1_B2","GLOBAL",2) CreateCreature("BPHBAR1",[392.462],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[392.462]) CreateCreature("BPHBAR1",[490.414],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[490.414]) CreateCreature("BPHBAR1",[550.366],SSW) // Redwater Archer CreateVisualEffect("spsdimpa",[550.366]) CreateCreature("BPHBWR1",[680.389],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[680.389]) CreateCreature("BPHBWR1",[617.557],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[617.557]) CreateCreature("BPHBWR1",[348.548],SSW) // Redwater Warrior CreateVisualEffect("spsdimpa",[348.548]) CreateCreature("BPHBWZ1",[314.411],SSW) // Redwater Wizard CreateVisualEffect("spsdimpa",[314.411]) CreateCreature("BPHBWZ1",[536.318],SSW) // Redwater Wizard CreateVisualEffect("spsdimpa",[536.318]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode END

IF Global("T1_B4","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 SetGlobal("T1_B4","GLOBAL",2) StartCutSceneMode CreateCreature("BPOGRE01",[843.494],SSW) // Ogre CreateVisualEffect("spsdimpa",[843.494]) CreateCreature("BPOGRE01",[792.458],SSW) // Ogre CreateVisualEffect("spsdimpa",[792.458]) CreateCreature("BPOGRE01",[839.425],SSW) // Ogre CreateVisualEffect("spsdimpa",[839.425]) CreateCreature("BPOGRE01",[873.425],SSW) // Ogre CreateVisualEffect("spsdimpa",[873.425]) CreateCreature("BPOGRE01",[442.629],SSW) // Ogre CreateVisualEffect("spsdimpa",[442.629]) CreateCreature("BPOGRE01",[394.651],SSW) // Ogre CreateVisualEffect("spsdimpa",[394.651]) CreateCreature("BPOGRE01",[436.686],SSW) // Ogre CreateVisualEffect("spsdimpa",[436.686]) CreateCreature("BPOGRE01",[488.668],SSW) // Ogre CreateVisualEffect("spsdimpa",[488.668]) CreateCreature("BPOGMA01",[538.450],SSW) // Ogre Mage CreateVisualEffect("spsdimpa",[538.450]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode ActionOverride("BPOGMA01",ApplySpell(Myself,WIZARD_MIRROR_IMAGE)) // SPWI212.SPL (Mirror Image) ActionOverride("BPOGMA01",ApplySpell(Myself,WIZARD_BLUR)) // SPWI201.SPL (Blur) RESPONSE #50 SetGlobal("T1_B4","GLOBAL",2) StartCutSceneMode CreateCreature("BPOGRE01",[332.656],SSW) // Ogre CreateVisualEffect("spsdimpa",[332.656]) CreateCreature("BPOGRE01",[360.524],SSW) // Ogre CreateVisualEffect("spsdimpa",[360.524]) CreateCreature("BPOGRE01",[519.591],SSW) // Ogre CreateVisualEffect("spsdimpa",[519.591]) CreateCreature("BPOGRE01",[698.505],SSW) // Ogre CreateVisualEffect("spsdimpa",[698.505]) CreateCreature("BPOGRE01",[695.366],SSW) // Ogre CreateVisualEffect("spsdimpa",[695.366]) CreateCreature("BPOGRE01",[856.411],SSW) // Ogre CreateVisualEffect("spsdimpa",[856.411]) CreateCreature("BPOGRE01",[938.512],SSW) // Ogre CreateVisualEffect("spsdimpa",[938.512]) CreateCreature("BPOGRE01",[538.739],SSW) // Ogre CreateVisualEffect("spsdimpa",[538.739]) CreateCreature("BPOGMA01",[538.450],SSW) // Ogre Mage CreateVisualEffect("spsdimpa",[538.450]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode ActionOverride("BPOGMA01",ApplySpell(Myself,WIZARD_MIRROR_IMAGE)) // SPWI212.SPL (Mirror Image) ActionOverride("BPOGMA01",ApplySpell(Myself,WIZARD_BLUR)) // SPWI201.SPL (Blur) END

IF Global("T2_B4","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T2_B4","GLOBAL",2) StartCutSceneMode CreateCreature("BPORTAL1",[341.372],SSW) // Mysterious Portal CreateVisualEffect("spsdimpa",[341.372]) CreateCreature("BPORTAL1",[219.576],SSW) // Mysterious Portal CreateVisualEffect("spsdimpa",[219.576]) CreateCreature("BPORTAL1",[563.758],SSW) // Mysterious Portal CreateVisualEffect("spsdimpa",[563.758]) CreateCreature("BPORTAL1",[704.281],SSW) // Mysterious Portal CreateVisualEffect("spsdimpa",[704.281]) CreateCreature("BPORTAL1",[1089.499],SSW) // Mysterious Portal CreateVisualEffect("spsdimpa",[1089.499]) CreateCreature("BPOGMA01",[538.450],SSW) // Ogre Mage CreateVisualEffect("spsdimpa",[538.450]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode END

IF Global("T3_B2","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T3_B2","GLOBAL",2) StartCutSceneMode CreateCreature("BPCLAY",[341.372],SSW) // Clay Golem CreateVisualEffect("spsdimpa",[341.372]) CreateCreature("BPCLAY",[219.576],SSW) // Clay Golem CreateVisualEffect("spsdimpa",[219.576]) CreateCreature("BPCLAY",[563.758],SSW) // Clay Golem CreateVisualEffect("spsdimpa",[563.758]) CreateCreature("BPCLAY",[704.281],SSW) // Clay Golem CreateVisualEffect("spsdimpa",[704.281]) CreateCreature("BPCLAY",[1089.499],SSW) // Clay Golem CreateVisualEffect("spsdimpa",[1089.499]) CreateCreature("BPSHAMB",[538.450],SSW) // Shambling Mound CreateVisualEffect("spsdimpa",[538.450]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode END

IF Global("T3_B4","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T3_B4","GLOBAL",2) StartCutSceneMode CreateCreature("BPGIAFIR",[538.450],SSW) // Hogarl CreateVisualEffect("spsdimpa",[538.450]) CreateCreature("BPELFIR1",[271.439],SSE) // Fire Elemental CreateVisualEffect("spsdimpa",[271.439]) CreateCreature("BPELFIR1",[826.294],SSE) // Fire Elemental CreateVisualEffect("spsdimpa",[826.294]) CreateCreature("BPELFIR1",[340.568],SSE) // Fire Elemental CreateVisualEffect("spsdimpa",[340.568]) CreateCreature("BPELFIR1",[547.739],SSE) // Fire Elemental CreateVisualEffect("spsdimpa",[547.739]) PlaySound("EFF_M31C") SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode END

IF Global("LAST_BATTLE","GLOBAL",303) Global("T3_B4","GLOBAL",2) Global("BATTLE_COMPLETE","GLOBAL",1) THEN RESPONSE #100 SetGlobal("LAST_BATTLE","GLOBAL",304) Continue END

IF Global("T3_B5","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T3_B5","GLOBAL",2) StartCutSceneMode ActionOverride(Player1,DestroyItem("BPRNG1")) // Slave Ring ActionOverride(Player2,DestroyItem("BPRNG1")) // Slave Ring ActionOverride(Player3,DestroyItem("BPRNG1")) // Slave Ring ActionOverride(Player4,DestroyItem("BPRNG1")) // Slave Ring ActionOverride(Player5,DestroyItem("BPRNG1")) // Slave Ring ActionOverride(Player6,DestroyItem("BPRNG1")) // Slave Ring SetGlobal("BPNAJIM_DIALOG","GLOBAL",30) ApplySpell("BPBAELOT",RESTORE_FULL_HEALTH) // Baeloth CreateCreatureEffect("BPTHARDE","",[717.437],S) // Thardek CreateCreatureEffect("BPELAN","",[525.591],S) // Elan Garaq ActionOverride("BPBAELOT",FaceObject(Player1)) ActionOverride("BPTHARDE",FaceObject(Player1)) ActionOverride("BPELAN",FaceObject(Player1)) ActionOverride("BPBAELOT",ChangeAIScript("BPFINAL",OVERRIDE)) ActionOverride("BPBAELOT",ChangeAIScript("BPBAELOT",CLASS)) ActionOverride("BPELAN",ChangeAIScript("BPSIGHT",OVERRIDE)) ActionOverride("BPELAN",ChangeAIScript("ohgn01",CLASS)) ActionOverride("BPELAN",ChangeAIScript("OHMADD01",RACE)) ActionOverride("BPTHARDE",ChangeAIScript("BPSIGHT",OVERRIDE)) ActionOverride("BPBAELOT",Enemy) ActionOverride("BPTHARDE",Enemy) ActionOverride("BPELAN",Enemy) ActionOverride("BPGHLOUR",Enemy) SetGlobal("START_BATTLE","GLOBAL",5) RealSetGlobalTimer("SUMMON_HELP","OH9310",1) Wait(2) EndCutSceneMode END

IF Global("T3_B5","GLOBAL",2) !Global("BAELOTH_DEFEATED","GLOBAL",1) !Global("SUMMONED_BEHOLDER","OH9310",1) HPGT("BPBAELOT",1) // Baeloth ObjectActionListEmpty("BPBAELOT") // Baeloth Dead("BPTHARDE") // Thardek Dead("BPELAN") // Elan Garaq THEN RESPONSE #100 SetGlobal("SUMMONED_BEHOLDER","OH9310",1) StartCutSceneMode ClearAllActions ActionOverride("BPBAELOT",DisplayStringHead(Myself,29938)) // Enough! Ghlouralk, I shall give you anything you desire if you kill these insolent fools! Wait(2) CreateVisualEffect("spdimndr",[346.387]) PlaySound("EFF_M13") Wait(4) CreateCreatureEffect("BPGHLOUR","",[346.387],S) // Ghlouralk Wait(2) ActionOverride("BPGHLOUR",DisplayStringHead(Myself,29939)) // Anything, mageling? As you wish. ActionOverride("BPGHLOUR",ChangeAIScript("BPSIGHT",OVERRIDE)) ActionOverride("BPGHLOUR",ChangeAIScript("BPBEHOLD",RACE)) ActionOverride("BPGHLOUR",Enemy) Wait(5) EndCutSceneMode SetGlobalTimer("SUMMON_HELP","OH9310",FIVE_ROUNDS) END

IF Global("T3_B5","GLOBAL",2) !Global("BAELOTH_DEFEATED","GLOBAL",1) GlobalTimerExpired("SUMMON_HELP","OH9310") Dead("BPGHLOUR") // Ghlouralk Dead("BPTHARDE") // Thardek Dead("BPELAN") // Elan Garaq !AreaCheckObject("OH9310","BPGOFL01") // Flesh Golem HPGT("BPBAELOT",1) // Baeloth THEN RESPONSE #80 Wait(5) ActionOverride("BPBAELOT",DisplayStringHead(Myself,29940)) // Assist me, you worthless automatons! SetGlobalTimer("SUMMON_HELP","OH9310",TEN_ROUNDS) CreateVisualEffect("spdimndr",[717.437]) CreateVisualEffect("spdimndr",[525.591]) PlaySound("EFF_M13") Wait(4) CreateCreatureEffect("BPGOFL01","",[717.437],S) // Flesh Golem CreateCreatureEffect("BPGOFL01","",[525.591],S) // Flesh Golem RESPONSE #20 Continue END

IF Global("LAST_BATTLE","GLOBAL",304) Global("T3_B5","GLOBAL",2) Global("BAELOTH_DEFEATED","GLOBAL",1) THEN RESPONSE #100 SetGlobal("LAST_BATTLE","GLOBAL",305) Continue END

IF Global("BAELOTH_DOWN","OH9310",1) GlobalLT("BAELOTH_DEFEATED","GLOBAL",1) Dead("BPTHARDE") // Thardek Dead("BPELAN") // Elan Garaq !AreaCheckObject("OH9310","BPGOFL01") // Flesh Golem OR(2) Dead("BPGHLOUR") // Ghlouralk !AreaCheckObject("OH9310","BPGHLOUR") // Ghlouralk THEN RESPONSE #100 DisplayStringHead("BPBAELOT",29213) // No... My captives triumph over me? Me? Baeloth the Entertainer? This is all a terrible cliché, unworthy of... my final enter... entertain... SetGlobal("BAELOTH_DEFEATED","GLOBAL",1) SetGlobal("TIER","GLOBAL",4) Wait(10) Kill("BPBAELOT") // Baeloth Wait(1) DisplayStringHead(Player1,29941) // You feel a sense of relief as you are released from the grip of Baeloth's geas. ApplySpell(Player1,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) ApplySpell(Player2,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) ApplySpell(Player3,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) ApplySpell(Player4,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) ApplySpell(Player5,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) ApplySpell(Player6,FORCE_DISPEL_MAGIC) // SPIN866.SPL (Dispel Magic) CreateVisualEffect("spdimndr",[592.517]) PlaySound("EFF_M13") SmallWait(45) MoveGlobal("OH9310","BPBRENDA",[226.425]) // Brendak MoveGlobal("OH9310","BPMAGDA",[248.403]) // Magda MoveGlobal("OH9310","BPBELLOW",[371.335]) // Bellowgulp Bluefingers MoveGlobal("OH9310","BPXITHIS",[293.373]) // Xithiss MoveGlobal("OH9310","BPDEVLIN",[339.355]) // Devlin Taralon ActionOverride("BPBRENDA",FaceObject(Player1)) ActionOverride("BPMAGDA",FaceObject(Player1)) ActionOverride("BPBELLOW",FaceObject(Player1)) ActionOverride("BPXITHIS",FaceObject(Player1)) ActionOverride("BPDEVLIN",FaceObject(Player1)) Activate("BPNAJIM") // Najim ActionOverride("BPNAJIM",StartDialogNoSet(Player1)) END

IF Global("BPNAJIM_DIALOG","GLOBAL",40) GlobalLT("BPMAGDA_DIALOG","GLOBAL",40) THEN RESPONSE #100 StartCutSceneMode ActionOverride(Player1,MoveToPoint([416.378])) ActionOverride(Player2,MoveToPoint([377.414])) ActionOverride(Player3,MoveToPoint([467.410])) ActionOverride(Player4,MoveToPoint([424.444])) ActionOverride(Player5,MoveToPoint([502.433])) ActionOverride(Player6,MoveToPoint([458.468])) Wait(5) ActionOverride("BPMAGDA",StartDialogNoSet(Player1)) END

IF GlobalTimerNotExpired("DINGUER_TIMER","OH9310") RandomNum(8,1) Global("NAJIM_SHOUT1","OH9310",0) THEN RESPONSE #100 SetGlobal("NAJIM_SHOUT1","OH9310",1) DisplayStringHead("BPNAJIM",29942) // Come NOW, mortal. I will not remain here any longer. Continue END

IF GlobalTimerExpired("DINGUER_TIMER","OH9310") !Global("DINGUER_CONFRONT","GLOBAL",1) THEN RESPONSE #100 ClearAllActions StartCutSceneMode MoveViewObject(Player1,INSTANT) SetGlobal("DINGUER_CONFRONT","GLOBAL",1) CreateVisualEffect("spdimndr",[323.400]) PlaySound("EFF_M13") Wait(4) MoveGlobal("OH9310","BPDINGUE",[323.400]) // Dinguer the Mad SmallWait(15) ActionOverride("BPDINGUE",ChangeAIScript("ohgn01",CLASS)) ActionOverride("BPDINGUE",ChangeAIScript("OHMADD01",RACE)) ActionOverride("BPDINGUE",StartDialogNoSet(Player1)) END

IF Dead("BPDINGUE") // Dinguer the Mad !Global("DINGUER_IS_DEAD","GLOBAL",1) THEN RESPONSE #100 SetGlobalTimer("DINGUER_DEAD","OH9310",1) SetGlobal("DINGUER_IS_DEAD","GLOBAL",1) END

IF GlobalTimerExpired("DINGUER_DEAD","OH9310") !Global("DUERGAR_SPAWN","GLOBAL",1) THEN RESPONSE #100 SetGlobalTimer("DUERGAR_UPSET","OH9310",FIVE_ROUNDS) SetGlobal("DUERGAR_SPAWN","GLOBAL",1) CreateCreatureEffect("BPDUER01","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER02","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER03","",[951.885],S) // Duergar Warrior ActionOverride("BPDUER01",MoveToPoint([1084.454])) ActionOverride("BPDUER02",MoveToPoint([691.787])) ActionOverride("BPDUER03",MoveToPoint([865.748])) Wait(5) CreateCreatureEffect("BPDUER01","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER02","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER03","",[951.885],S) // Duergar Warrior ActionOverride("BPDUER01",MoveToPoint([512.773])) ActionOverride("BPDUER02",MoveToPoint([1130.523])) ActionOverride("BPDUER03",MoveToPoint([1023.667])) SetGlobalTimer("DUERGAR_REINFORCE","OH9310",FOUR_MINUTES) END

IF Global("BAELOTH_DEFEATED","GLOBAL",1) Global("DINGUER_IS_DEAD","GLOBAL",1) Global("PITSENDTIMER","OH9310",0) THEN RESPONSE #100 SetGlobal("PITSENDTIMER","OH9310",1) SetGlobalTimer("BP_ENDTIMER","OH9310",1) END

IF Global("BAELOTH_DEFEATED","GLOBAL",1) Global("DINGUER_IS_DEAD","GLOBAL",1) IsActive("BPNAJIM") // Najim GlobalTimerExpired("BP_ENDTIMER","OH9310") THEN RESPONSE #34 DisplayStringHead("BPNAJIM",29942) // Come NOW, mortal. I will not remain here any longer. SetGlobalTimer("BP_ENDTIMER","OH9310",9) Continue RESPONSE #33 DisplayStringHead("BPMAGDA",29943) // Leave, ! You cannot hope to defeat all of the duergar. SetGlobalTimer("BP_ENDTIMER","OH9310",9) Continue RESPONSE #33 DisplayStringHead("BPBRENDA",29944) // Make your escape, you fool! My brethren will not suffer the presence of an outsider any longer! SetGlobalTimer("BP_ENDTIMER","OH9310",9) Continue END

IF GlobalTimerExpired("DUERGAR_UPSET","OH9310") IsActive("BPNAJIM") // Najim THEN RESPONSE #100 SetGlobal("BPNAJIM_DIALOG","GLOBAL",50) ActionOverride("BPNAJIM",StartDialogInterrupt("BPNAJIM",Player1)) END

IF GlobalTimerExpired("DUERGAR_UPSET","OH9310") AreaCheckObject("OH9310","BPMAGDA") // Magda AreaCheckObject("OH9310","BPBRENDA") // Brendak IsActive("BPMAGDA") // Magda IsActive("BPBRENDA") // Brendak THEN RESPONSE #100 CreateVisualEffectObject("spdimndr","BPMAGDA") // Magda CreateVisualEffectObject("spdimndr","BPBRENDA") // Brendak PlaySound("EFF_M13") Wait(4) Deactivate("BPMAGDA") // Magda Deactivate("BPBRENDA") // Brendak END

IF GlobalTimerExpired("DUERGAR_REINFORCE","OH9310") THEN RESPONSE #100 SetGlobalTimer("DUERGAR_REINFORCE","OH9310",FOUR_MINUTES) CreateCreatureEffect("BPDUER01","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER02","",[951.885],S) // Duergar Warrior CreateCreatureEffect("BPDUER03","",[951.885],S) // Duergar Warrior END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("BATTLE_COMPLETE","GLOBAL",1) !Global("T0_B0","GLOBAL",0) !GlobalGT("T3_B5","GLOBAL",0) OR(6) StateCheck(Player1,STATE_REALLY_DEAD) StateCheck(Player2,STATE_REALLY_DEAD) StateCheck(Player3,STATE_REALLY_DEAD) StateCheck(Player4,STATE_REALLY_DEAD) StateCheck(Player5,STATE_REALLY_DEAD) StateCheck(Player6,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",2) SetGlobal("BP_AUTOSAVE","GLOBAL",0) LockScroll MoveViewPoint([627.534],INSTANT) CreateVisualEffect("spdimndr",[627.534]) PlaySound("EFF_M13") SmallWait(65) Activate("BPBAELOT") // Baeloth SmallWait(15) DisplayStringHead("BPBAELOT",29945) // No sleeping on the job! And don't forget to collect your equipment. Anything left in the arena will be fed to the otyugh. ActionOverride("BPBAELOT",SetSequence(SEQ_CAST)) SmallWait(15) PlaySound("EFF_M07") CreateVisualEffectObject("spbaserd","BPBAELOT") // Baeloth MultiPlayerSync UnlockScroll END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player1,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player1,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player2,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player2,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player3,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player3,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player4,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player4,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player5,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player5,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player6,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player6,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("BATTLE_COMPLETE","GLOBAL",1) Global("T0_B0","GLOBAL",0) !GlobalGT("T3_B5","GLOBAL",0) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",2) SetGlobal("BP_AUTOSAVE","GLOBAL",1) SetGlobal("T0_B0","GLOBAL",-1) ClearAllActions SetCutSceneLite(TRUE) MoveViewPoint([627.534],INSTANT) CreateVisualEffect("spdimndr",[627.534]) PlaySound("EFF_M13") Wait(2) CreateCreatureEffect("BPNAJIM","",[627.534],S) // Najim ActionOverride("BPNAJIM",DialogInterrupt(FALSE)) Wait(3) DisplayStringHead("BPNAJIM",29946) // You have qualified. Wait(1) ActionOverride(Player1,CreateVisualEffectObject("spdimndr",Player1)) PlaySound("EFF_M13") ActionOverride(Player2,CreateVisualEffectObject("spdimndr",Player2)) ActionOverride(Player3,CreateVisualEffectObject("spdimndr",Player3)) ActionOverride(Player4,CreateVisualEffectObject("spdimndr",Player4)) ActionOverride(Player5,CreateVisualEffectObject("spdimndr",Player5)) ActionOverride(Player6,CreateVisualEffectObject("spdimndr",Player6)) ActionOverride(Player6,CreateVisualEffectObject("spdimndr",Player6)) CreateVisualEffect("spdimndr",[627.534]) FadeToColor([60.0],0) SmallWait(60) ActionOverride("BPNAJIM",DialogInterrupt(TRUE)) Deactivate("BPNAJIM") // Najim ActionOverride(Player1,LeaveAreaLUAPanic("OH9360","",[726.585],N)) ActionOverride(Player1,LeaveAreaLUA("OH9360","",[726.585],N)) ActionOverride(Player2,LeaveAreaLUA("OH9360","",[818.522],N)) ActionOverride(Player3,LeaveAreaLUA("OH9360","",[933.549],N)) ActionOverride(Player4,LeaveAreaLUA("OH9360","",[761.678],N)) ActionOverride(Player5,LeaveAreaLUA("OH9360","",[894.693],N)) ActionOverride(Player6,LeaveAreaLUA("OH9360","",[971.609],N)) MultiPlayerSync END

IF OR(6) AreaCheckObject("OH9310",Player1) AreaCheckObject("OH9310",Player2) AreaCheckObject("OH9310",Player3) AreaCheckObject("OH9310",Player4) AreaCheckObject("OH9310",Player5) AreaCheckObject("OH9310",Player6) Global("BATTLE_COMPLETE","GLOBAL",1) !Global("T0_B0","GLOBAL",0) !GlobalGT("T3_B5","GLOBAL",0) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",2) SetGlobal("BP_AUTOSAVE","GLOBAL",1) SetGlobal("BAELOTH_FACING","GLOBAL",1) ClearAllActions StartCutSceneMode LockScroll MoveViewPoint([627.534],INSTANT) CreateVisualEffect("spdimndr",[627.534]) PlaySound("EFF_M13") SmallWait(65) Activate("BPBAELOT") // Baeloth MultiPlayerSync ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) SmallWait(5) END

OH9350.bcs
IF Delay(5) Global("BPISDEAD","OH9350",0) OR(2) !HPGT(Player1,1) Allegiance(Player1,EVILBUTBLUE) OR(2) !HPGT(Player2,1) Allegiance(Player2,EVILBUTBLUE) OR(2) !HPGT(Player3,1) Allegiance(Player3,EVILBUTBLUE) OR(2) !HPGT(Player4,1) Allegiance(Player4,EVILBUTBLUE) OR(2) !HPGT(Player5,1) Allegiance(Player5,EVILBUTBLUE) OR(2) !HPGT(Player6,1) Allegiance(Player6,EVILBUTBLUE) THEN RESPONSE #100 SetGlobal("BPISDEAD","OH9350",1) StartMovie("DEATHAND") GoToStartScreen END

IF HPLT(Player1,2) OR(3) StateCheck(Player1,STATE_CHARMED) StateCheck(Player1,STATE_PANIC) StateCheck(Player1,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player1,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player1,MakeUnselectable(5000)) ActionOverride(Player1,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player1,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player2,2) OR(3) StateCheck(Player2,STATE_CHARMED) StateCheck(Player2,STATE_PANIC) StateCheck(Player2,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player2,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player2,MakeUnselectable(5000)) ActionOverride(Player2,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player2,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player3,2) OR(3) StateCheck(Player3,STATE_CHARMED) StateCheck(Player3,STATE_PANIC) StateCheck(Player3,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player3,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player3,MakeUnselectable(5000)) ActionOverride(Player3,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player3,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player4,2) OR(3) StateCheck(Player4,STATE_CHARMED) StateCheck(Player4,STATE_PANIC) StateCheck(Player4,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player4,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player4,MakeUnselectable(5000)) ActionOverride(Player4,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player4,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player5,2) OR(3) StateCheck(Player5,STATE_CHARMED) StateCheck(Player5,STATE_PANIC) StateCheck(Player5,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player5,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player5,MakeUnselectable(5000)) ActionOverride(Player5,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player5,PlayDeadInterruptible(9999)) Continue END

IF HPLT(Player6,2) OR(3) StateCheck(Player6,STATE_CHARMED) StateCheck(Player6,STATE_PANIC) StateCheck(Player6,STATE_BERSERK) THEN RESPONSE #100 ActionOverride(Player6,ApplySpell(Myself,FORCE_DISPEL_MAGIC)) // SPIN866.SPL (Dispel Magic) ActionOverride(Player6,MakeUnselectable(5000)) ActionOverride(Player6,ChangeEnemyAlly(Myself,NOTGOOD)) ActionOverride(Player6,PlayDeadInterruptible(9999)) Continue END

IF Global("OH9350_ENTERED","OH9350",0) THEN RESPONSE #100 Explore SetGlobal("OH9350_ENTERED","OH9350",1) CreateCreatureEffect("BPREFF01","",[603.538],S) // Referee - No such index CreateCreatureEffect("BPREFF01","",[443.391],S) // Referee - No such index CreateCreatureEffect("BPREFF01","",[382.634],S) // Referee - No such index CreateCreatureEffect("BPREFF01","",[805.644],S) // Referee - No such index CreateCreatureEffect("BPREFF01","",[802.412],S) // Referee - No such index CreateCreatureEffect("BPNAJIM","",[616.368],S) // Najim Deactivate("BPNAJIM") // Najim TriggerActivation("GREASETRAP",FALSE) TriggerActivation("ARROWTRAP1",FALSE) TriggerActivation("ARROWTRAP2",FALSE) TriggerActivation("ARROWTRAP3",FALSE) TriggerActivation("ARROWTRAP4",FALSE) TriggerActivation("ARROWTRAP5",FALSE) TriggerActivation("ARROWTRAP6",FALSE) TriggerActivation("STINKYTRAP",FALSE) TriggerActivation("JERKTRAP",FALSE) Continue END

IF Global("BAELOT_INIT_BATTLE","GLOBAL",0) Global("START_BATTLE","GLOBAL",2) OR(6) AreaCheckObject("OH9350",Player1) AreaCheckObject("OH9350",Player2) AreaCheckObject("OH9350",Player3) AreaCheckObject("OH9350",Player4) AreaCheckObject("OH9350",Player5) AreaCheckObject("OH9350",Player6) THEN RESPONSE #100 FadeToColor([1.0],0) MoveViewObject("BPBAELOT",INSTANT) // Baeloth StartCutSceneMode Wait(2) ActionOverride("BPBAELOT",FaceObject(Player1)) FadeFromColor([80.0],0) SmallWait(60) EndCutSceneMode ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) SetGlobal("BAELOT_INIT_BATTLE","GLOBAL",1) SetMasterArea("OH9350") MultiPlayerSync END

IF OR(6) AreaCheckObject("OH9350",Player1) AreaCheckObject("OH9350",Player2) AreaCheckObject("OH9350",Player3) AreaCheckObject("OH9350",Player4) AreaCheckObject("OH9350",Player5) AreaCheckObject("OH9350",Player6) Global("START_BATTLE","GLOBAL",3) THEN RESPONSE #100 SetGlobal("START_BATTLE","GLOBAL",4) SetGlobal("BP_HOSTILE","GLOBAL",5) SetGlobal("BATTLE_COMPLETE","GLOBAL",0) PlaySound("EFF_E07") CreateVisualEffectObject("spdimndr","BPBAELOT") // Baeloth Wait(4) Deactivate("BPBAELOT") // Baeloth END

IF OR(6) AreaCheckObject("OH9350",Player1) AreaCheckObject("OH9350",Player2) AreaCheckObject("OH9350",Player3) AreaCheckObject("OH9350",Player4) AreaCheckObject("OH9350",Player5) AreaCheckObject("OH9350",Player6) Global("START_BATTLE","GLOBAL",5) Global("BATTLE_COMPLETE","GLOBAL",0) !AreaCheckAllegiance(ENEMY) THEN RESPONSE #100 SetGlobal("BAELOT_INIT_BATTLE","GLOBAL",0) SetGlobal("BATTLE_COMPLETE","GLOBAL",1) Continue END

IF Global("T0_B2","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 StartCutSceneMode CreateCreature("BPGIBB03",[473.453],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[473.453]) CreateCreature("BPGIBB03",[475.455],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[475.455]) CreateCreature("BPGIBB03",[478.458],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[478.458]) CreateCreature("BPGIBB03",[479.450],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[479.450]) CreateCreature("BPGIBB03",[470.440],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[470.440]) CreateCreature("BPGIBB03",[471.445],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[471.445]) CreateCreature("BPGIBB03",[473.450],SSW) // Healthy Gibberling CreateVisualEffect("spsdimpa",[473.450]) PlaySound("EFF_M31C") SetGlobal("T0_B2","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode END

IF Global("T1_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 StartCutSceneMode SetGlobalTimer("SKEL_SPAWN","OH9350",THREE_MINUTES) CreateCreature("BPLLYRK",[233.501],SSW) // Llyrk CreateVisualEffect("spsdimpa",[233.501]) CreateCreature("BPSKEL",[137.654],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[137.654]) CreateCreature("BPSKEL",[233.618],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[233.618]) CreateCreature("BPSKEL",[311.629],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[311.629]) CreateCreature("BPSKEL",[360.667],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[360.667]) CreateCreature("BPSKEL",[344.736],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[344.736]) CreateCreature("BPSKEL",[281.763],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[281.763]) CreateCreature("BPSKEL",[297.666],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[297.666]) PlaySound("EFF_M31C") SetGlobal("T1_B3","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) ActionOverride("BPLLYRK",Enemy) Wait(1) EndCutSceneMode ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_STONE_SKIN)) // SPWI408.SPL (Stoneskin) ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_SHIELD)) // SPWI114.SPL (Shield) ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_MINOR_SPELL_DEFLECTION)) // SPWI318.SPL (Minor Spell Deflection) RESPONSE #50 StartCutSceneMode SetGlobalTimer("SKEL_SPAWN","OH9350",TWO_MINUTES) CreateCreature("BPLLYRK",[937.320],SSW) // Llyrk CreateVisualEffect("spsdimpa",[937.320]) CreateCreature("BPSKEL",[842.307],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[842.307]) CreateCreature("BPSKEL",[841.353],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[841.353]) CreateCreature("BPSKEL",[904.400],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[904.400]) CreateCreature("BPSKEL",[987.405],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[987.405]) CreateCreature("BPSKEL",[886.259],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[886.259]) CreateCreature("BPSKEL",[1032.354],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[1032.354]) CreateCreature("BPSKEL",[887.354],SSW) // Crumbling Skeleton CreateVisualEffect("spsdimpa",[887.354]) PlaySound("EFF_M31C") SetGlobal("T1_B3","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) ActionOverride("BPLLYRK",Enemy) Wait(1) EndCutSceneMode ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_STONE_SKIN)) // SPWI408.SPL (Stoneskin) ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_SHIELD)) // SPWI114.SPL (Shield) ActionOverride("BPLLYRK",ApplySpell(Myself,WIZARD_MINOR_SPELL_DEFLECTION)) // SPWI318.SPL (Minor Spell Deflection) END

IF Global("T1_B5","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #60 StartCutSceneMode CreateCreature("BPOWY2",[681.571],SSW) // Owyn CreateVisualEffect("spsdimpa",[681.571]) CreateCreature("BPKRANC2",[708.536],SSW) // Krancor the Old CreateVisualEffect("spsdimpa",[708.536]) CreateCreature("BPCIRI2",[661.213],SSW) // Ciril CreateVisualEffect("spsdimpa",[661.213]) CreateCreature("BPWYLLI2",[683.434],SSW) // Wylliam Brand CreateVisualEffect("spsdimpa",[683.434]) CreateCreature("BPSAMJO2",[588.481],SSW) // SamJohn BrightWalker CreateVisualEffect("spsdimpa",[588.481]) CreateCreature("BPCARLO2",[482.524],SSW) // Carlos Nuez CreateVisualEffect("spsdimpa",[482.524]) PlaySound("EFF_M31C") SetGlobal("T1_B5","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MIRROR_IMAGE)) // SPWI212.SPL (Mirror Image) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_SHIELD)) // SPWI114.SPL (Shield) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MINOR_SPELL_TURNING)) // SPWI522.SPL (Minor Spell Turning) RESPONSE #20 StartCutSceneMode CreateCreature("BPOWY2",[679.329],SSW) // Owyn CreateVisualEffect("spsdimpa",[679.329]) CreateCreature("BPKRANC2",[729.303],SSW) // Krancor the Old CreateVisualEffect("spsdimpa",[729.303]) CreateCreature("BPCIRI2",[648.257],SSW) // Ciril CreateVisualEffect("spsdimpa",[648.257]) CreateCreature("BPWYLLI2",[712.259],SSW) // Wylliam Brand CreateVisualEffect("spsdimpa",[712.259]) CreateCreature("BPSAMJO2",[662.293],SSW) // SamJohn BrightWalker CreateVisualEffect("spsdimpa",[662.293]) CreateCreature("BPCARLO2",[777.271],SSW) // Carlos Nuez CreateVisualEffect("spsdimpa",[777.271]) PlaySound("EFF_M31C") SetGlobal("T1_B5","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MIRROR_IMAGE)) // SPWI212.SPL (Mirror Image) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_SHIELD)) // SPWI114.SPL (Shield) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MINOR_SPELL_TURNING)) // SPWI522.SPL (Minor Spell Turning) RESPONSE #20 StartCutSceneMode CreateCreature("BPOWY2",[377.571],SSW) // Owyn CreateVisualEffect("spsdimpa",[377.571]) CreateCreature("BPKRANC2",[331.546],SSW) // Krancor the Old CreateVisualEffect("spsdimpa",[331.546]) CreateCreature("BPCIRI2",[296.619],SSW) // Ciril CreateVisualEffect("spsdimpa",[296.619]) CreateCreature("BPWYLLI2",[281.619],SSW) // Wylliam Brand CreateVisualEffect("spsdimpa",[281.619]) CreateCreature("BPSAMJO2",[263.535],SSW) // SamJohn BrightWalker CreateVisualEffect("spsdimpa",[263.535]) CreateCreature("BPCARLO2",[329.592],SSW) // Carlos Nuez CreateVisualEffect("spsdimpa",[329.592]) PlaySound("EFF_M31C") SetGlobal("T1_B5","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) Wait(1) EndCutSceneMode ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MIRROR_IMAGE)) // SPWI212.SPL (Mirror Image) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_SHIELD)) // SPWI114.SPL (Shield) ActionOverride("BPWYLLIA",ApplySpell(Myself,WIZARD_MINOR_SPELL_TURNING)) // SPWI522.SPL (Minor Spell Turning) END

IF Global("T2_B1","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 StartCutSceneMode SetGlobal("T2_B1","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) CreateCreatureObjectOffset("BPANKHE1",Player1,[0.100]) // Rabid Ankheg CreateCreatureObjectOffset("BPANKHE1",Player1,[100.0]) // Rabid Ankheg Wait(2) EndCutSceneMode Wait(4) CreateCreatureObjectOffset("BPANKHE1",Player1,[100.100]) // Rabid Ankheg CreateCreatureObjectOffset("BPANKHE1",Player1,[100.0]) // Rabid Ankheg Wait(4) CreateCreatureObjectOffset("BPANKHE1",Player1,[100.100]) // Rabid Ankheg RESPONSE #50 SetGlobal("T2_B1","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) StartCutSceneMode CreateCreatureObjectOffset("BPANKHE1",Player1,[0.100]) // Rabid Ankheg CreateCreatureObjectOffset("BPANKHE1",Player1,[100.0]) // Rabid Ankheg Wait(4) EndCutSceneMode Wait(4) CreateCreatureObjectOffset("BPANKHE1",Player1,[100.0]) // Rabid Ankheg Wait(4) CreateCreatureObjectOffset("BPANKHE1",Player1,[100.100]) // Rabid Ankheg CreateCreatureObjectOffset("BPANKHE1",Player1,[100.0]) // Rabid Ankheg END

IF Global("T2_B2","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #50 SetGlobal("T2_B2","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) StartCutSceneMode CreateCreature("BPERWEN",[681.571],SSW) // Parker CreateVisualEffect("spsdimpa",[681.571]) CreateCreature("BPSPID03",[591.499],SSW) // Sword Spider CreateVisualEffect("spsdimpa",[591.499]) PlaySound("EFF_M31C") Wait(1) CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider Wait(1) EndCutSceneMode RESPONSE #50 SetGlobal("T2_B2","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) StartCutSceneMode CreateCreature("BPERWEN",[681.571],SSW) // Parker CreateVisualEffect("spsdimpa",[681.571]) CreateCreature("BPSPID02",[819.455],SSW) // Giant Spider CreateVisualEffect("spsdimpa",[819.455]) PlaySound("EFF_M31C") SmallWait(5) CreateCreatureObjectEffect("BPSPID01","","BPSPID02") // Spider CreateCreatureObjectEffect("BPSPID01","","BPSPID02") // Spider CreateCreature("BPSPID02",[502.668],SSW) // Giant Spider CreateVisualEffect("spsdimpa",[502.668]) SmallWait(5) CreateCreatureObjectEffect("BPSPID01","","BPSPID02") // Spider CreateCreatureObjectEffect("BPSPID01","","BPSPID02") // Spider SmallWait(5) CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider CreateCreatureObjectEffect("BPSPID01","","BPERWEN") // Spider Wait(1) EndCutSceneMode END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP1",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP2",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP3",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP4",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP5",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("ARROWTRAP6",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #70 TriggerActivation("JERKTRAP",TRUE) Continue RESPONSE #30 Continue END

IF Global("T2_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T2_B3","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) TriggerActivation("GREASETRAP",TRUE) TriggerActivation("STINKYTRAP",TRUE) StartCutSceneMode CreateCreature("BPAMBT1",[204.468],SWW) // Night Knives Thief CreateCreature("BPAMBT2",[300.390],SWW) // Night Knives Thief CreateVisualEffect("spsdimpa",[204.468]) CreateVisualEffect("spsdimpa",[300.390]) CreateCreature("BPAMBT1",[885.251],SSE) // Night Knives Thief CreateCreature("BPAMBT2",[1044.314],SSE) // Night Knives Thief CreateVisualEffect("spsdimpa",[885.251]) CreateVisualEffect("spsdimpa",[1044.314]) CreateCreature("BPAMBT1",[526.592],SSW) // Night Knives Thief CreateCreature("BPAMBT2",[793.419],SSW) // Night Knives Thief CreateVisualEffect("spsdimpa",[526.592]) CreateVisualEffect("spsdimpa",[793.419]) CreateCreature("BPSHADOW",[623.298],SSW) // Shadow CreateCreature("BPSHADOW",[393.400],SSW) // Shadow CreateVisualEffect("spsdimpa",[623.298]) CreateVisualEffect("spsdimpa",[393.400]) PlaySound("EFF_M31C") Wait(1) EndCutSceneMode END

IF Global("T2_B5","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T2_B5","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) StartCutSceneMode CreateCreature("BPTHTHF",[594.482],SSW) // Red Tom CreateVisualEffect("spsdimpa",[594.482]) CreateCreature("BPTHCL",[598.537],SSW) // Lucius CreateVisualEffect("spsdimpa",[598.537]) CreateCreature("BPTHBKGD",[679.457],SSW) // Lucille CreateVisualEffect("spsdimpa",[679.457]) CreateCreature("BPTHBARB",[670.540],SSW) // Voadikka CreateVisualEffect("spsdimpa",[670.540]) CreateCreature("bpalueno",[504.655],SSW) // Treacle CreateVisualEffect("spsdimpa",[504.655]) CreateCreature("bpaluena",[879.401],SSW) // Thespia CreateVisualEffect("spsdimpa",[879.401]) PlaySound("EFF_M31C") Wait(1) EndCutSceneMode ActionOverride("BPALUENA",ApplySpell("BPALUENA",WIZARD_STONE_SKIN)) // Thespia ActionOverride("BPALUENA",ApplySpell("BPALUENA",WIZARD_MINOR_GLOBE_OF_INVULNERABILITY)) // Thespia ActionOverride("BPALUENA",ApplySpell("BPALUENA",WIZARD_MINOR_SPELL_DEFLECTION)) // Thespia ActionOverride("BPALUENO",ApplySpell("BPALUENO",WIZARD_PROTECTION_FROM_FIRE)) // Treacle ActionOverride("BPALUENO",ApplySpell("BPALUENO",WIZARD_MIRROR_IMAGE)) // Treacle ActionOverride("BPALUENO",ApplySpell("BPALUENO",WIZARD_MINOR_GLOBE_OF_INVULNERABILITY)) // Treacle ActionOverride("BPALUENO",ApplySpell("BPALUENO",WIZARD_PROTECTION_FROM_NORMAL_MISSILES)) // Treacle ActionOverride("BPALUENO",ApplySpell("BPALUENO",WIZARD_PROTECTION_FROM_FIRE)) // Treacle END

IF Global("T3_B1","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T3_B1","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) StartCutSceneMode CreateCreature("BPTROLL",[664.329],SSW) // Troll CreateVisualEffect("spsdimpa",[664.329]) CreateCreature("BPTROLL",[569.774],SSW) // Troll CreateVisualEffect("spsdimpa",[569.774]) CreateCreature("BPSLFS01",[664.329],SSW) // Fission Slime CreateVisualEffect("spsdimpa",[664.329]) CreateCreature("BPSLFS01",[569.774],SSW) // Fission Slime CreateVisualEffect("spsdimpa",[569.774]) PlaySound("EFF_M31C") Wait(2) EndCutSceneMode END

IF Global("T3_B3","GLOBAL",1) Global("START_BATTLE","GLOBAL",4) THEN RESPONSE #100 SetGlobal("T3_B3","GLOBAL",2) SetGlobal("START_BATTLE","GLOBAL",5) SetGlobalTimer("T3B5_Blizzard","OH9350",ONE_MINUTE) StartCutSceneMode CreateCreature("BPICESAL",[664.329],SSW) // Ice Salamander CreateVisualEffect("spsdimpa",[664.329]) CreateCreature("BPICESAL",[569.774],SSW) // Ice Salamander CreateVisualEffect("spsdimpa",[569.774]) CreateCreature("BPICESAL",[842.632],SSW) // Ice Salamander CreateVisualEffect("spsdimpa",[842.632]) CreateCreature("BPICESAL",[1021.442],SSW) // Ice Salamander CreateVisualEffect("spsdimpa",[1021.442]) CreateCreature("bpicescl",[478.286],SSW) // Ice Salamander Cleric CreateVisualEffect("spsdimpa",[478.286]) CreateCreature("BPICESAL",[385.603],SSW) // Ice Salamander ActionOverride("bpicescl",ApplySpell("bpicescl",CLERIC_RIGHTEOUS_MAGIC)) // Ice Salamander Cleric ActionOverride("bpicescl",ApplySpell("bpicescl",CLERIC_ARMOR_OF_FAITH)) // Ice Salamander Cleric CreateVisualEffect("spsdimpa",[385.603]) PlaySound("EFF_M31C") Wait(1) EndCutSceneMode END

IF Global("T3_B3","GLOBAL",2) Global("START_BATTLE","GLOBAL",5) GlobalTimerExpired("T3B5_Blizzard","OH9350") Global("BATTLE_COMPLETE","GLOBAL",0) THEN RESPONSE #20 ReallyForceSpellPoint([491.312],WIZARD_ICE_STORM) // SPWI404.SPL (Ice Storm) SetGlobalTimer("T3B5_Blizzard","OH9350",FOUR_ROUNDS) RESPONSE #20 ReallyForceSpellPoint([408.682],WIZARD_ICE_STORM) // SPWI404.SPL (Ice Storm) SetGlobalTimer("T3B5_Blizzard","OH9350",FOUR_ROUNDS) RESPONSE #20 ReallyForceSpellPoint([638.483],WIZARD_ICE_STORM) // SPWI404.SPL (Ice Storm) SetGlobalTimer("T3B5_Blizzard","OH9350",FOUR_ROUNDS) RESPONSE #20 ReallyForceSpellPoint([988.645],WIZARD_ICE_STORM) // SPWI404.SPL (Ice Storm) SetGlobalTimer("T3B5_Blizzard","OH9350",FOUR_ROUNDS) RESPONSE #20 ReallyForceSpellPoint([912.319],WIZARD_ICE_STORM) // SPWI404.SPL (Ice Storm) SetGlobalTimer("T3B5_Blizzard","OH9350",FOUR_ROUNDS) END

IF OR(6) AreaCheckObject("OH9350",Player1) AreaCheckObject("OH9350",Player2) AreaCheckObject("OH9350",Player3) AreaCheckObject("OH9350",Player4) AreaCheckObject("OH9350",Player5) AreaCheckObject("OH9350",Player6) Global("BATTLE_COMPLETE","GLOBAL",1) OR(6) StateCheck(Player1,STATE_REALLY_DEAD) StateCheck(Player2,STATE_REALLY_DEAD) StateCheck(Player3,STATE_REALLY_DEAD) StateCheck(Player4,STATE_REALLY_DEAD) StateCheck(Player5,STATE_REALLY_DEAD) StateCheck(Player6,STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",2) SetGlobal("BP_AUTOSAVE","GLOBAL",1) LockScroll MoveViewPoint([627.490],INSTANT) CreateVisualEffect("spdimndr",[627.490]) PlaySound("EFF_M13") SmallWait(65) Activate("BPBAELOT") // Baeloth SmallWait(15) DisplayStringHead("BPBAELOT",29945) // No sleeping on the job! And don't forget to collect your equipment. Anything left in the arena will be fed to the otyugh. ActionOverride("BPBAELOT",SetSequence(SEQ_CAST)) SmallWait(15) PlaySound("EFF_M07") CreateVisualEffectObject("spbaserd","BPBAELOT") // Baeloth MultiPlayerSync UnlockScroll END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player1,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player1,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player2,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player2,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player3,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player3,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player4,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player4,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player5,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player5,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",2) StateCheck(Player6,STATE_REALLY_DEAD) THEN RESPONSE #100 ApplySpell(Player6,CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) Continue END

IF OR(6) AreaCheckObject("OH9350",Player1) AreaCheckObject("OH9350",Player2) AreaCheckObject("OH9350",Player3) AreaCheckObject("OH9350",Player4) AreaCheckObject("OH9350",Player5) AreaCheckObject("OH9350",Player6) Global("BATTLE_COMPLETE","GLOBAL",1) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",2) SetGlobal("BP_AUTOSAVE","GLOBAL",1) SetGlobal("BAELOTH_FACING","GLOBAL",1) TriggerActivation("GREASETRAP",FALSE) TriggerActivation("ARROWTRAP1",FALSE) TriggerActivation("ARROWTRAP2",FALSE) TriggerActivation("ARROWTRAP3",FALSE) TriggerActivation("ARROWTRAP4",FALSE) TriggerActivation("ARROWTRAP5",FALSE) TriggerActivation("ARROWTRAP6",FALSE) TriggerActivation("STINKYTRAP",FALSE) TriggerActivation("JERKTRAP",FALSE) SetGlobal("BPTRAP01_TRIGGERED","OH9350",0) SetGlobal("BPTRAP03_TRIGGERED","OH9350",0) SetGlobal("BPTRAP04_TRIGGERED","OH9350",0) ClearAllActions StartCutSceneMode LockScroll MoveViewPoint([627.490],INSTANT) CreateVisualEffect("spdimndr",[627.490]) PlaySound("EFF_M13") SmallWait(70) Activate("BPBAELOT") // Baeloth MultiPlayerSync ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) SmallWait(5) END

BPHUB.bcs (OH9360)
IF Global("SPAWN_ACTORS","GLOBAL",0) THEN RESPONSE #100 SetGlobal("SPAWN_ACTORS","GLOBAL",1) SetAreaRestFlag(1) FadeToColor([1.0],0) Explore SetGlobal("BP_TRIGGER_DIALOG","GLOBAL",1) CreateCreatureEffect("BPBAELOT","",[956.509],S) // Baeloth CreateCreature("BPMAGDA",[670.468],SE) // Magda CreateCreature("BPTHARDE",[710.436],SE) // Thardek CreateCreature("BPGORCH",[1060.733],NW) // Gorch the Armorer CreateCreature("BPBRENDA",[914.829],NW) // Brendak CreateCreatureEffect("BPCONCOC","",[948.400],S) // Concocter CreateCreatureEffect("BPBELLOW","",[987.452],S) // Bellowgulp Bluefingers CreateCreatureEffect("BPDINGUE","",[886.400],S) // Dinguer the Mad CreateCreature("BPXITHIS",[1192.580],SWW) // Xithiss CreateCreature("BPELAN",[1210.638],SWW) // Elan Garaq CreateCreature("BPDEVLIN",[560.550],SE) // Devlin Taralon CreateCreatureEffect("BPNAJIM","",[848.612],S) // Najim CreateCreatureEffect("BPGHLOUR","",[671.192],S) // Ghlouralk CreateCreatureEffect("BPSPY01","",[174.430],S) // No such index CreateCreatureEffect("BPSPY02","",[387.252],S) // No such index Deactivate("BPSPY01") // No such index Deactivate("BPSPY02") // No such index ActionOverride("BPBAELOT",MakeGlobal) ActionOverride("BPNAJIM",MakeGlobal) ActionOverride("BPMAGDA",MakeGlobal) ActionOverride("BPBRENDA",MakeGlobal) ActionOverride("BPDEVLIN",MakeGlobal) ActionOverride("BPBELLOW",MakeGlobal) ActionOverride("BPXITHIS",MakeGlobal) ActionOverride("BPDINGUE",MakeGlobal) MoveViewObject("BPBAELOT",INSTANT) // Baeloth ClearAllActions SmallWait(1) Deactivate("BPNAJIM") // Najim StartCutSceneMode StartCutScene("CUTBP01") END

IF NumInPartyAlive(0) THEN RESPONSE #100 StartMovie("DEATHAND") GoToStartScreen END

IF StateCheck(Player1,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player1,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF StateCheck(Player2,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player2,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF StateCheck(Player3,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player3,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF StateCheck(Player4,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player4,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF StateCheck(Player5,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player5,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF StateCheck(Player6,STATE_REALLY_DEAD) GlobalLT("ResistedBaeloth","GLOBAL",1) THEN RESPONSE #100 ApplySpell(Player6,CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) END

IF Global("BP_AUTOSAVE","GLOBAL",1) AreaCheckObject("OH9360",Player1) THEN RESPONSE #100 SetGlobal("BP_AUTOSAVE","GLOBAL",2) SetGlobal("BP_TRIGGER_DIALOG","GLOBAL",1) Wait(1) ApplySpellRES("BPDISPEL",Player1) // Dispel Magic ApplySpellRES("BPDISPEL",Player2) // Dispel Magic ApplySpellRES("BPDISPEL",Player3) // Dispel Magic ApplySpellRES("BPDISPEL",Player4) // Dispel Magic ApplySpellRES("BPDISPEL",Player5) // Dispel Magic ApplySpellRES("BPDISPEL",Player6) // Dispel Magic ActionOverride("BPBAELOT",ApplySpell("BPBAELOT",RESTORE_FULL_HEALTH)) // Baeloth ActionOverride("BPNAJIM",ApplySpell("BPNAJIM",RESTORE_FULL_HEALTH)) // Najim ActionOverride(Player1,ApplySpell(Player1,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ActionOverride(Player2,ApplySpell(Player2,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ActionOverride(Player3,ApplySpell(Player3,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ActionOverride(Player4,ApplySpell(Player4,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ActionOverride(Player5,ApplySpell(Player5,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ActionOverride(Player6,ApplySpell(Player6,RESTORE_FULL_HEALTH)) // SPIN746.SPL (No such index) ApplySpellRES("SPSREST",Player1) // No such index ApplySpellRES("SPSREST",Player2) // No such index ApplySpellRES("SPSREST",Player3) // No such index ApplySpellRES("SPSREST",Player4) // No such index ApplySpellRES("SPSREST",Player5) // No such index ApplySpellRES("SPSREST",Player6) // No such index END

IF OR(24) HPPercentLT("BPMAGDA",100) // Magda HPPercentLT("BPTHARDE",100) // Thardek HPPercentLT("BPGORCH",100) // Gorch the Armorer HPPercentLT("BPBRENDA",100) // Brendak HPPercentLT("CONCOCTOR",100) // Concocter HPPercentLT("BPBELLOW",100) // Bellowgulp Bluefingers HPPercentLT("BPDINGUE",100) // Dinguer the Mad HPPercentLT("BPXITHIS",100) // Xithiss HPPercentLT("BPELAN",100) // Elan Garaq HPPercentLT("BPDEVLIN",100) // Devlin Taralon HPPercentLT("BPGHLOUR",100) // Ghlouralk HPPercentLT("BPKRANCO",100) // Krancor the Old HPPercentLT("BPSAMJOH",100) // SamJohn BrightWalker HPPercentLT("BPWYLLIA",100) // Wylliam Brand HPPercentLT("BPCARLOS",100) // Carlos Nuez HPPercentLT("BPCIRIL",100) // Ciril HPPercentLT("BPOWYN",100) // Owyn HPPercentLT("bpaluena",100) // Thespia HPPercentLT("bpalueno",100) // Treacle HPPercentLT("BPTHBKGD",100) // Lucille HPPercentLT("BPTHCL",100) // Lucius HPPercentLT("BPTHBARB",100) // Voadikka HPPercentLT("BPTHTHF",100) // Red Tom HPPercentLT("BPGIAFIR",100) // Hogarl THEN RESPONSE #100 SetGlobal("ResistedBaeloth","GLOBAL",1) END

IF Global("SPAWN_ACTORS","GLOBAL",1) Global("BAELOTH_FACING","GLOBAL",1) AreaCheckObject("OH9360","BPBAELOT") // Baeloth THEN RESPONSE #100 SetGlobal("BAELOTH_FACING","GLOBAL",2) FadeFromColor([80.0],0) SmallWait(60) ActionOverride("BPBAELOT",FaceObject(Player1)) ActionOverride("BPNAJIM",Face(S)) SetCutSceneLite(FALSE) Continue END

IF Global("TIER","GLOBAL",1) Global("OTHER_PARTY_TRANSITION","OH9360",0) THEN RESPONSE #100 CreateCreatureEffect("BPKRANCO","",[293.485],S) // Krancor the Old CreateCreatureEffect("BPSAMJOH","",[211.422],S) // SamJohn BrightWalker CreateCreatureEffect("BPWYLLIA","",[203.447],S) // Wylliam Brand CreateCreatureEffect("BPCARLOS","",[148.379],S) // Carlos Nuez CreateCreatureEffect("BPCIRIL","",[142.453],S) // Ciril CreateCreatureEffect("BPOWYN","",[189.353],S) // Owyn SetGlobal("OTHER_PARTY_TRANSITION","OH9360",1) END

IF Global("TIER","GLOBAL",2) Global("OTHER_PARTY_TRANSITION","OH9360",1) THEN RESPONSE #100 CreateCreatureEffect("bpaluena","",[483.304],S) // Thespia ChangeEnemyAlly("bpaluena",NEUTRAL) // Thespia ActionOverride("bpaluena",ChangeAIScript("",OVERRIDE)) ActionOverride("bpaluena",ChangeAIScript("",CLASS)) ActionOverride("bpaluena",ChangeAIScript("",RACE)) CreateCreatureEffect("bpalueno","",[411.294],S) // Treacle ChangeEnemyAlly("bpalueno",NEUTRAL) // Treacle ActionOverride("bpalueno",ChangeAIScript("",OVERRIDE)) ActionOverride("bpalueno",ChangeAIScript("",CLASS)) ActionOverride("bpalueno",ChangeAIScript("",RACE)) CreateCreatureEffect("BPTHBKGD","",[437.263],S) // Lucille ChangeEnemyAlly("BPTHBKGD",NEUTRAL) // Lucille ActionOverride("BPTHBKGD",ChangeAIScript("",OVERRIDE)) ActionOverride("BPTHBKGD",ChangeAIScript("",CLASS)) ActionOverride("BPTHBKGD",ChangeAIScript("",RACE)) CreateCreatureEffect("BPTHCL","",[376.207],S) // Lucius ChangeEnemyAlly("BPTHCL",NEUTRAL) // Lucius ActionOverride("BPTHCL",ChangeAIScript("",OVERRIDE)) ActionOverride("BPTHCL",ChangeAIScript("",CLASS)) ActionOverride("BPTHCL",ChangeAIScript("",RACE)) CreateCreatureEffect("BPTHBARB","",[308.265],S) // Voadikka ChangeEnemyAlly("BPTHBARB",NEUTRAL) // Voadikka ActionOverride("BPTHBARB",ChangeAIScript("",OVERRIDE)) ActionOverride("BPTHBARB",ChangeAIScript("",CLASS)) ActionOverride("BPTHBARB",ChangeAIScript("",RACE)) CreateCreatureEffect("BPTHTHF","",[307.212],S) // Red Tom ChangeEnemyAlly("BPTHTHF",NEUTRAL) // Red Tom ActionOverride("BPTHTHF",ChangeAIScript("",OVERRIDE)) ActionOverride("BPTHTHF",ChangeAIScript("",CLASS)) ActionOverride("BPTHTHF",ChangeAIScript("",RACE)) ActionOverride("BPKRANCO",DestroySelf) ActionOverride("BPSAMJOH",DestroySelf) ActionOverride("BPWYLLIA",DestroySelf) ActionOverride("BPCARLOS",DestroySelf) ActionOverride("BPCIRIL",DestroySelf) ActionOverride("BPOWYN",DestroySelf) SetGlobal("OTHER_PARTY_TRANSITION","OH9360",2) END

IF Global("TIER","GLOBAL",3) Global("OTHER_PARTY_TRANSITION","OH9360",2) THEN RESPONSE #100 CreateCreatureEffect("BPGIAFIR","",[284.481],S) // Hogarl ChangeEnemyAlly("BPGIAFIR",NEUTRAL) // Hogarl ActionOverride("BPGIAFIR",ChangeAIScript("",OVERRIDE)) ActionOverride("BPGIAFIR",ChangeAIScript("",CLASS)) ActionOverride("BPGIAFIR",ChangeAIScript("",RACE)) ActionOverride("bpaluena",DestroySelf) ActionOverride("bpalueno",DestroySelf) ActionOverride("BPTHBKGD",DestroySelf) ActionOverride("BPTHBARB",DestroySelf) ActionOverride("BPTHCL",DestroySelf) ActionOverride("BPTHTHF",DestroySelf) SetGlobal("OTHER_PARTY_TRANSITION","OH9360",3) END

IF Global("TIER","GLOBAL",3) Global("OTHER_PARTY_TRANSITION","OH9360",3) GlobalGT("LAST_BATTLE","GLOBAL",303) THEN RESPONSE #100 ActionOverride("BPGIAFIR",DestroySelf) SetGlobal("OTHER_PARTY_TRANSITION","OH9360",4) END

IF Global("TIER","GLOBAL",2) GlobalLT("BPBAELOT_DIALOG","GLOBAL",20) THEN RESPONSE #100 ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) END

IF Global("TIER","GLOBAL",2) Global("BPBAELOT_DIALOG","GLOBAL",20) GlobalLT("BPNAJIM_DIALOG","GLOBAL",20) !IsActive("BPNAJIM") // Najim THEN RESPONSE #100 StartCutSceneMode CreateVisualEffectObject("spdimndr","BPNAJIM") // Najim PlaySound("EFF_M13") Wait(4) Activate("BPNAJIM") // Najim EndCutSceneMode ActionOverride("BPNAJIM",StartDialogNoSet(Player1)) END

IF Global("TIER","GLOBAL",3) GlobalLT("BPBAELOT_DIALOG","GLOBAL",30) THEN RESPONSE #100 ActionOverride("BPBAELOT",StartDialogNoSet(Player1)) END

IF Global("TIER","GLOBAL",3) Global("BPBAELOT_DIALOG","GLOBAL",30) GlobalLT("BPNAJIM_DIALOG","GLOBAL",30) !IsActive("BPNAJIM") // Najim THEN RESPONSE #100 StartCutSceneMode CreateVisualEffectObject("spdimndr","BPNAJIM") // Najim PlaySound("EFF_M13") Wait(4) Activate("BPNAJIM") // Najim EndCutSceneMode ActionOverride("BPNAJIM",StartDialogNoSet(Player1)) END

IF Global("START_BATTLE","GLOBAL",1) THEN RESPONSE #100 SetGlobal("BATTLE_COMPLETE","GLOBAL",0) ClearAllActions StartCutSceneMode LockScroll StartCutScene("CUTBP02") Continue END

IF Global("START_BATTLE","GLOBAL",1) OR(9) Global("T0_B1","GLOBAL",1) Global("T1_B0","GLOBAL",1) Global("T1_B1","GLOBAL",1) Global("T1_B2","GLOBAL",1) Global("T1_B4","GLOBAL",1) Global("T2_B4","GLOBAL",1) Global("T3_B2","GLOBAL",1) Global("T3_B4","GLOBAL",1) Global("T3_B5","GLOBAL",1) THEN RESPONSE #100 SetGlobal("START_BATTLE","GLOBAL",2) SmallWait(75) StorePartyLocations FadeToColor([1.0],0) ActionOverride(Player1,LeaveAreaLUAPanic("OH9310","",[906.702],NW)) ActionOverride(Player1,LeaveAreaLUA("OH9310","",[906.702],NW)) ActionOverride(Player2,LeaveAreaLUA("OH9310","",[839.761],NW)) ActionOverride(Player3,LeaveAreaLUA("OH9310","",[999.692],NW)) ActionOverride(Player4,LeaveAreaLUA("OH9310","",[903.753],NW)) ActionOverride(Player5,LeaveAreaLUA("OH9310","",[959.714],NW)) ActionOverride(Player6,LeaveAreaLUA("OH9310","",[974.764],NW)) ActionOverride(Player1,CreateVisualEffectObject("spdimndr",Player1)) ActionOverride(Player2,CreateVisualEffectObject("spdimndr",Player2)) ActionOverride(Player3,CreateVisualEffectObject("spdimndr",Player3)) ActionOverride(Player4,CreateVisualEffectObject("spdimndr",Player4)) ActionOverride(Player5,CreateVisualEffectObject("spdimndr",Player5)) ActionOverride(Player6,CreateVisualEffectObject("spdimndr",Player6)) MoveGlobal("OH9310","BPBAELOT",[627.534]) // Baeloth SetCutSceneLite(TRUE) EndCutSceneMode Wait(2) SetMasterArea("OH9310") END

IF Global("START_BATTLE","GLOBAL",1) OR(9) Global("T0_B2","GLOBAL",1) Global("T1_B3","GLOBAL",1) Global("T1_B5","GLOBAL",1) Global("T2_B1","GLOBAL",1) Global("T2_B2","GLOBAL",1) Global("T2_B3","GLOBAL",1) Global("T2_B5","GLOBAL",1) Global("T3_B1","GLOBAL",1) Global("T3_B3","GLOBAL",1) THEN RESPONSE #100 SetGlobal("START_BATTLE","GLOBAL",2) SmallWait(75) StorePartyLocations FadeToColor([1.0],0) ActionOverride(Player1,LeaveAreaLUAPanic("OH9350","",[906.702],NW)) ActionOverride(Player1,LeaveAreaLUA("OH9350","",[906.702],NW)) ActionOverride(Player2,LeaveAreaLUA("OH9350","",[839.761],NW)) ActionOverride(Player3,LeaveAreaLUA("OH9350","",[999.692],NW)) ActionOverride(Player4,LeaveAreaLUA("OH9350","",[903.753],NW)) ActionOverride(Player5,LeaveAreaLUA("OH9350","",[959.714],NW)) ActionOverride(Player6,LeaveAreaLUA("OH9350","",[974.764],NW)) ActionOverride(Player1,CreateVisualEffectObject("spdimndr",Player1)) ActionOverride(Player2,CreateVisualEffectObject("spdimndr",Player2)) ActionOverride(Player3,CreateVisualEffectObject("spdimndr",Player3)) ActionOverride(Player4,CreateVisualEffectObject("spdimndr",Player4)) ActionOverride(Player5,CreateVisualEffectObject("spdimndr",Player5)) ActionOverride(Player6,CreateVisualEffectObject("spdimndr",Player6)) MoveGlobal("OH9350","BPBAELOT",[627.490]) // Baeloth SetCutSceneLite(TRUE) EndCutSceneMode Wait(2) SetMasterArea("OH9350") END

IF Global("BRENDAK_REVEAL","GLOBAL",2) !IsActive("BPBAELOT") // Baeloth THEN RESPONSE #100 CreateVisualEffectObject("spdimndr","BPBAELOT") // Baeloth SmallWait(15) Activate("BPBAELOT") // Baeloth END

IF Global("BAELOTH_LEAVE","GLOBAL",1) THEN RESPONSE #100 SetSequence(SEQ_CAST) SmallWait(15) PlaySound("EFF_E07") CreateVisualEffectObject("mmagich","BPBAELOT") // Baeloth SmallWait(15) ActionOverride("BPBAELOT",CreateVisualEffectObject("spdimndr","BPBAELOT")) // Baeloth SmallWait(15) MoveGlobal("OH9360","BPBAELOT",[0.0]) // Baeloth END

IF Global("BAELOTH_LEAVE","GLOBAL",-1) THEN RESPONSE #100 MoveGlobal("OH9360","BPBAELOT",[1147.417]) // Baeloth ActionOverride("BPBAELOT",CreateVisualEffectObject("spdimndr","BPBAELOT")) // Baeloth END

IF Global("BP_AUTOSAVE","GLOBAL",2) AreaCheckObject("OH9360",Player1) THEN RESPONSE #100 SetGlobal("BP_AUTOSAVE","GLOBAL",3) MoveViewObject(Player1,INSTANT) Wait(1) SaveGame(0) END

BPPLOT.bcs
IF OR(2) SpellCastOnMe([ANYONE],CLERIC_RESURRECTION) // SPPR712.SPL (Resurrection) SpellCastOnMe([ANYONE],CLERIC_RAISE_DEAD) // SPPR504.SPL (Raise Dead) UnselectableVariableGT(0) THEN RESPONSE #100 Wait(1) ChangeEnemyAlly(Myself,PC) MakeUnselectable(0) MoveToOffset([0.0]) SetSequence(SEQ_AWAKE) Continue END

IF OR(2) AreaCheck("OH9350") AreaCheck("OH9310") Global("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) THEN RESPONSE #100 PlayDeadInterruptible(9999) END

IF Global("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) HPGT(Myself,1) THEN RESPONSE #100 ApplyDamagePercent(Myself,100,CRUSHING) END

IF AreaCheck("OH9360") OR(2) !Allegiance(Myself,PC) UnselectableVariableGT(0) THEN RESPONSE #100 ChangeEnemyAlly(Myself,PC) MakeUnselectable(0) Continue END

IF GlobalGT("BATTLE_COMPLETE","GLOBAL",0) !Allegiance(Myself,PC) OR(2) AreaCheck("OH9350") AreaCheck("OH9310") THEN RESPONSE #100 ChangeEnemyAlly(Myself,PC) Continue END

IF GlobalGT("BATTLE_COMPLETE","GLOBAL",0) UnselectableVariableGT(0) THEN RESPONSE #100 Wait(1) MakeUnselectable(0) MoveToOffset([0.0]) SetSequence(SEQ_AWAKE) Continue END

IF Global("BATTLE_COMPLETE","GLOBAL",0) GlobalLT("T3_B5","GLOBAL",1) HPLT(Myself,2) OR(10) StateCheck(Myself,STATE_CHARMED) StateCheck(Myself,STATE_BERSERK) StateCheck(Myself,STATE_PANIC) StateCheck(Myself,STATE_STUNNED) StateCheck(Myself,STATE_HELPLESS) StateCheck(Myself,STATE_SILENCED) StateCheck(Myself,STATE_CONFUSED) StateCheck(Myself,STATE_FEEBLEMINDED) StateCheck(Myself,STATE_DISEASED) StateCheck(Myself,STATE_BLIND) THEN RESPONSE #100 ApplySpellRES("BPDISPEL",Myself) // Dispel Magic MakeUnselectable(5000) ChangeEnemyAlly(Myself,EVILBUTBLUE) PlayDeadInterruptible(9999) END

IF OR(2) AreaCheck("OH9360") !AreaCheckAllegiance(ENEMY) OR(10) StateCheck(Myself,STATE_CHARMED) StateCheck(Myself,STATE_BERSERK) StateCheck(Myself,STATE_PANIC) StateCheck(Myself,STATE_STUNNED) StateCheck(Myself,STATE_HELPLESS) StateCheck(Myself,STATE_SILENCED) StateCheck(Myself,STATE_CONFUSED) StateCheck(Myself,STATE_FEEBLEMINDED) StateCheck(Myself,STATE_DISEASED) StateCheck(Myself,STATE_BLIND) THEN RESPONSE #100 ApplySpellRES("BPDISPEL",Myself) // Dispel Magic END

IF Global("BATTLE_COMPLETE","GLOBAL",0) GlobalLT("T3_B5","GLOBAL",1) HPLT(Myself,2) UnselectableVariable(0) OR(2) AreaCheck("OH9350") AreaCheck("OH9310") THEN RESPONSE #100 MakeUnselectable(5000) ChangeEnemyAlly(Myself,EVILBUTBLUE) PlayDeadInterruptible(9999) END

1. OH9310.bcs L 137 – 194



 * Area: OH9310 (Arena)
 * Party: all equipment destroyed; 2,147,483,647 gold removed; Find Familiar removed from protagonist
 * Spawns: Tavern Patron (BPTAVE01 [545.472]), Tavern Bully (BPTAVE02 [739.392]), Tavern Bouncer (BPTAVE03 [372.574]), and three dead Tavern Bullies (BPTAVE04 [897.323], BPTAVE05 [798.632], BPTAVE06 [152.548]) (weapons dropped)
 * CreatureEffect ×5: BPREFF01 (Referee - No such index) @ [603.538],S; [443.391],S; [382.634],S; [805.644],S; [802.412],S

Party: ChangeAIScript("BPPLOT",OVERRIDE)

2. OH9310.bcs L 196 – 202



 * Cutscene: CUTBP00.bcs

3. CUTBP00.bcs

 * Party gets items equipped: "BPRNG1",0,0,0 // Slave Ring // SLOT_RING_RIGHT


 * Tavern Patron: "What? What? Where are we?"
 * Tavern Bully: "Who spiked me drink? I was just in the tavern, talking to Myrna. Hey, I saw those folks there [the dead bullies] too."
 * Spawns: 3 tasloi ("BPTASL01","",[472.400],S // "BPTASL02","",[472.400],S // "BPTASL03","",[472.400],S)
 * Tavern Bouncer: "We're in some kind of fighting pit. Look out! Monsters!"
 * Fight: tasloi attack taverners, taverners strike back
 * Spawns: party ([906.702], [839.761], [999.692], [903.753], [959.714], [974.764])



4. BPPLOT.bcs

 * Weapons created and equipped; intended randomly from a list, but in fact tending to take choice #1; following check order (always (SLOT_WEAPON0)/(SLOT_AMMO0) and EquipMostDamagingMelee or EquipRanged
 * Fighter (all), STR > 5
 * ("blun01",0,0,0) // Club
 * ("dagg01",0,0,0) // Dagger
 * ("sw1h07",0,0,0) // Short Sword
 * Ranger (all), STR > 5
 * ("blun01",0,0,0) // Club
 * ("bow05",0,0,0) // Shortbow; ("arow01",40,0,0) // Arrow
 * Paladin (all), STR > 5
 * ("blun01",0,0,0) // Club
 * ("dagg01",0,0,0) // Dagger
 * ("sw1h07",0,0,0) // Short Sword
 * Cleric (all), STR > 5
 * ("blun01",0,0,0) // Club
 * ("slng01",0,0,0) // Sling; ("bull01",40,0,0) // Bullet
 * Druid (all), STR > 5
 * ("blun01",0,0,0) // Club
 * ("sper01",0,0,0) // Spear
 * ("staf01",0,0,0) // Quarterstaff
 * ("slng01",0,0,0) // Sling; ("bull01",40,0,0) // Bullet
 * Mage (all)
 * ("dagg01",0,0,0) // Dagger
 * ("staf01",0,0,0) // Quarterstaff
 * ("slng01",0,0,0) // Sling; ("bull01",40,0,0) // Bullet
 * Thief (all), STR > 5
 * ("dagg01",0,0,0) // Dagger
 * ("blun01",0,0,0) // Club
 * ("bow05",0,0,0) // Shortbow; ("arow01",40,0,0) // Arrow
 * Bard (all), STR > 5
 * ("dagg01",0,0,0) // Dagger
 * ("blun01",0,0,0) // Club
 * ("bow05",0,0,0) // Shortbow; ("arow01",40,0,0) // Arrow
 * Sorcerer (all)
 * ("dagg01",0,0,0) // Dagger
 * ("staf01",0,0,0) // Quarterstaff
 * ("slng01",0,0,0) // Sling; ("bull01",40,0,0) // Bullet
 * STR < 5
 * ("slng01",0,0,0) // Sling; ("bull01",40,0,0) // Bullet



After battle 0 and arrival in the Pits

 * 1) BPBAELOT.dlg
 * 2) State 0: "What's next? Ah, this group. Are they awake yet? Up! Rouse yourselves, you lice-laden layabouts. Stand and salute your new master, Baeloth the Entertainer."
 * 3) Response 0: SetGlobal("BLACK_PITS","GLOBAL",1)
 * 4) State 1: "You may also thank me, since your meaningless lives are about to become infinitely more exciting and quite likely... abbreviated."
 * 5) Response 1
 * 6) State 2: "You have been brought here by an unlucky roll of the die. Well, unlucky for you. Gather some equipment, gird your loins, and prepare to fight. Najim, my obedient slave, take care of them."
 * 7) Response 2
 * 8) State 3: "And don't forget to give them a little spending money!"
 * 9) Response 3: StartCutSceneMode // LockScroll // CreateVisualEffect("spdimndr",[848.612]) // Wait(1) // Activate("BPNAJIM") // Wait(4) // ActionOverride("BPNAJIM",StartDialogNoSet(Player1)) // UnlockScroll
 * 10) BPNAJIM.dlg
 * 11) State 0: "As my master commands, take these coins. Speak with the dealers gathered here to equip yourselves. Once you are prepared, report to Master Baeloth. Do not attempt to escape lest he command me to snuff out your life." // GlobalLT("BPNAJIM_DIALOG","GLOBAL",1)
 * 12) Response 0: "Where are we? What's going on? I demand an explanation!" // GiveGoldForce(2500) // SetGlobal("BPNAJIM_DIALOG","GLOBAL",1)
 * 13) State 1: "You have been summoned to this island fortress by Baeloth. We are in a complex known as the Black Pits, dug by duergar slaves. You are to fight in the battle pits for the amusement of Baeloth's guests. I have answered your questions; now prepare for battle!"
 * 14) Response 3: "It seems I have no choice, I shall do as you ask."
 * 15) State 4: "Prepare yourself for battle, mortal. When you are ready to face your fate, speak with Baeloth."
 * 16) Response 8: "I don't like it, but I too feel the effects of this undying geas. One day..." // SetGlobal("BPNAJIM_DIALOG","GLOBAL",1) // SetGlobal("LAST_BATTLE","GLOBAL",0) // ClearAllActions // StartCutSceneMode // ActionOverride("BPBAELOT",MoveToPointNoInterrupt([1147.417])) // CreateVisualEffectObject("spdimndr","BPNAJIM") // PlaySound("EFF_M13") // Wait(4) // Deactivate("BPNAJIM") // EndCutSceneMode // Wait(3) // ActionOverride("BPBAELOT",Face(S)) // ActionOverride("BPNAJIM",Face(S)) // SetGlobal("BP_AUTOSAVE","GLOBAL",1) // UnlockScroll
 * 17) Response 4: "Wait! Baeloth said you are his slave. Together we could rise up against him!"
 * 18) State 3: "I am bound by an undying geas. Otherwise, I would have slaughtered Baeloth long ago."
 * 19) Response 7
 * 20) BPBAELOT.dlg State 4: "I can heeeeeear you!"
 * 21) BPBAELOT.dlg Response 4
 * 22) State 4; Response 8
 * 23) Response 1: "Very well, I shall do as you ask." // GiveGoldForce(2500) // SetGlobal("BPNAJIM_DIALOG","GLOBAL",1)
 * 24) State 4; Response 8
 * 25) Response 2: "Try it, and you'll be the one who's snuffed." // GiveGoldForce(2500) // SetGlobal("BPNAJIM_DIALOG","GLOBAL",1)
 * 26) State 2: "My blood boils with arcane power. Extinguishing your life would be no more difficult than quenching the flame of a candle. Now, do as you are told, and prepare for battle."
 * 27) Response 5: "If you are so powerful, why do you serve Baeloth?"
 * 28) State 3; Response 7; BPBAELOT.dlg State 4; BPBAELOT.dlg Response 4; State 4; Response 8
 * 29) Response 6: "I have a better idea. Let's join forces and overthrow Baeloth."
 * 30) State 3; Response 7; BPBAELOT.dlg State 4; BPBAELOT.dlg Response 4; State 4; Response 8

Either way:
 * Global("BLACK_PITS","GLOBAL",1)
 * GiveGoldForce(2500)
 * Global("BPNAJIM_DIALOG","GLOBAL",1)
 * Global("LAST_BATTLE","GLOBAL",0)
 * Global("BP_AUTOSAVE","GLOBAL",1)