TODO: leatherworking
Uncaught ReferenceError: task_page is not defined
was working fine now it breaks
Still getting an error after a random amount of cycles, it normally works but some times I get: Uncaught TypeError: Cannot read property 'length' of undefined
and then it stops doing anything. This is what I've changed the code to: Pastebin
Is there a way to make it automatically reset after I get this error?
Last edited by refix7; 05-25-2013 at 03:07 AM.
Before now I had Leadership as my 'highest' profession, both it and Platesmithing were level6. Since posting yesterday I have manually leveled Platesmithing to level7 (so it is now first on the list.
Yesterday if the script was running and I clicked Platesmithing it would return to Overview. Now it still does nothing from Overview but, if I click Platesmithing myself it will correctly select the Gather Iron Ore and select the Miner resource and 'Start Task' for me.
Short version, it seems that the problem exists whilst the script is trying to select Platesmithing.
Wild guessing here so forgive the effort....
'Choose Task' always opens Leadership profession for me.
Platesmithing is the profession name but, the url for the platesmithing task list actually says 'Armorsmithing_Heavy' (mail is armorsmithing_Med)
Whether either or both of those facts makes any difference to why the script is failing i don't know ?
Already said that earlier:
mailsmithing: '.professions-Armorsmithing_Med:visible',
platesmithing: '.professions-Armorsmithing_Heavy:visible',
Thanks , I had missed that and wasn't sure if to edit the bit you said or the task name. Now I do
OK, that works (sort of).
The script now tries to access Platesmithing task list all the time, regardless of if there is a spare task slot available.
Any ideas ?
It uses the list of tasks you have in _private.professions.to_do to also keep your session active (eg logged in) while it it waits for tasks to finish. So if you only have one profession in the list yes it will just switch between it and the overview tab while it is waiting for tasks to finish
line 172: _private.jobs.find_doable_job(to_do, task_page);
find_doable_job accepts one parameter. change to
_private.jobs.find_doable_job(to_do);
works for me.
Last edited by iso2k4; 05-25-2013 at 09:36 AM.
NP. its what I do for a living. Debug other developers jquery code.
Working as of post #70, thanks all
What does the edit in post #71 do ?