;Enter Event

If GetUserFlag(0,10) > 0
	If GetUserFlag(0,10)=1
		EventName="Water Race"
		EventStartMap=500
		EventStartX=10
		EventStartY=16
	Endif
	If GetUserFlag(0,10)=2
		EventName="Forest Race"
		EventStartMap=452
		EventStartX=3
		EventStartY=2
	Endif
	If GetUserFlag(0,10)=3
		EventName="Death Dungeon"
		EventStartMap=550
		EventStartX=10
		EventStartY=18
	Endif
	If GetUserFlag(0,10)=4
		EventName="Four Corners"
		EventStartMap=552
		EventStartX=10
		EventStartY=10
	Endif
	If GetUserFlag(0,10)=5
		EventName="Scavenger Hunt"
		EventStartMap=464
		EventStartX=10
		EventStartY=10
	Endif
	If GetUserFlag(0,10)=6
		EventName="Cyber Says"
		EventStartMap=548
		EventStartX=10
		EventStartY=10
	Endif
	If GetUserFlag(0,10)=7
		EventName="Urban Race"
		EventStartMap=580
		EventStartX=15
		EventStartY=18
	Endif
	If GetUserFlag(0,10)=8
		EventName="Dance Master"
		EventStartMap=655
		EventStartX=10
		EventStartY=8
	Endif
	If GetUserFlag(0,10)=9
		EventName="Desert Race"
		EventStartMap=830
		EventStartX=18
		EventStartY=18
	Endif
	If GetUserFlag(0,10)=10
		EventName="Fortress Hunt"
		EventStartMap=1188
		EventStartX=10
		EventStartY=10
	Endif
	
	SendMessageToUser(#USERID,"You have joined the "+EventName+".", #MSG_EMOTE)
	WarpUser(#USERID,EventStartMap,EventStartX,EventStartY)
Else
	If GetUserAccess(#USERID) > 0
		WarpUser(#USERID,551,10,10)
	Else
	SendMessageToUser(#USERID,"There is no open event...please try again later.", #MSG_SERVER)
	Endif
Endif


Continue = 1
