XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 8 of 8

Thread: Ultimate healing rune for Blocker Script

  1. #1
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question Ultimate healing rune for Blocker Script

    Has anybody a Healing Script in order to Heal the Knight when team hunting?
    For Sorcerer to throw "UH" when %HP = ?
    Thanks.
    Last edited by shadowseka; 01-09-2016 at 03:54 PM.
    Succesful Trades:
    Bought 18kk from @PunkGT
    Bought a Knight 310 from @Alexisdarks

  2. #2

    Join Date
    Nov 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good ideia. I need it too.

  3. #3

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    bumps
    Succesful Trades:
    Bought 18kk from @PunkGT
    Bought a Knight 310 from @Alexisdarks

  5. #5
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Check this shit out :P

    lua code:

    local playersToHeal = {
    ["Tank I"] = 80, -- HIGHEST PRIORITY [ek blocker]
    ["Tank II"] = 50, -- LOWER PRIORITY [palladin blocker]
    ["Elderapo"] = 99 -- LOWEST PRIORITY [ms/ed shooters]
    }

    local healingItem = "ultimate healing rune"

    --[[ DO NOT EDIT ANYTHING BELOW THIS LINE ]]--

    function useItemOnCreature(item, creature)
    local itemID
    local targetID

    if (type(item) == "number") then
    itemID = item
    elseif (type(item) == "table") then
    itemID = item:ID()
    elseif (type(item) == "string") then
    itemID = Item.GetID(item)
    end

    if (itemID == 0) then
    return false
    end

    if (type(creature) == "number") then
    targetID = creature
    elseif (type(creature) == "table") then
    targetID = creature:ID()
    elseif (type(creature) == "string") then
    local target = Creature.New(creature)

    if (not target:isValid()) then
    return false
    end

    targetID = target:ID()
    end

    for index, container in Container.iContainers() do
    for slot, item in container:iItems() do
    if (item.id == itemID) then
    container:UseItemWithCreature(slot, targetID)
    return true
    end
    end
    end
    return false
    end


    Module.New("uh-healer", function(mod)
    for name, minHealth in pairs(playersToHeal) do
    local player = Creature.New(name)
    if (player:isOnScreen() and player:isValid() and player:isAlive()) then
    if (player:HealthPercent() <= minHealth) then
    useItemOnCreature(healingItem, player:ID())
    break
    end
    end
    end
    end)
    Last edited by eldera; 01-12-2016 at 07:45 PM. Reason: fixed typo

  6. #6

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by eldera View Post
    Check this shit out :P

    lua code:

    local playersToHeal = {
    ["Tank I"] = 80, -- HIGHEST PRIORITY [ek blocker]
    ["Tank II"] = 50, -- LOWER PRIORITY [palladin blocker]
    ["Elderapo"] = 99 -- LOWEST PRIORITY [ms/ed shooters]
    }

    local healingItem = "ultimate healing rune"

    --[[ DO NOT EDIT ANYTHING BELOW THIS LINE ]]--

    function useItemOnCreature(item, creature)
    local itemID
    local targetID

    if (type(item) == "number") then
    itemID = item
    elseif (type(item) == "table") then
    itemID = item:ID()
    elseif (type(item) == "string") then
    itemID = Item.GetID(item)
    end

    if (itemID == 0) then
    return false
    end

    if (type(creature) == "number") then
    targetID = creature
    elseif (type(creature) == "table") then
    targetID = creature:ID()
    elseif (type(creature) == "string") then
    local target = Creature.New(creature)

    if (not target:isValid()) then
    return false
    end

    targetID = target:ID()
    end

    for index, container in Container.iContainers() do
    for slot, item in container:iItems() do
    if (item.id == itemID) then
    container:UseItemWithCreature(slot, targetID)
    return true
    end
    end
    end
    return false
    end


    Module.New("uh-healer", function(mod)
    for name, minHealth in pairs(playersToHeal) do
    local player = Creature.New(name)
    if (player:isOnScreen() and player:isValid() and player:isAlive()) then
    if (player:HealthPercent() <= minHealth) then
    useItemOnCreature(healingItem, player:ID())
    break
    end
    end
    end
    end)
    can be used with uhp? instead of uh?

  7. #7
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sholh View Post
    can be used with uhp? instead of uh?
    It will work with UHP aswell but it will try to heal players from range and it will cause your character to move.

  8. #8

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by eldera View Post
    It will work with UHP aswell but it will try to heal players from range and it will cause your character to move.
    thx eldera u are the best

Posting Permissions

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