What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Lifeblood v1 *UNTESTED*

thedrunk

New Member
Joined
Apr 1, 2010
Messages
207
Reaction score
8
Lifeblood v1.2

Uses Lifeblood heal from Herbalism

Only one variable to change:
Code:
private int lifebloodMinHealth = 50;    // use Lifeblood at or below this percent
This has not been tested as i do not have a herber.

Code:
Version 1.2
- Wont spam 'Use' on death anymore
- Added green log colour

Version 1.1
- Removed timer, added .Cooldown - thank you CodenameG!

Version 1.0
- Initial release
 

Attachments

Last edited:
Uses Lifeblood heal from Herbalism

Only one variable to change:
Code:
private int lifebloodMinHealth = 50;    // use Lifeblood at or below this percent

This has not been tested as i do not have a herber.
if you add. !SpellManager.KnownSpells["Lifeblood"].Cooldown

you dont have to use the timers. and it will be more exact, incase someone stops and starts the plugin while its on cooldown.

Code:
        public override void Pulse()
        {
        
            if (Me.HealthPercent < lifebloodMinHealth &&
                SpellManager.KnownSpells.ContainsKey("Lifeblood") &&
                !Me.Mounted && !Me.IsCasting && !SpellManager.KnownSpells["Lifeblood"].Cooldown)
            {
                slog("Use");
                
                SpellManager.CastSpell("Lifeblood");

            }
        }
 
Will check it out when I use a cc without lifeblood :)
 
I have it spamming the "[Lifeblood]: Use" sometimes. My bot died a few times, one time there was no spam, but the last time it just kept spamming it while moving to the corpse.

Added the log as a zip archive, too large to upload as txt. Didn't want to edit it, IF there is something there, I would probably have deleted the important part.
 

Attachments

Last edited:
Back
Top