Signup Now
Results 1 to 6 of 6
  1. #1
    Wind Powered Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,322
    Reputation
    119
    Rep Power
    9

    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 $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
    Wind Powered
    Join Date
    Jun 2015
    Posts
    38
    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
    Wind Powered
    Join Date
    Jun 2015
    Posts
    38
    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
    Wind Powered Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,322
    Reputation
    119
    Rep Power
    9
    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
    Wind Powered
    Join Date
    Jun 2015
    Posts
    38
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Cisco View Post
    lul, thanks man I can understand better now

 

 

Posting Permissions

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