Results 1 to 6 of 6

Thread: Any way for a script to see bleeding? (Empath self-healing)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. Default Any way for a script to see bleeding? (Empath self-healing)

    I want to make a script for my empath to heal down all wounds and scars so I'm clean for a hunt. If possible I want it to heal the most severely bleeding wounds first, but I don't see any way in the documentation to get that info. I suppose the best way to do this in that case would be to just start with all rank 3s, then 2s, then 1s?

    Also, if anybody thinks this would be easy and wants to write it, that'd be good too. I don't know Ruby so I have to get up to speed on that first.

  2. #2

    Default

    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

  3. Default

    Quote Originally Posted by Tgo01 View Post
    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
    Thank you. I'll give this a try. You're a hero, don't let anyone tell you otherwise.

    Quote Originally Posted by Rinualdo View Post
    There are quite a few existing scripts that will heal wounds based on rank already. ;healself and ;cure are two popular ones.
    I didn't know about ;cure, I'll check it out. ;healself throws some deprecation errors, but still works. I just hate errors so I was hoping for something cleaner. Thanks for the reply.

  4. #4

    Default

    Quote Originally Posted by Tuxedo Gin View Post


    I didn't know about ;cure, I'll check it out. ;healself throws some deprecation errors, but still works. I just hate errors so I was hoping for something cleaner. Thanks for the reply.
    Those are some GTK errors that looks like the author didn't update for. It still functions, though.
    I released an updated/fixed ;cure not to long ago, so I know that one works also. I think ;cure is more suited to the hunting empath type.
    I don't want the world; I just want your half.
    Discord BigNasty#8519

  5. #5

    Default

    There are quite a few existing scripts that will heal wounds based on rank already. ;healself and ;cure are two popular ones.
    I don't want the world; I just want your half.
    Discord BigNasty#8519

  6. #6

    Default

    ;healself works great for me. But i am still on lich 4

Posting Permissions

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