MMOMinion

Full Version: Making Collectable Gathering Scripts?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Guys,

I'm using the Gathering Scripts from here at the moment: http://www.mmominion.com/thread-18919.html
They're available as LUA, so they're editable.
Could you explain how I can make a Script to collect the Materials as Collectable?
Okay, I almost got it to work.
I updated the SkillManagerScript like this:

Code:
-- Persistent Data
local multiRefObjects = {

} -- multiRefObjects
local obj1 = {
    ["classes"] = {
        [1] = false;
        [2] = false;
        [3] = false;
        [4] = false;
        [5] = false;
        [6] = false;
        [7] = false;
        [8] = false;
        [9] = false;
        [10] = false;
        [11] = false;
        [12] = false;
        [13] = false;
        [14] = false;
        [15] = false;
        [16] = true;
        [17] = true;
        [18] = true;
        [19] = false;
        [20] = false;
        [21] = false;
        [22] = false;
        [23] = false;
        [24] = false;
        [25] = false;
        [26] = false;
        [27] = false;
        [28] = false;
        [29] = false;
        [30] = false;
        [31] = false;
        [32] = false;
        [33] = false;
        [34] = false;
        [35] = false;
    };
    ["filters"] = {
        [1] = "";
        [2] = "";
        [3] = "";
        [4] = "";
        [5] = "";
    };
    ["skills"] = {
        [1] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 1;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "4088";
            ["gpmax"] = 900;
            ["gpmin"] = 599;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4092;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Discerning Eye";
            ["prio"] = 1;
            ["pskillg"] = "4088";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [2] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 1;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "4088";
            ["gpmax"] = 900;
            ["gpmin"] = 599;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4078;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Discerning Eye";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 2;
            ["pskill"] = "";
            ["pskillg"] = "4088";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
        [3] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 10;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "";
            ["gpmax"] = 0;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4089;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Methodical Appraisal";
            ["prio"] = 3;
            ["pskillg"] = "4092";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [4] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 10;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "";
            ["gpmax"] = 0;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4075;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Methodical Appraisal";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 4;
            ["pskill"] = "";
            ["pskillg"] = "4078";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
        [5] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 10;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "";
            ["gpmax"] = 599;
            ["gpmin"] = 399;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4092;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Discerning Eye";
            ["prio"] = 5;
            ["pskillg"] = "4089";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [6] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 10;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "";
            ["gpmax"] = 599;
            ["gpmin"] = 399;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4078;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Discerning Eye";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 6;
            ["pskill"] = "";
            ["pskillg"] = "4075";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
        [7] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 20;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "";
            ["gpmax"] = 399;
            ["gpmin"] = 199;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4092;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Single Mind";
            ["prio"] = 7;
            ["pskillg"] = "4089";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [8] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 20;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "";
            ["gpmax"] = 399;
            ["gpmin"] = 199;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4078;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Discerning Eye";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 8;
            ["pskill"] = "";
            ["pskillg"] = "4075";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
        [9] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "";
            ["gpmax"] = 0;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4089;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Methodical Appraisal";
            ["prio"] = 9;
            ["pskillg"] = "4092";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [10] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "";
            ["gpmax"] = 0;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4075;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Methodical Appraisal";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 10;
            ["pskill"] = "";
            ["pskillg"] = "4078";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
        [11] = {
            ["alias"] = "";
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gpbuff"] = "";
            ["gpmax"] = 600;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["id"] = 4089;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["name"] = "Methodical Appraisal";
            ["prio"] = 11;
            ["pskillg"] = "";
            ["singleuseonly"] = false;
            ["type"] = 1;
            ["used"] = true;
        };
        [12] = {
            ["alias"] = "";
            ["chainend"] = false;
            ["chainname"] = "";
            ["chainstart"] = false;
            ["charge"] = false;
            ["collraritygt"] = 0;
            ["collraritylt"] = 0;
            ["collweareq"] = 0;
            ["collweargt"] = 0;
            ["collwearlt"] = 0;
            ["combat"] = "";
            ["condition"] = "";
            ["cpbuff"] = "";
            ["cpnbuff"] = "";
            ["dobuff"] = false;
            ["enmityaoe"] = false;
            ["filterfive"] = "";
            ["filterfour"] = "";
            ["filterone"] = "";
            ["filterthree"] = "";
            ["filtertwo"] = "";
            ["frontalconeaoe"] = false;
            ["gatherattempts"] = 0;
            ["gatherattemptsmax"] = 0;
            ["gcd"] = "";
            ["gpbuff"] = "";
            ["gpmax"] = 600;
            ["gpmin"] = 0;
            ["gpnbuff"] = "";
            ["gsecspassed"] = 0;
            ["hasitem"] = "";
            ["hprio1"] = "";
            ["hprio2"] = "";
            ["hprio3"] = "";
            ["hprio4"] = "";
            ["id"] = 4075;
            ["ignoremoving"] = false;
            ["isitem"] = "";
            ["isunspoiled"] = false;
            ["itemchancemax"] = 0;
            ["itemhqchancemin"] = 0;
            ["lastcast"] = 0;
            ["lastcastunique"] = {
            };
            ["m10actionmsg"] = "";
            ["m10actiontarget"] = "";
            ["m10actiontype"] = "";
            ["m11actionmsg"] = "";
            ["m11actiontarget"] = "";
            ["m11actiontype"] = "";
            ["m12actionmsg"] = "";
            ["m12actiontarget"] = "";
            ["m12actiontype"] = "";
            ["m13actionmsg"] = "";
            ["m13actiontarget"] = "";
            ["m13actiontype"] = "";
            ["m14actionmsg"] = "";
            ["m14actiontarget"] = "";
            ["m14actiontype"] = "";
            ["m15actionmsg"] = "";
            ["m15actiontarget"] = "";
            ["m15actiontype"] = "";
            ["m16actionmsg"] = "";
            ["m16actiontarget"] = "";
            ["m16actiontype"] = "";
            ["m17actionmsg"] = "";
            ["m17actiontarget"] = "";
            ["m17actiontype"] = "";
            ["m18actionmsg"] = "";
            ["m18actiontarget"] = "";
            ["m18actiontype"] = "";
            ["m19actionmsg"] = "";
            ["m19actiontarget"] = "";
            ["m19actiontype"] = "";
            ["m1actionmsg"] = "";
            ["m1actiontarget"] = "";
            ["m1actiontype"] = "";
            ["m20actionmsg"] = "";
            ["m20actiontarget"] = "";
            ["m20actiontype"] = "";
            ["m2actionmsg"] = "";
            ["m2actiontarget"] = "";
            ["m2actiontype"] = "";
            ["m3actionmsg"] = "";
            ["m3actiontarget"] = "";
            ["m3actiontype"] = "";
            ["m4actionmsg"] = "";
            ["m4actiontarget"] = "";
            ["m4actiontype"] = "";
            ["m5actionmsg"] = "";
            ["m5actiontarget"] = "";
            ["m5actiontype"] = "";
            ["m6actionmsg"] = "";
            ["m6actiontarget"] = "";
            ["m6actiontype"] = "";
            ["m7actionmsg"] = "";
            ["m7actiontarget"] = "";
            ["m7actiontype"] = "";
            ["m8actionmsg"] = "";
            ["m8actiontarget"] = "";
            ["m8actiontype"] = "";
            ["m9actionmsg"] = "";
            ["m9actiontarget"] = "";
            ["m9actiontype"] = "";
            ["name"] = "Methodical Appraisal";
            ["ncurrentaction"] = "";
            ["npc"] = false;
            ["npcskill"] = "";
            ["npgskill"] = "";
            ["npskill"] = "";
            ["onlyparty"] = false;
            ["onlysolo"] = false;
            ["partysizelt"] = 0;
            ["pbuff"] = "";
            ["pcskill"] = "";
            ["petbuff"] = "";
            ["petnbuff"] = "";
            ["pgskill"] = "";
            ["pgtrg"] = "";
            ["pmprsgt"] = "";
            ["pnbuff"] = "";
            ["ppos"] = "";
            ["prio"] = 12;
            ["pskill"] = "";
            ["pskillg"] = "";
            ["ptbuff"] = "";
            ["ptkbuff"] = false;
            ["ptnbuff"] = "";
            ["ptrg"] = "";
            ["punderattack"] = false;
            ["punderattackmelee"] = false;
            ["removebuff"] = false;
            ["singleuseonly"] = false;
            ["skncdtimemax"] = 0;
            ["skncdtimemin"] = 0;
            ["sknoffcd"] = "";
            ["sknready"] = "";
            ["skoffcd"] = "";
            ["skready"] = "";
            ["sktype"] = "";
            ["stype"] = "";
            ["tankedonlyaoe"] = false;
            ["tbuff"] = "";
            ["tbuffowner"] = "";
            ["tcastids"] = "";
            ["tcastonme"] = false;
            ["tcasttime"] = "";
            ["tcontids"] = "";
            ["tecenter"] = "";
            ["televel"] = "";
            ["tnbuff"] = "";
            ["tnbuffowner"] = "";
            ["tncontids"] = "";
            ["trg"] = "";
            ["trgtype"] = "";
            ["type"] = 1;
            ["used"] = true;
            ["whstack"] = "";
        };
    };
    ["version"] = 3;
}
return obj1
And linked it to the GatherScript.
But now, the Gatherbot won't use "Collectors Glove" before gathering.
When I implement Collectors Glove into the SkillManagerScript, it will buff and directly unbuff "Collectors Glove" again, THEN starts to gather.
Same effect as without adding Collectors Glove to the SkillManagerScript.
How can I fix this?