;Void Beast - Monster interact script
;Monster #262

MSG=Lower(GetUserMessage(#USERID))

ItemID = 746

If MSG="fight"
	If GetMapPlayerCount(1466) < 1
		UnspawnMonster(1466,262)
		SpawnMonster(1466, 262, GetMonsterX(1465, 0), GetMonsterY(1465, 0))

		WarpUser(#USERID,1466,#XPOS,#YPOS)
		SetMonsterTarget(1466,8,#USERID)
		SendMessageToUser(#USERID,"The Void Beast says, 'Very well, let us begin.'",#MSG_SAY)
	Else
		SendMessageToUser(#USERID,"The Void Beast says, 'As much as I'd love to fight you, I'm afraid you'll have to come back later.'",#MSG_SAY)
	EndIf
ElseIf MSG="challenge"
	If HasItem(#USERID,ItemID) = 1
		SendMessageToUser(#USERID,"The Void Beast says, 'Ah, you want another bout? I must admit I enjoyed our previous match. However, I can't give you another sword, I only had the one. Still, we can always [fight] merely for the sake of fighting.'",#MSG_SAY)
	Else
		SendMessageToUser(#USERID,"The Void Beast says, 'Yes, a challenge. Perhaps you'd care to [fight] me? I'll be sure to congratulate you with a gift if you overcome me.'",#MSG_SAY)
	EndIf
ElseIf MSG="seeking"
	SendMessageToUser(#USERID,"The Void Beast says, 'Yeah, perhaps you are looking for something of interest? Maybe you should explore the ruined labratory under the Mist Valley south of here.'",#MSG_SAY)
Else
	SendMessageToUser(#USERID,"The Void Beast says, 'Good evening. Why have you come here? Perhaps you are [seeking] something, or maybe you are hoping for a little [challenge]?'",#MSG_SAY)
EndIf

SetMonsterTarget(1466,0,#USERID)

Continue = 1