Please scroll down for the download button
and more file information.
File Description
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:
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.
'BLOCK', -- chance to block 'DODGE', -- chance to dodge 'PARRY', -- chance to parry 'ATTACKPOWER', -- attack power '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 '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
'HEALTHREG', -- health regeneration per 5 sec. 'MANAREG', -- mana regeneration per 5 sec. 'HEALTH', -- health points 'MANA', -- mana points }