;Death Crypt script trigger (map: 1141)

User1 = GetUserAtXY(1141,6,13)
User2 = GetUserAtXY(1141,10,7)

If User1 < 1
	GoTo END
EndIf
If User2 < 1
	GoTo END
EndIf
If GetUserFlag(User1,45) = 123
	GoTo END
EndIf
If GetUserFlag(User2,45) = 123
	GoTo END
EndIf

SetUserFlag(User1,45,123)
SetUserFlag(User2,45,123)

SendMessageToMap(1141," - Switches triggered - ",#MSG_SAY)
RemoveItem(1141,462)
SpawnItem(1141,462,18,3)

i=0
While i < 16
	UnspawnMonster(1141,195)
	i=i+1
Wend

SpawnMonster(1141,195,5,12)
SpawnMonster(1141,195,7,12)
SpawnMonster(1141,195,5,14)
SpawnMonster(1141,195,7,14)
i=8
While i < 12
	SetMonsterTarget(1141,i,User1)
	i=i+1
Wend


SpawnMonster(1141,195,9,6)
SpawnMonster(1141,195,9,8)
SpawnMonster(1141,195,11,6)
SpawnMonster(1141,195,11,8)
i=12
While i < 16
	SetMonsterTarget(1141,i,User2)
	i=i+1
Wend

Label END

Continue = 1