View Full Version : Ultimate healing rune for Blocker Script
shadowseka
01-09-2016, 03:36 PM
Has anybody a Healing Script in order to Heal the Knight when team hunting?
For Sorcerer to throw "UH" when %HP = ?
Thanks.
anakinzera
01-09-2016, 03:43 PM
Good ideia. I need it too.
sholh
01-09-2016, 05:43 PM
http://speedy.sh/9vHTf/Sio-By-uh.lua
shadowseka
01-12-2016, 07:00 PM
bumps
eldera
01-12-2016, 07:45 PM
Check this shit out :P
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)
sholh
01-13-2016, 10:35 AM
Check this shit out :P
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?
eldera
01-13-2016, 12:58 PM
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.
sholh
01-13-2016, 02:27 PM
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
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.