IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_A",[849.169],0) // Kobold
		CreateCreature("KOBOLD02",[849.169],0) // Kobold
		CreateCreature("KOBOLD3",[849.169],0) // Kobold
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("KOBOLD11",[849.169],0) // Kobold
		CreateCreature("KOBOLD3",[849.169],0) // Kobold
		CreateCreature("KOBLDGD",[849.169],0) // Kobold Guard
		CreateCreature("KOBCOMM",[849.169],0) // Kobold Commando
		CreateCreature("KOBLDGD",[849.169],0) // Kobold Guard
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_C",[849.169],0) // Kobold
		CreateCreature("KOBOLA_B",[849.169],0) // Kobold
		CreateCreature("KOBOLD3",[849.169],0) // Kobold
		CreateCreature("KOBOLD11",[849.169],0) // Kobold
		CreateCreature("KOBOLD02",[849.169],0) // Kobold
		CreateCreature("KOBLDSH",[849.169],0) // Kobold Shaman 
		CreateCreature("KOBLDGD",[849.169],0) // Kobold Guard
		CreateCreature("KOBLDGD",[849.169],0) // Kobold Guard
		CreateCreature("KOBCOMM",[849.169],0) // Kobold Commando
		CreateCreature("KOBCOMM",[849.169],0) // Kobold Commando
		CreateCreature("KOBLDCH",[849.169],0) // Kobold Chieftain 
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_A",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD02",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD3",[1816.3040],0) // Kobold
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("KOBOLD11",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD3",[1816.3040],0) // Kobold
		CreateCreature("KOBLDGD",[1816.3040],0) // Kobold Guard
		CreateCreature("KOBCOMM",[1816.3040],0) // Kobold Commando
		CreateCreature("KOBLDGD",[1816.3040],0) // Kobold Guard
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_C",[1816.3040],0) // Kobold
		CreateCreature("KOBOLA_B",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD3",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD11",[1816.3040],0) // Kobold
		CreateCreature("KOBOLD02",[1816.3040],0) // Kobold
		CreateCreature("KOBLDSH",[1816.3040],0) // Kobold Shaman 
		CreateCreature("KOBLDGD",[1816.3040],0) // Kobold Guard
		CreateCreature("KOBLDGD",[1816.3040],0) // Kobold Guard
		CreateCreature("KOBCOMM",[1816.3040],0) // Kobold Commando
		CreateCreature("KOBCOMM",[1816.3040],0) // Kobold Commando
		CreateCreature("KOBLDCH",[1816.3040],0) // Kobold Chieftain 
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_A",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD02",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD3",[1313.1758],0) // Kobold
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("KOBOLD11",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD3",[1313.1758],0) // Kobold
		CreateCreature("KOBLDGD",[1313.1758],0) // Kobold Guard
		CreateCreature("KOBCOMM",[1313.1758],0) // Kobold Commando
		CreateCreature("KOBLDGD",[1313.1758],0) // Kobold Guard
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,1)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("KOBOLA_C",[1313.1758],0) // Kobold
		CreateCreature("KOBOLA_B",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD3",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD11",[1313.1758],0) // Kobold
		CreateCreature("KOBOLD02",[1313.1758],0) // Kobold
		CreateCreature("KOBLDSH",[1313.1758],0) // Kobold Shaman 
		CreateCreature("KOBLDGD",[1313.1758],0) // Kobold Guard
		CreateCreature("KOBLDGD",[1313.1758],0) // Kobold Guard
		CreateCreature("KOBCOMM",[1313.1758],0) // Kobold Commando
		CreateCreature("KOBCOMM",[1313.1758],0) // Kobold Commando
		CreateCreature("KOBLDCH",[1313.1758],0) // Kobold Chieftain 
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBSUB",[849.169],0) // Goblin Sub-Chief
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBLIN",[849.169],0) // Goblin
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBLN_E",[849.169],0) // Goblin Elite
		CreateCreature("GOBSUB",[849.169],0) // Goblin Sub-Chief
		CreateCreature("GOBSUB",[849.169],0) // Goblin Sub-Chief
		CreateCreature("GOBSHM",[849.169],0) // Goblin Shaman
		CreateCreature("GOBCHF",[849.169],0) // Goblin Chief
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBSUB",[1816.3040],0) // Goblin Sub-Chief
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBLN_E",[1816.3040],0) // Goblin Elite
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBSUB",[1816.3040],0) // Goblin Sub-Chief
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("GOBLN_E",[1816.3040],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1816.3040],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1816.3040],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1816.3040],0) // Goblin Elite
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBSHM",[1816.3040],0) // Goblin Shaman
		CreateCreature("GOBSUB",[1816.3040],0) // Goblin Sub-Chief
		CreateCreature("GOBSUB",[1816.3040],0) // Goblin Sub-Chief
		CreateCreature("GOBLIN",[1816.3040],0) // Goblin
		CreateCreature("GOBCHF",[1816.3040],0) // Goblin Chief
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBSUB",[1313.1758],0) // Goblin Sub-Chief
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,2)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLIN",[1313.1758],0) // Goblin
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBLN_E",[1313.1758],0) // Goblin Elite
		CreateCreature("GOBSUB",[1313.1758],0) // Goblin Sub-Chief
		CreateCreature("GOBSHM",[1313.1758],0) // Goblin Shaman
		CreateCreature("GOBCHF",[1313.1758],0) // Goblin Chief
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOBC",[849.169],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGO5",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[849.169],0) // Hobgoblin
		CreateCreature("HOBGOBC",[849.169],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[849.169],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[849.169],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[849.169],0) // Chill Hobgoblin - Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("HOBGOA_C",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGO5",[1816.3040],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1816.3040],0) // Chill Hobgoblin - Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",1)
	GlobalLT("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",3)
	GlobalLT("RandomSpawn","GLOBAL",4)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1313.1758],0) // Chill Hobgoblin - Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	RandomNum(3,3)
	GlobalGT("Chapter","GLOBAL",4)
	GlobalLT("RandomSpawn","GLOBAL",5)
THEN
	RESPONSE #100
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGO5",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOA_C",[1313.1758],0) // Hobgoblin
		CreateCreature("HOBGOBC",[1313.1758],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[1313.1758],0) // Chill Hobgoblin - Hobgoblin
		CreateCreature("HOBGOBC",[1313.1758],0) // Chill Hobgoblin - Hobgoblin
		IncrementGlobal("RandomSpawn","GLOBAL",1)
END

IF
	Global("Chapter","GLOBAL",2)
	Global("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		SetGlobalTimer("RandomSpawnTime","GLOBAL",TWO_DAYS)
END

IF
	GlobalTimerExpired("RandomSpawnTime","GLOBAL")
	Global("Chapter","GLOBAL",2)
	Global("RandomSpawn","GLOBAL",3)
THEN
	RESPONSE #100
		SetGlobal("RandomSpawn","GLOBAL",0)
END