XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 19

Thread: Exura sio on friend?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Floxy View Post
    hi, yea i would like to heal myself with exura, exura gran and exura vita.
    is there some line to put my own healing before this script? or is it possible to put my own healing above the script?
    Done. It's possible now to heal yourself with different spell (which you can set using 'spell' variable as in an example). If no 'spell' is defined it'll use "Exura Sio".

    lua code:
    local targets = {}
    targets[#targets + 1] = { name = "Nakuu", hp = 80, spell = "exura gran" }
    targets[#targets + 1] = { name = "Nakux", hp = 80 }

    Module("ssSio", function(module)
    for k,v in ipairs(targets) do
    local player = Creature(v.name)
    if player:isOnScreen(false) and (player:HealthPercent() <= v.hp) then
    if Self.CanCastSpell("exura") and (Self.Mana() > 100) then
    if (v.spell) and (v.name == Self.Name()) then
    Self.Cast(v.spell)
    else
    Self.Cast("exura sio \"" .. v.name)
    end
    end
    end
    end
    end, false)

    function onSpeak(chat, msg)
    chat:SendYellowMessage(Self.Name(), msg)
    if (msg == "start") then
    Module("ssSio"):Start()
    chat:SendOrangeMessage("ssSio", "ssSio has started.")
    elseif (msg == "stop") then
    Module("ssSio"):Stop()
    chat:SendOrangeMessage("ssSio", "ssSio has stopped.")
    else
    targets[#targets + 1] = { name = msg, hp = 80 }
    chat:SendOrangeMessage("ssSio", "Added " .. msg .. " to the healing list.")
    end
    end

    function onClose() end

    local chat = Channel("ssSio", onSpeak, onClose)


    Not 100% tested but it should work
    Last edited by Nakuu; 03-13-2016 at 12:29 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
  •