Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Offline Trainer

  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28

    Offline Trainer

    Offline Trainer


    Description

    Keeps the listed characters training the selected skill. The character must already be near the training statue.


    Configuration

    Edit the charList variable on the init block to specify all characters' account, password, name and training skill.


    Code

    init start
    -- local SCRIPT_VERSION = '1.1.1'

    local charList = {
    {'account1', 'password1', 'char1', 'skill1'},
    {'account2', 'password2', 'char2', 'skill2'},
    {'account3', 'password3', 'char3', 'skill3'},
    {'account4', 'password4', 'char4', 'skill4'},
    {'account5', 'password5', 'char5', 'skill5'},
    {'account6', 'password6', 'char6', 'skill6'},
    {'account7', 'password7', 'char7', 'skill7'}
    }

    -- DO NOT EDIT BELOW THIS LINE --
    local skills = {'sword', 'axe', 'club', 'distance', 'magic'}
    local randTime = math.random(-110, 10)
    for i, v in ipairs(charList) do
    table.insert(charList[i], $botdb:getvalue('offtrainlast', v[3]) or 0)
    table.insert(charList[i], $botdb:getvalue('offtraintime', v[3]) or 0)
    end
    init end

    auto(10000, 30000)
    for _, v in ipairs(charList) do
    if (os.time() - v[5]) / 60 > v[6] + (12 * 60) + randTime then
    randTime = math.random(-110, 10)

    connect(v[1], v[2], v[3])
    waitping()
    v[5] = os.time()
    v[6] = $offlinetraining
    $botdb:setvalue('offtrainlast', v[3], v[5])
    $botdb:setvalue('offtraintime', v[3], v[6])
    if $offlinetraining > 10 then
    local skill = v[4]
    if skill == 'auto' then
    if $voc == VOC_DRUID or $voc == VOC_SORCERER then
    skill = 'magic'
    elseif $voc == VOC_PALADIN then
    skill = 'distance'
    else
    if $axe > $sword and $axe > $club then
    skill = 'axe'
    elseif $sword > $axe and $sword > $club then
    skill = 'sword'
    else
    skill = 'club'
    end
    end
    end

    local id = 16197 + table.find(skills, skill)
    reachgrounditem(id)
    wait(200, 500)
    useitem(id, 'ground')
    else
    logout()
    end

    wait(1000, 1500)
    press('[ESC]')
    wait(1000, 1500)
    end
    end

    Git
    Last edited by Raphael; 05-02-2015 at 04:46 PM.

  2. #2
    Free User
    Join Date
    Dec 2013
    Posts
    39
    Reputation
    10
    Rep Power
    0
    Will give it a swing this weekend

    Thanks

  3. #3
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Good job buddy, but lines 30-31 shouldn't it be setvalue instead of getvalue ?

  4. #4
    Free User leandrocore's Avatar
    Join Date
    Dec 2013
    Location
    Lucksstore.com
    Posts
    261
    Reputation
    41
    Rep Power
    21
    It will be very useful for my character! : D

  5. #5
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Leonardo View Post
    Good job buddy, but lines 30-31 shouldn't it be setvalue instead of getvalue ?
    Yes, it should.
    Fixed, thanks.

  6. #6
    Wind Powered Voltzin's Avatar
    Join Date
    Dec 2013
    Posts
    212
    Reputation
    31
    Rep Power
    21
    How much time it will take to relog?

  7. #7
    Free User stmaster's Avatar
    Join Date
    Dec 2013
    Location
    Mexico
    Posts
    222
    Reputation
    24
    Rep Power
    21
    wow very usuefull!!

    just .. same question as above.. it will train and logout and will login again when to check?

  8. #8
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Voltzin View Post
    How much time it will take to relog?
    From 110 minutes before to 10 minutes after you have full 12h offline training.
    Last edited by Raphael; 01-09-2014 at 10:30 PM.

  9. #9
    Wind Powered Voltzin's Avatar
    Join Date
    Dec 2013
    Posts
    212
    Reputation
    31
    Rep Power
    21
    Quote Originally Posted by Raphael View Post
    From 110 minutes before to 10 minutes after you have full 12h offline training.

    Nice! Really amazing, really really usefull.

  10. #10
    Free User stmaster's Avatar
    Join Date
    Dec 2013
    Location
    Mexico
    Posts
    222
    Reputation
    24
    Rep Power
    21
    Quote Originally Posted by Raphael View Post
    From 110 minutes before to 10 minutes after you have full 12h offline training.
    so its possible to reduce it correct? just change the num 110 to 30 (example) am i correct? i wont bug anything? xD
    Check my Botting Project: HERE - If i helped, please +REP

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •