nBuff - Smart Self Buff | Self Heal

v1.0!

About

Type /nb to access configuration

nBuff is an addon that automatically casts buffs on the player, uses potions and healing spells. The addon keeps track of combat, casting, mounts, mp, hp amongst others. It can be fully configured on how to take into account these things into using different spells/potions. Reffer to the list of features for more info!

IMPORTANT!

This addon is BUGGY in the German client. Very Buggy! Problem is, i don't speak german and the addon looks for key words in the combat log to detect things and unfortunately it's only set to look for the english ones. I shall try to find someone to help me localize but until then, use it at your own risk.

If it has no idea when you're in combat and casts buffs after teleports and such, that's why!

The addon uses a targeting feature that needs to access the "Focus" frame. Some of you have no idea what it is, some of you will use it on a constant basis. If you do use it, i designed it in such a way to not bother you:

- It will always use the last slot (12), as long as u don't have more than 11 people selected in focus, you won't have any problems.

- the 12th slot will be updated for about 1ms with the last target info, once the addon reacquires the target, the 12th slot will be set to your character. So for 99.99999% of the time, the 12 slot will be showing your character in it, which is always useful even if raid healing.

- If you don't use the focus window, you'll see it appear. Just stash it away somewhere and let it do its job :P. There's no way around it atm unfortunately.


Features in v1.0

  • Settings are saved for each character and for each class of the character
  • GUI
  • Most of the behavior can be customized
  • Keeps track of a number of things:
    • Buffs:
      • Select up to 8 buffs to be used
      • Enable/disable for each without deleting settings
      • Checks if the buff is present on the player before casting
      • Checks is cooldown is read and if there is enough mana to cast it
      • Checks if player is in combat, does not use buffs that are not allowed to be used in combat.
      • Ability to set combat buffs:
        • These are allowed to be cast during combat.
        • They will keep being applied for 1 min after combat activity stops being detected
    • Healing:
      • Normal Healing:
        • Select up to 2 spells
        • The addon will not use these if mounted or in the middle of casting something.
        • Ability to set a health percent for the spells to be used once the player health falls below it.
        • If a spell such as regenerate, it will only cast it again once it expires
        • If a spell such a heal, it will keep casting until health is above minimum set.
      • Critical Healing
        • Select one spell to be used once health reaches a critical point
          • Select the percent HP to be used under
          • This spell will not be cast while mounted
          • Ignores if player is casting a spell
        • Select a potion slot to be used and the hp% to be used at
        • A warning displaying health appears on the screen
    • Auto Potion
      • Select 2 healing potions and 2 Mana potions and set when they should be used.
      • Will not be used while mounted
      • Checks the cd for pots before trying to use them

For all of these the addon tries to make sure the cast was successful.


Releases

  • 1.161
    • Detecting mana works when mana is not the primary "power" of the player (there were problems with classes like W/P or R/M) - thx Ostor for the testing!
  • v1.16
    • Added support for German client, should now detect mounts correctly and not do anything while riding :)!
  • v1.15
    • FIXED:
      • no buffing in house
      • supports Enhanced Grace of Life, so when you have an Enhanced Grace of Life buff on you, the addon won't spam the Grace of Life buff (experimental)
    • ADDED:
      • hide focus frame feature, to make that disturbing little frame hidden. ***It can be controlled by a checkbox on the nBuff's config frame.
    • Thanks ZsZso for update!


  • v1.03
    • fixed the well-known "line 103" error
    • fixed UI (Critical Spell checkbox) thx for rajatk15
    • new mounts supported: ostrich, berhu, wartiger.
    • Thanks ZsZso for updating!


  • v1.0b
    • fixed a bug that caused load errors sometimes
    • fixed a bug where sometimes buffs and heals would stop getting cast
    • added a GUI
    • added a POT section ( health and mana)
    • added a combat option for buffs
    • added another healing spell
    • improved code stability
    • code now detects combat
    • increased max buffs to 8
    • target self when casting buffs/heals. Switches back to original target afterward
    • added a help section inside the GUI
    • addon now saves each character with a diff set of settings for each class.
    • the critical hp pot actually works now
    • probably more things but i forget :)


  • v0.2b
    • fixed a bug that caused addon to give errors on start-up
    • buffs and spells don't need to be named anymore
    • each character gets their own set of settings now
    • fixed a bug that caused instant heal to be cast twice
    • increased the number of buffs to 6
    • added God Mode :)))
    • fixed the menus up a bit
    • changed the way the addon handles things, should be more efficient
  • v0.1.1b
    • fixed a bug that caused status to give an error when pot enabled
    • fixed a bug that caused the addon not use the healing spell
    • fixed a bug where buff2 and buff3 were not being enabled (thanks rajatk15)
  • v0.1b
    • Initial release


Features being developed

ZsZso has agreed to join on the project. Together we are trying to develop a section to do the following:

  • Raid Buffs
    • Will constantly check raid for buffs applied
    • Will display a window with people whose buffs are about to expire/expired
    • The window will distinguish between those in/out of range
    • When clicking a name in the window, the addon will begin to buff them automatically
    • Queue option might be added
    • Buff all might be added
  • Buff bars
    • An option to replace the way buffs are displayed and rather show a nice set of bars for each buff which display time left and a diminishing bar to graphically represent this.

More might be on the way!


Help

  • The addon uses the hotbar slots to know what to cast. These are all numbered from 1-80, the numbering is quite simple:
    • Bottom bar: 1-20
    • Top bar: 21-40
    • Right bar: 41-60
    • Left bar: 61-80
  • There is also a screenshot that graphically shows this. Both here and in game in the "Help" section.
  • The addon takes 1-2 digit numbers. So, for slot 2, you would write: 2. Simple.
  • The checkbox before each buff/spell/pot selects wether you want that slot to be enabled. Checked box = enabled. Unchecked = disabled.
  • If the box is unchecked the parameters cannot be edited.
  • If trying to enter letters instead of numbers, the addon will throw an error telling you this. If you have those disabled/hidden, it will simply not save.

Auto Buff

This is quite simple to use, select up to 8 spells that the addon will try to keep on.

You have two options for spell types

  1. Combat
  2. Non Combat

Combat spells

  • These spells will be cast when the addon detects combat flags. Unfortunately, there is no way to check the combat flag in game ATM due to the command not working! I programmed the addon to try to figure out if you are in combat by checking the combat log. It is not perfect, but it generally gets it right 95% of the time.
  • Once the addon thinks u are out of combat, it will keep casting the combat spells for 1 more minute so they are ready when u engage again. After 1 minute it will stop refreshing them if detects no combat.
  • Before using any spell, the script makes sure you're not doing any of the following:
    • Not mounted
    • Not in the middle of a spell cast
    • Not out of mana/focus..etc
    • Not on cooldown
    • Buff is not already on you

Non-Combat Spells

  • Will not be cast when combat is detected
  • Checks for the same flags as above


Auto Heal

There are 2 types of healing

  1. Low health
  2. Critical health
  • Low Health
    • You can select 2 spells and a percent to be used when players HP goes under.
    • The spells will only be cast if player is not mounted and not in the middle of a spell cast
    • Non buff spells eg: instant heal, heal ( they don't give an effect that lasts x amount of seconds)
      • These are cast until health goes above the set limit, i don't recomend using these much, cannot be cast while moving and if you are running it will try to cast it and it will show an error. Use instant cast spells!
    • HoT spells eg: regenerate (Heal over Time)
      • Will be cast once and will only be cast again when effect expires if health still low
    • Shield type spells eg: wave shield, electrostatic charge (place a buff)
      • will be cast once, will not be applied again unless they are used up/expired. Checks for cooldown before applying again.
  • Critical Health
    • Spell
      • Select a percent to be used at
      • Displays an on screen warning that health is low
      • Low health spells are disabled in this range. Reason: YOU should be the one deciding what to do here, not a script. The spell can buy you time to react.
      • Will ignore if you are casting and keep trying to cast it until it either finds a cooldown or your health is above critical. So this will generally be set off no matter what.
    • Potion
      • Select one potion to be used, i suggest setting this at the same percent as the critical spell.

None of these spells are cast while mounted.

Auto Potion

Select 2 mana potions and 2 health potions. Each has it's own field of what $ mana/ health it should be used at. Potions will be used until the stat either goes above the set threshold or there is a cooldown on it. These will not be used while mounted.



Credits

  • ZsZso developer of "StayAlive" for inspiring me to make this addon. I also learned to script LUA by looking at his code (yes, this is the first LUA script i have ever written)
  • Sl4ker for introducing me to OnUpdate
  • os008 for providing me with a ton of awesome ideas and helpful functions! Check out his addon: http://rom.curse.com/downloads/rom-addons/details/autocs.aspx
  • All the people on the RoM addon forums that helped me and encouraged me to make this!


Hope you enjoy!

[Noktrin] - Siochain

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of mirakle mirakle Tue, 07 Apr 2009 12:49:10

    What do you need to make the Addon running on German Clients? Want to help to get it running there!

    LG Mira

  • 1 comment

Table of contents

  1. 1 About
    1. 1.1 IMPORTANT!

Facts

Date created
22 Feb 2009
Category
Last update
04 Apr 2009
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
nBuff - Smart Self Buff | Self Heal
Recent files
  • R: v 1.61 for 1825 on 04 Apr 2009
  • R: v 1.16 for 1825 on 27 Mar 2009
  • B: v1.15b for 1810 on 25 Mar 2009
  • B: v1.03b for 1810 on 23 Mar 2009
  • B: v1.0b for 1810 on 01 Mar 2009

Authors