BonusScanner Author:Crowley | Scans your equipment for cumulative bonuses like additional spell damage and sums them up.
Basic Usage: BonusScanner.active = 1, when BonusScanner is active BonusScanner.bonuses always contains a table of the bonuses of the current equipment. Example: BonusScanner.bonuses['HEAL'] contains the current healing bonus.
The lib also provides the following functions (might still change before v1.0):
BonusScanner:GetBonus(bonus) - returns total of a certain bonus type or 0 if not that bonus type is not present. - example: BonusScanner:GetBonus('CRIT') returns crit chance bonus of your current equipment.
BonusScanner:GetSlotBonuses(slotname) - returns table of bonuses on a certain item slot or an empty table if nothing present. - example: BonusScanner:GetSlotBonuses('Trinket0') returns bonuses on your first trinket slot
BonusScanner:GetBonusDetails(bonus) - returns slot distribution of a certain bonus type
BonusScanner:GetSlotBonus(bonus, slotname) - returns the bonus amount of a certain bonus type on a certain item slot.. - example: BonusScanner:GetSlotBonus('DMG', 'Head') returns the spell damage bonus on your helmet.
BonusScanner_Update() - gets called, after bonuses get updated. Empty function to hook into.
BonusScanner also provides a slash command, mostly for debugging purposes. The Command is /bonusscanner or /bscan. The options are: - /bscan show - shows all bonuses of your current equipment - /bscan details - shows bonuses with slot distribution - /bscan- (insert itemlink with Shift-click) shows recognized bonuses from that item. - /bscan- shows bonuses of given equipment slot.
Available bonus types are:
types = { "STR", -- strength "AGI", -- agility "STA", -- stamina "INT", -- intellect "SPI", -- spirit "ARMOR", -- reinforced armor (not base armor)
"ARCANERES", -- arcane resistance "FIRERES", -- fire resistance "NATURERES", -- nature resistance "FROSTRES", -- frost resistance "SHADOWRES", -- shadow resistance
"FISHING", -- fishing skill "MINING", -- mining skill "HERBALISM", -- herbalism skill "SKINNING", -- skinning skill "DEFENSE", -- defense skill
"BLOCK", -- chance to block "BLOCKVALUE", -- increased block value "DODGE", -- chance to dodge "PARRY", -- chance to parry "ATTACKPOWER", -- attack power "ATTACKPOWERUNDEAD", -- attack power against undead "ATTACKPOWERFERAL", -- attack power in feral form
"CRIT", -- chance to get a critical strike "RANGEDATTACKPOWER", -- ranged attack power "RANGEDCRIT", -- chance to get a crit with ranged weapons "TOHIT", -- chance to hit
"DMG", -- spell damage "DMGUNDEAD", -- spell damage against undead
"ARCANEDMG", -- arcane spell damage "FIREDMG", -- fire spell damage "FROSTDMG", -- frost spell damage "HOLYDMG", -- holy spell damage "NATUREDMG", -- nature spell damage "SHADOWDMG", -- shadow spell damage "SPELLCRIT", -- chance to crit with spells "HEAL", -- healing "HOLYCRIT", -- chance to crit with holy spells "SPELLTOHIT", -- Chance to Hit with spells
"SPELLPEN", -- amount of spell resist reduction
"HEALTHREG", -- health regeneration per 5 sec. "MANAREG", -- mana regeneration per 5 sec. "HEALTH", -- health points "MANA", -- mana points }; Development Status: stable Added: 2006-09-08 17:23:01 Version: 1.2
Rate this Package: 1 2 3 4 5 6 7 8 9 10
No Screenshots available.
| |
|