local UNLOCK_CON_LEV = 1    --神兵解锁条件是根据前置神兵的等级
local UNLOCK_CON_NPC = 2    --神兵解锁条件是去找npc

local GodWeaponInfo = {}


--用武器Type为索引，weaponex是前置武器type，weaponexlev是前置武器所需等级
GodWeaponInfo[1] = {}
-- GodWeaponInfo[2] = {unlock = UNLOCK_CON_LEV, weaponex = 1, weaponexlev = 18,}
-- GodWeaponInfo[3] = {unlock = UNLOCK_CON_NPC, radius = 3, idmap = 1002, idnpc = 666, posx = 329, posy = 312,}
-- GodWeaponInfo[4] = {unlock = UNLOCK_CON_NPC, radius = 3, idmap = 1002, idnpc = 666, posx = 329, posy = 312,}



local Task = {

    [7803] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,580,398,0,2",
        --激情服
        taskpos_passion = "10364,380,409,0,2",
        --新服
        taskpos_new = "1002,580,398,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730002,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=3,
        },
    },
    [7804] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,580,398,0,2",
        --激情服
        taskpos_passion = "10364,380,409,0,2",
        --新服
        taskpos_new = "1002,580,398,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=4,
        },
    },
    [7805] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,580,398,0,2",
        --激情服
        taskpos_passion = "10364,380,409,0,2",
        --新服
        taskpos_new = "1002,580,398,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=6,
        },
    },

    [7806] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,607,761,0,2",
        --激情服
        taskpos_passion = "1011,607,761,0,2",
        --新服
        taskpos_new = "1011,607,761,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730002,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=3,
        },
    },
    [7807] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,607,761,0,2",
        --激情服
        taskpos_passion = "1011,607,761,0,2",
        --新服
        taskpos_new = "1011,607,761,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=4,
        },
    },
    [7808] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,607,761,0,2",
        --激情服
        taskpos_passion = "1011,607,761,0,2",
        --新服
        taskpos_new = "1011,607,761,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=6,
        },
    },

    [7809] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,457,693,0,2",
        --激情服
        taskpos_passion = "1020,457,693,0,2",
        --新服
        taskpos_new = "1020,457,693,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730002,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=3,
        },
    },
    [7810] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,457,693,0,2",
        --激情服
        taskpos_passion = "1020,457,693,0,2",
        --新服
        taskpos_new = "1020,457,693,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=4,
        },
    },
    [7811] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,457,693,0,2",
        --激情服
        taskpos_passion = "1020,457,693,0,2",
        --新服
        taskpos_new = "1020,457,693,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=6,
        },
    },
    [7812] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,177,298,0,2",
        --激情服
        taskpos_passion = "1000,177,298,0,2",
        --新服
        taskpos_new = "1000,177,298,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730002,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=3,
        },
    },
    [7813] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,177,298,0,2",
        --激情服
        taskpos_passion = "1000,177,298,0,2",
        --新服
        taskpos_new = "1000,177,298,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=4,
        },
    },
    [7814] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,177,298,0,2",
        --激情服
        taskpos_passion = "1000,177,298,0,2",
        --新服
        taskpos_new = "1000,177,298,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=6,
        },
    },
    [7815] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,359,299,0,2",
        --激情服
        taskpos_passion = "1015,359,299,0,2",
        --新服
        taskpos_new = "1015,359,299,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730002,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=3,
        },
    },
    [7816] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,359,299,0,2",
        --激情服
        taskpos_passion = "1015,359,299,0,2",
        --新服
        taskpos_new = "1015,359,299,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=4,
        },
    },
    [7817] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,359,299,0,2",
        --激情服
        taskpos_passion = "1015,359,299,0,2",
        --新服
        taskpos_new = "1015,359,299,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 730003,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_7Day",
        },
        [3] = {
            itemtype = 3321077,
            monopoly = 1,
            num=6,
        },
    },

    [7818] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,645,344,0,2",
        --激情服
        taskpos_passion = "10364,553,364,0,2",
        --新服
        taskpos_new = "1002,645,344,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 0,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=3,
        },
    },
    [7819] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,645,344,0,2",
        --激情服
        taskpos_passion = "10364,553,364,0,2",
        --新服
        taskpos_new = "1002,645,344,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 0,
            num=2,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=4,
        },
    },
    [7820] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1002,645,344,0,2",
        --激情服
        taskpos_passion = "10364,553,364,0,2",
        --新服
        taskpos_new = "1002,645,344,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 0,
            num=3,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=6,
        },
    },

    [7821] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,298,457,0,2",
        --激情服
        taskpos_passion = "1011,298,457,0,2",
        --新服
        taskpos_new = "1011,298,457,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=3,
        },
    },
    [7822] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,298,457,0,2",
        --激情服
        taskpos_passion = "1011,298,457,0,2",
        --新服
        taskpos_new = "1011,298,457,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=2,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=4,
        },
    },
    [7823] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1011,298,457,0,2",
        --激情服
        taskpos_passion = "1011,298,457,0,2",
        --新服
        taskpos_new = "1011,298,457,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=3,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=6,
        },
    },

    [7824] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,564,727,0,2",
        --激情服
        taskpos_passion = "1020,564,727,0,2",
        --新服
        taskpos_new = "1020,564,727,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=3,
        },
    },
    [7825] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,564,727,0,2",
        --激情服
        taskpos_passion = "1020,564,727,0,2",
        --新服
        taskpos_new = "1020,564,727,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=2,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=4,
        },
    },
    [7826] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1020,564,727,0,2",
        --激情服
        taskpos_passion = "1020,564,727,0,2",
        --新服
        taskpos_new = "1020,564,727,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=3,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=6,
        },
    },

    [7827] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,621,527,0,2",
        --激情服
        taskpos_passion = "1000,621,527,0,2",
        --新服
        taskpos_new = "1000,621,527,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=3,
        },
    },
    [7828] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,621,527,0,2",
        --激情服
        taskpos_passion = "1000,621,527,0,2",
        --新服
        taskpos_new = "1000,621,527,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=2,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=4,
        },
    },
    [7829] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1000,621,527,0,2",
        --激情服
        taskpos_passion = "1000,621,527,0,2",
        --新服
        taskpos_new = "1000,621,527,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=3,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=6,
        },
    },

    [7830] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,271,226,0,2",
        --激情服
        taskpos_passion = "1015,271,226,0,2",
        --新服
        taskpos_new = "1015,271,226,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=1,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=3,
        },
    },
    [7831] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,271,226,0,2",
        --激情服
        taskpos_passion = "1015,271,226,0,2",
        --新服
        taskpos_new = "1015,271,226,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=2,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=4,
        },
    },
    [7832] = {
        count = 3,
        --参数1地图id,参数2，参数3，xy坐标，参数4Npcid配0就是寻路，参数5是半径
        taskpos = "1015,271,226,0,2",
        --激情服
        taskpos_passion = "1015,271,226,0,2",
        --新服
        taskpos_new = "1015,271,226,0,2",
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 3009001,
            monopoly = 1,
            num=3,
            savetime = "STR_GODWEAPON_TASK_SAVE_TIME_2Day",
        },
        [3] = {
            itemtype = 3314211,
            monopoly = 0,
            num=6,
        },
    },
    -- 任务id
    [7833] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=5,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=5,
        },
    },
    -- 任务id
    [7834] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=8,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=8,
        },
    },
    -- 任务id
    [7835] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=10,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=10,
        },
    },
    -- 任务id
    [7836] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=5,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=5,
        },
    },
    -- 任务id
    [7837] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=8,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=8,
        },
    },
    -- 任务id
    [7838] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=10,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=10,
        },
    },
    -- 任务id
    [7839] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=5,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=5,
        },
    },
    -- 任务id
    [7840] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=8,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=8,
        },
    },
    -- 任务id
    [7841] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=10,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=10,
        },
    },
    -- 任务id
    [7842] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=5,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=5,
        },
    },
    -- 任务id
    [7843] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=8,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=8,
        },
    },
    -- 任务id
    [7844] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=10,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=10,
        },
    },
    -- 任务id
    [7845] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=5,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=5,
        },
    },
    -- 任务id
    [7846] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=8,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=8,
        },
    },
    -- 任务id
    [7847] = {
        count = 3,
        submit=true,
        [1] = {
            itemtype = 3345363,
            monopoly = 0,
            num=1,
        },
        [2] = {
            itemtype = 4060001,
            monopoly = 1,
            num=10,
        },
        [3] = {
            itemtype = 3009100,
            monopoly = 0,
            num=10,
        },
    },
}

-- 获取任务信息
local function GetTaskInfo(taskid, key, key1)
    local TaskId = Task[taskid]
    if TaskId == nil then
        return 0
    end
	
	if key == "taskpos" then
		-- 激情服
		if UserData_IsPassionServer() then
			key = "taskpos_passion"
		--新服
		elseif UserData_IsNewServer() then
			key = "taskpos_new"
		end
	end
	
    local TaskData = TaskId[key]
    if TaskData == nil then
        return 0
    end

    if key1 == nil then 
        return TaskData
    end

    local Reawrd = TaskData[key1]
    if Reawrd ~= nil then
        return Reawrd
    end
end

-- 是否是任务id
local function IsGodWeponTask(taskid)
    local TaskId = Task[taskid]
    if TaskId == nil then
        return false
    end

    return true
end

local function IsOpen(nlev, nMete)
	if UserData_IsOldSoldierServer() == true then
		return false
	end
	
	-- 屏蔽掉钱服
	if UserData_IsCoinsServer() == true then
		return false
	end
	
	if nlev >= 15 and nMete > 1 then
		return true
	end
	
	return false
end
-- 清理变量释放内存
local function Unload()
    Task = nil
    GetTaskInfo = nil
    GetData = nil
	MagicalWeapon_GetGodWeaponInfo = nil
	MagicalWeapon_GetWeaponTypeIsWhat = nil
	MagicalWeapon_GetWeaponType = nil

end

local function GetGodWeaponInfo(type, key)
    if GodWeaponInfo[type] ==nil or GodWeaponInfo[type][key] == nil then
        return nil
    end

    return GodWeaponInfo[type][key]
end
local function GetWeaponTypeIsWhat(type)
    if type == 1 or type == 3 then
           return 1
    end
   
   return 2
end

local WeaponTypeInfo = {1,2}
local function GetWeaponType(key)
	if key == "num" then
	return #WeaponTypeInfo
	end

	return WeaponTypeInfo[key]
end

-- 获取红点信息 新增新兵数值要加1
local function GetRedPointInfo(key)
    --配置0不启用功能，配置其他是神兵类型
    if key == "WeaponType" then
        return 0
    end
end

-- 通过require传给其他Lua脚本使用
local MagicalWeapon = {
    IsGodWeponTask = IsGodWeponTask,
    GetTaskInfo = GetTaskInfo,
	IsOpen = IsOpen,
	Unload = Unload,
	GetGodWeaponInfo = GetGodWeaponInfo,
	GetWeaponTypeIsWhat = GetWeaponTypeIsWhat,
	GetWeaponType = GetWeaponType,
	GetRedPointInfo = GetRedPointInfo,
}

-- C++程序使用的global函数名
MagicalWeapon_IsGodWeponTask = MagicalWeapon.IsGodWeponTask
MagicalWeapon_GetTaskInfo = MagicalWeapon.GetTaskInfo
MagicalWeapon_IsOpen = MagicalWeapon.IsOpen
MagicalWeapon_Unload = MagicalWeapon.Unload
MagicalWeapon_GetGodWeaponInfo = MagicalWeapon.GetGodWeaponInfo
MagicalWeapon_GetWeaponTypeIsWhat = MagicalWeapon.GetWeaponTypeIsWhat 
MagicalWeapon_GetWeaponType = MagicalWeapon.GetWeaponType
MagicalWeapon_GetRedPointInfo = MagicalWeapon.GetRedPointInfo

-- require返回值
return MagicalWeapon