;Death Skull mini-boss script

;The item to spawn (Battle Axe)
BattleAxe = 173
DeathSkull = 41

i = 0
While i < 15
	DamageMonster(#MAPID, i, 500)
	i = i + 1
Wend

If #MAPID <> 444
	GoTo END
EndIf

If #XPOS = 4
	If #YPOS = 2
		WarpUser(#USERID, 444, 13, 10)
		CreateEffect(1, 1000, 0, #DIR_DOWN, 444, 13, 10, 0, #USERID, 0)
		SpawnMonster(444, DeathSkull, 13, 13)
		SetMonsterTarget(444, 8, #USERID)
		GoTo END
	EndIf	
EndIf

WarpUser(#USERID, 444, 4, 15)
SpawnItem(444, BattleAxe, 4, 12)
CreateEffect(1, 1000, 0, #DIR_DOWN, 444, 4, 12, 0, #USERID, 0)

Label END

Continue = 1