I dont know how it work on euro server, but on russian server every Leadership max count is three. Gateway bug - you add three task, but gateway not delete that task from tasklist, but give error when you add that task again. Script is looping.
My fix is add that rule to function searchForTask:
if (profname == "Leadership" && unsafeWindow.client.dataModel.model.ent.main.itemassignments.assignments.filter( function (entry) { return entry.hdef === "@ItemAssignmentDef["+taskname+"]"; }).length>=3) { console.log("Too many Leadership "+taskname+": skiping"); return false; }
P.S. Thank you by that script! P.P.S. Sorry my bad english.
Fix Leadership Too Many prof
I dont know how it work on euro server, but on russian server every Leadership max count is three. Gateway bug - you add three task, but gateway not delete that task from tasklist, but give error when you add that task again. Script is looping.
My fix is add that rule to function searchForTask:
if (profname == "Leadership" && unsafeWindow.client.dataModel.model.ent.main.itemassignments.assignments.filter(
function (entry) {
return entry.hdef === "@ItemAssignmentDef["+taskname+"]";
}).length>=3)
{
console.log("Too many Leadership "+taskname+": skiping");
return false;
}
P.S. Thank you by that script!
P.P.S. Sorry my bad english.