@LabelIndex 109809
@StringIndex 0
class 0 parade_npc : default_npc {
parameter:
	string	SuperPointName = "";
	int	SearchType = 0;
	int	SuperPointDesire = 10000;
	int	timerVal = 0;
	int	timerIdx = 0;
	int	spawnLocation = 0;
	int	delayTime = 50;

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

	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::RemoveAllDesire();
				myself::AddMoveSuperPointDesire(SuperPointName,SearchType,SuperPointDesire);
			}
		}
	}

	EventHandler NODE_ARRIVED(script_event_arg1,script_event_arg2,script_event_arg3,success) {
		switch(spawnLocation) {
			case 1: {
				if( script_event_arg1 == 1 ) {
					myself::Despawn();
				}
				break;
			}
			case 2: {
				if( script_event_arg1 == 2 ) {
					myself::Despawn();
				}
				break;
			}
			case 3: {
				if( script_event_arg1 == 2 ) {
					myself::Despawn();
				}
				break;
			}
			case 4: {
				if( script_event_arg1 == 1 ) {
					myself::Despawn();
				}
				break;
			}
			case 5: {
				if( script_event_arg1 == 1 ) {
					myself::Despawn();
				}
				break;
			}
		}
		myself.i_ai0 = 0;
	}

}
