@LabelIndex 109856
@StringIndex 0
class 0 yeti_cute : parade_npc {
parameter:

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

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2) {
		if( script_event_arg1 == 10 ) {
			if( script_event_arg2 == ( timerVal + ( delayTime * ( spawnLocation - 1 ) ) ) ) {
				myself::SetVisible(1);
				myself::AddTimerEx(1000,10);
			}
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 1000 ) {
			switch(spawnLocation) {
				case 1: {
					if( myself.i_ai0 == 0 ) {
						myself::AddMoveToDesire(-56914,-58832,-2037,2000);
					}
					if( myself.i_ai0 == 1 ) {
						myself::AddMoveToDesire(-58492,-58832,-2037,2000);
					}
					if( myself.i_ai0 == 2 ) {
						myself::AddMoveToDesire(-60864,-58832,-2037,2000);
					}
					break;
				}
				case 2: {
					if( myself.i_ai0 == 0 ) {
						myself::AddMoveToDesire(-61712,-57003,-2008,2000);
					}
					if( myself.i_ai0 == 1 ) {
						myself::AddMoveToDesire(-61712,-56102,-2008,2000);
					}
					if( myself.i_ai0 == 2 ) {
						myself::AddMoveToDesire(-61712,-53930,-2137,2000);
					}
					break;
				}
				case 3: {
					if( myself.i_ai0 == 0 ) {
						myself::AddMoveToDesire(-60059,-53074,-2037,2000);
					}
					if( myself.i_ai0 == 1 ) {
						myself::AddMoveToDesire(-59283,-53074,-2037,2000);
					}
					if( myself.i_ai0 == 2 ) {
						myself::AddMoveToDesire(-58633,-53068,-2037,2000);
					}
					break;
				}
				case 4: {
					if( myself.i_ai0 == 0 ) {
						myself::AddMoveToDesire(-56785,-54124,-2037,2000);
					}
					if( myself.i_ai0 == 1 ) {
						myself::AddMoveToDesire(-56200,-54710,-2037,2000);
					}
					if( myself.i_ai0 == 2 ) {
						myself::AddMoveToDesire(-55408,-55483,-2037,2000);
					}
					break;
				}
				case 5: {
					if( myself.i_ai0 == 0 ) {
						myself::AddMoveToDesire(-54855,-57139,-2037,2000);
					}
					if( myself.i_ai0 == 1 ) {
						myself::AddMoveToDesire(-54863,-57538,-2037,2000);
					}
					if( myself.i_ai0 == 2 ) {
						myself::AddMoveToDesire(-54859,-57983,-2037,2000);
					}
					break;
				}
			}
		}
	}

	EventHandler MOVE_TO_FINISHED(x,y,z) {
		myself.i_ai0 = ( myself.i_ai0 + 1 );
		myself::AddEffectActionDesire(myself.sm,1,( ( 106 * 1000 ) / 30 ),3000);
		myself::AddTimerEx(1000,( 5 * 1000 ));
		if( myself.i_ai0 == 3 ) {
			myself::Despawn();
		}
	}

}
