@LabelIndex 54151
@StringIndex 0
class 0 chapel_outta_guard_basic : citizen {
parameter:
	string	DoorName = "chapel_outta_guard_basic_default";
	string	GateOpenHTML = "chapel_outta_guard002.htm";
	string	GateOpenFailHTML = "chapel_outta_guard003.htm";

handler:
	EventHandler CREATED() {
		myself::AddTimerEx(3456,( 15 * 1000 ));
	}

	EventHandler TALKED(talker) {
		myself::ShowPage(talker,fnHi);
		super;
	}

	EventHandler MENU_SELECTED(talker,ask,reply) {
		if( ask == 502 && reply == 4 ) {
			gg::Castle_GateOpenClose2(DoorName,0);
			myself::ShowPage(talker,GateOpenHTML);
		}
		super;
	}

}
