@LabelIndex 136471
@StringIndex 17447
class 0 ai_seed_teleporter : default_npc {
parameter:
	string	fnHi = "default.htm";
	int	position = 0;
	int	landing_pos_x = 0;
	int	landing_pos_y = 0;
	int	landing_pos_z = 0;
	int	circle_pos_x = -245833;
	int	circle_pos_y = 220174;
	int	circle_pos_z = -12104;
	int	wall_pos_x = -251624;
	int	wall_pos_y = 213420;
	int	wall_pos_z = -12072;
	int	throne_pos_x = -249774;
	int	throne_pos_y = 207316;
	int	throne_pos_z = -11952;

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

	EventHandler TALKED(talker,i0) {
		i0 = gg::GetStep_FieldCycle(2);
		if( i0 == 2 ) {
			if( position == 4 ) {
				myself::ShowPage(talker,"seed_controller001b.htm");
			} else {
				myself::ShowPage(talker,fnHi);
			}
		} else {
			myself::ShowPage(talker,"seed_controller001a.htm");
		}
	}

	EventHandler MENU_SELECTED(talker,ask,reply) {
		if( ask == -1101 ) {
			if( reply == 1 ) {
				myself::InstantTeleport(talker,circle_pos_x,circle_pos_y,circle_pos_z);
			} else if( reply == 2 ) {
				myself::InstantTeleport(talker,wall_pos_x,wall_pos_y,wall_pos_z);
			} else if( reply == 3 ) {
				myself::InstantTeleport(talker,throne_pos_x,throne_pos_y,throne_pos_z);
			} else if( reply == 4 ) {
				myself::InstantTeleport(talker,-248683,250243,4336);
			} else if( reply == 5 ) {
				myself::InstantZone_Leave(talker);
			}
		}
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,c0) {
		c0 = gg::GetCreatureFromID(script_event_arg2);
		if( ( script_event_arg1 == 1224014 || script_event_arg1 == 1224013 ) && ( script_event_arg2 <= 0 || ( myself::IsNullCreature(c0) && c0 != myself.sm ) ) ) {
			myself::BroadcastScriptEvent(script_event_arg1,myself.sm.id,8000);
		}
		super;
	}

}
