@LabelIndex 102386
@StringIndex 11848
class 0 npc_controller_topspin : default_npc {
parameter:
	int	control_number = 1;

handler:
	EventHandler CREATED() {
		myself.i_ai4 = control_number;
	}

	EventHandler TALKED(talker,ask,reply) {
		if( talker.occupation == 57 || talker.occupation == 118 ) {
			myself::ShowPage(talker,"device001.htm");
		} else {
			myself::ShowPage(talker,"device001a.htm");
		}
	}

	EventHandler MENU_SELECTED(talker,ask,reply) {
		if( ask == -1006 ) {
			if( reply == 1 ) {
				if( control_number == 1 ) {
					myself::BroadcastScriptEvent(1,0,3000);
				} else {
					myself::BroadcastScriptEvent(2,0,3000);
				}
			}
		}
	}

}
