XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Help with custom spellcaster

  1. #11
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Gluben View Post
    That's exactly what I wrote, still the bot does no longer cast my 'exura san' when this script is running.
    You can try running 2 different luas, can you tell me something more you'd need in this script?

  2. #12

    Join Date
    Feb 2014
    Posts
    24
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    You can try running 2 different luas, can you tell me something more you'd need in this script?
    Some sort of delay or wait like in the first script(the one in my first post). Is that possible?

  3. #13
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Gluben View Post
    Some sort of delay or wait like in the first script(the one in my first post). Is that possible?
    More important healing first, hp is in % and you can actually run it in the same lua as that spells shooter
    Code:
    local hSpells = {
        {spell = "exura vita", hp = 50},
        {spell = "exura gran", hp = 70}
    }
    
    Module.New("", function()
        local percentHp = (getSelfHealth() / getSelfMaxHealth()) * 100
    
        for i = 1, #hSpells do
            if (percentHp <= hSpells[i].hp) then
                if (Self.GetSpellCooldown(hSpells[i].spell) == 0) then
                    Self.Say(hSpells[i].spell)
                end
            end
        end
    end)

  4. #14

    Join Date
    Feb 2014
    Posts
    24
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    More important healing first, hp is in % and you can actually run it in the same lua as that spells shooter
    Code:
    local hSpells = {
        {spell = "exura vita", hp = 50},
        {spell = "exura gran", hp = 70}
    }
    
    Module.New("", function()
        local percentHp = (getSelfHealth() / getSelfMaxHealth()) * 100
    
        for i = 1, #hSpells do
            if (percentHp <= hSpells[i].hp) then
                if (Self.GetSpellCooldown(hSpells[i].spell) == 0) then
                    Self.Say(hSpells[i].spell)
                end
            end
        end
    end)
    Again Thank you <3

Posting Permissions

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