@LabelIndex 110048
@StringIndex 13170
class 0 sw_dancer : show_npc {
parameter:

handler:
	EventHandler CREATED() {
		myself.i_ai0 = 0;
		myself.i_ai1 = 0;
		if( myself.sm.class_id != 1032432 ) {
			myself::AddTimerEx(9001,5000);
		} else {
			myself::AddTimerEx(6001,5000);
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 9001 ) {
			myself::AddEffectActionDesire(myself.sm,1,( ( 106 * 1000 ) / 30 ),100);
			myself::AddTimerEx(9001,3600);
		}
		if( timer_id == 9002 ) {
			myself::Despawn();
		}
		if( timer_id == 6002 ) {
			myself::AddEffectActionDesire(myself.sm,1,( ( 110 * 1000 ) / 30 ),100);
			myself::AddTimerEx(6002,3000);
		}
		if( timer_id == 6001 ) {
			if( myself.i_ai1 == 43 ) {
				myself::AddEffectActionDesire(myself.sm,2,( ( 90 * 1000 ) / 30 ),70);
			}
			if( myself.i_ai1 == 65 ) {
				myself::AddTimerEx(6002,10);
			}
			if( myself.i_ai1 == 103 ) {
				myself::AddEffectActionDesire(myself.sm,0,( ( 90 * 1000 ) / 30 ),70);
			}
			if( myself.i_ai1 == 118 ) {
				myself::AddTimerEx(6002,10);
			}
			if( myself.i_ai1 == 103 ) {
				myself::AddEffectActionDesire(myself.sm,0,( ( 90 * 1000 ) / 30 ),70);
			}
			if( myself.i_ai1 == 205 ) {
				myself::AddTimerEx(6002,10);
			}
			if( myself.i_ai1 == 200 ) {
				myself::AddEffectActionDesire(myself.sm,0,( ( 90 * 1000 ) / 30 ),70);
			}
			if( myself.i_ai1 <= ( ( 3 * 60 ) + 40 ) ) {
				myself.i_ai1 = ( myself.i_ai1 + 1 );
				myself::AddTimerEx(6001,1000);
			}
		}
	}

	EventHandler MOVE_TO_FINISHED(x,y,z) {
		myself::Despawn();
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,c0) {
		if( script_event_arg1 == 11 ) {
			if( script_event_arg2 == 3 ) {
				myself::AddMoveToDesire(showEnd_x,showEnd_y,showEnd_z,200000);
			}
			if( script_event_arg2 == 15 ) {
				myself::Say(gg::MakeFString(1800104,"","","","",""));
				myself::AddTimerEx(9002,3000);
			}
		}
	}

}
