@LabelIndex 102280
@StringIndex 11839
class 0 raid_lanekoo : warrior_basic {
parameter:
	string	Privates = "scapegoat_of_ranku:npc_native:1:300sec;scapegoat_of_ranku:npc_native:1:300sec;scapegoat_of_ranku:npc_native:1:300sec;scapegoat_of_ranku:npc_native:1:300sec;";
	int	Party_Type = 2;

handler:
	EventHandler CREATED(maker0) {
		myself.i_ai2 = myself::GetCurrentTick();
		myself::EffectMusic(myself.sm,8000,"Rm01_A");
		myself::RegisterGlobalMap(15,myself.sm.id);
		myself::SetDBValue(myself.sm,0);
		myself::AddTimerEx(9990,( 60 * 1000 ));
		maker0 = gg::GetNpcMaker("gludio57_1926_012m1");
		if( gg::IsNull(maker0) == 0 ) {
			gg::SendMakerScriptEvent(maker0,1000,0,0);
		}
		super;
	}

	EventHandler ATTACKED(attacker) {
		myself.i_ai2 = myself::GetCurrentTick();
		if( myself.sm.db_value == 0 || myself.sm.db_value == 1 ) {
			myself::SetDBValue(myself.sm,2);
		}
		myself::BroadcastScriptEvent(1,0,2000);
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 9990 ) {
			if( ( myself::GetCurrentTick() - myself.i_ai2 ) > ( 5 * 60 ) ) {
				myself::BroadcastScriptEvent(0,0,2000);
				myself::SetDBValue(myself.sm,0);
				myself::InstantTeleportInMyTerritory(-19017,277056,-13359,50);
			}
			myself::AddTimerEx(9990,( 60 * 1000 ));
		}
		super;
	}

	EventHandler MY_DYING(maker0) {
		myself::SetDBValue(myself.sm,0);
		myself::RegisterGlobalMap(15,-1);
		myself::BroadcastScriptEvent(3,0,2000);
		maker0 = gg::GetNpcMaker("gludio57_1926_012m1");
		if( gg::IsNull(maker0) == 0 ) {
			gg::SendMakerScriptEvent(maker0,1001,0,0);
		}
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3) {
		if( script_event_arg1 == 192834489 ) {
			if( myself.sm.db_value == 0 ) {
				myself.i_ai2 = myself::GetCurrentTick();
				myself::SetDBValue(myself.sm,1);
			}
		}
		super;
	}

}
