XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: xenobot problem with files lua (scripter)

  1. #1

    Join Date
    Jun 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xenobot problem with files lua (scripter)

    hello, I have a problem with lua scripts, I copy them and re-write them in a notepad or notepad+ and do not work throw them back to the list

    return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))

    end



    Module.New('WasteMana', function()

    if Self.ManaPercent() >= 95 then -- Mana parcent if higher cast both spells.

    Self.Cast('Utana Vid', 500)

    wait(200)

    Self.Cast('Exura Vita',160)

    end

    end)
    Last edited by Mariox; 03-08-2018 at 05:40 PM.

  2. #2
    Lifetime Subscriber L!p3's Avatar
    Join Date
    Dec 2011
    Location
    Brazil
    Posts
    157
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mariox View Post
    hello, I have a problem with lua scripts, I copy them and re-write them in a notepad or notepad+ and do not work throw them back to the list
    lua code:
    function ManaPercent()
    return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
    end


    Module.New('WasteMana', function(wmana)
    if ManaPercent() >= 95 then -- Mana parcent if higher cast both spells.
    Self.Cast('Utana Vid', 500)
    wait(200)
    Self.Cast('Exura Vita',160)
    end
    wmana:Delay(100)
    end)

Posting Permissions

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