Signup Now
Results 1 to 7 of 7
  1. #1
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23

    ML Trainer - Small and Simple

    I made this persistent just for this double xp / skill. I did not bother to arrange it for being fast and efficient, it is more used for training that the player is in the computer.

    auto(800)
    local Potion = 'great spirit potion'
    local Spell1 = 'exevo mas san'
    local Spell2 = 'exana ina'
    local Spell3 = 'exura gran san'

    --====================================================

    if getsetting('PotionHealer/Enabled') == 'yes' then
    if $mppc < 90 then
    if itemcount(Potion) > 0 then
    useoncreature(Potion, $self) wait(200, 500)
    end
    end
    end

    if getsetting('ManaTrainer/Enabled') == 'yes' then
    if $mppc >= 10 then
    if cancastspell(Spell1) then
    cast(Spell1)
    wait(100)
    end
    if cancastspell(Spell2) then
    cast(Spell2)
    wait(100)
    end
    if cancastspell(Spell3) then
    cast(Spell3)
    wait(100)
    end
    end
    end

    if getsetting('PotionHealer/Enabled') == 'no' and getsetting('ManaTrainer/Enabled') == 'no' then
    setsetting('ManaTrainer/Enabled', 'yes')
    end

    if $mppc > 10 and $mppc >= 90 then
    setsetting('PotionHealer/Enabled', 'no')
    setsetting('ManaTrainer/Enabled', 'yes')
    elseif $mppc < 10 and $mppc < 90 then
    setsetting('PotionHealer/Enabled', 'yes')
    setsetting('ManaTrainer/Enabled', 'no')
    end

  2. #2
    Banned
    Join Date
    Jun 2015
    Posts
    48
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Cisco View Post
    I made this persistent just for this double xp / skill. I did not bother to arrange it for being fast and efficient, it is more used for training that the player is in the computer.

    auto(800)
    local Potion = 'great spirit potion'
    local Spell1 = 'exevo mas san'
    local Spell2 = 'exana ina'
    local Spell3 = 'exura gran san'

    --====================================================

    if getsetting('PotionHealer/Enabled') == 'yes' then
    if $mppc < 90 then
    if itemcount(Potion) > 0 then
    useoncreature(Potion, $self) wait(200, 500)
    end
    end
    end

    if getsetting('ManaTrainer/Enabled') == 'yes' then
    if $mppc >= 10 then
    if cancastspell(Spell1) then
    cast(Spell1)
    wait(100)
    end
    if cancastspell(Spell2) then
    cast(Spell2)
    wait(100)
    end
    if cancastspell(Spell3) then
    cast(Spell3)
    wait(100)
    end
    end
    end

    if $mppc > 10 and $mppc >= 90 then
    setsetting('PotionHealer/Enabled', 'no')
    setsetting('ManaTrainer/Enabled', 'yes')
    elseif $mppc < 10 and $mppc < 90 then
    setsetting('PotionHealer/Enabled', 'yes')
    setsetting('ManaTrainer/Enabled', 'no')
    end
    Nice bro, How can I put him to turn off the mana trainer and buy more pots and get back to training?

    tomorrow i test

  3. #3

  4. #4
    Banned
    Join Date
    Jun 2015
    Posts
    48
    Reputation
    10
    Rep Power
    0
    Bro, i'm noob on botting :P this part

    if $mppc > 10 and $mppc >= 90 then
    setsetting('PotionHealer/Enabled', 'no')
    setsetting('ManaTrainer/Enabled', 'yes')
    elseif $mppc < 10 and $mppc < 90 then
    setsetting('PotionHealer/Enabled', 'yes')
    setsetting('ManaTrainer/Enabled', 'no')

    the bot stop use pots and magics when have some 10 pots? i'm starting on scripts and i'm learning how to read this

    thaanks

  5. #5
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by Pilao View Post
    Bro, i'm noob on botting :P this part

    if $mppc > 10 and $mppc >= 90 then
    setsetting('PotionHealer/Enabled', 'no')
    setsetting('ManaTrainer/Enabled', 'yes')
    elseif $mppc < 10 and $mppc < 90 then
    setsetting('PotionHealer/Enabled', 'yes')
    setsetting('ManaTrainer/Enabled', 'no')

    the bot stop use pots and magics when have some 10 pots? i'm starting on scripts and i'm learning how to read this

    thaanks
    $mppc = Mana Points PerCentage

    https://www.tibiawindbot.com/docs.html#variables-mppc

  6. #6
    Banned
    Join Date
    Jun 2015
    Posts
    48
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Cisco View Post
    lul, thanks man I can understand better now

  7. #7

 

 

Posting Permissions

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