Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< Відгуки до Neverwinter gateway - Profession Automation

Відгук: Добре - скрипт працює добре

§
Опубліковано: 23.05.2015

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?

Rotten_mindАвтор
§
Опубліковано: 23.05.2015

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, ;).

§
Опубліковано: 23.05.2015

i tried to implement the mailsmithing code below the leadership code, however instead of working, it skipped doing mailsmithing all together!?!?

§
Опубліковано: 23.05.2015

The taskname is Armorsmithing_Med And not Mailsmithing

Опублікувати відповідь

Sign in to post a reply.