;'Beneath the Church' - Script trigger

Item1 = 332
Item2 = 333

If GetMapPlayerCount(1106) = 0
	If HasItem(#USERID,Item1) = 1
		If HasItem(#USERID,Item2) = 1
			CreateEffect(1,500,0,#DIR_RIGHT,GetUserMap(#USERID),GetUserX(#USERID),GetUserY(#USERID),0,#USERID,0)
			WarpUser(#USERID,1106,10,14)
			CreateEffect(1,500,0,#DIR_RIGHT,GetUserMap(#USERID),GetUserX(#USERID),GetUserY(#USERID),0,#USERID,0)
			TakeItem(#USERID,Item1)
			TakeItem(#USERID,Item2)
		EndIf
	EndIf
Else
	SendMessageToUser(#USERID,"Someone is in the chamber this warp leads to, please wait until he exits.",#MSG_SAY)
EndIf

Continue = 1