XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: stop walker when x% mana

  1. #1

    Join Date
    Jan 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    stop walker when x% mana

    need this for do a script lvl low

  2. #2
    Lifetime Subscriber
    Join Date
    Dec 2011
    Location
    Michigan
    Posts
    2,644
    Mentioned
    81 Post(s)
    Tagged
    0 Thread(s)
    not perfect but something i made quickly:
    Code:
    local manaToPauseWalker = 50 -- Mana
    local timeToWait = 1000 -- Change this to your wait time
    
    Self.ManaPercent = function ()
    return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
    end
    
    Module.New('pauseWalker', function()
    if (Self.ManaPercent() < manaToPauseWalker) then
    Walker.Delay(timeToWait) 
    end
    end)
    It will essentially pause the walker until your mana hits whatever variable ammount you set, default in this case is 50

  3. #3

    Join Date
    Dec 2020
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems really balanced. It's a little bit better than a modal spell with the +1 and -1 as options, but it can't be used with the usual shenanigans a la Snapcaster.











    Tutuapp 9Apps Showbox
    Last edited by yazouabu99; 06-08-2021 at 03:17 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
  •