;SendMessageToAll(""+#MAPID+" - "+GetUserFlag(0,18),#MSG_SERVER)

If GetUserFlag(0,18)=1
	SpawnLocation=Random(1,6)
	If GetUserFlag(0,18)=1
		If SpawnLocation=1
		SpawnMonster(1,112,0,12)
		Elseif SpawnLocation=2
		SpawnMonster(1,112,0,13)
		Elseif SpawnLocation=3
		SpawnMonster(1,112,0,14)
		Elseif SpawnLocation=4
		SpawnMonster(1,112,16,0)
		Elseif SpawnLocation=5
		SpawnMonster(1,112,6,20)
		Elseif SpawnLocation=6
		SpawnMonster(1,112,7,20)
		Endif
	Endif
Endif

If GetUserFlag(0,18)=2
	If #MAPID=147
		SpawnLocation=Random(1,4)
		If SpawnLocation=1
		SpawnMonster(147,113,Random(0,18),0)
		Elseif SpawnLocation=2
		SpawnMonster(147,113,0,Random(0,20))
		Elseif SpawnLocation=3
		SpawnMonster(147,113,Random(0,20),20)
		Elseif SpawnLocation=4
		SpawnMonster(147,113,20,Random(12,20))
		Endif
	Endif
	If #MAPID=174
		SpawnLocation=Random(1,4)
		If SpawnLocation=1
		SpawnMonster(174,113,0,Random(2,4))
		Elseif SpawnLocation=2
		SpawnMonster(174,113,0,Random(12,20))
		Elseif SpawnLocation=3
		SpawnMonster(174,113,20,Random(12,14))
		Elseif SpawnLocation=4
		SpawnMonster(174,113,20,Random(4,6))
		Endif
	Endif
	If #MAPID=175
		SpawnLocation=Random(1,4)
		If SpawnLocation=1
		SpawnMonster(175,113,0,Random(4,6))
		Elseif SpawnLocation=2
		SpawnMonster(175,113,20,Random(3,6))
		Elseif SpawnLocation=3
		SpawnMonster(175,113,20,Random(12,14))
		Elseif SpawnLocation=4
		SpawnMonster(175,113,0,Random(12,14))
		Endif
	Endif
	If #MAPID=176
		SpawnLocation=Random(1,3)
		If SpawnLocation=1
		SpawnMonster(176,113,0,Random(3,6))
		Elseif SpawnLocation=2
		SpawnMonster(176,113,Random(16,19),0)
		Elseif SpawnLocation=3
		SpawnMonster(176,113,0,Random(12,14))
		Endif
	Endif
	If #MAPID=650
		SpawnLocation=Random(1,2)
		If SpawnLocation=1
		SpawnMonster(650,113,Random(16,19),20)
		Elseif SpawnLocation=2
		SpawnMonster(650,113,20,Random(3,6))
		Endif
	Endif
	If #MAPID=653
		SpawnLocation=Random(1,2)
		If SpawnLocation=1
		SpawnMonster(653,113,Random(5,7),20)
		Elseif SpawnLocation=2
		SpawnMonster(653,113,0,Random(3,6))
		Endif
	Endif
	If #MAPID=654
		SpawnMonster(654,113,Random(5,7),0)
	Endif
	If #MAPID=525
		SpawnLocation=Random(1,2)
		If SpawnLocation=1
		SpawnMonster(525,113,0,Random(15,20))
		Elseif SpawnLocation=2
		SpawnMonster(525,113,Random(0,18),20)
		Endif
	Endif
	If #MAPID=177
		SpawnMonster(177,113,Random(10,14),20)
	Endif
Endif

Continue = 1