Automatically selects professions for empty slots
< 脚本Neverwinter gateway - Profession Automation的反馈
That code block can be used, if you like, you can try even per character settings... but grinding Gateway works best less you, must interfere it, IMHO.
Anyway if you can automate it, then it work for you and others so that way spending time for gateway automation is fun, ;).
i tried to implement the mailsmithing code below the leadership code, however instead of working, it skipped doing mailsmithing all together!?!?
The taskname is Armorsmithing_Med
And not Mailsmithing
try to avoid using higher rank assets needlessly
I have found code that works well for leadership people assets, wondering how I could adjust it to work with other professions, ex jewelcrafting, mailsmithing, leatherworking ect.
// Try to avoid using up higher rank assets needlessly
if (prof.taskName === "Leadership") {
var mercenarys = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Leader_Generic_T1_01"]').parent().parent();
var guards = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Leader_Guard_T2_01"]').parent().parent();
var footmen = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Leader_Private_T2_01"]').parent().parent();
if (mercenarys.length) {
clicked = true;
mercenarys[0].click();
}
else if (guards.length) {
clicked = true;
guards[0].click();
}
else if (footmen.length) {
clicked = true;
footmen[0].click();
}
}
example for mailsmithing would this work?
if (prof.taskName === "Mailsmithing") {
var prospector = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Medarmor_Explorer_T1_01"]').parent().parent();
var blacksmith = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Medarmor_Wiredrawer_T2_01"]').parent().parent();
var assistantmailsmith = $('div.modal-item-list a.Bronze img[src*="Crafting_Follower_Medarmor_Metalsmith_T3_01"]').parent().parent();
if (prospector.length) {
clicked = true;
prospector[0].click();
}
else if (blacksmith.length) {
clicked = true;
blacksmith[0].click();
}
else if (assistantmailsmith.length) {
clicked = true;
assistantmailsmith[0].click();
}
}
If not then what else would be needed to ensure functionality? if this would work, something similar could be added for the other professions?