;'Guildhall switch'

If GetGuildHall(GetUserGuild(#USERID)) = 19
	i=0
	While i < 4
		OpenDoor(232,14+i,8)
		OpenDoor(232,14+i,9)
		i=i+1
	Wend
	Goto END
EndIf

If #YPOS = 3
	i=0
	While i < 4
		OpenDoor(232,14+i,8)
		OpenDoor(232,14+i,9)
		i=i+1
	Wend
	Goto END
EndIf

If #YPOS = 10
	i=0
	While i < 4
		OpenDoor(232,14+i,8)
		OpenDoor(232,14+i,9)
		i=i+1
	Wend
	Goto END
EndIf

If GetUserAccess(#USERID) > 5
	i=0
	While i < 4
		OpenDoor(232,14+i,8)
		OpenDoor(232,14+i,9)
		i=i+1
	Wend
	Goto END
EndIf

Label END

Continue = 1