class 2 maker_instant_spawn : default_maker
{
handler:
	EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0)
	{
		i0 = myself::DecreaseTotal(1);
		deleted_def::DecCount(1);
		if( i0 == 0 )
		{
			if( gg::IsNull(maker0) == 0 )
			{
				gg::SendMakerScriptEvent(maker0,1001,0,0);
			}
		}
	}

}
