Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< 腳本Neverwinter gateway - Profession Automation的回應

提問/評論

§
發表於:2015-01-18
編輯:2015-01-19

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作者
§
發表於:2015-01-18
編輯:2015-01-19

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作者
§
發表於:2015-01-18

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

§
發表於:2015-01-18
編輯:2015-01-18

.

Rotten_mind作者
§
發表於:2015-01-18

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

§
發表於:2015-01-19

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

§
發表於:2015-01-19

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

Rotten_mind作者
§
發表於:2015-01-19

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

發表回覆

登入以回復