;'Gecko' death script.

GeckoCape = 357

;If not on any hunting quest in particular...
If GetUserFlag(#USERID,38) = 0
	If HasItem(#USERID,GeckoCape) = 0
		If GetUserFlag(#USERID,39) < 1336
			SetUserFlag(#USERID,39,GetUserFlag(#USERID,39)+1)
			;SendMessageToUser(#USERID,GetUserFlag(#USERID,39)+" geckoes killed.",#MSG_EMOTE)
		Else
			SendMessageToUser(#USERID,"You reach down and, taking out your knife, skin the Lizard of its scales.",#MSG_EMOTE)
			SendMessageToUser(#USERID,"From these, you fasion yourself a cape of lizard-like appearance. Lucky you.",#MSG_EMOTE)
			
			SpawnItem(#MAPID,GeckoCape,#XPOS,#YPOS)
			SetUserFlag(#USERID,39,0)
		EndIf
	EndIf
EndIf

Continue = 1