/trunk
L["(Updating...)"] = true |
L["LDB data feed to display item bonuses, based on BonusScanner addon."] = true |
L["Author"] = true |
L["Show minimap button"] = true |
L["Enables the minimap button, for users lacking a proper LDB display. This option will nullify button/block functionality."] = true |
L["About"] = true |
-- 1.1 locale |
L["Hide watched bonuses"] = true |
L["This option hides all bonus text from the button, leaving the icon as the only visual element."] = true |
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_BonusScanner","zhTW") |
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_BonusScanner","zhTW") |
if not L then return end |
L["(Updating...)"] = "(æ´æ°ä¸...)" |
L["LDB data feed to display item bonuses, based on BonusScanner addon."] = "顯示è£åå æçLDBæ¸æ, ä¾èªBonusScanneræ件." |
L["Author"] = "ä½è " |
L["Show minimap button"] = "顯示å°å°åæé" |
L["Enables the minimap button, for users lacking a proper LDB display. This option will nullify button/block functionality."] = "åç¨å°å°åæé,è½å¤ 顯示LDBä¿¡æ¯." |
L["About"] = "éæ¼" |
-- 1.1 locale |
L["Hide watched bonuses"] = "é±è顯示ççåµé¡å" |
L["This option hides all bonus text from the button, leaving the icon as the only visual element."] = "éåé¸é æé±èææ顯示ççåµçµ±è¨é¡åï¼åªä¿çåæ¨é¡¯ç¤º." |
L["(Updating...)"] = "(Actualizando...)" |
L["LDB data feed to display item bonuses, based on BonusScanner addon."] = "Origen de datos LDB para mostrar mejoras de objetos, basado en el addon BonusScanner." |
L["Author"] = "Autor" |
L["Show minimap button"] = "Mostrar botón en el minimapa" |
L["Enables the minimap button, for users lacking a proper LDB display. This option will nullify button/block functionality."] = "Activa el botón del minimapa, para usarios sin un adecuado visor LDB. Esta opción anulará la caracterÃstica botón/panel" |
L["About"] = "Acerca de" |
L["Author"] = "Autor" |
L["Version"] = "Versión" |
L["Category"] = "CategorÃa" |
L["Email"] = "Email" |
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_BonusScanner","zhCN") |
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_BonusScanner","zhCN") |
if not L then return end |
L["(Updating...)"] = "(æ´æ°ä¸...)" |
L["LDB data feed to display item bonuses, based on BonusScanner addon."] = "æ¾ç¤ºè£ å¤å æçLDBæ°æ®, æ¥èªBonusScanneræ件." |
L["Author"] = "ä½è " |
L["Show minimap button"] = "æ¾ç¤ºå°å°å¾æé®" |
L["Enables the minimap button, for users lacking a proper LDB display. This option will nullify button/block functionality."] = "å¯ç¨å°å°å¾æé®,è½å¤æ¾ç¤ºLDBä¿¡æ¯." |
L["About"] = "å ³äº" |
-- 1.1 locale |
L["Hide watched bonuses"] = "éèæ¾ç¤ºçå¥å±ç±»å" |
L["This option hides all bonus text from the button, leaving the icon as the only visual element."] = "è¿ä¸ªé项ä¼éèæææ¾ç¤ºçå¥å±ç»è®¡ç±»åï¼åªä¿çå¾æ æ¾ç¤º." |
-------------------------------------------------- |
-- BonusScanner Continued v5.1 |
-- BonusScanner Continued v5.2 |
-- Originally developed by Crowley <crowley@headshot.de> |
-- performance improvements by Archarodim |
-- Updated for WoW 2.0 by jmlsteele |
local _G = getfenv(0); |
-- Initialize locals/tables |
local BONUSSCANNER_VERSION = "5.1"; |
local BONUSSCANNER_VERSION = "5.2"; |
-- Patterns |
local BONUSSCANNER_PATTERN_SETNAME = "^(.*) %(%d/%d%)$"; |
local BaseRatings = { |
{ effect = "EXPERTISE", baseval = 2.5}, |
{ effect = "DEFENSE", baseval = 1.5}, |
{ effect = "DODGE", baseval = 12}, |
{ effect = "PARRY", baseval = 15}, |
{ effect = "DODGE", baseval = 13.8}, -- 3.2 Dodge Rating: The amount of dodge rating required per percentage of dodge has been increased by 15%. |
{ effect = "PARRY", baseval = 13.8}, -- 3.2 Parry Rating: The amount of parry rating required per percentage of parry has been reduced by 8%. |
{ effect = "BLOCK", baseval = 5}, |
{ effect = "TOHIT", baseval = 10}, |
{ effect = "CRIT", baseval = 14}, |
{ effect = "SPELLCRIT", baseval = 14}, |
{ effect = "HOLYCRIT", baseval = 14}, |
{ effect = "SPELLH", baseval = 10}, |
{ effect = "RESILIENCE", baseval = 25}, |
{ effect = "RESILIENCE", baseval = 28.75}, -- 3.2 Resilience: The amount of resilience needed to reduce critical strike chance, critical strike damage and overall damage has been increased by 15%. |
{ effect = "ARMORPEN", baseval = 3.756097412109376} -- 3.1 Armor Penetration Rating: All classes now receive 25% more benefit from Armor Penetration Rating. |
} |
level = 34 |
end |
if level < 10 then |
return 52 / (10 - 8) |
return 52 / 2 |
elseif level <= 60 then |
return 52 / (level - 8) |
elseif level <= 70 then |
if not value then |
_, _, token, value = string.find(tmpStr, BONUSSCANNER_PATTERN_GENERIC_SUFFIX2) |
end |
if token and value then |
-- trim token |
token = string.gsub( token, "^%s+", "" ) |
token = string.gsub( token, "%s+$", "" ) |
token = string.gsub( token, "%.$", "" ) |
token = string.gsub( token, "|r", "" ) |
token = string.gsub( token, "|r", "" ) |
if self:CheckToken(token,value) then |
found = true |
-- Last fallback for non generic/special enchants/effects, like "Mana Regen x per 5 sec." |
function BonusScanner:CheckOther(line) |
local i, p, value, start, found |
for i,p in pairs(L["BONUSSCANNER_PATTERNS_OTHER"]) do |
start, _, value = string.find(line, "^" .. p.pattern) |
if start then |
## Interface: 30200 |
## Title: BonusScanner Continued |cff00aa005.1|r |
## Version: 5.1 |
## Title: BonusScanner Continued |cff00aa005.2|r |
## Version: 5.2 |
## Notes: Scans your Equipment for cumulative item bonuses and sums them up. Currently maintained and updated by Tristanian. |
## Notes-deDE: Durchsucht die Ausrüstung nach Gegenstandboni und zählt diese zusammen. |
## Author: Tristanian (tristanian@live.com) |
5.2 Tristanian 2009.08.09 |
- Updated libraries. |
- Updated base ratings for 3.2, in accordance with the following changes: |
Dodge Rating: The amount of dodge rating required per percentage of dodge has been increased by 15%. |
Parry Rating: The amount of parry rating required per percentage of parry has been reduced by 8%. |
Resilience: The amount of resilience needed to reduce critical strike chance, critical strike damage and overall damage has been increased by 15%. |
------------------------------------------------ |
5.1 Tristanian 2009.08.04 |
- Major update. |
- Updated toc for 30200 (WoW 3.2). |
--[[ |
Name: LibTipHooker-1.1.lua |
Description: A Library for hooking tooltips. |
Revision: $Revision: 5 $ |
Revision: $Revision: 7 $ |
Author: Whitetooth |
Email: hotdogee [at] gmail [dot] com |
LastUpdate: $Date: 2009-07-08 10:06:02 +0000 (Wed, 08 Jul 2009) $ |
LastUpdate: $Date: 2009-08-09 17:24:10 +0000 (Sun, 09 Aug 2009) $ |
Website: |
Documentation: |
SVN: $URL $ |
License: LGPL v3 |
]] |
-- This library is still in early development |
--[[ Features |
{ |
1. Why not use the OnTooltipSetItem script hook? |
OnTooltipSetItem is bugged that it's called twice on proffesion patterns, once for the pattern and once for the item it makes. |
2. Maintains support for most tooltip mods |
3. Hooks dynamically created tooltips |
} |
--]] |
--[[ Tips for using TipHooker |
{ |
This library provides tooltip hooks, mainly for use with item tooltip modification, you can easily append or modify text in a tooltip with TipHookerLib. |
local MAJOR = "LibTipHooker-1.1" |
local MINOR = "$Revision: 5 $" |
local MINOR = "$Revision: 7 $" |
local TipHooker = LibStub:NewLibrary(MAJOR, MINOR) |
if not TipHooker then return end |
"ShoppingTooltip", |
"ComparisonTooltip",-- EquipCompare |
"EQCompareTooltip",-- EQCompare |
"tekKompareTooltip",-- takKompare |
--"IRR_",-- LinkWrangler |
"tekKompareTooltip",-- tekKompare |
"LinkWrangler",-- LinkWrangler |
"LinksTooltip",-- Links |
"AtlasLootTooltip",-- AtlasLoot |
"ItemMagicTooltip",-- ItemMagic |
"SniffTooltip",-- Sniff |
--"LH_",-- LinkHeaven |
"MirrorTooltip",-- Mirror |
"TooltipExchange_TooltipShow",-- TooltipExchange |
"AtlasQuestTooltip",-- AtlasQuest |
"SetLootItem", |
"SetLootRollItem", |
-- crafting |
"SetCraftSpell", |
"SetCraftItem", |
"SetTradeSkillItem", |
"SetTrainerService", |
"SetHyperlinkCompareItem", |
-- 2.3.0 |
"SetGuildBankItem", |
-- 3.0 |
"SetCurrencyToken", |
"SetBackpackToken", |
}, |
buff = { |
"SetPlayerBuff", |
local HandlerList = TipHooker.HandlerList or {} |
TipHooker.HandlerList = HandlerList |
local origs = {} |
local Set = { |
item = function(tooltip) |
item = function(tooltip, ...) |
if not tooltip.GetItem then return end |
local name, link = tooltip:GetItem() |
if not name then return end -- Check if tooltip really has an item |