JavaScript Lazy Professions menu

User Tag List

Page 6 of 14 FirstFirst ... 2345678910 ... LastLast
Results 76 to 90 of 207
  1. #76
    Digitalxero's Avatar Member
    Reputation
    15
    Join Date
    May 2013
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TZero View Post
    Working as of post #70, thanks all

    What does the edit in post #71 do ?
    That has already been incorporated back into the PasteBin post. It's just a typo that could cause an error if the it had to switch pages to find the job you want it to do

    JavaScript Lazy Professions
  2. #77
    TZero's Avatar Private
    Reputation
    1
    Join Date
    May 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Digitalxero View Post
    That has already been incorporated back into the PasteBin post. It's just a typo that could cause an error if the it had to switch pages to find the job you want it to do
    Ah ok , thank you

  3. #78
    refix7's Avatar Member
    Reputation
    1
    Join Date
    Apr 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by iso2k4 View Post
    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.
    This seems to have fixed my problems, ill report back after another 2hr cycle ! thanks

  4. #79
    pmfun's Avatar Corporal
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    btw what's the purpose of time_fillter() function? cant you just camp the overview page?

    - why 'fillter'? filter spells with one "l"
    - this function does nothing except random open any profession tasks and wait
    - in code we have also 'filler' - this is misspelled 'filter' or the noun of verb 'fill'

  5. #80
    imunderyourbed's Avatar Member
    Reputation
    4
    Join Date
    Jun 2012
    Posts
    118
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi i was wondering if we had available slots can we use up all slots to do leadership only tasks?

  6. #81
    TZero's Avatar Private
    Reputation
    1
    Join Date
    May 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imunderyourbed View Post
    hi i was wondering if we had available slots can we use up all slots to do leadership only tasks?
    Yes you can, just change line 20 to
    Code:
            to_do: ['leadership'],
    And, if you want to change the tasks in Leadership that the script does then, change line 22 to include the tasks you want to do (each task is enclosed in single quotes and followed by a comma and a space unless it's the last task in the list which only has a single quote between it and the close square bracket)

  7. #82
    tokov's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm.. It's just endlessly going to the task and attempting to select a worker, then goes back and redoes it.. I've sat here for 5 minutes watching it just go from the task page back to mailsmithing over and over :/

    Here is the output.. no errors there: http://puu.sh/31t8y.png
    However, at the top there is this error: http://puu.sh/31t9N.png

    I have 2 green quality workers, a blue quality worker, and 3 white quality ones. Not sure if that makes a difference.

    I'm not sure how to fix those or if those are even caused by your script :confused:

    Here's the code I'm using:
    Code:
    (function($){
        "use strict";
    
        var _private = {};
        var _public = {};
    
        _private.timers = {
            filler:null,
            status:null
        };
    
        _private.use_optional_assets = true;
    
        _private.locale = {
            _continue: 'Continue',
            start:'Start Task'
        };
    
        _private.professions = {
            to_do: ['mailsmithing'],
            tasks: {
    			leadership: ['Feed the Needy', 'Protect Caravan', 'Explore Local Area'],
                leatherworking: ['Tough Leather Trading', 'Gather Tough Pelts', 'Tough Pelt Trading', 'Simple Leather Trading', 'Simple Pelt Trading', 'Gather Simple Pelts'],
                tailoring: ['Wool Cloth Trading', 'Cotton Scrap Trading', 'Gather Cotton Scraps', 'Wool Scraps Trading', 'Gather Wool Scraps'],
                mailsmithing: ['Ornate Chain Pants', 'Forge Mithral Rings and Scales', 'Gather Mithral Ore'],
                platesmithing: ['Steel Plate Trading', 'Gather High quality Iron Ore', 'High Quality Iron Ore Trading', 'Iron Plate Trading', 'Iron Ore Trading', 'Gather Iron Ore']
            }
        };
    
        _private.selectors = {
            overview: '.professions-overview:visible',
            leadership: '.professions-Leadership:visible',
            leatherworking: '.professions-Leatherworking:visible',
            tailoring: '.professions-Tailoring:visible',
            mailsmithing: '.professions-Armorsmithing_Med:visible',
            platesmithing: '.professions-Armorsmithing_Heavy:visible',
            doable_jobs: '.task-list-entry:not(.unmet):contains(' + _private.locale._continue + ')',
            job_title:'h4 span',
            reward_btn: '#modal .input-field button:visible'
        };
    
        _private.busy = false;
    
        _private.clear_timers = function() {
            clearTimeout(_private.timers.status);
            clearTimeout(_private.timers.filler);
        };
    
        _private.restart_timers = function() {
            if(_private.busy) {
                return;
            }
    
            _private.timers.status = setTimeout(_private.check_status, (75000 + (Math.random() * 75000)));
            _private.timers.filler = setTimeout(_private.time_fillter, (20000 + (Math.random() * 5000)));
        };
    
        _private.check_status = function(waiting) {
            _private.clear_timers();
    
            if(_private.busy) return;
    
            if(!waiting) {
                $(_private.selectors.overview).trigger('click');
            }
    
            var slots = $('.task-slot-locked, .task-slot-progress, .task-slot-finished, .task-slot-open');
            if(!slots.length) {
                setTimeout(function(){
                    _private.check_status(true);
                }, 3000);
                return;
            }
            slots.filter(':not(.task-slot-progress):not(.task-slot-locked)').each(function(idx, slot) {
                slot = $(slot);
                var time_left = slot.find('.bar-text').text();
                var button_msg = slot.find('.input-field button').text();
    
                //Collection logic
                if(slot.hasClass('task-slot-finished')) {
                    _private.reward.start_collection(slot);
                    return;
                }
                if(slot.hasClass('task-slot-open')) {
                    _private.jobs.new_job(0);
                    return;
                }
            });
    
            _private.restart_timers();
        };
    
        _private.reward = {
            start_collection: function(slot) {
                _private.clear_timers();
    
                if(_private.busy && _private.busy !== 'reward') {
                    return;
                }
    
                _private.busy = 'reward';
                var button = slot.find('.input-field button');
                button.trigger('click');
                setTimeout(function(){
                    _private.reward.collect();
                }, (1000 + (Math.random() * 1500)));
            },
            collect: function() {
                $(_private.selectors.reward_btn).trigger('click');
                _private.busy = false;
    
               setTimeout(function(){_private.check_status();}, (2000 + (Math.random() * 1000)));
            }
        };
    
        _private.jobs = {
            new_job: function() {
                _private.clear_timers();
    
                if(_private.busy && _private.busy !== 'job') {
                    return;
                }
    
                _private.busy = 'job';
    
                var to_do = _private.professions.to_do[((Math.random() * 10000)|0) % _private.professions.to_do.length];
                $(_private.selectors[to_do]).trigger('click');
                setTimeout(function() {
                    _private.jobs.find_doable_job(to_do);
                }, (15000 + (Math.random() * 7000)));
            },
            find_doable_job: function(to_do) {
                var jobs = $(_private.selectors.doable_jobs);
                var next_page = $('#tasklist_next:not(.paginate_disabled_next)');
                var job_list = _private.professions.tasks[to_do];
                console.log('TODO: ', to_do);
                if(!to_do || !(job_list && job_list.length)) {
                    console.error('ERROR: ', _private.professions.tasks);
                    console.error('Please report this error as something is broken for you');
                    return;
                }
                if(!jobs.length && next_page.length) {
                    next_page.trigger('click');
                    jobs = $(_private.selectors.doable_jobs);
                } else if(!jobs.length && !next_page.length) {
                    _private.busy = false;
                    setTimeout(function(){_private.check_status();}, (2000 + (Math.random() * 1000)));
                    return;
                }
    
                jobs = jobs.filter(function(idx){
                    var job = $(this);
                    if(job.find('.task-requirements .red').length) {
                        return false;
                    }
                    for(var i=0; i<job_list.length; i++) {
                        var title = job_list[i];
                        if(job.find(':contains(' + title + ')').length) {
                            return true;
                        }
                    }
                    return false;
                });
                if(!jobs.length && !next_page.length) {
                    _private.busy = false;
                    setTimeout(function(){_private.check_status();}, (2000 + (Math.random() * 1000)));
                    return;
                }
                if(!jobs.length) {
                    next_page.trigger('click');
                    setTimeout(function() {
                        _private.jobs.find_doable_job(to_do);
                    }, (500 + (Math.random() * 500)));
                    return;
                }
    
                jobs.eq(((Math.random() * 10000)|0) % jobs.length).find('.input-field button').trigger('click');
                setTimeout(function() {
                    _private.jobs.assign_person();
                }, (2000 + (Math.random() * 1000)));
            },
            assign_person: function(num) {
                if(!num) num = 0;
    
                var assets = $('.taskdetails-assets .input-field button');
                var followup = _private.jobs.start;
                if(_private.use_optional_assets && num != (assets.length-1)) {
                    followup = _private.jobs.assign_person;
                }
    
                assets.eq(num).trigger('click');
                _private.jobs.assign_asset(followup, num);
            },
            assign_asset: function(followup, num) {
                setTimeout(function(){
                    $('.modal-item-list .icon-block').eq(0).trigger('click');
    
                    setTimeout(function() {
                        followup(num+1);
                    }, (1000 + (Math.random() * 1000)));
                },  (1500 + (Math.random() * 1000)));
            },
            start: function() {
                $('.footer-body.with-sidebar .input-field button:contains(' + _private.locale.start + ')').trigger('click');
                _private.busy = false;
    
               setTimeout(function(){_private.check_status();}, (2000 + (Math.random() * 1000)));
            }
        };
    
        _private.time_fillter = function() {
            if(_private.busy) return;
    
            var random_profession = _private.professions.to_do[((Math.random() * 10000)|0) % _private.professions.to_do.length]
            $(_private.selectors[random_profession]).trigger('click');
    
            _private.timers.filler = setTimeout(function(){
                _private.time_fillter();
            }, (20000 + (Math.random() * 5000)));
        };
    
    
        $(function(){_private.check_status();});
    
        _public.stop = function() {
            _private.clear_timers();
        };
    
        _public.start = function() {
            _private.check_status();
        }
    
        $.nwo = $.nwo || {}
        $.extend(true, $.nwo, {professions:_public});
    }(jQuery));

  8. #83
    mase123y's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TZero View Post
    Yes you can, just change line 20 to
    Code:
            to_do: ['leadership'],
    And, if you want to change the tasks in Leadership that the script does then, change line 22 to include the tasks you want to do (each task is enclosed in single quotes and followed by a comma and a space unless it's the last task in the list which only has a single quote between it and the close square bracket)
    Im trying to do only leadership tasks but the bot tries to select optional items to go with the task and other Mercenaries are always optional items that go in the same task so instead of having 3 Mercenaries for 3 jobs, the bot takes 2 Mercenaries for 1 job. How can we stop that?

  9. #84
    onedoesnotsimply's Avatar Sergeant
    Reputation
    17
    Join Date
    Jun 2012
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mase123y View Post
    Im trying to do only leadership tasks but the bot tries to select optional items to go with the task and other Mercenaries are always optional items that go in the same task so instead of having 3 Mercenaries for 3 jobs, the bot takes 2 Mercenaries for 1 job. How can we stop that?
    Currently line 12
    _private.use_optional_assets = true;

    Change true to false.

  10. #85
    mase123y's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by onedoesnotsimply View Post
    Currently line 12
    _private.use_optional_assets = true;

    Change true to false.
    ah, thanks

  11. #86
    InDiGo's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    having the same error as tokov(#82)

    Uncaught TypeError: Cannot read property 'parentNode' of null
    i get that error using Chrome. i've tried using Firefox with similar results, can't find an error in the FF console.

    i've also tried just doing platesmithing, or just doing leadership. It looks like its about to do the task, and then just doesn't hit the start button.

    edit: after leaving it on for a while i noticed it started working, will continue to monitor.
    Last edited by InDiGo; 05-26-2013 at 12:57 PM. Reason: more context

  12. #87
    tarcinli's Avatar Member
    Reputation
    1
    Join Date
    May 2013
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my firefox had 3 gig memory usage almost, isn't this getting garbage collected or smt, it constantly increases

  13. #88
    Suoicidinw's Avatar Private
    Reputation
    1
    Join Date
    May 2013
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, this script eventually caused me to bluescreen when I left it on for a significant amount of time (2 days) but that is easily sorted by just closing down chrome and rerunning the script.

    Nevertheless, does as described and I'm quite thankful for it. Kudos.

  14. #89
    agletless's Avatar Member
    Reputation
    -8
    Join Date
    May 2013
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made it so it only runs when the rares 'Compete in Master's Tournament', 'Protect a Temple' come on
    reads as
    _private.professions = {
    to_do: ['leadership'],
    tasks: {
    leadership: ['Compete in', 'Protect a Temple', 'Give Refugees a Home'],
    each of those give over 1k character XP
    Last edited by agletless; 05-27-2013 at 02:21 AM.

  15. #90
    imunderyourbed's Avatar Member
    Reputation
    4
    Join Date
    Jun 2012
    Posts
    118
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey i got a quick question . how do i code it if i want all the available boxes to run protect the caravan?

Page 6 of 14 FirstFirst ... 2345678910 ... LastLast

Similar Threads

  1. [Release] Lazy professions - level the professions afk!
    By Arutha532 in forum Neverwinter Bots and Programs
    Replies: 128
    Last Post: 06-27-2013, 05:53 AM
  2. JavaScript Lazy Professions
    By Digitalxero in forum Neverwinter
    Replies: 95
    Last Post: 05-27-2013, 01:06 PM
  3. Replies: 106
    Last Post: 05-26-2013, 01:41 AM
  4. [Selling] Hand Farmed Gathering Professions! [Be Lazy, Get Legit Material With No Risk Of Ban]
    By JayPaul in forum World of Warcraft Buy Sell Trade
    Replies: 2
    Last Post: 07-14-2012, 02:53 PM
  5. AQ40 Disconnect lazy players
    By Matt in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 05-02-2006, 01:13 PM
All times are GMT -5. The time now is 02:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search