@LabelIndex 425916
@StringIndex 0
class 1 maker_cratae_monster : default_maker {
parameter:

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

	EventHandler ON_SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,def0,i0) {
		switch(script_event_arg1) {
			case 1717008: {
				myself.i_ai0 = 1;
				gg::SendMakerScriptEvent(myself,1001,0,0);
				break;
			}
			case 1717009: {
				myself.i_ai0 = 0;
				myself::AddTimerEx(3384,( 15 * 1000 ));
				break;
			}
		}
		super;
	}

	EventHandler ON_TIMER(timer_id) {
		if( timer_id == 3384 ) {
			gg::SendMakerScriptEvent(myself,1000,0,0);
		}
		super;
	}

	EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0,reply) {
		if( myself.i_ai0 == 1 ) {
			if( deleted_def.respawn_time != 0 ) {
				if( myself::AtomicIncreaseTotal(deleted_def,1,1) ) {
					deleted_def::Spawn2(1,deleted_def.respawn_time,deleted_def.respawn_rand);
				}
			}
		} else {
		}
	}

	EventHandler ON_ALL_NPC_DELETED() {
	}

}
