IF
	Global("PhantomSpawn","GLOBAL",0)
	Global("LichDead","GLOBAL",0)
	Global("LichSpawn","GLOBAL",0)
THEN
	RESPONSE #100
		CreateCreature("PHANTM1",[3100.440],0) // Phantom
		CreateCreature("PHANTM3",[3028.440],0) // Phantom
		CreateCreature("PHANTM4",[3075.504],0) // Phantom
		CreateCreature("PHANTM5",[3110.504],0) // Phantom
		CreateCreature("PHANTM6",[3115.520],0) // Phantom
		SetGlobal("PhantomSpawn","GLOBAL",1)
		Continue()
END

IF
	PartyHasItem("amulds09")
	Global("BansheeDead","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("BansheeDead","GLOBAL",1)
		Continue()
END

IF
	Global("BansheeDead","GLOBAL",1)
	Global("LichDead","GLOBAL",0)
	Global("LichSpawn","GLOBAL",0)
THEN
	RESPONSE #100
		ClearAllActions()
		CreateCreature("LICH",[1348.799],0) // The Dark One
		CreateCreature("PHANTM2",[3957.537],0) // Phantom
		SetGlobal("LichSpawn","GLOBAL",1)
		Continue()
END

IF
	Global("LichResurect","GLOBAL",0)
	Global("LichDoorDead","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC12a",FALSE)
		SetGlobal("LichDoor","GLOBAL",1)
		Continue()
END

IF
	Global("LichResurect","GLOBAL",1)
	Global("LichDoor","GLOBAL",1)
THEN
	RESPONSE #100
		TriggerActivation("DoorC12a",TRUE)
		SetGlobal("LichDoor","GLOBAL",2)
		Continue()
END

IF
	Global("Lich1","ARC012",0)
	!PartyHasItem("CUJAR01") // Phylactery of Koroval Na'Krugen
	Dead("LICH") // The Dark One
THEN
	RESPONSE #100
		CreateCreature("LICH1",[1348.815],14) // The Dark One
		SetGlobal("LichResurect","GLOBAL",1)
		SetGlobal("Lich1","ARC012",1)
END

IF
	Global("Lich1","ARC012",1)
	Global("Lich2","ARC012",0)
	Global("LichDead","GLOBAL",0)
	!PartyHasItem("CUJAR01") // Phylactery of Koroval Na'Krugen
	Dead("LICH1") // The Dark One
THEN
	RESPONSE #100
		CreateCreature("LICH2",[1378.799],14) // The Dark One
		SetGlobal("Lich2","ARC012",1)
END

IF
	Global("Lich1","ARC012",1)
	Global("Lich2","ARC012",1)
	Global("Lich3","ARC012",0)
	Global("LichDead","GLOBAL",0)
	!PartyHasItem("CUJAR01") // Phylactery of Koroval Na'Krugen
	Dead("LICH2") // The Dark One
THEN
	RESPONSE #100
		CreateCreature("LICH3",[1348.799],0) // The Dark One
		SetGlobal("Lich3","ARC012",1)
END

IF
	Dead("LICH1") // The Dark One
	Global("Lich1","ARC012",1)
	Global("Lich2","ARC012",0)
	Global("LichDead","GLOBAL",0)
	PartyHasItem("CUJAR01") // Phylactery of Koroval Na'Krugen
THEN
	RESPONSE #100
		AddexperienceParty(19500)
		SetGlobal("LichDead","GLOBAL",1)
		GiveItemCreate("CUJAR02",Player1,6,0,0) // Magic Jar
END

IF
	Dead("LICH2") // The Dark One
	Global("Lich2","ARC012",1)
	Global("Lich3","ARC012",0)
	Global("LichDead","GLOBAL",0)
	PartyHasItem("CUJAR01") // Phylactery of Koroval Na'Krugen
THEN
	RESPONSE #100
		AddexperienceParty(19500)
		SetGlobal("LichDead","GLOBAL",1)
		GiveItemCreate("CUJAR02",Player1,6,0,0) // Magic Jar
END

IF
	Global("LichDead","GLOBAL",0)
	Dead("LICH3") // The Dark One
THEN
	RESPONSE #100
		AddexperienceParty(19500)
		SetGlobal("LichDead","GLOBAL",1)
		SetGlobal("LichTired","GLOBAL",1)
		GiveItemCreate("CUJAR02",Player1,6,0,0) // Magic Jar
END

IF
	Global("BansheeMap2","GLOBAL",0)
THEN
	RESPONSE #100
		Weather(RAIN)
	RESPONSE #100
		TriggerActivation("DoorN001",TRUE)
		TriggerActivation("DoorN002",TRUE)
		TriggerActivation("DoorN003",FALSE)
		TriggerActivation("DoorN004",FALSE)
		TriggerActivation("DoorN005",TRUE)
		TriggerActivation("DoorN006",TRUE)
		TriggerActivation("DoorN007",TRUE)
		TriggerActivation("DoorN008",TRUE)
		TriggerActivation("DoorEast",FALSE)
		TriggerActivation("DoorSout",FALSE)
		TriggerActivation("DoorW001",TRUE)
		TriggerActivation("DoorW002",TRUE)
		TriggerActivation("DoorW003",TRUE)
		TriggerActivation("DoorW004",TRUE)
		TriggerActivation("DoorW005",TRUE)
		TriggerActivation("DoorW006",TRUE)
		TriggerActivation("DoorW007",TRUE)
		TriggerActivation("DoorW008",TRUE)
		SetGlobal("BansheeMap2","GLOBAL",1)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(MIDNIGHT)
THEN
	RESPONSE #100
		DayNight(DAWN_START)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(DUSK_END)
THEN
	RESPONSE #100
		DayNight(MIDNIGHT)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(DUSK_START)
THEN
	RESPONSE #100
		DayNight(DUSK_END)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(NOON)
THEN
	RESPONSE #100
		DayNight(DUSK_START)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(DAWN_END)
THEN
	RESPONSE #100
		DayNight(NOON)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END

IF
	Global("BansheeTime","GLOBAL",1)
	Time(DAWN_START)
THEN
	RESPONSE #100
		DayNight(DAWN_END)
		SetGlobal("BansheeTime","GLOBAL",2)
		Continue()
END


