Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< Feedback on Neverwinter gateway - Profession Automation

Question/comment

§
Posted: 2015/03/28

Black ice shaping and fill optionnal asset.

hello,
i have a litte problem with black ice shaping.
i have 8 worker(green, bleu, etc...) and 4 gauntlet.
i put 2 slot for blackice but with the fill optional asset check, they don't take worker for optional slot they take gauntlet.
is this normal ? me i prefer they do quicly the task and don't do the rank 2 or 3 of it.

§
Posted: 2015/03/28

sorry it' not gauntlet but steel graver

Rotten_mindAuthor
§
Posted: 2015/03/28

Asset selection happens here,

/**
 * Selects the highest level asset for the i'th button in the list. Uses an iterative approach
 * in order to apply a sufficient delay after the asset is assigned
 *
 * @param {Array} The list of buttons to use to click and assign assets for
 * @param {int} i The current iteration number. Will select assets for the i'th button
 * @param {Deferred} jQuery Deferred object to resolve when all of the assets have been assigned
 */
function SelectItemFor(buttonListIn, i, def, prof) {
    buttonListIn[i].click();
    WaitForState("").done(function () {

        var $assets = $("div.modal-item-list a").has("img[src*='_Resource_'],img[src*='_Assets_'],img[src*='_Tools_'],img[src*='_Tool_'],img[src*='_Jewelersloupe_'],img[src*='_Bezelpusher_']"); //edited by RottenMind
        var $persons = $("div.modal-item-list a").has("img[src*='_Follower_']");
        var quality = [".Special", ".Gold", ".Silver", ".Bronze"];

Current script takes first tools by "Quality", safest for Rank3 job,

        // check resources & assets for best quality, in descending order
        for (ic in quality) {
            $it = $assets.filter(quality[ic]);
            if ($it.length) {
                $it[0].click();
                clicked = true;
                break;
            }
        }

and then it look persons,

        // if no asset was selected, check for persons for best speed, in descending order
        if (!clicked) {
            for (ic in quality) {
                $it = $persons.filter(quality[ic]);
                if ($it.length) {
                    $it[0].click();
                    clicked = true;
                    break;
                }
            }
        }
Rotten_mindAuthor
§
Posted: 2015/03/28

Script cant select "Armor_Scale_Hand_T3a_G3" (Gauntlet) as optional asset because it is not defined if it select it thene there is error.

Script selects optional asset like "Crafting_Assets_Chisel_03"(Graver), because it is defined on "var $assets".

§
Posted: 2015/03/30

ok i do a mistake they select steel graver in optional slot.
but blackice shaping is a special prof and don't need to do all the time a rank 3or 2 for refine task.
just do the quick as possible so need to take the worker and not the steel graver.

do you think you can do a special function for black ice or put a test in the existant function ?

Post reply

Sign in to post a reply.