;'Mushroom' for mushroom picking quest - Starting area

TakeItem(#USERID,500)

;If on the quest...
If GetUserFlag(#USERID,38) = 6
	If HasItem(#USERID,499) = 0
		GiveItem(#USERID,499)
	EndIf
	
	Mushrooms = GetUserFlag(#USERID,39)
	If Mushrooms < 7
		Mushrooms = Mushrooms + 1
		SetUserFlag(#USERID,39,Mushrooms)
	EndIf
	If Mushrooms = 7
		SendMessageToUser(#USERID,"You have enough mushrooms for Michael now.",#MSG_SAY)
	Else
		SendMessageToUser(#USERID,"You pick a mushroom.",#MSG_EMOTE)
	EndIf
Else
	SendMessageToUser(#USERID,"The mushroom falls apart in your hand...",#MSG_SAY)
EndIf

Continue = 1