;'The Liche Lord' - monster death script

SetUserFlag(0,37, 0)
CreateEffect(3,500,0,#DIR_RIGHT,#MAPID,#XPOS,#YPOS,0,0,0)

SendMessageToAll(GetUserName(#USERID)+" has killed the Liche!",#MSG_SERVER)

;Unspawn minions
UnspawnMonster(1189,197)
UnspawnMonster(1189,197)

;If Random(0,2) < 2
	Rand = Random(0,3)
	If Rand = 0
		;^Destiny's Judgement
		SpawnItem(#MAPID,301,#XPOS,#YPOS)
	ElseIf Rand = 1
		;SACH 30
		SpawnItem(#MAPID,294,#XPOS,#YPOS)
	ElseIf Rand = 2
		;Venator Armor
		SpawnItem(#MAPID,196,#XPOS,#YPOS)
	ElseIf Rand = 3
		;K-Bar
		SpawnItem(#MAPID,433,#XPOS,#YPOS)
	EndIf
;Else
	;Color cape of some color
	;SpawnItem(#MAPID,Random(219,223),#XPOS,#YPOS)
;EndIf
SpawnItem(#MAPID,Random(219,223),#XPOS,#YPOS)

Continue = 1