@LabelIndex 420032
@StringIndex 63638
class 0 br_escape_santa : default_npc {
parameter:
	int	START_DELAY = 4400;
	int	PHASE_BUFFSKILL = 4401;
	int	PHASE_GO = 4402;

handler:
	EventHandler CREATED() {
		myself::AddTimerEx(START_DELAY,2000);
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id,c0) {
		if( timer_id == START_DELAY ) {
			myself::Shout(gg::MakeFString(1900018,"","","","",""));
			myself::AddTimerEx(PHASE_BUFFSKILL,5000);
		}
		if( timer_id == PHASE_BUFFSKILL ) {
			c0 = gg::GetCreatureFromID(myself::GetGlobalMap(101));
			myself::BroadcastSystemMessageStr(myself.sm,0,gg::MakeFString(1900027,c0.name,"","","",""));
			myself::PlayAnimation(1,600);
			myself::AddTimerEx(PHASE_GO,5000);
		}
		if( timer_id == PHASE_GO ) {
			myself::PlayAnimation(3,600);
			myself::AddTimerEx(4403,1000);
		} else if( timer_id == 4403 ) {
			myself::SetVisible(0);
			myself::AddTimerEx(4404,5000);
		} else if( timer_id == 4404 ) {
			myself::Despawn();
		}
	}

}
