Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< Feedback em Neverwinter gateway - Profession Automation

Pergunta/comentário

§
Publicado: 01/07/2015
Editado: 01/07/2015

Skip Level 20/Level 25 Questions

I have change the script to this so that leadership and alchemy are not bound by the Skip logic - it seems to work off and on. Can you verify this is correct?

[code]

function searchForTask(taskname, profname, professionLevel) {

    // Return first object that matches exact craft name

    // skip task if proff.level20

    if (settings['level_20_skip'] && profname != 'Leadership' && profname != 'Alchemy' && professionLevel > 19) {

        console.log(profname, "is level", professionLevel,"skipping.");
        return false;

    }if (settings['level_25_skip'] && profname != 'Leadership' && profname != 'Alchemy' && professionLevel > 24) {
        console.log(profname, "is level", professionLevel,"skipping.");
        return false;

[/code]

§
Publicado: 01/07/2015

Not tested it, but...

If settings are Skip "??" and profession name isnot LEadership or Alchemy and ProfessionLevel is "??", then skip.

"|" (or) operator cuold be better, "&&"(and) cuold not work... I think you find logic there.

function searchForTask(taskname, profname, professionLevel) {
// Return first object that matches exact craft name
// skip task if proff.level20
if (settings['level_20_skip'] && profname != ('Leadership'|'Alchemy') && professionLevel > 19) {
    console.log(profname, "is level", professionLevel, "skipping.");
    return false;
}
if (settings['level_25_skip'] && profname != ('Leadership'|'Alchemy') && professionLevel > 24) {
    console.log(profname, "is level", professionLevel, "skipping.");
    return false;
}
}

Your example says,

If settings are Skip "??" and profession name isnot LEadership and profession name isnot Alchemy and ProfessionLevel is "??", then skip.

Iis basic javascript stuff but still I need test it before Im sure, ;).

Publicar resposta

Faça o login para publicar uma resposta.