Yeah I don't think there is a built in way for Lich to check how bad bleeders are, that's probably something you would need to check via HEALTH first and get the values that way.
Other than that though this should do what you're looking for:
Code:
wounds_array = nil
wound_value = 3
heal_it = proc{
wounds_array.each{ |key,value|
if value == wound_value
waitrt?
waitcastrt?
if checkmana < 10
echo "Waiting for mana."
wait_until { checkmana(10) }
end
fput "cure #{key}"
sleep 0.2
end
}
wound_value -= 1
}
until wound_value < 1
wounds_array = Hash[ "head" => Wounds.head, "right eye" => Wounds.reye, "left eye" => Wounds.leye, "neck" => Wounds.neck, "chest" => Wounds.chest, "abdomen" => Wounds.abs, "back" => Wounds.back, "left arm" => Wounds.larm, "right arm" => Wounds.rarm, "left hand" => Wounds.lhand, "right hand" => Wounds.rhand, "left leg" => Wounds.lleg, "right leg" => Wounds.rleg, "nerves" => Wounds.nerves ]
heal_it.call
end
wound_value = 3
until wound_value < 1
wounds_array = Hash[ "head" => Scars.head, "right eye" => Scars.reye, "left eye" => Scars.leye, "neck" => Scars.neck, "chest" => Scars.chest, "abdomen" => Scars.abs, "back" => Scars.back, "left arm" => Scars.larm, "right arm" => Scars.rarm, "left hand" => Scars.lhand, "right hand" => Scars.rhand, "left leg" => Scars.lleg, "right leg" => Scars.rleg, "nerves" => Scars.nerves ]
heal_it.call
end