class 2 unique_npc_kill_event : default_maker
{
parameter:
	int	unique_npc = 1000130;
	int	event = 0;
	string	maker_name = "";

handler:
	EventHandler ON_NPC_DELETED(deleted_def,deleted_npc,i0,i1,maker0)
	{
		if( deleted_npc.sm.npc_class_id == unique_npc )
		{
			i0 = myself::DecreaseTotal(1);
			deleted_def::DecCount(1);
			if( event == 0 )
			{
				if( gg::IsNull(maker0) == 0 )
				{
					gg::SendMakerScriptEvent(maker0,1000,0,0);
				}
			}
			else if( event == 1 )
			{
				maker0 = gg::GetNpcMaker(maker_name);
				if( gg::IsNull(maker0) == 0 )
				{
					gg::SendMakerScriptEvent(maker0,1001,0,0);
				}
			}
			super;
		}
		else
		{
			super;
		}
	}

}
