Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Do not drink mana until < then drink till >

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    [UNSOLVED] Drink when < then drink till > [ANYONE has a functioning action?]

    Hello I'm looking for a short sample of a mana refiller that does not drink before it has < 500 mana then drinks till mana is > 1500 or something like that.

    Thank you in advance!
    Last edited by Thabast; 09-05-2012 at 12:39 PM.

  2. #2
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    try it,

    Code:
    local manafordrink = 85 -- in %
    local nameofmp = 'mana potion'
    
    if (itemcount(nameofmp) >= 5) and (mppc < manafordrink)) then
        pausewalking(10000)
        useitemon(nameofmp, posx, posy, posz)
    end

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Code:
    local MANA_TO_START = 50 -- %
    local MANA_TO_STOP = 80 -- %
    local MANA_HOTKEY = "F9"
    
    if (mppc <= MANA_TO_START) then
       while (mppc <= MANA_TO_STOP) do
          usehotkey(MANA_HOTKEY)
          wait(300,700)
       end
    end
    Random %
    Code:
    local MANA_TO_START1, MANA_TO_START2 = 40, 50 -- % [Start between these numbers or lower]
    local MANA_TO_STOP1, MANA_TO_STOP2 = 75, 85 -- % [Stop between these numbers or higher]
    local MANA_HOTKEY = "F9"
    
    if (mppc <= math.random(MANA_TO_START1, MANA_TO_START2)) then
       while (mppc <= math.random(MANA_TO_STOP1, MANA_TO_STOP2)) do
          usehotkey(MANA_HOTKEY)
          wait(300,700)
       end
    end
    Last edited by soder; 09-04-2012 at 06:10 PM.

  4. #4
    Normal User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you soder! nice one but it does not stop drinking for some reason when reached the % i set :S
    any way to avoid such an issue?

    thank you in advance

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    I updated it abit, try now.

  6. #6
    Normal User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Still not working as intended it seems, I'm using the default values you set as well..

    Also it does not stop until I turn off the complete program..
    Last edited by Thabast; 09-04-2012 at 05:40 PM.

  7. #7
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    try use my code...

  8. #8
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Quote Originally Posted by Sayildd View Post
    try use my code...
    Your code is a normal mana drinker.

    Updated again, try now
    Last edited by soder; 09-04-2012 at 06:19 PM.

  9. #9
    Normal User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    The BREAK made it a normal mana drinker for some reason.. It will only drink 1 potion at 50% mana.

    EDIT: Nothing while debugging it either..

    I really appreciate your anticipation! respect man, lets do this!

  10. #10
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    I honestly dont know if im stupid and cant find the problem or if the bot is bugged... I'll try fix it asap and post here.
    Last edited by soder; 09-04-2012 at 06:13 PM.

Posting Permissions

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