@LabelIndex 64504
@StringIndex 10009
class 0 ai_massymore_teleporter : default_npc {
parameter:
	string	fnHi = "";
	string	fnUnderSiege = "";

handler:
	EventHandler CREATED() {
		myself.i_ai0 = 1;
	}

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

	EventHandler MENU_SELECTED(talker,ask,reply,state,fhtml0,i0,i1,i2,i3,s0) {
		if( reply == 79 ) {
			if( myself::Castle_IsUnderSiege() ) {
				myself::ShowPage(talker,fnUnderSiege);
			} else {
				myself::InstantTeleport(talker,12589,-49044,-3008);
			}
		}
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2) {
		if( script_event_arg1 == 10101 ) {
			myself::Shout(gg::MakeFString(1010632,"","","","",""));
		}
	}

}
