@LabelIndex 34810
@StringIndex 6487
class 0 ssq_npc_teleporter_for_boss : default_npc {
parameter:
	int	DawnPosX = 0;
	int	DawnPosY = 0;
	int	DawnPosZ = 0;
	int	DuskPosX = 0;
	int	DuskPosY = 0;
	int	DuskPosZ = 0;

handler:
	EventHandler TALKED(talker) {
		myself::ShowPage(talker,"spirit_gate001.htm");
	}

	EventHandler MENU_SELECTED(talker,ask,reply) {
		if( myself::GetSSQStatus() != 3 ) {
			myself::ShowPage(talker,"spirit_gate_q0506_01.htm");
		} else if( myself::GetSSQWinner() == 1 && gg::GetSSQPart(talker) == 1 && myself::GetSSQSealOwner(1) == 1 ) {
			myself::InstantTeleport(talker,DuskPosX,DuskPosY,DuskPosZ);
		} else if( myself::GetSSQWinner() == 2 && gg::GetSSQPart(talker) == 2 && myself::GetSSQSealOwner(1) == 2 ) {
			myself::InstantTeleport(talker,DawnPosX,DawnPosY,DawnPosZ);
		} else {
			myself::ShowPage(talker,"spirit_gate_q0506_01.htm");
		}
	}

}
