function emodaobaoxiang_GiftBag(MapID, InstanceID, TypeID, TargetID) local tab_items={} -- ������ܧ����: {item_id, quantity, quality, weight} -- ���ҧ���ߧ��� �ӧ֧�� �էݧ� ���֧էާ֧��� �� �ڧߧէ֧ܧ��� 2-10: {20, 20, 10, 10, 10, 10, 10, 5, 5} tab_items[3110019] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500206, 1, -1, 20}, -- ���է�� �է��� ��ݧ��� [99] {3541001, 1, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500021, 1, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3500041, 1, -1, 10}, -- ����֧ާ֧ߧ� ����ߧ� [60-100]" d {3500042, 1, -1, 10}, -- ����֧ާ֧ߧ� �٧ѧ�ڧ�� [60-100]" {3500043, 2, -1, 10}, -- ����֧ާ֧ߧ� ��ҧڧۧ��ӧ� [50-75]" {3500044, 2, -1, 10}, -- ����֧ާ֧ߧ� �����ۧ�ڧӧ���� [50-75]" {8440496, 1, -1, 5}, -- ����ݧߧ֧�ߧѧ� ������ڧӧߧѧ� ��է֧اէ� ���� [7 �է�.]" {8440497, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� �ҧ�ѧ�ݧ֧� ���� [7 �է�.]" display_ty {8440498, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440493, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440494, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440495, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {3500058, 2, -1, 5} -- ����ߧէ�� �ާڧ��ڧ�֧�ܧڧ� �ܧѧާߧ֧� } tab_items[3110020] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100254, 1, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [7 ���.] {3100242, 1, -1, 10}, -- �������֧� ��֧�է�� �է���� [7 ���.] {3100244, 1, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [7 ���.] {3100250, 1, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [7 ���.] {4820273, 5, -1, 10}, -- ����ܧ�ݧ�� ��ݧ֧ާ֧ߧ�ѧݧ֧� {3100246, 1, -1, 10}, -- �������ߧ�� ��֧�է�� �է���� [7 ���.] {8440496, 1, -1, 5}, -- ����ݧߧ֧�ߧѧ� ������ڧӧߧѧ� ��է֧اէ� ���� [7 �է�.]" {8440497, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� �ҧ�ѧ�ݧ֧� ���� [7 �է�.]" display_ty {8440498, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440493, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440494, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440495, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {4820121, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧ԧ� ��ܧ�ѧ�֧ߧڧ� } tab_items[3110021] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {4830092, 1, -1, 20}, -- ���ڧ�ݧ֧��ӧ��� ���ߧէ�� ��٧��� {3030110, 2, -1, 10}, -- ���ѧާ֧ߧ� ��ݧѧӧ� {3030115, 1, -1, 10}, -- ���էѧݧ֧ߧڧ� �ܧѧާߧ֧� [����. 4] {4800153, 1, -1, 10}, -- ���֧�է�� �ާѧԧڧ�֧�ܧ�� �է��� [7 ���.] {8440496, 1, -1, 5}, -- ����ݧߧ֧�ߧѧ� ������ڧӧߧѧ� ��է֧اէ� ���� [7 �է�.]" {8440497, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� �ҧ�ѧ�ݧ֧� ���� [7 �է�.]" display_ty {8440498, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440493, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440494, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {8440495, 1, -1, 5}, -- ����ݧߧ֧�ߧ��� ������ڧӧߧ��� �ҧ��ڧߧܧ� ���� [7 �է�.]" {3020029, 1, -1, 5} -- ���ѧާ֧ߧ� �է��� +12 [��֧��.] } tab_items[3110022] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500206, 1, -1, 20}, -- ���է�� �է��� ��ݧ��� [99] {3541001, 2, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500059, 1, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3500041, 1, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ����ߧ� {3500042, 1, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ��֧ާߧ��� {3500043, 1, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� �٧ѧ�ڧ�� {3500044, 1, -1, 5}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ��ާ� {3500048, 1, -1, 5} -- ����ߧէ�� �ާڧ��ڧ�֧�ܧڧ� �ܧѧާߧ֧� } tab_items[3110023] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100254, 1, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [7 ���.] {3100242, 1, -1, 10}, -- �������֧� ��֧�է�� �է���� [7 ���.] {3100244, 1, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [7 ���.] {3100250, 1, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [7 ���.] {4820273, 5, -1, 10}, -- ����ܧ�ݧ�� ��ݧ֧ާ֧ߧ�ѧݧ֧� {3100246, 1, -1, 10}, -- �������ߧ�� ��֧�է�� �է���� [7 ���.] {4820120, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧� �ҧ��ߧ� } tab_items[3110024] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {4830092, 1, -1, 20}, -- ���ڧ�ݧ֧��ӧ��� ���ߧէ�� ��٧��� {3030128, 1, -1, 10}, -- �����ҧ��� ���ҧڧ� [����. 4] [��֧��.] {3030115, 1, -1, 10}, -- ���էѧݧ֧ߧڧ� �ܧѧާߧ֧� [����. 4] {4800153, 2, -1, 10}, -- ���֧�է�� �ާѧԧڧ�֧�ܧ�� �է��� [7 ���.] {4820257, 1, -1, 10}, -- ����ߧ� ����ۧߧ�� �ߧѧԧ�ѧէ� [��֧��.] {3020030, 1, -1, 5} -- ���ѧާ֧ߧ� �է��� +13 [��֧��.] } tab_items[3110025] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500206, 1, -1, 20}, -- ���է�� �է��� ��ݧ��� [60] {3541001, 4, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500059, 2, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3500041, 2, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ����ߧ� {3500042, 2, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ��֧ާߧ��� {3500043, 2, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� �٧ѧ�ڧ�� {3500044, 2, -1, 5}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ��ާ� } tab_items[3110026] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100255, 1, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [8 ���.] {3100243, 1, -1, 10}, -- �������֧� ��֧�է�� �է���� [8 ���.] {3100245, 1, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [8 ���.] {3100251, 1, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [8 ���.] {4820273, 10, -1, 10}, -- ����ܧ�ݧ�� ��ݧ֧ާ֧ߧ�ѧݧ֧� {3100247, 1, -1, 10}, -- �������ߧ�� ��֧�է�� �է���� [8 ���.] {4820121, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧ԧ� ��ܧ�ѧ�֧ߧڧ� } tab_items[3110027] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {4530096, 1, -1, 20}, -- ����ާܧ� �ܧѧާߧ֧� 5 ��� [��֧��.] {3030116, 1, -1, 10}, -- ��էѧݧ֧ߧڧ� �ܧѧާߧ֧� {4800154, 1, -1, 10}, -- ���֧�է�� �ާѧ�. �է��� [8 ���.][��֧��.] {3020031, 1, -1, 5} -- ���ѧާ֧ߧ� �է��� +14 [��֧��.] } tab_items[3110028] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500206, 3, -1, 20}, -- ���է�� �է��� ��ݧ��� [60] {3541001, 6, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500022, 1, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3500041, 2, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ����ߧ� {3500042, 2, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� ��֧ާߧ��� {3500043, 3, -1, 10}, -- ���ڧ��ڧ�֧�ܧڧ� �ܧѧާ֧ߧ� �٧ѧ�ڧ�� {3030462, 1, -1, 5}, -- ���֧ާ���[����. 3] } tab_items[3110029] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100255, 2, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [8 ���.] {3100243, 2, -1, 10}, -- �������֧� ��֧�է�� �է���� [8 ���.] {3100245, 2, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [8 ���.] {3100251, 1, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [8 ���.] {4820273, 10, -1, 10}, -- ����ܧ�ݧ�� ��ݧ֧ާ֧ߧ�ѧݧ֧� {3030484, 1, -1, 10}, -- ���ѧݧѧ�ڧ�[����. 4] {4820120, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧� �ҧ��ߧ� } tab_items[3110030] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3030033, 1, -1, 20}, -- �����ҧ��� �ݧ��ڧ� [����. 5] [��֧��.] {3030076, 1, -1, 10}, -- �����ҧ��� ���ҧڧ� [����. 5] [��֧��.] {3030116, 1, -1, 10}, -- ���էѧݧ֧ߧڧ� �ܧѧާߧ֧� [����. 5] {4800154, 2, -1, 10}, -- ���֧�է�� �ާѧ�. �է��� [8 ���.][��֧��.] {3020032, 1, -1, 5} -- ���ѧާ֧ߧ� �է��� +15 } tab_items[3110031] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500204, 1, -1, 20}, -- ���է�� �է��� ��ݧ��� [60] {3541001, 8, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500022, 2, -1, 10}, -- ����ݧ��ѧ� ���ߧ� ������ҧߧ���֧� {4700229, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 8 ���. [��֧��.] {4810049, 1, -1, 3}, -- ���ݧڧ�ߧ��� �ߧѧҧ�� 82 ���. {3500042, 2, -1, 10}, -- ����֧ާ֧ߧ� �٧ѧ�ڧ�� [60-100] {3500048, 2, -1, 10}, -- ����է֧�ߧ��� �ܧ�֧ާ֧ߧ� ��֧ާߧ��� {3030463, 1, -1, 5}, -- ���֧ާ���[����. 4] } tab_items[3110032] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100238, 1, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [7 ���.] {3100226, 1, -1, 10}, -- �������֧� ��֧�է�� �է���� [7 ���.] {3100228, 1, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [7 ���.] {3100234, 1, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [7 ���.] {4700229, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 8 ���. [��֧��.] {4810049, 1, -1, 3}, -- ���ݧڧ�ߧ��� �ߧѧҧ�� 82 ���. {4820273, 20, -1, 10}, -- ����ܧ�ݧ�� ��ݧ֧ާ֧ߧ�ѧݧ֧� {3030485, 1, -1, 10}, --���ѧݧѧ�ڧ� {3030478, 1, -1, 5}, -- ���ާ֧�ڧ�� {4820121, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧ԧ� ��ܧ�ѧ�֧ߧڧ� } -- ����֧�ڧѧݧ�ߧ��� �ӧ֧�� �էݧ� 3110033, 3110036: {20, 20, 10, 10, 10, 10, 13, 5, 2} tab_items[3110033] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3030069, 1, -1, 10}, -- �����ҧ��� �ҧ�ڧݧݧڧѧߧ� [����. 6][��֧��.] {3030077, 1, -1, 10}, -- �����ҧ��� ���ҧڧ� [����. 6] [��֧��.] {3030116, 1, -1, 10}, -- ���էѧݧ֧ߧڧ� �ܧѧާߧ֧� [����. 5] {4700229, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 8 ���. [��֧��.] {4810049, 1, -1, 3}, -- ���ݧڧ�ߧ��� �ߧѧҧ�� 82 ���. {4800155, 2, -1, 10}, -- ���֧�է�� �ާѧԧڧ�֧�ܧ�� �է��� [9 ���.] {4810055, 1, -1, 13}, -- ���֧�է�� �է��� ��ݧ֧ާ֧ߧ�ѧݧ֧� [9 ���.] {3020033, 1, -1, 2} -- ���ѧާ֧ߧ� �է��� +16 [��֧��.] } tab_items[3110034] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3500206, 1, -1, 20}, -- ���է�� �է��� ��ݧ��� [99] {3541001, 10, -1, 10}, -- ����ܧ�ݧ�� ���է֧�ߧ�ԧ� ��٧��� {3500023, 1, -1, 10}, -- �����ҧѧ� ���ߧ� ������ҧߧ���֧� {3500061, 1, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3500048, 2, -1, 10}, -- ����ߧ� ������ҧߧ���֧� {3030464, 1, -1, 5}, -- ���֧ާ���[����. 5] {4700230, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 9 ���. [��֧��.] {4810048, 1, -1, 2}, -- ���ӧ���� �ߧѧҧ�� 85 ���. {4810068, 1, -1, 2}, -- ����է֧�ߧ��� ��٧�� ��ڧ�ѧ� {4820120, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧� �ҧ��ߧ� } tab_items[3110035] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3100238, 2, -1, 20}, -- ���֧�է�� �اѧݧ���� �է���� [7 ���.] {3100226, 2, -1, 10}, -- �������֧� ��֧�է�� �է���� [7 ���.] {3100228, 2, -1, 10}, -- ���ݧѧާ֧ߧߧ�� ��֧�է�� �է���� [7 ���.] {3100234, 2, -1, 10}, -- ���֧�է�� �٧ѧ�ڧ�� �է���� [7 ���.] {3030486, 1, -1, 5}, -- ���ѧݧѧ�ڧ� {3030479, 1, -1, 5}, -- ���ާ֧�ڧ�� {4700230, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 9 ���. [��֧��.] {4810048, 1, -1, 2}, -- ���ӧ���� �ߧѧҧ�� 85 ���. {4820121, 1, -1, 5}, -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧ԧ� ��ܧ�ѧ�֧ߧڧ� {4810067, 1, -1, 2}, -- ����է֧�ߧ��� ��٧�� ��ѧ٧ԧѧ� �ҧ�� {4820141, 1, -1, 2}, -- ����ܧ�� ���ݧڧ٧ڧ�ާ� [20] {4820120, 1, -1, 5} -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧� �ҧ��ߧ� } -- ����֧�ڧѧݧ�ߧ��� �ӧ֧�� �էݧ� 3110036: {20, 20, 10, 10, 10, 10, 13, 5, 2} tab_items[3110036] = { {4810090, 10, -1, 100}, -- ����֧ӧѧ� �ާ֧էѧݧ� {3110037, 10, -1, 20}, -- ����ߧ� ��ҧߧ�ӧݧ֧ߧڧ� ���ߧէ�ܧ� {3030069, 1, -1, 20}, -- ����ڧݧݧڧѧߧ�[����. 6] {3030077, 1, -1, 10}, -- ���ҧڧ� [����. 6] {3030117, 1, -1, 10}, -- ���էѧݧ֧ߧڧ� �ܧѧާߧ֧� [����. 5] {4800155, 2, -1, 10}, -- ���֧�է�� �ާѧԧڧ�֧�ܧ�� �է��� [9 ���.] {4810055, 1, -1, 13}, -- ���֧�է�� �է��� ��ݧ֧ާ֧ߧ�ѧݧ֧� [9 ���.] {4820120, 1, -1, 2}, -- ����ѧԧާ֧ߧ� �է�֧ӧߧ֧� �ҧ��ߧ� {4700230, 1, -1, 5}, -- ����ߧէ�� ���ӧ֧٧� 9 ���. [��֧��.] {4810048, 1, -1, 2}, -- ���ӧ���� �ߧѧҧ�� 85 ���. {4820161, 1, -1, 2}, -- ����ܧ�� ���ҧ��ݧ֧ާ� [20] {4810066, 1, -1, 2}, -- ����է֧�ߧ��� ��٧�� �ҧ�ا֧��ӧ֧ߧߧѧ� ��ڧݧ� {3020033, 1, -1, 2} -- ���ѧާ֧ߧ� �է��� +16 [��֧��.] } local index = 1 local total_weight = 0 -- ����ާާڧ��֧� �ӧ֧�� �էݧ� ���֧էާ֧��� ��� 2-�ԧ� ��� ����ݧ֧էߧڧ� (��֧�ӧ��� �ӧ�֧ԧէ� �էѧ֧���) for i = 2, #tab_items[TypeID] do total_weight = total_weight + tab_items[TypeID][i][4] end local r = math.random(total_weight) local temp = 0 for i = 2, #tab_items[TypeID] do temp = temp + tab_items[TypeID][i][4] if temp >= r then index = i break end end local tbl_guangbo ={3020033,4810066,4820161,4810048,4700230,4820141,4810067,3030479,3030486,4810068,3030464,3500061,3500023,4810049,4700229,3030077,3030069,3030478,3030485,3020032,3030033,3030076,4530096,3020031} local y = 0 for i = 1,#tbl_guangbo do if tab_items[TypeID][index][1] == tbl_guangbo[i] then y = 1 end end if y == 1 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 100, 280) --??????????? msg.AddMsgEvent(MsgID, 2, TargetID) msg.AddMsgEvent(MsgID, 4, TypeID) msg.AddMsgEvent(MsgID, 4, tab_items[TypeID][index][1]) msg.DispatchWorldMsgEvent(MsgID) end -- ������ѧӧݧ�֧� ����ҧ�֧ߧڧ� �ڧԧ��ܧ� �� �ڧߧ���ާѧ�ڧ֧� �� �ӧ���ѧӧ�֧� ���֧էާ֧�� local chance = tab_items[TypeID][index][4] / total_weight * 100 -- ��ѧߧ� �էݧ� �ӧ���ѧӧ�֧ԧ� ���֧էާ֧�� role.AddRoleItem(MapID, InstanceID, TargetID, tab_items[TypeID][1][1], tab_items[TypeID][1][2], tab_items[TypeID][1][3], 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, tab_items[TypeID][index][1], tab_items[TypeID][index][2], tab_items[TypeID][index][3], 8, 420) -- Гарантированно добавляем предмет 3010041 role.AddRoleItem(MapID, InstanceID, TargetID, 3010041, 1, -1, 8, 420) end aux.RegisterItemEvent(3110019, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110020, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110021, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110022, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110023, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110024, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110025, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110026, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110027, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110028, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110029, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110030, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110031, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110032, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110033, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110034, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110035, 1, "emodaobaoxiang_GiftBag") aux.RegisterItemEvent(3110036, 1, "emodaobaoxiang_GiftBag") function emodaobaoxiang_CanUseGiftBag(MapID, InstanceID, TypeID, TargetID) local bRet, bIgnore = 0, false --?��???????��??????? local FreeSize = role.GetBagFreeSize(TargetID) if(FreeSize < 2) then --?????????????? local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 26, 100003) msg.AddMsgEvent(MsgID, 9, 2) msg.DispatchRoleMsgEvent(TargetID, MsgID) bRet = 40 end return bRet, bIgnore end aux.RegisterItemEvent(3110019, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110020, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110021, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110022, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110023, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110024, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110025, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110026, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110027, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110028, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110029, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110030, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110031, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110032, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110033, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110034, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110035, 0, "emodaobaoxiang_CanUseGiftBag") aux.RegisterItemEvent(3110036, 0, "emodaobaoxiang_CanUseGiftBag")