Greasy Fork is available in English.
Automatically selects professions for empty slots
< Commentaires sur Neverwinter gateway - Profession Automation
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,
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.
Currently there is no easy way edit filters, I hope you can do edits.
.
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
Got it working, just had to step away for a bit and stop staring at lines of code ;) ty
^ lets not forget - with my help. ;P lol
I looked it again... "Exclusion filter" , it takes some item name away... need make it different way, but idea is clear, Cheers.
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?