Quote Originally Posted by Eion View Post
Here is another version for healing a specific person only. This uses UH's instead of Sio.

lua code:

function AutoUH()
local Afriend = Creature.New("FRIENDS NAME HERE")
local AfriendHealth = Afriend:HealthPercent()
local AfriendPos = Afriend:Position()
local UHid = 3160 -- ID OF HEALING RUNES
local backpack = Container.GetByName("blue backpack") -- Open backpack containing healing runes
if (AfriendHealth <= 55) and (Self.DistanceFromPosition(AfriendPos.x, AfriendPos.y, AfriendPos.z) <= 7) and (Self.Position().z == AfriendPos.z) then
for spots = 0, backpack:ItemCount() do
local item = backpack:GetItemData(spots)
if (item.id == UHid) then
backpack:UseItemWithCreature(spots, Afriend:ID())
break
end
end
end
end


while true do
AutoUH()
wait(500,1000)
end
Worked, thanks