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

Thread: [Request] Action ManaRefiller

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

    [Request] Action ManaRefiller

    I was wondering if someone can help me with this.

    When no monsters on screen, AND, Mana percent lower than X.
    Use mana potions till X percent of mana.

    Thanks

  2. #2
    Normal User blablabla's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba, Brazil
    Posts
    242
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5
    Here you are:

    PHP Code:
    local minmana 50 -- mana to refill to
    local manahotkey 
    'F3' -- mana hotkey on your keyboard
    local manatype 
    'great mana potion' -- mana type

    if (maround() == 0) and (mppc minmana) and (itemcount(manatype) > 0then
       usehotkey
    (manahotkeywait(500)
    end 

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks, im gonna test it.

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    It doesnt use the mana potions till X mana percent.
    It only uses 1 mana when it reachs lower than "minmana"

  5. #5
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Dckay View Post
    It doesnt use the mana potions till X mana percent.
    It only uses 1 mana when it reachs lower than "minmana"
    It's working here... It use manas till reach X.

  6. #6
    Normal User blablabla's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba, Brazil
    Posts
    242
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5
    Ah, well, I use it on Demons so it does not keep using manas while running them. Guess I misunderstood your question.

    Try this:

    PHP Code:
    local minmana 50 -- mana to refill from
    local maxmana 
    80 -- mana to refill to
    local manahotkey 
    'F3' -- mana hotkey on your keyboard
    local manatype 
    'great mana potion' -- mana type

    if (maround() == 0) and (mppc minmana) and (itemcount(manatype) > 0then
       repeat 
          usehotkey
    (manahotkeywait(500)
       
    until
          
    (mppc maxmana)
    end 
    Last edited by blablabla; 08-07-2012 at 01:25 AM.

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks you very much, gonna test it again.

  8. #8
    Normal User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Ok it works BUT it use all manas xD
    Last edited by Dckay; 08-08-2012 at 11:08 PM.

  9. #9
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Dckay View Post
    Ok it works BUT it use all manas xD
    local minmana = 50 -- mana % to refill from
    local maxmana = 80 -- mana % to refill to

  10. #10
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Dckay View Post
    Ok it works BUT it use all manas xD
    local minmana = 50 -- mana % to refill from
    local maxmana = 80 -- mana % to refill to

Posting Permissions

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