@
sholh
Well, just a tip, it doesn't help to tag these people for these kind of stuffs, they most likely ignore you.
Here is someting I used before to manapump my chars, abit modified.
Code:
function pumpMana()
local charToPump = Creature.New("Friend Name")
local charToPumpPos = charToPump:Position()
local manaId = 268 -- rune, pot ID etc...
local healthPercent = 50 -- friends hp % below this value to heal
local distance = 2 -- range to target, if u want to limit it, otherwise set to 8
local backpack = Container.GetByName("backpack") -- Open backpack containing healing runes
if (Self.DistanceFromPosition(charToPumpPos.x, charToPumpPos.y, charToPumpPos.z) <= distance) and (Self.Position().z == charToPumpPos.z) and (charToPump:HealthPercent() < healthPercent) then
for spots = 0, backpack:ItemCount() do
local item = backpack:GetItemData(spots)
if (item.id == manaId) then
backpack:UseItemWithCreature(spots, charToPump:ID())
break
end
end
end
end
while true do
pumpMana()
wait(900,1100)
end
Also don't forget to change container name if u aren't using regular "backpack" to hold healing items.