;Dungeon door, in the Hall of Chambers

HallID = 13

If GetGuildHall(GetUserGuild(#USERID)) = HallID
	If GetUserGuildRank(#USERID) = #GUILDRANK_LORD 
		OpenDoor(#MAPID,#XPOS,#YPOS+1)
		OpenDoor(#MAPID,#XPOS,#YPOS-1)
	EndIf
EndIf

;Dungeon door, in the Hall of Rock

HallID = 15

If GetGuildHall(GetUserGuild(#USERID)) = HallID
	If GetUserGuildRank(#USERID) = #GUILDRANK_LORD 
		OpenDoor(#MAPID,#XPOS,#YPOS+1)
		OpenDoor(#MAPID,#XPOS,#YPOS-1)
	EndIf
EndIf

Continue = 1