IF
	HasItem("VVHKALI4","Container6")
	Delay(5)
	HasItem("VVHKALI4","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("VVHKALI4"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		SetGlobal("MarialResurrected","GLOBAL",1)
		CreateCreature("CMGKALI4",[2752.672],S)
		ActionOverride("cmmarial",DestroyItem("VVHKALI4")) 			
		ActionOverride("cmmarial",SetDialog("CMGKALI4"))
		
		ActionOverride("cmmarial",ChangeAIScript("VVHKALI4",OVERRIDE))
	
		
		ChangeEnemyAlly("cmmarial",NEUTRAL)
		Continue()
END


IF
	HasItem("VVHKALI3","Container6")
	Delay(5)
	HasItem("VVHKALI3","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("VVHKALI3"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		SetGlobal("BloodRavenResurrected","GLOBAL",1)
		CreateCreature("CMGKALI3",[2752.672],S)
		ActionOverride("cmgblood",DestroyItem("VVHKALI3")) 		
		ActionOverride("cmgblood",SetDialog("CMGKALI3"))
				ActionOverride("cmgblood",ChangeAIScript("CMGKALI3",OVERRIDE))
		ChangeEnemyAlly("cmgblood",NEUTRAL)
		Continue()
END

IF
	HasItem("cmgforg1","Container6")
	Delay(5)
	HasItem("cmgforg1","Container6")
THEN
	RESPONSE #100
		ActionOverride("Container6",DestroyItem("cmgforg1"))
		CreateVisualEffect("spfleshs",[2752.672])
		Wait(1)
		SetGlobal("LilithResurrected","GLOBAL",1)
		CreateCreature("CMGKALI2",[2752.672],S)
		ActionOverride("cmlilith",SetDialog("CMGKALI2"))
				ActionOverride("cmlilith",ChangeAIScript("CMGKALI2",OVERRIDE))		
		ChangeEnemyAlly("cmlilith",NEUTRAL)
		Continue()
END