@LabelIndex 69063
@StringIndex 0
class 0 e_big_pig_private : default_npc {
parameter:
	int	event_animal = 12;
	int	event_coin = 9142;

handler:
	EventHandler NO_DESIRE() {
		if( myself::IsMyBossAlive() ) {
			myself::AddFollowDesire(myself.boss,5);
		} else {
			myself::AddMoveAroundDesire(40,20);
		}
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage,f0) {
		if( myself::IsMyBossAlive() ) {
			myself::AddMoveToDesire(gg::FloatToInt(myself.boss.x),gg::FloatToInt(myself.boss.y),gg::FloatToInt(myself.boss.z),1000000);
		}
	}

	EventHandler MOVE_TO_FINISHED(x,y,z) {
		gg::SendScriptEvent(myself.boss,12501,0);
		myself::Despawn();
	}

}
