MMOMinion

Full Version: How to do a quest that you allready done.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

I'm stuck coding a profile for the Amalj'aa tribe quests.
Tribal quests are particular since you can do it everyday. But in the player database, if a quest is allready done, it appears that "IsQuestCompleted" like here:

[Image: f722e03]

http://hpics.li/f722e03

It seems Quest lua skip quests you allready done. If it's that, how can i do for not to have my bots teleporting to Coerthas for grinding instead of doing the quests?
Here is an exemple of Amalj'aa quest i'm working on:

Code:
-- Persistent Data
local multiRefObjects = {

} -- multiRefObjects
local obj1 = {
    ["names"] = {
    };
    ["quests"] = {
        [1227] = {
            ["level"] = 43;
            ["name"] = "Smothering Instinct";
            ["prereq"] = false;
            ["steps"] = {
                [1] = {
                    ["delay"] = 0;
                    ["id"] = 1005550;
                    ["itemreward"] = false;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = 103.26;
                        ["y"] = 15.04;
                        ["z"] = -357.7;
                    };
                    ["type"] = "start";
                };
                [2] = {
                    ["delay"] = 0;
                    ["id"] = 2003061;
                    ["itemreward"] = false;
                    ["index"] = 2;
                    ["itemid"] = 2001164;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = -152.1;
                        ["y"] = 5.45;
                        ["z"] = -100.3;
                    };
                    ["type"] = "useitem";
                };
                [3] = {
                    ["delay"] = 0;
                    ["id"] = 2003060;
                    ["itemreward"] = false;
                    ["index"] = 2;
                    ["itemid"] = 2001164;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = -114.5;
                        ["y"] = -0.02;
                        ["z"] = -126.4;
                    };
                    ["type"] = "useitem";
                };
                [4] = {
                    ["delay"] = 0;
                    ["id"] = 2003062;
                    ["itemreward"] = false;
                    ["index"] = 2;
                    ["itemid"] = 2001164;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = -70.18;
                        ["y"] = -1.40;
                        ["z"] = -89.77;
                    };
                    ["type"] = "useitem";
                };
                [5] = {
                    ["delay"] = 0;
                    ["id"] = 2003065;
                    ["itemreward"] = false;
                    ["index"] = 2;
                    ["itemid"] = 2001164;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = -160.0;
                        ["y"] = 6.48;
                        ["z"] = -3.64;
                    };
                    ["type"] = "useitem";
                };
                [6] = {
                    ["delay"] = 0;
                    ["id"] = 2003066;
                    ["itemreward"] = false;
                    ["index"] = 2;
                    ["itemid"] = 2001164;
                    ["mapid"] = 146;
                    ["meshname"] = "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = -132.3;
                        ["y"] = 16.68;
                        ["z"] = 107.90;
                    };
                    ["type"] = "useitem";
                };
                [7] = {
                    ["delay"] = 0;
                    ["id"] = 1005550;
                    ["itemreward"] = false;
                    ["mapid"] = 146;
                    ["meshname"] =     "Southern Thanalan";
                    ["pos"] = {
                        ["x"] = 103.26;
                        ["y"] = 15.04;
                        ["z"] = -357.7;
                    };
                    ["type"] = "complete";
                };
            };
        };
    };
    ["vars"] = {
    };
}
return obj1

Thx for your help  Cutesmile
it is normal that quests are ignored when they are completed, this is the main reason no tribe profile exist or would already been live.
ok thx. so there is no way to force the completion of the quest.
So i need to think about an addon. And manually write the tasks, so no need to use quest lua. That's right?
I'm curious, does minion store the completion status of quests or get the information from the game itself? Would it be possible to detect if a quest is repeatable or maintain a list of known repeatable quests and ignore the completion status?
gets the info from game