Greasy Fork is available in English.

Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< Feedback on Neverwinter gateway - Profession Automation

سؤال / تعليق

§
Posted: 18-01-2015
Edited: 19-01-2015

Neverwinter item id's

how do you go about find the item id's in nw? like ^T1_Enchantment is rank 1 enchantment but where do we find the ^T1_Enchantment code in the game files?

Rotten_mindمؤلف
§
Posted: 18-01-2015
Edited: 19-01-2015

You need do little edit to your script, enable "console log", open console log and click "auto Vendor" -button on Gateway inventory screen, your "Vendor/Maintain Crafted level up items" need to be enabled, that setting sell mainly "trash" created by leveling.

Line to add is safe,

  • console.log(slot.name); // this prints slot names if there is function what looks them

Open script and look lines between 1700 - 1800, looks like below


    if (settings["autovendor_profresults"]) {
        _tmpBag.forEach(function (slot) {
            for (i = 1; i < _profitems.length; i++) { // edited by RottenMind
                if (slot && _profitems[i].pattern.test(slot.name) && !slot.bound && _profitems[i].count > 3 && Inventory_bagspace() <= 7 ) { // edited by RottenMind
                    var vendor = {
                        vendor : "Nw_Gateway_Professions_Merchant"
                    };
                    vendor.id = slot.uid;
                    vendor.count = 1;
                    console.log('Selling', vendor.count, slot.name, 'to vendor.');
                    window.setTimeout(function () {
                        client.sendCommand('GatewayVendor_SellItemToVendor', vendor);
                    }, _delay);
                    _profitems[i].count--;
                    break;
                }
            }
        });
    }

add line,


    if (settings["autovendor_profresults"]) {
        _tmpBag.forEach(function (slot) {
            console.log(slot.name); // this line added
            for (i = 1; i < _profitems.length; i++) { // edited by RottenMind
                if (slot && _profitems[i].pattern.test(slot.name) && !slot.bound && _profitems[i].count > 3 && Inventory_bagspace() <= 7 ) { // edited by RottenMind
                    var vendor = {
                        vendor : "Nw_Gateway_Professions_Merchant"
                    };
                    vendor.id = slot.uid;
                    vendor.count = 1;
                    console.log('Selling', vendor.count, slot.name, 'to vendor.');
                    window.setTimeout(function () {
                        client.sendCommand('GatewayVendor_SellItemToVendor', vendor);
                    }, _delay);
                    _profitems[i].count--;
                    break;
                }
            }
        });
    }

save script, reload Gateway page and Auto vendor prints stuff in console log.

Rotten_mindمؤلف
§
Posted: 18-01-2015

Currently there is no easy way edit filters, I hope you can do edits.

§
Posted: 18-01-2015
Edited: 18-01-2015

.

Rotten_mindمؤلف
§
Posted: 18-01-2015

I too learning this stuff, below link helps for start


BTW, if you find new items to add "Safeguard" list or sell list have incorrect names... they must be checked and added so script stays safe side.

http://www.vogella.com/tutorials/JavaRegularExpressions/article.html#introduction_regex

§
Posted: 19-01-2015

Got it working, just had to step away for a bit and stop staring at lines of code ;) ty

§
Posted: 19-01-2015

^ lets not forget - with my help. ;P lol

Rotten_mindمؤلف
§
Posted: 19-01-2015

I looked it again... "Exclusion filter" , it takes some item name away... need make it different way, but idea is clear, Cheers.

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.