JavaScript Lazy Professions menu

User Tag List

Page 14 of 14 FirstFirst ... 1011121314
Results 196 to 207 of 207
  1. #196
    Gawc's Avatar Private
    Reputation
    1
    Join Date
    Jun 2013
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Verdiarc View Post
    My main prob is after running the script in console, how could I get it to stop and how can I edit some lines, if I wanted to after i've run the script?
    I usually reload the page, and then paste the edited script back in..

    JavaScript Lazy Professions
  2. #197
    skakid's Avatar Corporal
    Reputation
    2
    Join Date
    Jun 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Issue with alchemy. Is there any way to get it to run "Simple Vitriol Extraction" and not run the "Mass Simple Vitriol Extraction"? The mass is a waste of a slot =(

    nevermind, missed this solution:
    Originally Posted by CowGrinder View Post
    try changing it to

    if((job.find(':contains(' + title + ')').length) && !(job.find(':contains(Mass)').length)) {

    Not exactly elegant, but gets the job done.

    should work just fine.
    Last edited by skakid; 06-29-2013 at 04:56 AM.

  3. #198
    Jorderon's Avatar Member
    Reputation
    1
    Join Date
    Jun 2013
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm having a certain problem with the script such that if I open more than two browser instances (even on separate accounts) the script won't click start task right for some reason. Is anyone else experiencing this and if so what is a fix?

  4. #199
    Rampant's Avatar Private
    Reputation
    6
    Join Date
    Jul 2013
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok... I'm total F student when it comes to JavaScript and have no idea what I'm doing... anyway ALL I want to do at this point, while I'm still learning is do leadership--that's it--a full script, not "edit line blah, blah" because I have no idea what the hell I'm doing and I jack it up every time... any help would be much appreciated.

  5. #200
    oshii666's Avatar Private
    Reputation
    1
    Join Date
    Jun 2013
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  6. #201
    cowbellz12's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So how does one get this up and running? Just open the console in chrome and paste it in?

  7. #202
    Zunga's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cowbellz12 View Post
    So how does one get this up and running? Just open the console in chrome and paste it in?
    Yes. Go to Tools -> JavaScript Console and then paste it in.


    BTW I have found that sometimes this has an issue running a task if you haven't already got that task running. No idea why as sometimes it works without this and sometimes not ...

    *shrug*

  8. #203
    cowbellz12's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SyntaxError: Unexpected identifier
    get stack: function () { [native code] }
    message: "Unexpected identifier"
    set stack: function () { [native code] }
    __proto__: Error

    This is the error i am getting when i am pasting it into console. Any ideas on how to get it working?

  9. #204
    Zunga's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cowbellz12 View Post
    SyntaxError: Unexpected identifier
    get stack: function () { [native code] }
    message: "Unexpected identifier"
    set stack: function () { [native code] }
    __proto__: Error

    This is the error i am getting when i am pasting it into console. Any ideas on how to get it working?
    I had the same problems but the trick I mentioned in the post just above yours seems to have got it working.

  10. #205
    cowbellz12's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah i tried that, still no go on it. ;(

  11. #206
    Zunga's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cowbellz12 View Post
    Yeah i tried that, still no go on it. ;(
    Sorry to hear that - the issues seems somewhat random to me. Try changing the jobs in the list - even if they are not the most efficient it still would be decent XP or AD.

    EDIT:
    I realised that the pages here in the forum must use some special codes as directly pasting the code into the JavaScript console didn't work.
    What you have to do is post the code into a text document, save it, the re-open it.
    This will get rid of any special characters and you can now post the code into the browser console just fine.
    Last edited by Zunga; 07-20-2013 at 10:00 AM.

  12. #207
    Zunga's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xahun View Post
    I also am no java script programmer, but have managed to make some changes that work for myself and I thought I'd share.
    Just came across this post and it seems really helpful, thanks. Am about to try it out now

    It seems to work fine so I thought I would post the complete code for anyone who is code-phobic.

    At present this just mass produced Aqua Vitae which you need a lot of for higher level tasks.


    Note that in:

    alchemy1: ['Aqua Vitae', 'Simple Vitriol Extraction'],
    alchemy2: ['Gather Simple Components'],
    alchemy3: ['Gather Simple Components']
    alchemy3: ['Gather Simple Components']

    is redundant, and is just there so that people can see how this works. Xahun made several posts after the one linked to at the top where he explains exactly what his changes do.

    You might also need to order your profession jobs from Highest to Lowest in your Browser so that the code picks Aqua Vitae before Simple Vitriol Extraction.



    Credit Accrediation:

    None of this code is mine - it is a combination of the base code from Digitalxero with the enhancements by :

    Xahun for a priority list and

    CowGrinder (http://www.ownedcore.com/forums/mmo/...ml#post2779138 (JavaScript Lazy Professions)) for exact match of job names, so it doesn't choose the inefficient MASS XXXX jobs rather than the XXXX jobs if you happen to have enough consumables for the MASS XXXX job to run initially.



    (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: ['alchemy1', 'alchemy2', 'alchemy3'],
    tasks: {
    leadership: ['Feed the Needy', 'Protect Caravan', 'Explore Local Area', 'Compete in', 'Protect a Temple', 'Give Refugees a Home', 'Guard Duty'],
    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: ['Steel Rings and Scales Trading', 'Gather High quality Iron Ore', 'High Quality Iron Ore Trading', 'Gather Iron Ore'],
    platesmithing: ['Steel Plate Trading', 'Gather High quality Iron Ore', 'High Quality Iron Ore Trading', 'Iron Plate Trading', 'Iron Ore Trading', 'Gather Iron Ore'],
    alchemy1: ['Aqua Vitae', 'Simple Vitriol Extraction'],
    alchemy2: ['Gather Simple Components'],
    alchemy3: ['Gather Simple Components']
    }
    };

    _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',
    alchemy1: '.professions-Alchemy:visible',
    alchemy2: '.professions-Alchemy:visible',
    alchemy3: '.professions-Alchemy: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.cjob = 0;

    _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) {
    if(_private.busy) {
    //Stop looking at slots while we are busy DUH!!
    return;
    }
    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;
    _private.cjob = 0;

    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];

    var to_do = _private.professions.to_do[_private.cjob];
    _private.cjob++;
    if (_private.cjob == _private.professions.to_do.length)
    _private.cjob = 0;


    $(_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) && !(job.find(':contains(Mass)').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() {
    if(_private.use_optional_assets) {
    _private.jobs.assign_asset();
    }
    }, (2000 + (Math.random() * 1000)));
    },
    assign_asset: function() {
    $('.taskdetails-assets:eq(1) .input-field button').eq(0).trigger('click');
    setTimeout(function(){
    $('.modal-item-list .icon-block').eq(0).trigger('click');

    setTimeout(function() {
    _private.jobs.start();
    }, (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));
    Last edited by Zunga; 07-20-2013 at 11:17 AM.

Page 14 of 14 FirstFirst ... 1011121314

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 01:20 PM. 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