13 Commits

Author SHA1 Message Date
Duvel 23bb69d094 Merge pull request #7 from DuvelCorp/v1.3.0
V1.3.0 - Last before Twow upgrade
2026-03-19 16:32:36 +01:00
DuvelCorp b2060e0aab V1.3.0 2026-03-19 16:27:21 +01:00
Duvel 609a6bdd83 Merge pull request #6 from DuvelCorp/v1.2.0
v1.2.0
2026-03-11 00:41:30 +01:00
DuvelCorp c0c2c275eb v1.2.0 2026-03-11 00:40:35 +01:00
Duvel ab34946775 Fix typos and enhance clarity in README
Corrected typos and improved wording in the README.
2026-03-09 15:18:11 +01:00
Duvel d41703949d Merge pull request #4 from DuvelCorp/1.1.0
v1.1.0
2026-03-09 13:42:21 +01:00
DuvelCorp 27d37564ce v1.1.0 2026-03-09 13:41:30 +01:00
Duvel 4aed1174dd Merge pull request #3 from DuvelCorp/v1.0.6
v1.0.6
2026-03-05 12:31:27 +01:00
DuvelCorp 233899b2a0 v1.0.6 2026-03-05 12:30:24 +01:00
Duvel 89fd8e079c Merge pull request #2 from DuvelCorp/v1.0.5
## [1.0.5] - 2026-03-01

### Fixed
- Multiple changes to the addon to reduce its memory and CPU time footprint to the strict minimum possible.
- Restored FeedOMatic pet hunger notifications so hungry/very hungry warnings are emitted reliably again when enabled.
- Fixed Chronometer `Wing Clip` tracking by adding a safe fallback timer path for the missing trigger case.
- Fixed Chronometer `Quick Shots` bar icon by mapping the event to the correct icon texture.
- Fixed module enabled/disabled persistence to be truly per-character (`MTH_CharSavedVariables.moduleStates`) instead of account-shared.
- Fixed AutoBuy persistence fallback by removing undeclared `MTH_AutoBuy_Saved` paths and using module stores/transient runtime fallback only.
- Consolidated FeedOMatic legacy persistence to a single module-backed store (`modules.feedomatic.legacy`) with globals bound to that source.
- Switched Chronometer profile persistence to per-character module storage with one-time migration from existing account profile data.
- Switched Tooltips module options persistence to per-character module storage with one-time migration from existing account settings.
2026-03-01 09:12:06 +01:00
DuvelCorp 1a28d95b87 v1.0.5 2026-03-01 09:10:22 +01:00
Duvel 6b82d0ca46 Merge pull request #1 from DuvelCorp/v1.0.4
v1.0.4
2026-02-27 19:00:23 +01:00
DuvelCorp 2c94650993 v1.0.4 2026-02-27 18:57:24 +01:00
130 changed files with 62853 additions and 6465 deletions
+5
View File
@@ -4,3 +4,8 @@
# Keep this ignore file tracked
!.gitignore
# Exclude non-runtime localization helper artifacts
tools/
LOC*.md
LOCALIZATION*.md
+140
View File
@@ -0,0 +1,140 @@
# Changelog
All notable changes to MetaHunt will be documented in this file.
## [1.3.0] - 2026-03-19
### Added
- Added a **3D Model Viewer** to the Hunter Book Beast Lore inspector panel. Clicking a beast in the list shows its in-game model.
- Added a standalone **3D Model Viewer** that is shown when cliking the model of a beast in the Beast lore. The model is rotatable with the mouse, and you can browse all models of the same pet family and shows all other beasts that share the same skin, with one-click to jump to any of them in the Beast Lore.
- Added a **Family icon** column to the Beast Lore list, replacing the text family name with the pet family icon for a more compact view.
- Added an **Attack Speed (AS)** column to the Beast Lore list.
- Added `displayId` and `skinId` fields to **all ~1000 beasts** in the MetaHunt datastore. `displayId` was scraped from the Turtle WoW DB, and `skinId` derived from it following an extraction on MPQ game files. This is what powers the model viewer and skin-grouping.
- Added per-family icons to all 19 pet families in the family data table.
- Added missing food types (`raw meat`, `raw fish`) to all pet families that accept `meat` or `fish` respectively (sourced from MPQ data).
- Added **Profile Management** panel (Options → Profiles): save the current addon configuration as a named profile and instantly load it on any character. Profiles cover all module settings (ICU, Chronometer, AutoBuy, AutoQuest, SmartAmmo, Feed-O-Matic, zButtons layout) and per-character module enabled/disabled states.
- Added automatic per-character **config snapshots** saved on every logout (`CharName-RealmName`), visible in the "Copy from Character" section — import any character's snapshot as a loadable profile in one click.
### Fixed
- Fixed the pet feeding counter never incrementing: `MTH_FEED_Trace` was a no-op stub and `FOM_CORE_ATTEMPT_TRACKING_ENABLED` was `false`; both are now active.
- Fixed `FOM_AddFood` not clearing a food from `FOM_RemovedFoods` when the item belongs to the base diet list, which permanently banned it even after an explicit `/fom add`.
- Wired `FOM_ClearItemBans` into the `/fom add` command path: explicitly re-adding a food now clears it from `FOM_RemovedFoods`, FOM quarantine, and core exceptions in one step.
- Removed debug messages forgotten when releasing 1.2.
- Fixed SmartAmmo + **Quiver castbar conflict**: Quiver's castbar was disappearing when both addons were active. Root cause: MetaHunt SmartAmmo was re-installing its hooks every 0.5 seconds, constantly bumping Quiver off the top of the hook chain. Fixed by removing the repeated re-hook and adding a guard that only installs once (or when no other addon is on top).
## [1.2.0] - 2026-03-10
### Added
- Added keybinding text overlay on zButtons: parent and child buttons now display their bound key for the 5 bindable sets (Aspect, Track, Trap, Ammo, Pet).
- Added "Expand on Hover" option for zButton children: when enabled, hovering over the parent button automatically expands children (instead of requiring right-click).
- Added "Auto-Hide Timer" option for zButton children: a configurable 010 second timer that automatically collapses expanded children after the mouse leaves the button group. Timer resets while hovering any button in the group.
### Fixed
- Fixed SavedVariables data loss on login caused by initialization race condition overwriting persisted data.
- Fixed SavedVariables bloat by adding a migration that strips redundant default-valued keys on first load.
- Fixed six performance issues including throttling high-frequency event handlers, caching repeated `getglobal` lookups, and reducing unnecessary table allocations in hot paths.
- Cleaned up ICU module global variable leaks by properly scoping locals.
- Standardized all remaining `SetScript` handler patterns to use the WoW 1.12 `this`-based convention consistently.
## [1.1.0] - 2026-03-09
### Added
- Added new `ICU` module with dedicated options panel.
- Added ICU custom popup anchor mode with draggable anchor and direction toggle.
- Added ICU popup hide delay options (`INSTANT`, 1..10 seconds).
- Added new `Auto Quest` module for :
- `Salt of the Scorpok` (`Bloodmage Drazial`)
- `Arrows Are For Sissies` (`Artilleryman Sheldonore`)
- Added a Food Feed learning feature to Feed-O-Matic.
- Added Chronometer `Entrapment` effect tracking support.
### Changed
- Loads of Frame/Handlers/Processes adjustments to optimize addon's CPU time and Memory usage.
- Updated Chronometer Improved Wing Clip effect color to `MAROON` for clearer effect-bar distinction.
- Reworked Stable Master processing to minimize swap-time overhead:
- No auto-scan on `PET_STABLE_SHOW`.
- Deferred stable scan moved to `PET_STABLE_CLOSED`.
- Optional heavy workloads are skipped while stable UI is open.
- Changed Hunter Book page order, and default opening page to `Beast Lore`.
- Optimized `Pet History` result build/sort path using cached precomputed sort keys.
- Modules Auto-Buy, Auto-Quest, ICU, Feed-O-Matic are by default disabled on first use on a character.
### Fixed
- Fixed issues with zBouttons,Autostrp and Chronometer bar anchor not retaining their configured spawn position after the disabling/renabling of the Addon.
- Fixed issues with options checkbox-state not always retaining their state on startup.
- Fixed multiple issues in Feeed-O-Matic with some foods that were accepted by lvl 60 pets in Vanilla and are not anymore on Turtle.
- Fixed Chronometer spell/event disable toggles in options so disabled entries now reliably block bar creation.
- Fixed Chronometer `Feed Pet` bar missing trigger by adding `UNIT_AURA` fallback detection.
- Fixed stable swap stutter/freezes by removing heavy processing from repeated `UNIT_PET` bursts during stable interactions.
## [1.0.6] - 2026-03-05
### Fixed
- Added missing abilities to all pet families.
- Rescraped from Twow DB the previously in correct `Roar of Fortitude` pet-ability.
- Fixed an issue with Tooltip on pet action bar abilities, that were falsely displayed as not learned yet for rankless abilities.
- Restored visible Stable Master auto-scan feedback (`Stable scan complete: X slot(s).`) when opening the stable window.
- Fixed stable scan icon persistence for active pets that were never stabled by capturing current-pet icon data during stable scans.
- Hardened stable-scan bootstrap to initialize on both `PET_STABLE_SHOW` and `PET_STABLE_UPDATE` event paths.
- Fixed issues with taming pet metadata that were not properly recorded since the last update.
- Fixed issues with pet runaway interception that was broken since the last update.
- Updated version-update notification text to include clearer upgrade guidance and plain GitHub URL text for updates.
- Fixed an issue with `zTrack` buttons spells being incorrect after having respec the talents using brainwashing device.
## [1.0.5] - 2026-03-01
### Fixed
- Multiple changes to the addon to reduce its memory and CPU time footprint to the strict minimum possible.
- Restored FeedOMatic pet hunger notifications so hungry/very hungry warnings are emitted reliably again when enabled.
- Fixed Chronometer `Wing Clip` tracking by adding a safe fallback timer path for the missing trigger case.
- Fixed Chronometer `Quick Shots` bar icon by mapping the event to the correct icon texture.
- Fixed module enabled/disabled persistence to be truly per-character (`MTH_CharSavedVariables.moduleStates`) instead of account-shared.
- Fixed AutoBuy persistence fallback by removing undeclared `MTH_AutoBuy_Saved` paths and using module stores/transient runtime fallback only.
- Consolidated FeedOMatic legacy persistence to a single module-backed store (`modules.feedomatic.legacy`) with globals bound to that source.
- Switched Chronometer profile persistence to per-character module storage with one-time migration from existing account profile data.
- Switched Tooltips module options persistence to per-character module storage with one-time migration from existing account settings.
## [1.0.4] - 2026-02-27
### Added
- Added new zButton bar `zRanged` that tracks all ranged weapons in bags and allows to quickly swap them.
- Added structured localization architecture with dedicated locale packs under `locales/` and loader wiring through `init/localization.xml`.
- Added a dedicated `Messages` options panel with per-message toggles.
- Added Smart Ammo option `Enable Weapon-Swap Auto Ammo` to instantly equip best bullets/arrows when switching ranged weapon type.
- Added two new Hunter Book pages in the main tab bar: `Projectiles` and `Ammo Bags`
### Changed
- Reworked core localization runtime to support explicit locale fallback rules (`enUS`, `deDE`, `esES`, `ptBR`, `ruRU`, `zhCN`; no `frFR` target).
- Updated Hunter Book NPC finder and map vendor markers to use localized NPC names by NPC ID.
- Updated Hunter Book, item search/sort, AutoBuy item labels, and drop map markers to use localized item names by item ID.
### Fixed
- Fixed version metadata consistency so all first-party module descriptors report the same release version as the main addon.
- Fixed SmartAmmo junk-shot detection by including `Baited Shot` and `Tranquilizing Shot` in `MTH_AMMO_JUNKSHOT_SET`.
- Fixed zButtons options side effect where opening Mounts/Companions/Toys options could implicitly enable those buttons.
- Normalized zButtons checkbox defaults (`enabled`, `tooltip`, `hideonclick`, `parent.hide`, `parent.circle`, `showammoname`) so toggle states are always explicit and never nil.
- Fixed Beast Lore ability dropdown to exclude trainer-only abilities and list beast-learned abilities only.
- Removed junk `TBD` ability value from Wind Serpent dataset entry (`Venomflayer Serpent`) so it no longer appears in Beast Lore filters.
- Fixed zhunter child-button visibility restore so collapsed bars no longer hard-hide children (`ztrack` / `ztrap` expansion regression).
- Fixed pet tame metadata fallback so existing pets are not assigned current zone/time unless a real tame attempt is pending.
- Fixed Smart Ammo options copy mismatch by clarifying junk-shot swap behavior and restoring ammo target as previous equipped ammo.
- Fixed Smart Ammo default state so junk-shot swaps are enabled when no saved value exists.
- Fixed Beast Training startup prompt behavior so low-level hunters no longer receive training-scan warnings before level threshold.
- Restored hidden `/mth err` slash command behavior for debug-frame access.
- Fixed `zammo` children refresh on bag/inventory updates so newly acquired ammo types appear without `/reload`.
- Preserved `zammo` out-of-stock behavior so previously shown ammo entries still remain visible with zero/out state.
- Fixed intermittent `ztrack`/`ztrap` right-click expand/collapse issue after fresh login by preventing duplicate child-frame recreation during startup.
- Fixed `zpet` spell resolution after trainer updates by using robust spellbook lookup and immediate refresh on `LEARNED_SPELL_IN_TAB`.
## [1.0.3] - 2026-02-24
### Added
- Initial published release.
+6 -2
View File
@@ -1,7 +1,7 @@
## Interface: 11200
## Version: 1.0.3
## Version: 1.3.0
## Title: MetaHunt - |cff00ff00Hunter
## Author: Metasploit
## Author: Metasploit and his Copilot ;)
## Notes: Unified addon suite for huntards making old addons compatible with TurtleWoW, and adding an arsenal of never seen Hunter's utilities.
## SavedVariables: MTH_SavedVariables, FOM_Config, FOM_FoodQuality, FOM_AddedFoods, FOM_RemovedFoods, FOM_Cooking, FOM_QuestFood, FOM_LocaleInfo
## SavedVariablesPerCharacter: ZHunterMod_Saved, MTH_CharSavedVariables
@@ -26,6 +26,8 @@ data\ds-vendors.lua
data\ds-vendors-extra.lua
data\ds-items.lua
data\ds-items-extra.lua
data\ds-items-origins.lua
data\ds-bags.lua
data\ds-items-atlas-sources.lua
data\ds-zones.lua
data\ds-zones-fallback.lua
@@ -33,6 +35,8 @@ data\ds-minimap-sizes.lua
data\ds-unit-coords.lua
data\ds-creature-coords.lua
data\ds-beasts-families.lua
data\ds-beasts-families-dbc.lua
data\ds-beasts-skins.lua
data\ds-pet-spells.lua
data\ds-pet-spells-trainer.lua
data\ds-racial.lua
+40 -14
View File
@@ -1,11 +1,12 @@
# MetaHunt
MetaHunt is a Turtle WoW Hunter toolkit.
It combines never seen pet-centric features and revives old broken hunter add-ons.
It is a modern modular addon that combines never-seen features, and improves/fixes a few old hunter add-ons.
It provides a bunch useful tools for all huntards, wheter they are still levelling, lone-wolf, or HL raider.
## Twow Data
Metahunt ships with larges up-to-date datastores for all data a hunter needs :
MetaHunt ships with large up-to-date datastores for all Turtle WOW data a hunter needs :
- All beasts, their location, and the abilities they can learn you
- All Pet families, their abilities and their diet
@@ -14,16 +15,21 @@ Metahunt ships with larges up-to-date datastores for all data a hunter needs :
- All Stable, Hunter and Pet Masters
- All Ammo vendors
## Smart Ammo
Auto swap your main ammo to junk ammo for shots that doesn't scale on damage, and re-equip you main ammo right away.
- Auto swap your main ammo to junk ammo for shots that doesn't scale on damage, and re-equip you main ammo right away. Don't waste your Doomshots on nothing anymore, save money !
- Auto equip another ammo instantly during combat whenever you get out of your current ammo.
- Auto equip the right ammo when you swap from a box/xbow to a gun and the other way around.
# Tooltips
## Tooltips
Get enhanced tooltips on beasts, ammo vendors, and your pet.
Get enhanced mouseover tooltips on :
- Beasts : Shows which abilities a beast can teach. They appear green if you already know them, and red if not.
- Vendors : Shows if a vendor sells Arrows and/or Bullets.
- Your pet : Shows your pet's XP, loyalty, happiness and how much you fed it this session.
# zBouttons
## zBouttons
Old zHunterMod addon on steroids. Fully compatible with Twow, and enhanced with new functionalities
@@ -31,22 +37,42 @@ Old zHunterMod addon on steroids. Fully compatible with Twow, and enhanced with
- zPet : Intelligent collapsible pet Bar regrouping all pet spells and providing an intelligent button that always show you the right spell to use depending on the situation
- zTrack: All your trackings in one collapsible bar
- zAspect: All your trackings in one collapsible bar
- zRanged : All the ranged weampons currently in your bags to swap them fast
- But also zMounts, zToys and zCompanions.
# Feed-O-Matic
## Feed-O-Matic
Now compatible with Turtle, feed your pet with one key bind, it will always pickup the best food for your pet.
# Chronometer
## Chronometer
The good old Chronometer addon, purged of non-necessary things and reconfigured for a pure hunter use.
# Autobuy
## ICU (I see you)
Define your own simple rules for auto buy ammo and pet food.
Old addon used to display Targets' enhanced information when you click on your minimap tracking things. MetaHunt offers many more customization options for it.
# The book of Hunters
- Browse the Metahunt datastores of NPCs and open the map to locate them like in pfQuest
## Auto-Buy
Define your own simple rules for auto buy ammo and pet food when you open a vendor.
## Auto-Quest
Just spam SHIFT-click on the NPC to validate quests Scorpok and Thorium arrows. Additionally you can have an enhanced tooltip that display your actual Scorpok-related items when you mouseover the mobs involved.
## The Great Book of Huntards
The Book is the main GUI of MetaHunt, it allows to display the data constantly collected about you and your pet, and browse the addon's data to find anything a Hunter needs.
- Browse the MetaHunt datastores of NPCs (Beast, vendors, masters) and open the map to locate them like in pfQuest
- Track all info about the pet abilities that you know and don't know yet
- Track all info about your stabled pets
- Keeep an history of all your pets after you abbandon them
- Keep an history of all your pets after you abandon them or if they run away.
## What it will never do.
The goal of MetaHunt is to offer hunter's features that are not covered by existing Twow addons, and in others https://github.com/SabineWren/Quiver .
There's no point to reinvent the wheel, except is the wheel is broken. Nothing will work better than Quiver for auto-shot, castbar and tranqshot mgt. MetaHunt is build to work alongside of Quiver and is complementary to it, and it will remain like this unless Quiver turns to be not upgraded anymore.
+3 -3
View File
@@ -98,7 +98,7 @@ local function AntiDaze_CancelRelevantAspect(isSelfDazed)
AntiDazeTooltip:SetOwner(UIParent, "ANCHOR_NONE")
AntiDazeTooltip:SetPlayerBuff(i, "HELPFUL")
local text = AntiDazeTooltipTextLeft1 and AntiDazeTooltipTextLeft1:GetText()
local text = MTH_AntiDazeProbeTextLeft1 and MTH_AntiDazeProbeTextLeft1:GetText()
if text == packName or (isSelfDazed and text == cheetahName) then
CancelPlayerBuff(i)
return 1
@@ -112,8 +112,8 @@ local function AntiDaze_HandleSlash()
AntiDaze_SetEnabled(not AntiDaze_IsEnabled())
end
AntiDazeTooltip = CreateFrame("GameTooltip", "AntiDazeTooltip", nil, "GameTooltipTemplate")
AntiDazeFrame = CreateFrame("Frame", "AntiDazeFrame")
AntiDazeTooltip = CreateFrame("GameTooltip", "MTH_AntiDazeProbe", nil, "GameTooltipTemplate")
AntiDazeFrame = CreateFrame("Frame", "MTH_AntiDazeEvent")
if AntiDazeFrame then
AntiDazeFrame:RegisterEvent("VARIABLES_LOADED")
AntiDazeFrame:SetScript("OnEvent", function()
+153 -1
View File
@@ -6,6 +6,29 @@ local function AutoStrip_Print(msg)
end
end
local AutoStrip_TraceEnabled = false
local function AutoStrip_Trace(msg)
if not AutoStrip_TraceEnabled then
return
end
AutoStrip_Print("[ASTRACE] " .. tostring(msg))
end
function AutoStrip_CommandTrace(mode)
local action = string.lower(tostring(mode or "status"))
if action == "on" or action == "1" or action == "true" then
AutoStrip_TraceEnabled = true
AutoStrip_Trace("trace enabled")
return
elseif action == "off" or action == "0" or action == "false" then
AutoStrip_Trace("trace disabled")
AutoStrip_TraceEnabled = false
return
end
AutoStrip_Print("[ASTRACE] status=" .. tostring(AutoStrip_TraceEnabled and true or false))
end
function AutoStrip_GetSaved()
if type(MTH_CharSavedVariables) ~= "table" then
MTH_CharSavedVariables = {}
@@ -20,6 +43,90 @@ local AUTO_STRIP_ORDER = {16, 17, 18, 5, 7, 1, 3, 10, 8, 6, 9}
AutoStrip_On = nil
AutoStrip_WasInCombat = nil
AutoStrip_Frame = nil
local AutoStrip_RestoreFrame = nil
local function AutoStrip_DescribePoint(frame)
if not (frame and frame.GetPoint) then
return "<no-frame>"
end
local point, relTo, relPoint, x, y = frame:GetPoint()
local relName = "nil"
if type(relTo) == "table" and relTo.GetName then
relName = tostring(relTo:GetName() or "<anon>")
elseif relTo then
relName = tostring(relTo)
end
return tostring(point or "nil")
.. "->" .. relName
.. ":" .. tostring(relPoint or "nil")
.. " @(" .. tostring(x) .. "," .. tostring(y) .. ")"
end
function AutoStrip_SaveDisplayPosition(reason)
if not (AutoStripDisplay and AutoStripDisplay.GetPoint) then
return
end
local saved = AutoStrip_GetSaved()
local point, _, relPoint, x, y = AutoStripDisplay:GetPoint()
x = tonumber(x)
y = tonumber(y)
if not (point and relPoint and x and y) then
return
end
saved["point"] = tostring(point)
saved["relativePoint"] = tostring(relPoint)
saved["x"] = math.floor(x + 0.5)
saved["y"] = math.floor(y + 0.5)
AutoStrip_Trace("persist-display-position reason=" .. tostring(reason or "")
.. " point=" .. tostring(saved["point"])
.. " rel=" .. tostring(saved["relativePoint"])
.. " x=" .. tostring(saved["x"])
.. " y=" .. tostring(saved["y"]))
end
local function AutoStrip_RestoreDisplayPosition(reason)
if not (AutoStripDisplay and AutoStripDisplay.ClearAllPoints and AutoStripDisplay.SetPoint) then
return false
end
local saved = AutoStrip_GetSaved()
local point = tostring(saved["point"] or "")
local relPoint = tostring(saved["relativePoint"] or "")
local x = tonumber(saved["x"])
local y = tonumber(saved["y"])
if point == "" or not x or not y then
AutoStrip_Trace("restore-display-position skipped reason=" .. tostring(reason or "")
.. " savedPoint=" .. tostring(saved["point"])
.. " savedX=" .. tostring(saved["x"])
.. " savedY=" .. tostring(saved["y"]))
return false
end
if relPoint == "" then
relPoint = point
end
AutoStripDisplay:ClearAllPoints()
AutoStripDisplay:SetPoint(point, UIParent, relPoint, x, y)
AutoStrip_Trace("restore-display-position reason=" .. tostring(reason or "")
.. " frame=" .. AutoStrip_DescribePoint(AutoStripDisplay))
return true
end
local function AutoStrip_QueueDeferredRestore(reason)
if not AutoStrip_RestoreFrame then
AutoStrip_RestoreFrame = CreateFrame("Frame", "MTH_AutoStripRestore")
if not AutoStrip_RestoreFrame then
return
end
end
AutoStrip_RestoreFrame._elapsed = 0
AutoStrip_RestoreFrame:SetScript("OnUpdate", function()
this._elapsed = (this._elapsed or 0) + (arg1 or 0)
if this._elapsed < 0.2 then
return
end
this:SetScript("OnUpdate", nil)
AutoStrip_RestoreDisplayPosition("deferred:" .. tostring(reason or ""))
end)
end
function AutoStrip_SetDisplayIcon()
local icon = getglobal("AutoStripDisplayIcon") or getglobal("AutoStripDisplayIconTexture")
@@ -35,6 +142,11 @@ end
function AutoStrip_SetAutoStripToggle(enabled, silent)
local saved = AutoStrip_GetSaved()
AutoStrip_Trace("SetAutoStripToggle enabled=" .. tostring(enabled and true or false)
.. " silent=" .. tostring(silent and true or false)
.. " savedBefore=" .. tostring(saved["autostrip"] and 1 or 0)
.. " runtimeBefore=" .. tostring(AutoStrip_On and 1 or 0)
.. " castShownBefore=" .. tostring((AutoStripDisplayAutoCast and AutoStripDisplayAutoCast:IsVisible()) and 1 or 0))
if enabled then
saved["autostrip"] = 1
AutoStrip_On = 1
@@ -54,10 +166,17 @@ function AutoStrip_SetAutoStripToggle(enabled, silent)
AutoStrip_Print("Auto-Strip disabled.")
end
end
AutoStrip_Trace("SetAutoStripToggle savedAfter=" .. tostring(saved["autostrip"] and 1 or 0)
.. " runtimeAfter=" .. tostring(AutoStrip_On and 1 or 0)
.. " castShownAfter=" .. tostring((AutoStripDisplayAutoCast and AutoStripDisplayAutoCast:IsVisible()) and 1 or 0))
end
function AutoStrip_SetDisplayToggle(enabled, silent)
local saved = AutoStrip_GetSaved()
AutoStrip_Trace("SetDisplayToggle enabled=" .. tostring(enabled and true or false)
.. " silent=" .. tostring(silent and true or false)
.. " savedDisplayBefore=" .. tostring(saved["display"] and 1 or 0)
.. " frameShownBefore=" .. tostring((AutoStripDisplay and AutoStripDisplay:IsVisible()) and 1 or 0))
if enabled then
saved["display"] = 1
if AutoStripDisplay then
@@ -79,9 +198,15 @@ function AutoStrip_SetDisplayToggle(enabled, silent)
AutoStrip_Print("AutoStrip button is now hidden.")
end
end
AutoStrip_Trace("SetDisplayToggle savedDisplayAfter=" .. tostring(saved["display"] and 1 or 0)
.. " frameShownAfter=" .. tostring((AutoStripDisplay and AutoStripDisplay:IsVisible()) and 1 or 0)
.. " castShownAfter=" .. tostring((AutoStripDisplayAutoCast and AutoStripDisplayAutoCast:IsVisible()) and 1 or 0))
end
function AutoStrip_UnequipAll(weaponsOnly)
AutoStrip_Trace("UnequipAll called weaponsOnly=" .. tostring(weaponsOnly and 1 or 0)
.. " runtimeBefore=" .. tostring(AutoStrip_On and 1 or 0)
.. " wasInCombat=" .. tostring(AutoStrip_WasInCombat and 1 or 0))
AutoStrip_On = nil
if AutoStripDisplayAutoCast then
AutoStripDisplayAutoCast:Hide()
@@ -102,6 +227,7 @@ function AutoStrip_UnequipAll(weaponsOnly)
if not hasEmptySlot then
AutoStrip_Print("You need at least one empty bag slot to auto-strip.")
AutoStrip_Trace("UnequipAll aborted no-empty-slot")
return
end
@@ -121,19 +247,36 @@ function AutoStrip_UnequipAll(weaponsOnly)
end
end
end
AutoStrip_Trace("UnequipAll completed runtimeAfter=" .. tostring(AutoStrip_On and 1 or 0)
.. " castShownAfter=" .. tostring((AutoStripDisplayAutoCast and AutoStripDisplayAutoCast:IsVisible()) and 1 or 0))
end
local function AutoStrip_OnEvent()
AutoStrip_Trace("OnEvent evt=" .. tostring(event or "")
.. " runtime=" .. tostring(AutoStrip_On and 1 or 0)
.. " wasInCombat=" .. tostring(AutoStrip_WasInCombat and 1 or 0)
.. " playerInCombat=" .. tostring((type(UnitAffectingCombat) == "function" and UnitAffectingCombat("player")) and 1 or 0))
if event == "VARIABLES_LOADED" then
local saved = AutoStrip_GetSaved()
AutoStrip_Trace("VARIABLES_LOADED saved.autostrip=" .. tostring(saved["autostrip"] and 1 or 0)
.. " saved.display=" .. tostring(saved["display"] and 1 or 0))
AutoStrip_WasInCombat = UnitAffectingCombat("player") and 1 or nil
AutoStrip_RestoreDisplayPosition("VARIABLES_LOADED")
AutoStrip_SetDisplayToggle(saved["display"] and true or false, 1)
AutoStrip_SetAutoStripToggle(saved["autostrip"] and true or false, 1)
AutoStrip_QueueDeferredRestore("VARIABLES_LOADED")
return
end
if event == "PLAYER_ENTERING_WORLD" then
AutoStrip_WasInCombat = UnitAffectingCombat("player") and 1 or nil
AutoStrip_RestoreDisplayPosition("PLAYER_ENTERING_WORLD")
AutoStrip_QueueDeferredRestore("PLAYER_ENTERING_WORLD")
return
end
if event == "PLAYER_LOGOUT" then
AutoStrip_SaveDisplayPosition("PLAYER_LOGOUT")
return
end
@@ -144,6 +287,7 @@ local function AutoStrip_OnEvent()
if event == "PLAYER_REGEN_ENABLED" then
if AutoStrip_On and AutoStrip_WasInCombat then
AutoStrip_Trace("PLAYER_REGEN_ENABLED triggering auto strip")
AutoStrip_UnequipAll()
end
AutoStrip_WasInCombat = nil
@@ -152,6 +296,8 @@ end
local function AutoStrip_HandleSlash(msg)
local saved = AutoStrip_GetSaved()
AutoStrip_Trace("Slash msg='" .. tostring(msg or "") .. "' saved.autostrip=" .. tostring(saved["autostrip"] and 1 or 0)
.. " runtime=" .. tostring(AutoStrip_On and 1 or 0))
if msg == "display" then
AutoStrip_SetDisplayToggle(not (saved["display"] and true or false))
elseif msg == "toggle" then
@@ -170,12 +316,13 @@ local function AutoStrip_HandleSlash(msg)
end
end
AutoStrip_Frame = CreateFrame("Frame", "AutoStripFrame")
AutoStrip_Frame = CreateFrame("Frame", "MTH_AutoStripEvent")
if AutoStrip_Frame then
AutoStrip_Frame:RegisterEvent("VARIABLES_LOADED")
AutoStrip_Frame:RegisterEvent("PLAYER_REGEN_DISABLED")
AutoStrip_Frame:RegisterEvent("PLAYER_REGEN_ENABLED")
AutoStrip_Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
AutoStrip_Frame:RegisterEvent("PLAYER_LOGOUT")
AutoStrip_Frame:SetScript("OnEvent", AutoStrip_OnEvent)
end
@@ -187,3 +334,8 @@ SLASH_AUTOSTRIP1 = "/autostrip"
SlashCmdList["AUTOSTRIP"] = AutoStrip_HandleSlash
SLASH_ZSTRIP1 = "/zstrip"
SlashCmdList["ZSTRIP"] = AutoStrip_HandleSlash
SLASH_AUTOSTRIPTRACE1 = "/autostriptrace"
SLASH_AUTOSTRIPTRACE2 = "/astrace"
SlashCmdList["AUTOSTRIPTRACE"] = function(msg)
AutoStrip_CommandTrace(msg)
end
+6
View File
@@ -68,6 +68,9 @@
if ( this.isMoving ) then
this:StopMovingOrSizing()
this.isMoving = false
if AutoStrip_SaveDisplayPosition then
AutoStrip_SaveDisplayPosition("mouse-up-stop")
end
end
</OnMouseUp>
<OnDragStart>
@@ -79,6 +82,9 @@
<OnDragStop>
this:StopMovingOrSizing()
this.isMoving = false
if AutoStrip_SaveDisplayPosition then
AutoStrip_SaveDisplayPosition("drag-stop")
end
</OnDragStop>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
+6 -2
View File
@@ -1,5 +1,5 @@
MTH_CONST = MTH_CONST or {}
MTH_CONST.version = MTH_CONST.version or "1.0.3"
MTH_CONST.version = MTH_CONST.version or "1.3.0"
MTH_CONST.WEAPON_TYPES = {
BOWS = "Bows",
@@ -18,7 +18,7 @@ MTH_CONST.AMMO = {
SOLID = "Solid Shot",
CRAFTSOLID = "Crafted Solid Shot",
EXPLODING = "Exploding Shot",
MITHRILSLUG = "Hi-impact Mithril Slugs",
MITHRILSLUG = "Hi-Impact Mithril Slugs",
ACCURATE = "Accurate Slugs",
GYROSHOT = "Mithril Gyro-Shot",
ICETHREADED = "Ice Threaded Bullet",
@@ -86,6 +86,8 @@ JUNKSHOT_VIPER = MTH_CONST.AMMO.JUNKSHOTS.VIPER
JUNKSHOT_ARCANE = MTH_CONST.AMMO.JUNKSHOTS.ARCANE
JUNKSHOT_CONCUSSIVE = MTH_CONST.AMMO.JUNKSHOTS.CONCUSSIVE
JUNKSHOT_DISTRACTING = MTH_CONST.AMMO.JUNKSHOTS.DISTRACTING
JUNKSHOT_BAITED = MTH_CONST.AMMO.JUNKSHOTS.BAITED
JUNKSHOT_TRANQ = MTH_CONST.AMMO.JUNKSHOTS.TRANQ
MTH_AMMO_BULLETS = {
BULLETS_LIGHT,
@@ -125,6 +127,8 @@ MTH_AMMO_JUNKSHOTS = {
JUNKSHOT_ARCANE,
JUNKSHOT_CONCUSSIVE,
JUNKSHOT_DISTRACTING,
JUNKSHOT_BAITED,
JUNKSHOT_TRANQ,
}
MTH_AMMO_BULLET_RANK = {}
+174 -14
View File
@@ -15,6 +15,7 @@ local MTH_FEED_TrackerFrame = nil
local MTH_FEED_ActiveCoreAttemptId = nil
local MTH_FEED_BootstrapFrame = nil
local MTH_FEED_NameToItemCache = {}
local MTH_FEED_InvalidateDietMapCache
local MTH_FEED_HARDCODED_LEVEL_RULES = {
{ minPetLevel = 1, minFoodLevel = 1 },
@@ -28,7 +29,10 @@ local MTH_FEED_HARDCODED_LEVEL_RULES = {
MTH_FEED_TRACE = false
local function MTH_FEED_Trace(message)
return
if not MTH_FEED_TRACE then return end
if type(DEFAULT_CHAT_FRAME) == "table" and DEFAULT_CHAT_FRAME.AddMessage then
DEFAULT_CHAT_FRAME:AddMessage("|cff88aaff[MTH-FeedTrack]|r " .. tostring(message))
end
end
local function MTH_FEED_Now()
@@ -460,6 +464,7 @@ local function MTH_FEED_CoreTrackerOnEvent()
end
elseif evt == "BAG_UPDATE" then
MTH_FEED_IndexBagFoods()
MTH_FEED_InvalidateDietMapCache()
elseif evt == "CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS" then
if MTH_FEED_ActiveCoreAttemptId and MTH_FEED_HasPetFeedBuff() then
MTH_FEED_Trace("Core tracker buff event confirms acceptance")
@@ -468,7 +473,32 @@ local function MTH_FEED_CoreTrackerOnEvent()
end
end
local MTH_FEED_CoreTrackerUpdateElapsed = 0
local MTH_FEED_LastStaleCleanupAt = 0
local function MTH_FEED_CoreTrackerOnUpdate()
MTH_FEED_CoreTrackerUpdateElapsed = MTH_FEED_CoreTrackerUpdateElapsed + (arg1 or 0)
if MTH_FEED_CoreTrackerUpdateElapsed < 0.10 then
return
end
MTH_FEED_CoreTrackerUpdateElapsed = 0
-- Periodic stale attempt cleanup (every ~30 seconds)
local now = GetTime() or 0
if (now - MTH_FEED_LastStaleCleanupAt) >= 30 then
MTH_FEED_LastStaleCleanupAt = now
if MTH_FEED_Runtime and type(MTH_FEED_Runtime.attempts) == "table" then
for id, row in pairs(MTH_FEED_Runtime.attempts) do
if type(row) == "table" then
local age = now - (tonumber(row.startedAt) or now)
if age > 10 then
MTH_FEED_Runtime.attempts[id] = nil
end
end
end
end
end
local attemptId = MTH_FEED_ActiveCoreAttemptId
if attemptId == nil then
return
@@ -499,7 +529,7 @@ local function MTH_FEED_EnsureTrackerFrame()
if MTH_FEED_TrackerFrame then
return MTH_FEED_TrackerFrame
end
local frame = CreateFrame("Frame", "MTH_FeedTrackingFrame")
local frame = CreateFrame("Frame", "MTH_FeedTracking")
if not frame then
return nil
end
@@ -526,6 +556,7 @@ local function MTH_FEED_CoreDropItemOnUnitHook(unit)
end
if target == "pet" and CursorHasItem and CursorHasItem() then
MTH_FEED_EnsureTrackerFrame()
local itemId, itemName, itemLink, itemIcon = MTH_FEED_GetCursorItemSnapshot()
local pet = MTH_FEED_GetCurrentPetContext()
if not itemId then
@@ -608,8 +639,8 @@ function MTH_FEED_DebugStatus()
end
function MTH_FEED_ReinstallCoreTracking()
MTH_FEED_EnsureTrackerFrame()
local ok = MTH_FEED_InstallCoreHooks()
MTH_FEED_EnsureTrackerFrame()
return ok and true or false
end
@@ -617,7 +648,7 @@ local function MTH_FEED_EnsureBootstrapFrame()
if MTH_FEED_BootstrapFrame ~= nil then
return MTH_FEED_BootstrapFrame
end
local frame = CreateFrame("Frame", "MTH_FeedTrackingBootstrapFrame")
local frame = CreateFrame("Frame", "MTH_FeedTrackingBoot")
if not frame then
return nil
end
@@ -626,6 +657,8 @@ local function MTH_FEED_EnsureBootstrapFrame()
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function()
MTH_FEED_ReinstallCoreTracking()
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
end)
MTH_FEED_BootstrapFrame = frame
return frame
@@ -822,7 +855,16 @@ local function MTH_FEED_NormalizeReason(reason, rawMessage)
return "unknown"
end
local MTH_FEED_DietMapCache = nil
MTH_FEED_InvalidateDietMapCache = function()
MTH_FEED_DietMapCache = nil
end
local function MTH_FEED_GetDietByItemIdMap()
if MTH_FEED_DietMapCache then
return MTH_FEED_DietMapCache
end
local map = {}
if type(FOM_Foods) ~= "table" then
return map
@@ -837,6 +879,7 @@ local function MTH_FEED_GetDietByItemIdMap()
end
end
end
MTH_FEED_DietMapCache = map
return map
end
@@ -940,9 +983,6 @@ function MTH_FEED_BeginAttempt(payload)
itemIcon = infoTexture
end
end
if (not itemIcon or itemIcon == "") then
itemIcon = MTH_FEED_FindItemIconInBags(itemId, payload and payload.itemName)
end
MTH_FEED_Runtime.attempts[attemptId] = {
id = attemptId,
@@ -1113,7 +1153,7 @@ function MTH_FEED_IsFoodCompatible(petLevel, foodLevel)
return true
end
function MTH_FEED_IsExceptionReject(itemId)
function MTH_FEED_IsExceptionReject(itemId, petLevel)
local key = tonumber(itemId)
if not key then
return false
@@ -1123,6 +1163,11 @@ function MTH_FEED_IsExceptionReject(itemId)
if type(row) ~= "table" then
return false
end
local numericPet = tonumber(petLevel)
local blockedAtOrAbove = tonumber(row.blockAtOrAbovePetLevel)
if blockedAtOrAbove and numericPet and numericPet >= blockedAtOrAbove then
return true
end
if row.anomalyReject ~= true then
return false
end
@@ -1137,6 +1182,17 @@ function MTH_FEED_IsExceptionReject(itemId)
if not reasons then
return false
end
local lowLevelCount = tonumber(reasons.lowLevel) or 0
if lowLevelCount >= 1 then
local maxPetLevel = tonumber(row.maxPetLevel)
if numericPet and maxPetLevel then
if numericPet > maxPetLevel then
return true
end
else
return true
end
end
local wrongFoodCount = tonumber(reasons.wrongFood) or 0
if wrongFoodCount < 2 then
return false
@@ -1144,6 +1200,49 @@ function MTH_FEED_IsExceptionReject(itemId)
return true
end
function MTH_FEED_BlockItemForPetLevel(itemId, petLevel, reason)
local key = tonumber(itemId)
local numericPet = tonumber(petLevel)
if not key or not numericPet then
return false
end
if numericPet < 1 then
numericPet = 1
end
local store = MTH_FEED_EnsureStore()
if type(store.exceptions.byItemId[key]) ~= "table" then
store.exceptions.byItemId[key] = {
anomalyReject = true,
reasons = { noBuff = 0, wrongFood = 0, lowLevel = 0, unknown = 0 },
lastObservedAt = 0,
}
end
local row = store.exceptions.byItemId[key]
if type(row.reasons) ~= "table" then
row.reasons = { noBuff = 0, wrongFood = 0, lowLevel = 0, unknown = 0 }
end
row.anomalyReject = true
row.lastObservedAt = MTH_FEED_Now()
if tonumber(row.blockAtOrAbovePetLevel) == nil or numericPet < tonumber(row.blockAtOrAbovePetLevel) then
row.blockAtOrAbovePetLevel = numericPet
end
local normalizedReason = MTH_FEED_NormalizeReason(reason, nil)
if normalizedReason == "no-buff" then
row.reasons.noBuff = (tonumber(row.reasons.noBuff) or 0) + 1
elseif normalizedReason == "low-level" then
row.reasons.lowLevel = (tonumber(row.reasons.lowLevel) or 0) + 1
elseif normalizedReason == "wrong-food" then
row.reasons.wrongFood = (tonumber(row.reasons.wrongFood) or 0) + 1
else
row.reasons.unknown = (tonumber(row.reasons.unknown) or 0) + 1
end
MTH_FEED_TouchStore(store)
MTH_FEED_Trace("BlockItemForPetLevel itemId=" .. tostring(key)
.. " blockAtOrAbove=" .. tostring(row.blockAtOrAbovePetLevel)
.. " reason=" .. tostring(normalizedReason))
return true
end
function MTH_FEED_GetPetFeedStats(petId)
local key = tostring(petId or "")
if key == "" then
@@ -1153,7 +1252,7 @@ function MTH_FEED_GetPetFeedStats(petId)
return store.byPetId[key]
end
local function MTH_FEED_UpsertException(store, itemId, reason)
local function MTH_FEED_UpsertException(store, itemId, reason, petLevel)
if not itemId then
return
end
@@ -1175,6 +1274,16 @@ local function MTH_FEED_UpsertException(store, itemId, reason)
row.reasons.wrongFood = (tonumber(row.reasons.wrongFood) or 0) + 1
elseif reason == "low-level" then
row.reasons.lowLevel = (tonumber(row.reasons.lowLevel) or 0) + 1
local numericPetLevel = tonumber(petLevel)
if numericPetLevel and numericPetLevel > 1 then
local derivedMaxPetLevel = numericPetLevel - 1
if derivedMaxPetLevel < 1 then
derivedMaxPetLevel = 1
end
if tonumber(row.maxPetLevel) == nil or derivedMaxPetLevel < tonumber(row.maxPetLevel) then
row.maxPetLevel = derivedMaxPetLevel
end
end
else
row.reasons.unknown = (tonumber(row.reasons.unknown) or 0) + 1
end
@@ -1182,6 +1291,36 @@ local function MTH_FEED_UpsertException(store, itemId, reason)
row.lastObservedAt = MTH_FEED_Now()
end
local function MTH_FEED_ClearStaleExceptionOnAccept(store, itemId)
if not itemId or type(store) ~= "table" or type(store.exceptions) ~= "table" or type(store.exceptions.byItemId) ~= "table" then
return
end
local key = tonumber(itemId) or itemId
local row = store.exceptions.byItemId[key]
if type(row) ~= "table" then
return
end
if type(row.reasons) ~= "table" then
store.exceptions.byItemId[key] = nil
return
end
row.reasons.noBuff = 0
row.lastObservedAt = MTH_FEED_Now()
local noBuff = tonumber(row.reasons.noBuff) or 0
local lowLevel = tonumber(row.reasons.lowLevel) or 0
local wrongFood = tonumber(row.reasons.wrongFood) or 0
local unknown = tonumber(row.reasons.unknown) or 0
if noBuff <= 0
and lowLevel <= 0
and wrongFood <= 0
and unknown <= 0
and tonumber(row.blockAtOrAbovePetLevel) == nil
and tonumber(row.maxPetLevel) == nil then
store.exceptions.byItemId[key] = nil
end
end
function MTH_FEED_FinalizeAttempt(attemptId, payload)
local row = MTH_FEED_Runtime.attempts[attemptId]
if type(row) ~= "table" then
@@ -1241,6 +1380,7 @@ function MTH_FEED_FinalizeAttempt(attemptId, payload)
if itemRow then
itemRow.accepted = itemRow.accepted + 1
end
MTH_FEED_ClearStaleExceptionOnAccept(store, row.itemId)
local petKey = tostring((petRow and petRow.petId) or row.petId or "")
if petKey ~= "" then
MTH_FEED_Runtime.sessionFeedsByPetId[petKey] = (tonumber(MTH_FEED_Runtime.sessionFeedsByPetId[petKey]) or 0) + 1
@@ -1257,7 +1397,7 @@ function MTH_FEED_FinalizeAttempt(attemptId, payload)
if itemRow then
itemRow.rejected = itemRow.rejected + 1
end
MTH_FEED_UpsertException(store, row.itemId, reason)
MTH_FEED_UpsertException(store, row.itemId, reason, row.petLevel)
end
if itemRow then
@@ -1280,9 +1420,6 @@ function MTH_FEED_FinalizeAttempt(attemptId, payload)
persistedIcon = directTexture
end
end
if (not persistedIcon or persistedIcon == "") then
persistedIcon = MTH_FEED_FindItemIconInBags(row.itemId, row.itemName)
end
if persistedIcon and persistedIcon ~= "" then
itemRow.itemIcon = persistedIcon
end
@@ -1325,6 +1462,30 @@ function MTH_FEED_GetSessionFeedCount(petId)
return tonumber(MTH_FEED_Runtime.sessionFeedsByPetId[petKey]) or 0
end
function MTH_FEED_DebugSessionFeeds()
local pet = MTH_FEED_GetCurrentPetContext()
local petId = pet and pet.petId or "(none)"
local count = MTH_FEED_GetSessionFeedCount(petId)
local hookOk = MTH_FEED_IsCoreHookInstalled()
local frameOk = MTH_FEED_TrackerFrame ~= nil
local activeId = tostring(MTH_FEED_ActiveCoreAttemptId or "nil")
if type(DEFAULT_CHAT_FRAME) == "table" and DEFAULT_CHAT_FRAME.AddMessage then
DEFAULT_CHAT_FRAME:AddMessage("|cff88aaff[MTH-FeedTrack]|r petId=" .. tostring(petId)
.. " feeds=" .. tostring(count)
.. " hookOk=" .. tostring(hookOk)
.. " frameOk=" .. tostring(frameOk)
.. " activeAttempt=" .. activeId)
local anyFeeds = false
for k, v in pairs(MTH_FEED_Runtime.sessionFeedsByPetId) do
anyFeeds = true
DEFAULT_CHAT_FRAME:AddMessage("|cff88aaff[MTH-FeedTrack]|r session petId='" .. tostring(k) .. "' count=" .. tostring(v))
end
if not anyFeeds then
DEFAULT_CHAT_FRAME:AddMessage("|cff88aaff[MTH-FeedTrack]|r (no session feeds recorded)")
end
end
end
function MTH_FEED_RecordUnknownFoodCandidate(payload)
local store = MTH_FEED_EnsureStore()
local itemId = payload and tonumber(payload.itemId) or nil
@@ -1542,6 +1703,5 @@ function MTH_FEED_DebugDumpCurrentPet(limit)
return true
end
MTH_FEED_EnsureTrackerFrame()
MTH_FEED_InstallCoreHooks()
MTH_FEED_EnsureBootstrapFrame()
+230 -85
View File
@@ -1,5 +1,5 @@
MTH = MTH or {
version = "1.0.3",
version = "1.3.0",
name = "MetaHunt",
modules = {},
config = {},
@@ -8,6 +8,23 @@ MTH = MTH or {
local MTH_CHAT_PREFIX = "|cFFFFFFFF[|r|cFFD14A4AMeta|r|cFFABD473Hunt|r|cFFFFFFFF]|r "
local MTH_NON_HUNTER_BLOCK_MESSAGE = "You are not a hunter and you are not allowed here. Disable the add-on for this character."
local MTH_MESSAGE_DEFAULTS = {
initModulesLoaded = false,
initSarcasticWelcome = true,
petHungry = false,
beastTrainingScan = true,
spellbookScan = false,
petRanAway = true,
mapMarkers = true,
stableScan = true,
}
local MTH_MODULE_DEFAULT_STATES = {
autoquest = false,
autobuy = false,
feedomatic = false,
icu = false,
}
local function MTH_ClassGateTrace(_step, _detail)
return
@@ -27,7 +44,7 @@ local function MTH_ClassGateEnsureAnnounceFrame(self)
if not self or self._classGateAnnounceFrame then
return
end
local frame = CreateFrame("Frame", "MTH_ClassGateAnnounceFrame")
local frame = CreateFrame("Frame", "MTH_ClassGateAnnounce")
if not frame then
return
end
@@ -38,12 +55,12 @@ local function MTH_ClassGateEnsureAnnounceFrame(self)
end
end)
frame._mthElapsed = 0
frame:SetScript("OnUpdate", function(self, elapsed)
self._mthElapsed = (self._mthElapsed or 0) + (elapsed or arg1 or 0)
if self._mthElapsed < 0.5 then
frame:SetScript("OnUpdate", function()
this._mthElapsed = (this._mthElapsed or 0) + (arg1 or 0)
if this._mthElapsed < 0.5 then
return
end
self._mthElapsed = 0
this._mthElapsed = 0
if MTH and MTH._classGateAnnouncedChat then
MTH_ClassGateClearAnnounceFrame(MTH)
return
@@ -175,21 +192,19 @@ end
MTH:ApplyClassGate("startup")
if not MTH._classGateLifecycleFrame then
local classGateFrame = CreateFrame("Frame", "MTH_ClassGateLifecycleFrame")
local classGateFrame = CreateFrame("Frame", "MTH_ClassGateLifecycle")
if classGateFrame then
classGateFrame:RegisterEvent("PLAYER_LOGIN")
classGateFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
classGateFrame:SetScript("OnEvent", function(self, eventName)
self = self or this
eventName = eventName or event
if MTH and eventName == "PLAYER_LOGIN" then
classGateFrame:SetScript("OnEvent", function()
if MTH and event == "PLAYER_LOGIN" then
MTH._classGateAnnouncedChat = nil
MTH._classGateAnnounced = nil
MTH._classGateAnnouncePending = nil
end
if MTH and MTH.ApplyClassGate and MTH:ApplyClassGate(eventName) and MTH._classGateAnnouncedChat then
self:UnregisterAllEvents()
self:SetScript("OnEvent", nil)
if MTH and MTH.ApplyClassGate and MTH:ApplyClassGate(event) and MTH._classGateAnnouncedChat then
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
end
end)
MTH._classGateLifecycleFrame = classGateFrame
@@ -415,9 +430,53 @@ local function MTH_GetPersistedModuleEnabled(name, defaultEnabled)
local resolvedName = MTH_NormalizeModuleName(name)
local candidates = MTH_ModuleNameCandidates(name)
if type(MTH_CharSavedVariables) ~= "table" then
MTH_CharSavedVariables = {}
end
if type(MTH_CharSavedVariables.moduleStates) ~= "table" then
MTH_CharSavedVariables.moduleStates = {}
end
if type(MTH_CharSavedVariables.modules) ~= "table" then
MTH_CharSavedVariables.modules = {}
end
if type(MTH_CharSavedVariables.modules[resolvedName]) ~= "table" then
MTH_CharSavedVariables.modules[resolvedName] = {}
end
if type(MTH_SavedVariables) ~= "table" then
MTH_ModuleStateDebug("read " .. tostring(name) .. " no-savedvars fallback-default=" .. tostring(defaultEnabled and true or false))
return defaultEnabled and true or false
MTH_SavedVariables = {}
end
if type(MTH_SavedVariables.moduleStates) ~= "table" then
MTH_SavedVariables.moduleStates = {}
end
if type(MTH_SavedVariables.modules) ~= "table" then
MTH_SavedVariables.modules = {}
end
local hardDefault = MTH_MODULE_DEFAULT_STATES[resolvedName]
if hardDefault ~= nil then
local hasCharState = MTH_CharSavedVariables.moduleStates[resolvedName] ~= nil
or MTH_CharSavedVariables.modules[resolvedName].enabled ~= nil
if not hasCharState then
local resolved = hardDefault and true or false
MTH_CharSavedVariables.moduleStates[resolvedName] = resolved
MTH_CharSavedVariables.modules[resolvedName].enabled = resolved
MTH_ModuleStateDebug("read " .. tostring(name) .. " seeded char default=" .. tostring(resolved))
return resolved
end
end
if type(MTH_CharSavedVariables.moduleStates) == "table"
then
for i = 1, table.getn(candidates) do
local key = candidates[i]
if MTH_CharSavedVariables.moduleStates[key] ~= nil then
local resolved = MTH_CharSavedVariables.moduleStates[key] and true or false
MTH_ModuleStateDebug("read " .. tostring(name) .. " from char.moduleStates." .. tostring(key) .. "=" .. tostring(resolved))
MTH_CharSavedVariables.moduleStates[resolvedName] = resolved
return resolved
end
end
end
if type(MTH_SavedVariables.moduleStates) == "table" then
@@ -426,25 +485,11 @@ local function MTH_GetPersistedModuleEnabled(name, defaultEnabled)
if MTH_SavedVariables.moduleStates[key] ~= nil then
local resolved = MTH_SavedVariables.moduleStates[key] and true or false
MTH_ModuleStateDebug("read " .. tostring(name) .. " from moduleStates." .. tostring(key) .. "=" .. tostring(resolved))
MTH_SavedVariables.moduleStates[resolvedName] = resolved
return resolved
end
end
end
if type(MTH_CharSavedVariables) == "table"
and type(MTH_CharSavedVariables.moduleStates) == "table"
then
for i = 1, table.getn(candidates) do
local key = candidates[i]
if MTH_CharSavedVariables.moduleStates[key] ~= nil then
local resolved = MTH_CharSavedVariables.moduleStates[key] and true or false
MTH_ModuleStateDebug("read " .. tostring(name) .. " from char.moduleStates." .. tostring(key) .. "=" .. tostring(resolved))
if type(MTH_SavedVariables.moduleStates) ~= "table" then
MTH_SavedVariables.moduleStates = {}
end
MTH_SavedVariables.moduleStates[resolvedName] = resolved
MTH_CharSavedVariables.moduleStates[resolvedName] = resolved
if type(MTH_CharSavedVariables.modules[resolvedName]) ~= "table" then
MTH_CharSavedVariables.modules[resolvedName] = {}
end
MTH_CharSavedVariables.modules[resolvedName].enabled = resolved
return resolved
end
end
@@ -456,9 +501,11 @@ local function MTH_GetPersistedModuleEnabled(name, defaultEnabled)
if type(MTH_SavedVariables.modules[key]) == "table" and MTH_SavedVariables.modules[key].enabled ~= nil then
local resolved = MTH_SavedVariables.modules[key].enabled and true or false
MTH_ModuleStateDebug("read " .. tostring(name) .. " from modules." .. tostring(key) .. ".enabled=" .. tostring(resolved))
if type(MTH_SavedVariables.modules[resolvedName]) ~= "table" then
MTH_SavedVariables.modules[resolvedName] = MTH_SavedVariables.modules[key]
MTH_CharSavedVariables.moduleStates[resolvedName] = resolved
if type(MTH_CharSavedVariables.modules[resolvedName]) ~= "table" then
MTH_CharSavedVariables.modules[resolvedName] = {}
end
MTH_CharSavedVariables.modules[resolvedName].enabled = resolved
return resolved
end
end
@@ -469,16 +516,11 @@ local function MTH_GetPersistedModuleEnabled(name, defaultEnabled)
if type(MTH_SavedVariables[key]) == "table" and MTH_SavedVariables[key].enabled ~= nil then
local resolved = MTH_SavedVariables[key].enabled and true or false
MTH_ModuleStateDebug("read " .. tostring(name) .. " from legacy-top-level." .. tostring(key) .. ".enabled=" .. tostring(resolved))
if type(MTH_SavedVariables.modules) ~= "table" then
MTH_SavedVariables.modules = {}
MTH_CharSavedVariables.moduleStates[resolvedName] = resolved
if type(MTH_CharSavedVariables.modules[resolvedName]) ~= "table" then
MTH_CharSavedVariables.modules[resolvedName] = {}
end
if type(MTH_SavedVariables.modules[resolvedName]) ~= "table" then
MTH_SavedVariables.modules[resolvedName] = MTH_SavedVariables[key]
end
if type(MTH_SavedVariables.moduleStates) ~= "table" then
MTH_SavedVariables.moduleStates = {}
end
MTH_SavedVariables.moduleStates[resolvedName] = resolved
MTH_CharSavedVariables.modules[resolvedName].enabled = resolved
return resolved
end
end
@@ -497,27 +539,22 @@ local function MTH_SetPersistedModuleEnabled(name, enabled)
if type(MTH_SavedVariables) ~= "table" then
MTH_SavedVariables = {}
end
if type(MTH_SavedVariables.moduleStates) ~= "table" then
MTH_SavedVariables.moduleStates = {}
end
if type(MTH_SavedVariables.modules) ~= "table" then
MTH_SavedVariables.modules = {}
end
if type(MTH_SavedVariables.modules[name]) ~= "table" then
MTH_SavedVariables.modules[name] = {}
end
if type(MTH_CharSavedVariables) ~= "table" then
MTH_CharSavedVariables = {}
end
if type(MTH_CharSavedVariables.moduleStates) ~= "table" then
MTH_CharSavedVariables.moduleStates = {}
end
if type(MTH_CharSavedVariables.modules) ~= "table" then
MTH_CharSavedVariables.modules = {}
end
if type(MTH_CharSavedVariables.modules[name]) ~= "table" then
MTH_CharSavedVariables.modules[name] = {}
end
enabled = enabled and true or false
MTH_SavedVariables.moduleStates[name] = enabled
MTH_SavedVariables.modules[name].enabled = enabled
MTH_SavedVariables[name] = MTH_SavedVariables.modules[name]
MTH_CharSavedVariables.moduleStates[name] = enabled
MTH_CharSavedVariables.modules[name].enabled = enabled
MTH_ModuleStateDebug("write " .. tostring(name) .. " enabled=" .. tostring(enabled))
end
@@ -526,10 +563,10 @@ function MTH:InitEventRouter()
return self._eventRouter.frame
end
local frame = CreateFrame("Frame", "MTH_EventRouterFrame")
frame:SetScript("OnEvent", function(self, evt, a1, a2, a3, a4, a5, a6, a7, a8, a9)
local frame = CreateFrame("Frame", "MTH_EventRouter")
frame:SetScript("OnEvent", function()
if MTH and MTH.DispatchEvent then
MTH:DispatchEvent(evt, a1, a2, a3, a4, a5, a6, a7, a8, a9)
MTH:DispatchEvent(event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
end
end)
@@ -589,7 +626,7 @@ function MTH:_SetModuleEventSubscriptions(name, enabled)
end
end
function MTH:DispatchEvent(evt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
function MTH:DispatchEvent(evt, ea1, ea2, ea3, ea4, ea5, ea6, ea7, ea8, ea9)
for name, module in pairs(self.modules) do
if module.enabled and module.onEvent then
local allow = true
@@ -598,11 +635,10 @@ function MTH:DispatchEvent(evt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8,
end
if allow then
local ok, err = pcall(function()
module:onEvent(evt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
module:onEvent(evt, ea1, ea2, ea3, ea4, ea5, ea6, ea7, ea8, ea9)
end)
if not ok then
self:Print("Module '" .. name .. "' event error on '" .. tostring(evt) .. "': " .. tostring(err))
MTH:Print("[MTH] Module event error (" .. name .. ", " .. tostring(evt) .. "): " .. tostring(err), "error")
MTH:Print("Module '" .. name .. "' event error on '" .. tostring(evt) .. "': " .. tostring(err), "error")
end
end
end
@@ -1003,6 +1039,50 @@ function MTH:Print(msg, severity)
return self:Log(msg, severity)
end
function MTH:GetMessageSettings()
if not MTH_SavedVariables then
self:InitSavedVariables()
end
if type(MTH_SavedVariables.messages) ~= "table" then
MTH_SavedVariables.messages = {}
end
local settings = MTH_SavedVariables.messages
for key, defaultValue in pairs(MTH_MESSAGE_DEFAULTS) do
if settings[key] == nil then
settings[key] = defaultValue and true or false
else
settings[key] = settings[key] and true or false
end
end
return settings
end
function MTH:IsMessageEnabled(key, defaultEnabled)
local settings = self:GetMessageSettings()
local value = settings and settings[key]
if value == nil then
if defaultEnabled ~= nil then
value = defaultEnabled and true or false
else
value = true
end
settings[key] = value
end
return value and true or false
end
function MTH:SetMessageEnabled(key, enabled)
if type(key) ~= "string" or key == "" then
return false
end
local settings = self:GetMessageSettings()
if not settings then
return false
end
settings[key] = enabled and true or false
return true
end
function MTH:DebugPrint(msg)
if self.debug then
self:Print("[DEBUG] " .. tostring(msg), "debug")
@@ -1080,6 +1160,16 @@ function MTH:InitSavedVariables()
if not MTH_SavedVariables.modules.zhunter then
MTH_SavedVariables.modules.zhunter = MTH_SavedVariables.zhunter or {}
end
if type(MTH_SavedVariables.messages) ~= "table" then
MTH_SavedVariables.messages = {}
end
for key, defaultValue in pairs(MTH_MESSAGE_DEFAULTS) do
if MTH_SavedVariables.messages[key] == nil then
MTH_SavedVariables.messages[key] = defaultValue and true or false
else
MTH_SavedVariables.messages[key] = MTH_SavedVariables.messages[key] and true or false
end
end
MTH_SavedVariables.feedomatic = MTH_SavedVariables.modules.feedomatic
MTH_SavedVariables.zhunter = MTH_SavedVariables.modules.zhunter
@@ -1202,24 +1292,22 @@ function MTH:EnsureModuleStateBootstrap()
return self._moduleStateBootstrapFrame
end
local frame = CreateFrame("Frame", "MTH_ModuleStateBootstrapFrame")
local frame = CreateFrame("Frame", "MTH_ModuleBootstrap")
if not frame then
return nil
end
frame:RegisterEvent("VARIABLES_LOADED")
frame:SetScript("OnEvent", function(self, eventName)
self = self or this
eventName = eventName or event
if eventName ~= "VARIABLES_LOADED" then
frame:SetScript("OnEvent", function()
if event ~= "VARIABLES_LOADED" then
return
end
if MTH and MTH.ApplyPersistedModuleStates then
MTH:ApplyPersistedModuleStates("VARIABLES_LOADED")
end
if not self then return end
self:UnregisterAllEvents()
self:SetScript("OnEvent", nil)
if not this then return end
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
end)
self._moduleStateBootstrapFrame = frame
@@ -1249,7 +1337,9 @@ function MTH:AnnounceLoadComplete()
end
self:Print("Check ignition: OK! Version " .. tostring(self.version or "unknown") .. " loaded.")
--self:Print("Modules enabled : " .. moduleList .. ".")
if self:IsMessageEnabled("initModulesLoaded", false) then
self:Print("Modules enabled : " .. moduleList .. ".")
end
local petTrainingStore = nil
if type(MTH_PETS_GetRootStore) == "function" then
@@ -1284,8 +1374,10 @@ function MTH:AnnounceLoadComplete()
end
end
if not hasCompletedPetScan then
local playerLevel = (type(UnitLevel) == "function") and (tonumber(UnitLevel("player")) or 0) or 0
if playerLevel >= 12 then
local rawPlayerLevel = (type(UnitLevel) == "function") and UnitLevel("player") or nil
local playerLevel = tonumber(rawPlayerLevel) or 0
local shouldShowBeastTrainingReminder = (playerLevel >= 12 and playerLevel <= 60)
if shouldShowBeastTrainingReminder then
self:Print("You should open your Beast Training once to save your learned pet abilities.")
self._loadCompleteAnnounced = true
return
@@ -1293,7 +1385,7 @@ function MTH:AnnounceLoadComplete()
end
local welcomeMessages = {
"You are now shipping the latest cutting edge technology.",
"You are now shipping the latest cutting-edge Nelf technology.",
"SHELLS ARE FOR PUSSIES.",
"Sometimes, you just need a little less gun.",
"Repeat 5 times : \"Un chasseur sachant chasser sans son chien\".",
@@ -1380,6 +1472,59 @@ function MTH:AnnounceLoadComplete()
"Your pet follows orders. Pathing follows dark magic.",
"Todays objective: hit crits and dodge responsibility.",
"Go forth, badboy ranger — leave footprints, not explanations.",
"MetaHunt loaded. Your plan has been forwarded to Quality Control for comedy review.",
"Systems online. Tactical brilliance still listed as a future expansion feature.",
"Hunter detected. Restraint not detected.",
"Startup complete. Your pet is the adult in this relationship.",
"All modules green. Your target selection remains performance art.",
"Welcome back. The dungeon requested a waiver after seeing your login.",
"Interface stable. Decision-making unstable. Proceed.",
"MetaHunt armed. Your confidence has entered the area without supervision.",
"Ready to hunt. Ready to kite. Not ready to explain any of it.",
"Boot successful. Friendly fire is still technically friendly.",
"Addon synced. Your threat meter just sent a stress signal.",
"Loaded cleanly. Reputation with healers currently in freefall.",
"Mission start: hit things from far away and deny everything in chat.",
"Welcome back. Your pet missed you. Just kidding, it ran away.",
"MetaHunt loaded. You're still a Huntard, but now you're an organized one.",
"Aspects, traps, tracking... Don't worry, I'll handle the hard parts.",
"Oh good, another hunter who needs an addon to remember their own spells.",
"MetaHunt ready. Feign Death is not a personality trait.",
"Loaded successfully. No, I can't fix your DPS.",
"Welcome. Your pet's loyalty is higher than your raid attendance.",
"MetaHunt online. Please don't Multishot the sheep.",
"Greetings, hunter. I see you've chosen the 'easy' class and still need help.",
"All systems go. Try not to pull the entire dungeon this time.",
"MetaHunt activated. Reminder: Melee range is not your home.",
"Welcome back. Your ammo count is almost as low as your situational awareness.",
"Loaded. I'll manage your buttons since you clearly have too many.",
"MetaHunt ready. Aspect of the Cheetah in dungeons is a choice, not a strategy.",
"Oh look, a hunter that uses addons. There might be hope for you yet.",
"Welcome. No, you cannot tame that. Or that. Stop asking.",
"MetaHunt standing by. Unlike you during your last Feign Death.",
"Initialized. Fun fact: your pet has more utility than you do.",
"All buttons configured. Now if only I could configure your aim.",
"MetaHunt loaded. Growl is off, right? ...RIGHT?",
"MetaHunt loaded. Your Freezing Trap will still break early. That's on you.",
"Welcome. Aspect of the Pack is ready. Your group is not.",
"Initializing... unlike your pet, I actually come when called.",
"MetaHunt online. Remember: Hunter loot is everything. Everything.",
"Loaded. Concussive Shot the flag carrier, not the rogue vanishing.",
"Welcome back. Eyes of the Beast is not a valid boss strategy.",
"Ready. Your Aimed Shot takes longer to cast than this addon took to load.",
"MetaHunt armed. Scatter Shot into Freezing Trap — you'll get it right someday.",
"Online. Don't worry, I track your cooldowns since you clearly don't.",
"Welcome. Wing Clip and run. It's what you do best.",
"Loaded. Distracting Shot is for the boss, not for your ego.",
"MetaHunt ready. Your quiver is full but your skill bar is empty.",
"Initialized. Serpent Sting on every target doesn't make you a DoT class.",
"Welcome, hunter. Viper Sting the healer. No, the OTHER healer.",
"Ready to hunt. Mend Pet is not optional, it's a lifestyle.",
"MetaHunt loaded. Tranquilizing Shot the enrage, not the warrior.",
"Online. Rapid Fire is a cooldown, not your approach to pulling.",
"Welcome. You have 28 arrows left. Should've checked before the raid.",
"Loaded. Bestial Wrath does not make YOU immune. Learned that yet?",
"MetaHunt standing by. Dead zone? What dead zone? Oh... that dead zone.",
}
local welcomeIndex = 1
@@ -1391,7 +1536,9 @@ function MTH:AnnounceLoadComplete()
welcomeIndex = math.random(1, welcomeCount)
end
end
self:Print(welcomeMessages[welcomeIndex])
if self:IsMessageEnabled("initSarcasticWelcome", true) then
self:Print(welcomeMessages[welcomeIndex])
end
self._loadCompleteAnnounced = true
end
@@ -1408,24 +1555,22 @@ function MTH:EnsureLoadCompleteAnnouncement()
return self._loadCompleteFrame
end
local frame = CreateFrame("Frame", "MTH_LoadCompleteAnnounceFrame")
local frame = CreateFrame("Frame", "MTH_LoadAnnounce")
if not frame then
return nil
end
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, eventName)
self = self or this
eventName = eventName or event
if eventName ~= "PLAYER_ENTERING_WORLD" then
frame:SetScript("OnEvent", function()
if event ~= "PLAYER_ENTERING_WORLD" then
return
end
if MTH and MTH.AnnounceLoadComplete then
MTH:AnnounceLoadComplete()
end
if not self then return end
self:UnregisterAllEvents()
self:SetScript("OnEvent", nil)
if not this then return end
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
end)
self._loadCompleteFrame = frame
+69 -20
View File
@@ -20,6 +20,7 @@ end
local MTH_PT_ApplyScan
local MTH_PT_AbilityHasPositiveRanks
local MTH_PT_PromoteUnrankedKnownAliases
local MTH_PT_BootstrapFrame = nil
local MTH_PT_VERBOSE_SCAN_LOGS = false
@@ -167,9 +168,14 @@ function MTH_PT_HasBeastTrainingRows()
end
local function MTH_PT_DebugLog(line)
if not MTH_PT_VERBOSE_SCAN_LOGS then return end
local text = "[TRAINSCAN] " .. tostring(line or "")
MTH:Print(text, "debug")
return
end
local function MTH_PT_IsScanMessageEnabled()
if not (MTH and MTH.IsMessageEnabled) then
return true
end
return MTH:IsMessageEnabled("beastTrainingScan", true)
end
local function MTH_PT_MakeTokenFromAbilityRank(abilityName, rankNumber)
@@ -382,10 +388,12 @@ local function MTH_PT_ProcessLearnSystemMessage(rawMessage)
label = label .. " (Rank " .. tostring(rankNumber) .. ")"
end
if MTH and MTH.Print then
if changed then
MTH:Print("Pet ability learned and recorded: " .. label .. ". It is now marked as known in MetaHunt.")
else
MTH:Print("Pet ability learned for current pet: " .. label .. ".")
if MTH:IsMessageEnabled("beastTrainingScan", true) then
if changed then
MTH:Print("Pet ability learned and recorded: " .. label .. ". It is now marked as known in MetaHunt.")
else
MTH:Print("Pet ability learned for current pet: " .. label .. ".")
end
end
end
if changed then
@@ -605,18 +613,24 @@ function MTH_PT_ApplyScan(triggerReason)
for _ in pairs(baseSet) do totalBaselines = totalBaselines + 1 end
if triggerReason == "initial" then
MTH:Print("Initial train scan complete: " .. tostring(totalBaselines) .. " baselines / " .. tostring(totalRanks) .. " ranks recorded for this character.")
if MTH_PT_IsScanMessageEnabled() then
MTH:Print("Initial train scan complete: " .. tostring(totalBaselines) .. " baselines / " .. tostring(totalRanks) .. " ranks recorded for this character.")
end
elseif added > 0 then
table.sort(addedDetails)
local detailsText = table.concat(addedDetails, ", ")
if detailsText ~= "" then
local msg = "New pet data recorded (" .. tostring(added) .. " new rank(s)): " .. detailsText .. ". Known totals for this character: " .. tostring(totalBaselines) .. " ability type(s), " .. tostring(totalRanks) .. " rank(s)."
MTH:Print(msg)
MTH:Print("INFO: " .. msg, "debug")
if MTH_PT_IsScanMessageEnabled() then
MTH:Print(msg)
MTH:Print("INFO: " .. msg, "debug")
end
else
local msg = "New pet data recorded (" .. tostring(added) .. " new rank(s)). Known totals for this character: " .. tostring(totalBaselines) .. " ability type(s), " .. tostring(totalRanks) .. " rank(s)."
MTH:Print(msg)
MTH:Print("INFO: " .. msg, "debug")
if MTH_PT_IsScanMessageEnabled() then
MTH:Print(msg)
MTH:Print("INFO: " .. msg, "debug")
end
end
end
@@ -657,7 +671,7 @@ local function MTH_PT_RunDoubleScan(triggerBase)
if MTH_PT_DebugLog then
MTH_PT_DebugLog("scan skipped: no beast-training rows, trigger=" .. tostring(triggerBase or ""))
end
if feedbackOnOpen and MTH and MTH.Print then
if feedbackOnOpen and MTH and MTH.Print and MTH_PT_IsScanMessageEnabled() then
MTH:Print("Beast Training opened, but scan did not run yet (no scannable rows detected).")
end
return false
@@ -670,7 +684,7 @@ local function MTH_PT_RunDoubleScan(triggerBase)
if MTH_PT_DebugLog then
MTH_PT_DebugLog("scan complete: trigger=" .. tostring(triggerBase or "") .. " ok=" .. tostring(ok and true or false) .. " dt=" .. tostring((t1 or 0) - (t0 or 0)) .. "s")
end
if feedbackOnOpen and MTH and MTH.Print then
if feedbackOnOpen and MTH and MTH.Print and MTH_PT_IsScanMessageEnabled() then
if ok then
local addedCount = tonumber(added) or 0
local msg = "Beast Training scan complete: " .. tostring(baselines or 0) .. " baselines / " .. tostring(ranks or 0) .. " ranks."
@@ -711,16 +725,22 @@ local function MTH_PT_OnEvent(_, evt, eventArg1)
end
if evt == "PLAYER_ENTERING_WORLD" then
local playerLevel = 0
if type(UnitLevel) == "function" then
playerLevel = tonumber(UnitLevel("player")) or 0
end
if UnitClass then
local _, classToken = UnitClass("player")
if classToken ~= "HUNTER" then return end
end
if not MTH_PT_HasAnyLearnedSpells() then
if playerLevel >= 12 and not MTH_PT_HasAnyLearnedSpells() then
local store = MTH_PT_GetStore()
local now = time()
if not store.lastPrompt or (now - store.lastPrompt) > 60 then
store.lastPrompt = now
MTH:Print("No Beast Training scan found for this character. Open Beast Training (right panel) to record pet spell ranks.")
if MTH_PT_IsScanMessageEnabled() then
MTH:Print("No Beast Training scan found for this character. Open Beast Training (right panel) to record pet spell ranks.")
end
end
end
return
@@ -782,7 +802,7 @@ function MTH_PT_InitService()
if MTH_PetTrainingFrame then
return
end
MTH_PetTrainingFrame = CreateFrame("Frame", "MTHPetTrainingScanFrame")
MTH_PetTrainingFrame = CreateFrame("Frame", "MTH_PetTrainingScan")
MTH_PetTrainingFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
MTH_PetTrainingFrame:RegisterEvent("LEARNED_SPELL_IN_TAB")
MTH_PetTrainingFrame:RegisterEvent("PET_TRAINING_SHOW")
@@ -793,9 +813,8 @@ function MTH_PT_InitService()
MTH_PetTrainingFrame:RegisterEvent("CRAFT_SHOW")
MTH_PetTrainingFrame:RegisterEvent("CRAFT_UPDATE")
MTH_PetTrainingFrame:SetScript("OnEvent", MTH_PT_OnEvent)
MTH_PetTrainingFrame:SetScript("OnUpdate", function(_, elapsed)
elapsed = elapsed or arg1
MTH_PT_PetBookPollElapsed = (MTH_PT_PetBookPollElapsed or 0) + (elapsed or 0)
MTH_PetTrainingFrame:SetScript("OnUpdate", function()
MTH_PT_PetBookPollElapsed = (MTH_PT_PetBookPollElapsed or 0) + (arg1 or 0)
if MTH_PT_PetBookPollElapsed < 0.20 then
return
end
@@ -827,6 +846,35 @@ function MTH_PT_InitService()
end)
end
function MTH_PT_InitBootstrap()
if MTH and MTH.ApplyClassGate and MTH:ApplyClassGate("trainscan-bootstrap") then
return
end
if MTH_PetTrainingFrame or MTH_PT_BootstrapFrame then
return
end
local frame = CreateFrame("Frame")
if not frame then
return
end
frame:RegisterEvent("PET_TRAINING_SHOW")
frame:RegisterEvent("CRAFT_SHOW")
frame:SetScript("OnEvent", function()
if event ~= "PET_TRAINING_SHOW" and event ~= "CRAFT_SHOW" then
return
end
MTH_PT_InitService()
if type(MTH_PT_OnEvent) == "function" then
MTH_PT_OnEvent(MTH_PetTrainingFrame, event)
end
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
MTH_PT_BootstrapFrame = nil
end)
MTH_PT_BootstrapFrame = frame
end
function MTH_PT_ShutdownService(_reason)
if not MTH_PetTrainingFrame then
return
@@ -910,3 +958,4 @@ end
MTH_TR_InitService = MTH_PT_InitService
MTH_TR_ShutdownService = MTH_PT_ShutdownService
MTH_TR_InitBootstrap = MTH_PT_InitBootstrap
+91 -4
View File
@@ -7,6 +7,25 @@ local MTH_PS_LastScanAt = 0
local MTH_PS_VERBOSE_LOGS = false
local MTH_PS_ForceScanUntil = 0
local MTH_PS_ForceScanBudget = 0
local MTH_PS_EventThrottle = {}
local MTH_PS_LastNoPetScanAt = 0
local function MTH_PS_IsPlayerDeadOrGhost()
if type(UnitIsDeadOrGhost) == "function" then
return UnitIsDeadOrGhost("player") and true or false
end
if type(UnitIsDead) == "function" then
return UnitIsDead("player") and true or false
end
return false
end
local function MTH_PS_HasLivePet()
if type(UnitExists) ~= "function" then
return false
end
return UnitExists("pet") and true or false
end
local function MTH_PS_ClearForceWindow()
MTH_PS_ForceScanUntil = 0
@@ -26,9 +45,25 @@ end
local function MTH_PS_IsFollowupEventTrigger(trigger)
local t = tostring(trigger or "")
return t == "event:UNIT_PET"
or t == "UNIT_PET"
or t == "event:PET_BAR_UPDATE"
or t == "PET_BAR_UPDATE"
or t == "event:SPELLS_CHANGED"
or t == "SPELLS_CHANGED"
or t == "event:LEARNED_SPELL_IN_TAB"
or t == "LEARNED_SPELL_IN_TAB"
end
local function MTH_PS_ShouldHandleEvent(evt, minIntervalSeconds)
local now = tonumber(GetTime and GetTime() or time()) or 0
local key = tostring(evt or "")
local minInterval = tonumber(minIntervalSeconds) or 0
local last = tonumber(MTH_PS_EventThrottle[key] or 0) or 0
if minInterval > 0 and (now - last) < minInterval then
return false
end
MTH_PS_EventThrottle[key] = now
return true
end
local function MTH_PS_IsPriorityTrigger(trigger)
@@ -190,6 +225,41 @@ function MTH_PSP_RequestScan(trigger, minIntervalSeconds)
local minInterval = tonumber(minIntervalSeconds) or 1
local bypassThrottle = false
local bypassReason = ""
local deadOrGhost = MTH_PS_IsPlayerDeadOrGhost()
local hasLivePet = MTH_PS_HasLivePet()
if deadOrGhost then
if triggerText == "PET_BAR_UPDATE" or triggerText == "event:PET_BAR_UPDATE"
or triggerText == "SPELLS_CHANGED" or triggerText == "event:SPELLS_CHANGED"
or triggerText == "LEARNED_SPELL_IN_TAB" or triggerText == "event:LEARNED_SPELL_IN_TAB"
then
MTH_PS_TraceTrigger(triggerText, false, "dead-skip")
return false
end
end
if not hasLivePet then
if MTH_PS_IsFollowupEventTrigger(triggerText) then
MTH_PS_TraceTrigger(triggerText, false, "no-pet-followup")
return false
end
if triggerText ~= "manual"
and triggerText ~= "PLAYER_ENTERING_WORLD"
and triggerText ~= "event:PLAYER_ENTERING_WORLD"
and triggerText ~= "UNIT_PET"
and triggerText ~= "event:UNIT_PET"
then
MTH_PS_TraceTrigger(triggerText, false, "no-pet")
return false
end
if (now - (tonumber(MTH_PS_LastNoPetScanAt) or 0)) < 5 then
MTH_PS_TraceTrigger(triggerText, false, "no-pet-throttled")
return false
end
MTH_PS_LastNoPetScanAt = now
else
MTH_PS_LastNoPetScanAt = 0
end
if MTH_PS_IsPriorityTrigger(triggerText) then
bypassThrottle = true
@@ -237,7 +307,19 @@ local function MTH_PS_OnEvent(_, evt, eventArg1)
end
if evt == "PLAYER_ENTERING_WORLD" or evt == "UNIT_PET" or evt == "PET_BAR_UPDATE" or evt == "SPELLS_CHANGED" or evt == "LEARNED_SPELL_IN_TAB" then
MTH_PSP_RequestScan("event:" .. tostring(evt), 1)
local minInterval = 1
if evt == "PET_BAR_UPDATE" then
minInterval = 4
elseif evt == "SPELLS_CHANGED" then
minInterval = 4
elseif evt == "LEARNED_SPELL_IN_TAB" then
minInterval = 1.5
elseif evt == "UNIT_PET" then
minInterval = 1
end
if MTH_PS_ShouldHandleEvent(evt, minInterval) then
MTH_PSP_RequestScan(evt, minInterval)
end
end
end
@@ -249,7 +331,7 @@ function MTH_PS_InitService()
return
end
MTH_PS_Frame = CreateFrame("Frame", "MTHPetSpellScanFrame")
MTH_PS_Frame = CreateFrame("Frame", "MTH_PetSpellbookEvent")
MTH_PS_Frame:RegisterEvent("PLAYER_ENTERING_WORLD")
MTH_PS_Frame:RegisterEvent("UNIT_PET")
MTH_PS_Frame:RegisterEvent("PET_BAR_UPDATE")
@@ -266,6 +348,7 @@ function MTH_PS_ShutdownService(_reason)
MTH_PS_Frame:SetScript("OnEvent", nil)
MTH_PS_Frame = nil
MTH_PS_LastScanAt = 0
MTH_PS_LastNoPetScanAt = 0
MTH_PS_ClearForceWindow()
end
@@ -284,11 +367,15 @@ function MTH_CommandPetSpellScan()
local ok, count, changed = MTH_PS_ScanNow("manual")
if not ok then
MTH:Print("Pet spellbook scan failed.")
if not (MTH and MTH.IsMessageEnabled) or MTH:IsMessageEnabled("spellbookScan", false) then
MTH:Print("Pet spellbook scan failed.")
end
MTH_PS_VERBOSE_LOGS = false
return
end
MTH:Print("Pet spellbook scan: " .. tostring(count or 0) .. " spell(s). changed=" .. tostring(changed and true or false))
if not (MTH and MTH.IsMessageEnabled) or MTH:IsMessageEnabled("spellbookScan", false) then
MTH:Print("Pet spellbook scan: " .. tostring(count or 0) .. " spell(s). changed=" .. tostring(changed and true or false))
end
local store = MTH_PS_GetStore()
MTH_PS_DebugPrint("Store status: lastScan=" .. tostring(store.lastScan or 0) .. " lastCount=" .. tostring(store.lastCount or 0) .. " lastTrigger=" .. tostring(store.lastTrigger or "") .. " lastChangeAt=" .. tostring(store.lastChangeAt or 0), true)
MTH_PS_VERBOSE_LOGS = false
File diff suppressed because it is too large Load Diff
+140 -16
View File
@@ -12,7 +12,7 @@ local function MTH_PT_GetGlobal(name)
return nil
end
local MTH_ItemLinkCacheTooltip = nil
local MTH_ItemLinkCache = nil
local function MTH_GetQualityHexColor(quality)
local q = tonumber(quality)
@@ -34,14 +34,14 @@ function MTH_PrimeItemCache(itemId)
if not id or id <= 0 then return false end
if type(GetItemInfo) == "function" and GetItemInfo(id) then return true end
if not MTH_ItemLinkCacheTooltip then
MTH_ItemLinkCacheTooltip = CreateFrame("GameTooltip", "MTH_ItemLinkCacheTooltip", UIParent, "GameTooltipTemplate")
if not MTH_ItemLinkCacheTooltip then return false end
MTH_ItemLinkCacheTooltip:SetOwner(UIParent, "ANCHOR_NONE")
if not MTH_ItemLinkCache then
MTH_ItemLinkCache = CreateFrame("GameTooltip", "MTH_ItemLinkCache", UIParent, "GameTooltipTemplate")
if not MTH_ItemLinkCache then return false end
MTH_ItemLinkCache:SetOwner(UIParent, "ANCHOR_NONE")
end
MTH_ItemLinkCacheTooltip:ClearLines()
MTH_ItemLinkCacheTooltip:SetHyperlink("item:" .. tostring(id) .. ":0:0:0")
MTH_ItemLinkCache:ClearLines()
MTH_ItemLinkCache:SetHyperlink("item:" .. tostring(id) .. ":0:0:0")
return type(GetItemInfo) == "function" and (GetItemInfo(id) ~= nil) or false
end
@@ -129,6 +129,49 @@ local function MTH_CommandOptions()
end
end
local function MTH_FormatAgeSeconds(seconds)
local value = tonumber(seconds) or 0
if value < 0 then value = 0 end
if value < 60 then
return tostring(math.floor(value)) .. "s"
end
if value < 3600 then
return tostring(math.floor(value / 60)) .. "m"
end
if value < 86400 then
return tostring(math.floor(value / 3600)) .. "h"
end
return tostring(math.floor(value / 86400)) .. "d"
end
local function MTH_CommandPeers()
if not (MTH and MTH.VersionCheck and type(MTH.VersionCheck.GetTrackedPeers) == "function") then
MTH:Print("Peer tracker is not available yet")
return
end
local peers = MTH.VersionCheck:GetTrackedPeers()
local count = table.getn(peers)
if count <= 0 then
MTH:Print("No MetaHunt broadcasters seen yet on LFT")
return
end
MTH:Print("MetaHunt broadcasters seen on LFT: " .. tostring(count))
local now = (type(time) == "function" and time()) or (type(GetTime) == "function" and math.floor(GetTime())) or 0
local maxRows = math.min(count, 20)
for i = 1, maxRows do
local peer = peers[i]
if type(peer) == "table" then
local age = MTH_FormatAgeSeconds((now or 0) - (tonumber(peer.lastSeenAt) or 0))
MTH:Print("- " .. tostring(peer.name or "?") .. " v" .. tostring(peer.versionText or "?") .. " (seen " .. tostring(age) .. " ago)")
end
end
if count > maxRows then
MTH:Print("... and " .. tostring(count - maxRows) .. " more")
end
end
local function MTH_CommandPetSpellScanFallback()
local getSpellName = (type(getglobal) == "function" and getglobal("GetSpellName")) or (_G and _G["GetSpellName"])
local getSpellTexture = (type(getglobal) == "function" and getglobal("GetSpellTexture")) or (_G and _G["GetSpellTexture"])
@@ -197,6 +240,34 @@ local function MTH_CommandPetSpellScanFallback()
end
end
local function MTH_CommandFoodData(limitText)
if type(FOM_PrintCollectedFoodData) ~= "function" then
MTH:Print("Food data command is not available yet")
return
end
local trimmed = string.gsub(tostring(limitText or ""), "^%s+", "")
trimmed = string.gsub(trimmed, "%s+$", "")
if string.lower(trimmed) == "purge" then
if type(FOM_PruneCollectedFoodData) ~= "function" then
MTH:Print("Food data purge is not available yet")
return
end
local removed = tonumber(FOM_PruneCollectedFoodData()) or 0
MTH:Print("Food data purge removed rows: " .. tostring(removed))
return
end
if trimmed == "" then
FOM_PrintCollectedFoodData(nil)
return
end
local limit = tonumber(trimmed)
if not limit then
MTH:Print("Usage: /mth food [limit|purge]")
return
end
FOM_PrintCollectedFoodData(limit)
end
if type(MTH_PS_ScanNow) ~= "function" then
function MTH_PS_ScanNow(trigger)
local ok, count = MTH_CommandPetSpellScanFallback()
@@ -224,10 +295,52 @@ end
if type(MTH_CommandPetSpellScan) ~= "function" then
function MTH_CommandPetSpellScan()
local ok, count = MTH_PS_ScanNow("manual-core-fallback")
MTH:Print("Pet spellbook scan: " .. tostring(count or 0) .. " spell(s). ok=" .. tostring(ok and true or false))
if not (MTH and MTH.IsMessageEnabled) or MTH:IsMessageEnabled("spellbookScan", false) then
MTH:Print("Pet spellbook scan: " .. tostring(count or 0) .. " spell(s). ok=" .. tostring(ok and true or false))
end
end
end
------------------------------------------------------
-- /mth diag — Runtime Diagnostics
------------------------------------------------------
function MTH_CommandDiag()
MTH:Print("======= MetaHunt Diagnostics =======", "debug")
-- 1. Lua version
local luaVer = _VERSION or "unknown"
MTH:Print("[DIAG] _VERSION = " .. tostring(luaVer), "debug")
MTH:Print("[DIAG] string.match = " .. tostring(type(string.match) == "function"), "debug")
MTH:Print("[DIAG] string.gfind = " .. tostring(type(string.gfind) == "function"), "debug")
-- 2. Active modules
local moduleCount = 0
local enabledModules = {}
if MTH.modules then
for name, mod in pairs(MTH.modules) do
moduleCount = moduleCount + 1
if mod.enabled then
table.insert(enabledModules, name)
end
end
end
MTH:Print("[DIAG] Registered modules: " .. tostring(moduleCount), "debug")
MTH:Print("[DIAG] Enabled: " .. table.concat(enabledModules, ", "), "debug")
-- 3. Event router state
local routerFrame = (MTH._eventRouter and MTH._eventRouter.frame) or nil
local routerEvents = (MTH._eventRouter and MTH._eventRouter.eventRefs) or {}
local eventCount = 0
for _ in pairs(routerEvents) do eventCount = eventCount + 1 end
MTH:Print("[DIAG] EventRouter frame: " .. tostring(routerFrame ~= nil) .. ", events: " .. tostring(eventCount), "debug")
-- 4. Debug frame initialized?
local dfInit = (MTH_DebugFrame and MTH_DebugFrame.initialized) and true or false
MTH:Print("[DIAG] DebugFrame initialized: " .. tostring(dfInit), "debug")
MTH:Print("======= End Diagnostics =======", "debug")
end
function SlashCmdList.MTH(msg, editbox)
if MTH and MTH.ApplyClassGate and MTH:ApplyClassGate("slash") then
return
@@ -237,27 +350,38 @@ function SlashCmdList.MTH(msg, editbox)
msg = string.gsub(tostring(msg), "^%s+", "")
msg = string.gsub(msg, "%s+$", "")
local lowerMsg = string.lower(msg)
local _, _, lowerCmd, lowerArg = string.find(lowerMsg, "^(%S+)%s*(.-)%s*$")
if msg == "" then
MTH:Print("Available: /mth options, /mth book")
MTH:Print("Available: /mth options, /mth book, /mth diag, /mth err")
elseif lowerMsg == "options" then
MTH_CommandOptions()
elseif lowerMsg == "book" or lowerMsg == "hunterbook" then
MTH_CommandBook()
elseif lowerMsg == "peers" or lowerMsg == "who" then
MTH_CommandPeers()
elseif lowerMsg == "diag" then
MTH_CommandDiag()
elseif lowerMsg == "err" or lowerMsg == "errors" or lowerMsg == "debug" then
if MTH_DebugFrame and MTH_DebugFrame.Toggle then
MTH_DebugFrame:Toggle()
else
MTH:Print("Debug frame is not available.")
end
else
MTH:Print("Unknown command: " .. tostring(msg))
MTH:Print("Available: /mth options, /mth book")
MTH:Print("Available: /mth options, /mth book, /mth diag, /mth err")
end
end
-- Initialize on load
MTH:InitSavedVariables()
if type(MTH_ST_InitService) == "function" then
MTH_ST_InitService()
if type(MTH_ST_InitBootstrap) == "function" then
MTH_ST_InitBootstrap()
end
if type(MTH_TR_InitService) == "function" then
MTH_TR_InitService()
elseif type(MTH_PT_InitService) == "function" then
MTH_PT_InitService()
if type(MTH_TR_InitBootstrap) == "function" then
MTH_TR_InitBootstrap()
elseif type(MTH_PT_InitBootstrap) == "function" then
MTH_PT_InitBootstrap()
end
if type(MTH_PS_InitService) == "function" then
MTH_PS_InitService()
+23 -19
View File
@@ -15,6 +15,13 @@ MTH_DebugFrame = {
infoCount = 0
}
local function MTH_DF_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
function MTH_DebugFrame:Initialize()
if self.initialized then
return
@@ -22,7 +29,7 @@ function MTH_DebugFrame:Initialize()
self.initialized = true
-- Create main frame
self.frame = CreateFrame("Frame", "MTH_DebugFrameWindow", UIParent)
self.frame = CreateFrame("Frame", "MTH_DebugWindow", UIParent)
self.frame:SetWidth(800)
self.frame:SetHeight(400)
self.frame:SetPoint("CENTER", UIParent, "CENTER")
@@ -44,27 +51,27 @@ function MTH_DebugFrame:Initialize()
if UISpecialFrames then
local already = false
for i = 1, table.getn(UISpecialFrames) do
if UISpecialFrames[i] == "MTH_DebugFrameWindow" then
if UISpecialFrames[i] == "MTH_DebugWindow" then
already = true
break
end
end
if not already then
table.insert(UISpecialFrames, "MTH_DebugFrameWindow")
table.insert(UISpecialFrames, "MTH_DebugWindow")
end
end
-- Title
local title = self.frame:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
title:SetPoint("TOPLEFT", self.frame, "TOPLEFT", 20, -15)
title:SetText("MetaHunt Debug - Errors & Messages")
title:SetText(MTH_DF_L("DEBUG_TITLE", "MetaHunt Debug - Errors & Messages"))
-- Close button
local closeButton = CreateFrame("Button", nil, self.frame, "UIPanelButtonTemplate")
closeButton:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT", -8, -8)
closeButton:SetWidth(22)
closeButton:SetHeight(22)
closeButton:SetText("X")
closeButton:SetText(MTH_DF_L("COMMON_CLOSE_SHORT", "X"))
closeButton:SetScript("OnClick", function() MTH_DebugFrame:Hide() end)
-- Clear button
@@ -72,7 +79,7 @@ function MTH_DebugFrame:Initialize()
clearButton:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", 10, 10)
clearButton:SetWidth(100)
clearButton:SetHeight(25)
clearButton:SetText("Clear")
clearButton:SetText(MTH_DF_L("COMMON_CLEAR", "Clear"))
clearButton:SetScript("OnClick", function() MTH_DebugFrame:Clear() end)
-- Select-all button
@@ -80,11 +87,11 @@ function MTH_DebugFrame:Initialize()
copyButton:SetPoint("LEFT", clearButton, "RIGHT", 10, 0)
copyButton:SetWidth(100)
copyButton:SetHeight(25)
copyButton:SetText("Select All")
copyButton:SetText(MTH_DF_L("COMMON_SELECT_ALL", "Select All"))
copyButton:SetScript("OnClick", function() MTH_DebugFrame:SelectAllText() end)
-- Scroll frame + text content with proper vertical scrollbar
self.scrollFrame = CreateFrame("ScrollFrame", "MTH_DebugScrollFrame", self.frame, "UIPanelScrollFrameTemplate")
self.scrollFrame = CreateFrame("ScrollFrame", "MTH_DebugScroll", self.frame, "UIPanelScrollFrameTemplate")
self.scrollFrame:SetPoint("TOPLEFT", self.frame, "TOPLEFT", 15, -50)
self.scrollFrame:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMRIGHT", -35, 45)
@@ -179,9 +186,9 @@ function MTH_DebugFrame:UpdateDisplay()
return
end
local text = "=== Errors Captured: " .. self.captureCount .. " ===\n"
text = text .. "=== Info Captured: " .. (self.infoCount or 0) .. " ===\n"
text = text .. "=== Total in queue: " .. table.getn(self.errors) .. " ===\n\n"
local text = string.format(MTH_DF_L("DEBUG_SUMMARY_ERRORS", "=== Errors Captured: %s ==="), tostring(self.captureCount)) .. "\n"
text = text .. string.format(MTH_DF_L("DEBUG_SUMMARY_INFO", "=== Info Captured: %s ==="), tostring(self.infoCount or 0)) .. "\n"
text = text .. string.format(MTH_DF_L("DEBUG_SUMMARY_QUEUE", "=== Total in queue: %s ==="), tostring(table.getn(self.errors))) .. "\n\n"
for i = 1, table.getn(self.errors) do
local err = self.errors[i]
@@ -238,7 +245,7 @@ function MTH_DebugFrame:Clear()
self:UpdateDisplay()
if self.initialized and self.isVisible then
if MTH and MTH.Print then
MTH:Print("Debug frame cleared")
MTH:Print(MTH_DF_L("DEBUG_CLEARED", "Debug frame cleared"))
end
end
end
@@ -251,7 +258,7 @@ function MTH_DebugFrame:SelectAllText()
self.scrollText:HighlightText(0, -1)
self.scrollText:SetFocus()
if MTH and MTH.Print then
MTH:Print("All text selected - press Ctrl+C to copy")
MTH:Print(MTH_DF_L("DEBUG_ALL_SELECTED", "All text selected - press Ctrl+C to copy"))
end
end
@@ -359,16 +366,13 @@ MTH_DebugFrame.UninstallHooks = MTH_DF_UninstallHooks
-- Event listener for addon load
local eventFrame = CreateFrame("Frame")
eventFrame:RegisterEvent("ADDON_LOADED")
eventFrame:SetScript("OnEvent", function(self, event, addonName)
if event == "ADDON_LOADED" and addonName == "MetaHunt" then
eventFrame:SetScript("OnEvent", function()
if event == "ADDON_LOADED" and arg1 == "MetaHunt" then
if MTH and MTH.GetConfig then
MTH_DF_SetGlobalCaptureEnabled(MTH:GetConfig("debug", "globalErrorCapture", false))
end
MTH_DF_InstallHooks()
MTH_DebugFrame:Initialize()
if MTH and MTH.Print then
local mode = MTH_DF_IsGlobalCaptureEnabled() and "legacy-global" or "safe-local"
MTH:Print("=== MetaHunt Debug Frame Initialized (" .. mode .. ") ===", "debug")
end
end
end)
+430
View File
@@ -0,0 +1,430 @@
-- hunterbook-model-viewer.lua
-- Embeds a small 3D creature skin preview at the bottom of the Beast Lore /
-- Abilities inspector. Clicking it opens a larger draggable popup with
-- < / > navigation through all skin variants of the selected family.
--
-- Uses MTH_DS_BeastSkins[familyName] generated by .tools/generators/gen_beast_skins.py
-- Skin rendering: PlayerModel:SetUnit(CreatureDisplayInfo.ID)
local function mv_log(msg)
if MTH_DebugFrame and type(MTH_DebugFrame.AddInfo) == "function" then
MTH_DebugFrame:AddInfo("[MV] " .. tostring(msg))
end
end
local function mv_err(msg)
if MTH_DebugFrame and type(MTH_DebugFrame.AddError) == "function" then
MTH_DebugFrame:AddError("[MV] " .. tostring(msg))
end
end
local MTH_MV = {
inited = false,
family = nil,
skins = {},
index = 1,
facing = 0.6,
rotating = false,
rotateLastX = 0,
keepPopup = false,
skinBeastRows = {},
skinListEmpty = nil,
-- small preview (parented to book frame, anchored below MTH_BOOK_DetailBackdrop)
previewFrame = nil,
previewModel = nil,
-- popup
popup = nil,
popupModel = nil,
popupTitle = nil,
popupSkinLabel = nil,
}
-- ---------------------------------------------------------------------------
-- Internal
-- ---------------------------------------------------------------------------
local function MTH_MV_ApplyModel(model, skinId)
if not model or not skinId then
mv_err("ApplyModel: nil model or skinId model="..tostring(model).." id="..tostring(skinId))
return
end
mv_log("ApplyModel id="..tostring(skinId))
model:SetUnit(skinId)
model:SetPosition(0, 0, 0)
model:SetModelScale(1)
local useFacing = (MTH_MV.popupModel ~= nil and model == MTH_MV.popupModel)
model:SetFacing(useFacing and MTH_MV.facing or 0.6)
end
local MTH_MV_BuildSkinBeastList -- forward declaration
local function MTH_MV_DisplayCurrent()
local skin = MTH_MV.skins[MTH_MV.index]
if not skin then return end
local n = table.getn(MTH_MV.skins)
MTH_MV_ApplyModel(MTH_MV.previewModel, skin.id)
MTH_MV_ApplyModel(MTH_MV.popupModel, skin.id)
local indexStr = tostring(MTH_MV.index) .. " / " .. tostring(n)
if MTH_MV.popupSkinLabel then
MTH_MV.popupSkinLabel:SetText(indexStr .. " · " .. tostring(skin.tex or ""))
end
MTH_MV_BuildSkinBeastList(skin.id)
end
MTH_MV_BuildSkinBeastList = function(skinId)
for i = 1, table.getn(MTH_MV.skinBeastRows) do
MTH_MV.skinBeastRows[i]:Hide()
end
if MTH_MV.skinListEmpty then MTH_MV.skinListEmpty:Hide() end
if not skinId or not MTH_DS_Beasts then return end
local matches = {}
for npcId, beast in pairs(MTH_DS_Beasts) do
if type(beast) == "table" and beast.skinId == skinId then
local nm = (MTH and MTH.GetLocalizedBeastName and MTH:GetLocalizedBeastName(npcId, beast.name)) or beast.name
table.insert(matches, { id = npcId, name = nm or "?", lvl = tostring(beast.lvl or "?") })
end
end
table.sort(matches, function(a, b) return (a.name or "") < (b.name or "") end)
local maxRows = table.getn(MTH_MV.skinBeastRows)
local shown = 0
for i = 1, table.getn(matches) do
if shown >= maxRows then break end
shown = shown + 1
local row = MTH_MV.skinBeastRows[shown]
row._npcId = matches[i].id
row.nameText:SetText(matches[i].name)
row.lvlText:SetText(matches[i].lvl)
row:Show()
end
if shown == 0 and MTH_MV.skinListEmpty then
MTH_MV.skinListEmpty:Show()
end
end
local function MTH_MV_Init()
if MTH_MV.inited then mv_log("Init: already done") return end
mv_log("Init: starting")
local backdrop = getglobal("MTH_BOOK_DetailBackdrop")
if not backdrop then
mv_err("Init: MTH_BOOK_DetailBackdrop not found")
return
end
mv_log("Init: backdrop found, creating previewFrame")
MTH_MV.inited = true
-- ----------------------------------------------------------------
-- Model preview container (sibling of inspector, full column width)
-- Hardcoded offset from book frame TOPLEFT: x=608 (right column),
-- y = -(166 inspector_top + 178 inspector_h + 6 gap) = -350
-- ----------------------------------------------------------------
local bookFrame = backdrop:GetParent()
MTH_MV.previewFrame = CreateFrame("Frame", "MTH_BOOK_SkinPreview", bookFrame)
MTH_MV.previewFrame:SetWidth(136)
MTH_MV.previewFrame:SetHeight(136)
MTH_MV.previewFrame:SetPoint("TOPLEFT", bookFrame, "TOPLEFT", 608, -384)
MTH_MV.previewFrame:SetBackdrop({
bgFile = "Interface\\Buttons\\WHITE8X8",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 12,
insets = {left = 3, right = 3, top = 3, bottom = 3},
})
MTH_MV.previewFrame:SetBackdropColor(0, 0, 0, 0.7)
MTH_MV.previewFrame:SetBackdropBorderColor(0.35, 0.35, 0.35, 0.8)
MTH_MV.previewFrame:Hide()
mv_log("Init: previewFrame created, creating PlayerModel")
-- PlayerModel fills the inner area
MTH_MV.previewModel = CreateFrame("PlayerModel", nil, MTH_MV.previewFrame)
MTH_MV.previewModel:SetPoint("TOPLEFT", MTH_MV.previewFrame, "TOPLEFT", 3, -3)
MTH_MV.previewModel:SetPoint("BOTTOMRIGHT", MTH_MV.previewFrame, "BOTTOMRIGHT", -3, 3)
-- Invisible click overlay → opens popup
local previewBtn = CreateFrame("Button", nil, MTH_MV.previewFrame)
previewBtn:SetAllPoints(MTH_MV.previewFrame)
previewBtn:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square")
previewBtn:SetScript("OnClick", function()
MTH_BOOK_ModelViewer_OpenPopup()
end)
previewBtn:SetScript("OnEnter", function()
GameTooltip:SetOwner(MTH_MV.previewFrame, "ANCHOR_LEFT")
GameTooltip:AddLine("Click to open skin viewer", 1, 1, 1)
GameTooltip:Show()
end)
previewBtn:SetScript("OnLeave", function()
GameTooltip:Hide()
end)
mv_log("Init: previewModel created, creating popup")
-- ----------------------------------------------------------------
-- Popup frame (wider: left side = model viewer, right = beast list)
-- ----------------------------------------------------------------
local popup = CreateFrame("Frame", "MTH_BOOK_ModelPopup", UIParent)
popup:SetWidth(490)
popup:SetHeight(320)
popup:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
popup:SetFrameStrata("TOOLTIP")
popup:SetToplevel(true)
popup:SetMovable(true)
popup:EnableMouse(true)
popup:RegisterForDrag("LeftButton")
popup:SetScript("OnDragStart", function() this:StartMoving() end)
popup:SetScript("OnDragStop", function() this:StopMovingOrSizing() end)
popup:SetScript("OnHide", function() MTH_MV.rotating = false end)
popup:Hide()
popup:SetBackdrop({
bgFile = "Interface\\Buttons\\WHITE8X8",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
tile = true, tileSize = 32, edgeSize = 32,
insets = {left = 11, right = 12, top = 12, bottom = 11},
})
popup:SetBackdropColor(0.05, 0.05, 0.08, 0.95)
-- Large model background (left side, x=20)
local modelBg = CreateFrame("Frame", nil, popup)
modelBg:SetWidth(224)
modelBg:SetHeight(226)
modelBg:SetPoint("TOPLEFT", popup, "TOPLEFT", 20, -42)
modelBg:SetBackdrop({
bgFile = "Interface\\Buttons\\WHITE8X8",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 12,
insets = {left = 3, right = 3, top = 3, bottom = 3},
})
modelBg:SetBackdropColor(0, 0, 0, 0.85)
modelBg:SetBackdropBorderColor(0.35, 0.35, 0.35, 0.9)
MTH_MV.popupModel = CreateFrame("PlayerModel", "MTH_BOOK_ModelPopupModel", modelBg)
MTH_MV.popupModel:SetPoint("TOPLEFT", modelBg, "TOPLEFT", 3, -3)
MTH_MV.popupModel:SetPoint("BOTTOMRIGHT", modelBg, "BOTTOMRIGHT", -3, 3)
-- Mouse rotation: drag on the black model area rotates; outside drags the popup
MTH_MV.popupModel:EnableMouse(true)
MTH_MV.popupModel:SetScript("OnMouseDown", function()
MTH_MV.rotating = true
MTH_MV.rotateLastX = GetCursorPosition()
end)
MTH_MV.popupModel:SetScript("OnMouseUp", function()
MTH_MV.rotating = false
end)
MTH_MV.popupModel:SetScript("OnUpdate", function()
if not MTH_MV.rotating then return end
local cx = GetCursorPosition()
local dx = cx - MTH_MV.rotateLastX
MTH_MV.rotateLastX = cx
if dx ~= 0 then
MTH_MV.facing = MTH_MV.facing - dx * 0.03
MTH_MV.popupModel:SetFacing(MTH_MV.facing)
end
end)
-- Title (family name) anchored above the model
MTH_MV.popupTitle = popup:CreateFontString(nil, "OVERLAY", "GameFontNormal")
MTH_MV.popupTitle:SetPoint("TOP", modelBg, "TOP", 0, 18)
MTH_MV.popupTitle:SetTextColor(1, 0.82, 0)
MTH_MV.popupTitle:SetText("Skin Viewer")
-- Close [X] button
local closeBtn = CreateFrame("Button", nil, popup)
closeBtn:SetWidth(22)
closeBtn:SetHeight(22)
closeBtn:SetPoint("TOPRIGHT", popup, "TOPRIGHT", -10, -10)
closeBtn:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square")
local closeLbl = closeBtn:CreateFontString(nil, "OVERLAY", "GameFontNormal")
closeLbl:SetAllPoints(closeBtn)
closeLbl:SetText("X")
closeLbl:SetTextColor(0.9, 0.9, 0.9)
closeBtn:SetScript("OnClick", function() this:GetParent():Hide() end)
-- "Unique Appearance" badge removed (inline texture syntax unsupported in this client)
-- Nav: ◀ label ▶ (kept within the left 264px area)
local prevBtn = CreateFrame("Button", nil, popup, "UIPanelButtonTemplate")
prevBtn:SetWidth(28)
prevBtn:SetHeight(20)
prevBtn:SetPoint("BOTTOMLEFT", popup, "BOTTOMLEFT", 14, 14)
prevBtn:SetText("<")
prevBtn:SetScript("OnClick", function()
local n = table.getn(MTH_MV.skins)
if n < 1 then return end
MTH_MV.index = MTH_MV.index - 1
if MTH_MV.index < 1 then MTH_MV.index = n end
MTH_MV_DisplayCurrent()
end)
local nextBtn = CreateFrame("Button", nil, popup, "UIPanelButtonTemplate")
nextBtn:SetWidth(28)
nextBtn:SetHeight(20)
nextBtn:SetPoint("BOTTOMLEFT", popup, "BOTTOMLEFT", 222, 14)
nextBtn:SetText(">")
nextBtn:SetScript("OnClick", function()
local n = table.getn(MTH_MV.skins)
if n < 1 then return end
MTH_MV.index = MTH_MV.index + 1
if MTH_MV.index > n then MTH_MV.index = 1 end
MTH_MV_DisplayCurrent()
end)
MTH_MV.popupSkinLabel = popup:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
MTH_MV.popupSkinLabel:SetPoint("BOTTOMLEFT", prevBtn, "BOTTOMRIGHT", 4, 0)
MTH_MV.popupSkinLabel:SetPoint("BOTTOMRIGHT", nextBtn, "BOTTOMLEFT", -4, 0)
MTH_MV.popupSkinLabel:SetJustifyH("CENTER")
MTH_MV.popupSkinLabel:SetTextColor(0.9, 0.9, 0.9)
-- ---------------------------------------------------------------
-- Right panel: vertical divider + beast list
-- ---------------------------------------------------------------
local divider = popup:CreateTexture(nil, "ARTWORK")
divider:SetTexture("Interface\\Buttons\\WHITE8X8")
divider:SetVertexColor(0.35, 0.35, 0.35, 0.8)
divider:SetPoint("TOPLEFT", popup, "TOPLEFT", 270, -36)
divider:SetPoint("BOTTOMLEFT", popup, "BOTTOMLEFT", 270, 12)
divider:SetWidth(1)
local listHeader = popup:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
listHeader:SetPoint("TOPLEFT", popup, "TOPLEFT", 278, -18)
listHeader:SetTextColor(1, 0.82, 0)
listHeader:SetText("Beasts with this skin")
local listSep = popup:CreateTexture(nil, "ARTWORK")
listSep:SetTexture("Interface\\Buttons\\WHITE8X8")
listSep:SetVertexColor(0.35, 0.35, 0.35, 0.6)
listSep:SetPoint("TOPLEFT", popup, "TOPLEFT", 278, -30)
listSep:SetPoint("TOPRIGHT", popup, "TOPRIGHT", -10, -30)
listSep:SetHeight(1)
MTH_MV.skinListEmpty = popup:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
MTH_MV.skinListEmpty:SetPoint("TOPLEFT", popup, "TOPLEFT", 278, -38)
MTH_MV.skinListEmpty:SetTextColor(0.5, 0.5, 0.5)
MTH_MV.skinListEmpty:SetText("\226\128\148")
MTH_MV.skinListEmpty:Hide()
-- Beast rows (14 max)
local ROW_X = 278
local ROW_START = -36
local ROW_H = 17
local MAX_ROWS = 14
for i = 1, MAX_ROWS do
local row = CreateFrame("Button", nil, popup)
row:SetPoint("TOPLEFT", popup, "TOPLEFT", ROW_X, ROW_START - (i - 1) * ROW_H)
row:SetWidth(200)
row:SetHeight(ROW_H - 1)
row._npcId = nil
local hl = row:CreateTexture(nil, "HIGHLIGHT")
hl:SetAllPoints(row)
hl:SetTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight")
hl:SetBlendMode("ADD")
hl:SetAlpha(0.35)
row.nameText = row:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
row.nameText:SetPoint("LEFT", row, "LEFT", 0, 0)
row.nameText:SetWidth(158)
row.nameText:SetJustifyH("LEFT")
row.lvlText = row:CreateFontString(nil, "OVERLAY", "GameFontNormalSmall")
row.lvlText:SetPoint("LEFT", row, "LEFT", 160, 0)
row.lvlText:SetWidth(38)
row.lvlText:SetJustifyH("LEFT")
row.lvlText:SetTextColor(0.7, 0.7, 0.7)
row:SetScript("OnClick", function()
if this._npcId and type(MTH_BOOK_JumpToBeastById) == "function" then
MTH_MV.keepPopup = true
MTH_BOOK_JumpToBeastById(this._npcId)
MTH_MV.keepPopup = false
end
end)
row:Hide()
MTH_MV.skinBeastRows[i] = row
end
MTH_MV.popup = popup
mv_log("Init: complete")
end
-- ---------------------------------------------------------------------------
-- Public API
-- ---------------------------------------------------------------------------
function MTH_BOOK_ModelViewer_SetFamily(family, skinId)
mv_log("SetFamily: "..tostring(family).." skinId="..tostring(skinId))
MTH_MV_Init()
if not MTH_MV.inited then mv_err("SetFamily: init failed") return end
local skins = MTH_DS_BeastSkins and type(MTH_DS_BeastSkins) == "table" and MTH_DS_BeastSkins[family]
if not skins or table.getn(skins) == 0 then
mv_log("SetFamily: no skins for "..tostring(family).." DS type="..type(MTH_DS_BeastSkins or false))
MTH_BOOK_ModelViewer_Clear()
return
end
-- Filter to only skins used by at least one tameable beast
local usedSkinIds = {}
if MTH_DS_Beasts then
for _, beast in pairs(MTH_DS_Beasts) do
if type(beast) == "table" and beast.skinId then
usedSkinIds[beast.skinId] = true
end
end
end
local filteredSkins = {}
for i = 1, table.getn(skins) do
if usedSkinIds[skins[i].id] then
table.insert(filteredSkins, skins[i])
end
end
if table.getn(filteredSkins) == 0 then
MTH_BOOK_ModelViewer_Clear()
return
end
mv_log("SetFamily: "..table.getn(filteredSkins).." tameable skins (filtered from "..table.getn(skins)..")")
MTH_MV.family = family
MTH_MV.skins = filteredSkins
MTH_MV.facing = 0.6
-- If we have a specific skinId, jump to the matching skin entry.
MTH_MV.index = 1
if skinId then
for i = 1, table.getn(filteredSkins) do
if filteredSkins[i].id == skinId then
MTH_MV.index = i
mv_log("SetFamily: skinId "..skinId.." matched skin index "..i)
break
end
end
end
if MTH_MV.popupTitle then
MTH_MV.popupTitle:SetText(tostring(family) .. " — Skins")
end
MTH_MV_DisplayCurrent()
if MTH_MV.previewFrame then MTH_MV.previewFrame:Show() end
MTH_MV_DisplayCurrent()
end
function MTH_BOOK_ModelViewer_Clear()
mv_log("Clear")
if MTH_MV.previewFrame then MTH_MV.previewFrame:Hide() end
if not MTH_MV.keepPopup then
if MTH_MV.popup and MTH_MV.popup:IsShown() then MTH_MV.popup:Hide() end
end
MTH_MV.family = nil
MTH_MV.skins = {}
MTH_MV.index = 1
end
function MTH_BOOK_ModelViewer_OpenPopup()
mv_log("OpenPopup skins="..table.getn(MTH_MV.skins))
MTH_MV_Init()
if not MTH_MV.popup then mv_err("OpenPopup: no popup frame") return end
if table.getn(MTH_MV.skins) == 0 then mv_log("OpenPopup: no skins") return end
MTH_MV.popup:Show()
MTH_MV.popup:Raise()
MTH_MV_DisplayCurrent()
end
+13 -11
View File
@@ -2,17 +2,18 @@ if type(MTH_HUNTERBOOK_TABS) ~= "table" then MTH_HUNTERBOOK_TABS = {} end
MTH_HUNTERBOOK_TABS.pets = {
headerLabel = "Beasts",
columnLabels = { "ID", "Lvl", "Family", "Name", "Abilities", "Zone", "R", "E", "U" },
columnLabels = { "ID", "Lvl", "Fam", "Name", "Abilities", "Zone", "R", "E", "U", "AS" },
columnLayout = {
{ x = 8, width = 28, align = "LEFT" },
{ x = 38, width = 30, align = "LEFT" },
{ x = 68, width = 74, align = "LEFT" },
{ x = 142, width = 130, align = "LEFT" },
{ x = 272, width = 180, align = "LEFT" },
{ x = 452, width = 68, align = "LEFT" },
{ x = 520, width = 10, align = "CENTER" },
{ x = 532, width = 10, align = "CENTER" },
{ x = 544, width = 10, align = "CENTER" },
{ x = 68, width = 18, align = "LEFT" },
{ x = 88, width = 130, align = "LEFT" },
{ x = 220, width = 148, align = "LEFT" },
{ x = 370, width = 80, align = "LEFT" },
{ x = 452, width = 14, align = "CENTER" },
{ x = 468, width = 14, align = "CENTER" },
{ x = 484, width = 14, align = "CENTER" },
{ x = 500, width = 54, align = "LEFT" },
},
}
@@ -238,7 +239,8 @@ function MTH_BOOK_BeastMatches(beastId, beast)
end
if MTH_BOOK_STATE.search ~= "" then
local name = MTH_BOOK_SafeLower(beast.name)
local localizedName = (MTH and MTH.GetLocalizedBeastName and MTH:GetLocalizedBeastName(beastId, beast.name)) or beast.name
local name = MTH_BOOK_SafeLower(localizedName)
local family = MTH_BOOK_SafeLower(beast.family)
local idText = tostring(beastId)
if string.find(name, MTH_BOOK_STATE.search, 1, true) == nil
@@ -260,8 +262,8 @@ function MTH_BOOK_BeastSort(a, b)
local la = MTH_BOOK_ParseLevel(ba.lvl) or 0
local lb = MTH_BOOK_ParseLevel(bb.lvl) or 0
if la ~= lb then return la < lb end
local na = ba.name or ""
local nb = bb.name or ""
local na = (MTH and MTH.GetLocalizedBeastName) and MTH:GetLocalizedBeastName(a, ba.name) or (ba.name or "")
local nb = (MTH and MTH.GetLocalizedBeastName) and MTH:GetLocalizedBeastName(b, bb.name) or (bb.name or "")
if na ~= nb then return na < nb end
return a < b
end
+95 -38
View File
@@ -7,13 +7,12 @@ MTH_HUNTERBOOK_TABS.families = {
{ x = 10, width = 106, align = "LEFT" },
{ x = 122, width = 52, align = "LEFT" },
{ x = 176, width = 52, align = "LEFT" },
{ x = 232, width = 292, align = "LEFT" },
{ x = 460, width = 184, align = "LEFT" },
{ x = 232, width = 364, align = "LEFT" },
{ x = 532, width = 112, align = "LEFT" },
},
}
local function MTH_BOOKTAB_FamiliesTrace(message)
return
end
local function MTH_BOOKTAB_FamiliesSafeLower(value)
@@ -27,6 +26,11 @@ local function MTH_BOOKTAB_FamiliesTrim(value)
return text
end
local function MTH_BOOKTAB_ShouldDisplayAllDiet(familyName)
local token = MTH_BOOKTAB_FamiliesSafeLower(MTH_BOOKTAB_FamiliesTrim(familyName))
return token == "bears" or token == "boars"
end
local function MTH_BOOKTAB_FindAbilityBundle(abilityName)
if not (MTH_DS_PetSpells and type(MTH_DS_PetSpells.byAbility) == "table") then
return nil
@@ -78,6 +82,7 @@ function MTH_BOOKTAB_BuildFamiliesRows()
for familyName, familyRow in pairs(families) do
if type(familyRow) == "table" then
MTH_BOOKTAB_FamiliesTrace("BUILD " .. tostring(familyName) .. " icon=" .. tostring(familyRow.icon))
local abilities = {}
local seen = {}
@@ -95,25 +100,49 @@ function MTH_BOOKTAB_BuildFamiliesRows()
if token ~= "" and not seen[token] then
seen[token] = true
local spellRows = (type(bundle) == "table" and type(bundle.spells) == "table") and bundle.spells or {}
local firstAnySpell = nil
local firstBeastSpell = nil
local rankMin = nil
local rankMax = nil
local rankMap = {}
local beastRankMin = nil
local beastRankMax = nil
local beastRankMap = {}
local anyRankMin = nil
local anyRankMax = nil
local anyRankMap = {}
for s = 1, table.getn(spellRows) do
local spell = spellRows[s]
if type(spell) == "table" and MTH_BOOKTAB_FamiliesSafeLower(spell.learnMethod or "beast") ~= "trainer" then
if not firstBeastSpell then
firstBeastSpell = spell
if type(spell) == "table" then
if not firstAnySpell then
firstAnySpell = spell
end
local rank = tonumber(spell.rankNumber)
if rank and rank > 0 then
rankMap[rank] = true
if not rankMin or rank < rankMin then rankMin = rank end
if not rankMax or rank > rankMax then rankMax = rank end
anyRankMap[rank] = true
if not anyRankMin or rank < anyRankMin then anyRankMin = rank end
if not anyRankMax or rank > anyRankMax then anyRankMax = rank end
end
if MTH_BOOKTAB_FamiliesSafeLower(spell.learnMethod or "beast") ~= "trainer" then
if not firstBeastSpell then
firstBeastSpell = spell
end
if rank and rank > 0 then
beastRankMap[rank] = true
if not beastRankMin or rank < beastRankMin then beastRankMin = rank end
if not beastRankMax or rank > beastRankMax then beastRankMax = rank end
end
end
end
end
local displaySpell = firstBeastSpell or firstAnySpell
local rankMap = beastRankMap
local rankMin = beastRankMin
local rankMax = beastRankMax
if not firstBeastSpell then
rankMap = anyRankMap
rankMin = anyRankMin
rankMax = anyRankMax
end
local rankCount = 0
for _ in pairs(rankMap) do
rankCount = rankCount + 1
@@ -123,8 +152,8 @@ function MTH_BOOKTAB_BuildFamiliesRows()
name = canonicalMap[token] or canonical,
token = token,
isUnique = (abilityCounts[token] or 0) == 1,
icon = firstBeastSpell and firstBeastSpell.icon or nil,
description = firstBeastSpell and firstBeastSpell.description or "",
icon = displaySpell and displaySpell.icon or nil,
description = displaySpell and displaySpell.description or "",
rankMin = rankMin,
rankMax = rankMax,
rankCount = rankCount,
@@ -141,25 +170,32 @@ function MTH_BOOKTAB_BuildFamiliesRows()
return MTH_BOOKTAB_FamiliesSafeLower(a.name) < MTH_BOOKTAB_FamiliesSafeLower(b.name)
end)
local dietItems = {}
if type(familyRow.food) == "table" then
for i = 1, table.getn(familyRow.food) do
local food = MTH_BOOKTAB_FamiliesTrim(familyRow.food[i])
if food ~= "" then
table.insert(dietItems, string.upper(string.sub(food, 1, 1)) .. string.sub(food, 2))
local dietText = ""
if MTH_BOOKTAB_ShouldDisplayAllDiet(familyName) then
dietText = "ALL"
else
local dietItems = {}
if type(familyRow.food) == "table" then
for i = 1, table.getn(familyRow.food) do
local food = MTH_BOOKTAB_FamiliesTrim(familyRow.food[i])
if food ~= "" then
table.insert(dietItems, string.upper(string.sub(food, 1, 1)) .. string.sub(food, 2))
end
end
table.sort(dietItems, function(a, b)
return MTH_BOOKTAB_FamiliesSafeLower(a) < MTH_BOOKTAB_FamiliesSafeLower(b)
end)
end
table.sort(dietItems, function(a, b)
return MTH_BOOKTAB_FamiliesSafeLower(a) < MTH_BOOKTAB_FamiliesSafeLower(b)
end)
dietText = table.concat(dietItems, ", ")
end
table.insert(results, {
family = tostring(familyName),
icon = familyRow.icon or nil,
named = tonumber(familyRow.named) or 0,
coords = tonumber(familyRow.coords) or 0,
abilities = abilities,
dietText = table.concat(dietItems, ", "),
dietText = dietText,
})
end
end
@@ -238,7 +274,7 @@ function MTH_BOOKTAB_EnsureFamiliesUI()
ui.headerAbilities:SetText("Abilities")
ui.headerDiet = ui.frame:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
ui.headerDiet:SetPoint("TOPLEFT", ui.frame, "TOPLEFT", 460, -2)
ui.headerDiet:SetPoint("TOPLEFT", ui.frame, "TOPLEFT", 532, -2)
ui.headerDiet:SetTextColor(1.00, 0.82, 0.00)
ui.headerDiet:SetText("Diet")
@@ -254,9 +290,15 @@ function MTH_BOOKTAB_EnsureFamiliesUI()
row:SetPoint("TOPRIGHT", ui.rows[i - 1], "BOTTOMRIGHT", 0, -1)
end
row.familyIcon = row:CreateTexture(nil, "ARTWORK")
row.familyIcon:SetPoint("LEFT", row, "LEFT", 4, 0)
row.familyIcon:SetWidth(16)
row.familyIcon:SetHeight(16)
row.familyIcon:Hide()
row.family = row:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
row.family:SetPoint("LEFT", row, "LEFT", 4, 0)
row.family:SetWidth(106)
row.family:SetPoint("LEFT", row, "LEFT", 24, 0)
row.family:SetWidth(88)
row.family:SetJustifyH("LEFT")
row.named = row:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
@@ -270,8 +312,8 @@ function MTH_BOOKTAB_EnsureFamiliesUI()
row.coords:SetJustifyH("LEFT")
row.diet = row:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
row.diet:SetPoint("LEFT", row, "LEFT", 460, 0)
row.diet:SetWidth(184)
row.diet:SetPoint("LEFT", row, "LEFT", 532, 0)
row.diet:SetWidth(112)
row.diet:SetJustifyH("LEFT")
row.abilityButtons = {}
@@ -358,11 +400,20 @@ function MTH_BOOKTAB_RenderFamiliesList()
if row then
rowFrame:Show()
rowFrame.family:SetText(tostring(row.family or "-"))
local familyIconPath = row.icon and MTH_BOOK_ResolveIconPath and MTH_BOOK_ResolveIconPath(row.icon) or nil
MTH_BOOKTAB_FamiliesTrace("RENDER " .. tostring(row.family) .. " icon=" .. tostring(row.icon) .. " path=" .. tostring(familyIconPath))
if familyIconPath then
rowFrame.familyIcon:SetTexture(familyIconPath)
rowFrame.familyIcon:Show()
else
rowFrame.familyIcon:Hide()
end
rowFrame.named:SetText(tostring(row.named or 0))
rowFrame.coords:SetText(tostring(row.coords or 0))
rowFrame.diet:SetText(tostring(row.dietText or "-"))
local offsetX = 232
local abilityMaxRight = 526
for b = 1, table.getn(rowFrame.abilityButtons) do
local button = rowFrame.abilityButtons[b]
local ability = row.abilities and row.abilities[b] or nil
@@ -375,17 +426,23 @@ function MTH_BOOKTAB_RenderFamiliesList()
button.text:SetText(nameText)
local textW = button.text:GetStringWidth() or 40
if textW < 24 then textW = 24 end
button:SetWidth(14 + textW)
button:ClearAllPoints()
button:SetPoint("LEFT", rowFrame, "LEFT", offsetX, 0)
local iconPath = ability.icon and MTH_BOOK_ResolveIconPath and MTH_BOOK_ResolveIconPath(ability.icon) or nil
if iconPath then
button.icon:SetTexture(iconPath)
local buttonWidth = 14 + textW
if (offsetX + buttonWidth) > abilityMaxRight then
button.entry = nil
button:Hide()
else
button.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark")
button:SetWidth(buttonWidth)
button:ClearAllPoints()
button:SetPoint("LEFT", rowFrame, "LEFT", offsetX, 0)
local iconPath = ability.icon and MTH_BOOK_ResolveIconPath and MTH_BOOK_ResolveIconPath(ability.icon) or nil
if iconPath then
button.icon:SetTexture(iconPath)
else
button.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark")
end
button:Show()
offsetX = offsetX + button:GetWidth() + 6
end
button:Show()
offsetX = offsetX + button:GetWidth() + 6
else
button.entry = nil
button:Hide()
+6 -3
View File
@@ -168,7 +168,8 @@ function MTH_BOOK_NPCMatches(npcId, vendor)
if MTH_BOOK_STATE.search ~= "" then
local functionSummary = MTH_BOOK_GetNPCFunctionSummary(vendor)
local firstZone, firstSubzone = MTH_BOOK_GetNPCZoneSummary(vendor)
local hay = MTH_BOOK_SafeLower(tostring(vendor.name or "") .. " " .. tostring(functionSummary or "") .. " " .. tostring(firstZone or "") .. " " .. tostring(firstSubzone or "") .. " " .. tostring(npcId))
local displayName = (MTH and MTH.GetLocalizedNPCNameById and MTH:GetLocalizedNPCNameById(npcId, vendor.name)) or vendor.name
local hay = MTH_BOOK_SafeLower(tostring(displayName or "") .. " " .. tostring(functionSummary or "") .. " " .. tostring(firstZone or "") .. " " .. tostring(firstSubzone or "") .. " " .. tostring(npcId))
if string.find(hay, MTH_BOOK_STATE.search, 1, true) == nil then
return false
end
@@ -182,8 +183,10 @@ function MTH_BOOK_NPCSort(a, b)
local va = vendors and vendors[a]
local vb = vendors and vendors[b]
if not va or not vb then return a < b end
local na = MTH_BOOK_SafeLower(va.name)
local nb = MTH_BOOK_SafeLower(vb.name)
local vaName = (MTH and MTH.GetLocalizedNPCNameById and MTH:GetLocalizedNPCNameById(a, va.name)) or va.name
local vbName = (MTH and MTH.GetLocalizedNPCNameById and MTH:GetLocalizedNPCNameById(b, vb.name)) or vb.name
local na = MTH_BOOK_SafeLower(vaName)
local nb = MTH_BOOK_SafeLower(vbName)
if na ~= nb then return na < nb end
return a < b
end
+1 -1
View File
@@ -140,7 +140,7 @@ function MTH_BOOK_GetResistanceShortName(nameText)
if string.find(lowerName, "arcane", 1, true) then return "AR" end
if string.find(lowerName, "nature", 1, true) then return "NR" end
if string.find(lowerName, "fire", 1, true) then return "FR" end
if string.find(lowerName, "frost", 1, true) then return "FR" end
if string.find(lowerName, "frost", 1, true) then return "FrR" end
if string.find(lowerName, "shadow", 1, true) then return "SR" end
return tostring(nameText or "-")
end
+65 -7
View File
@@ -15,10 +15,42 @@ MTH_HUNTERBOOK_TABS.items = {
},
}
MTH_HUNTERBOOK_TABS.projectiles = {
headerLabel = "Projectiles",
columnLabels = { "ID", "Req", "Lvl", "Type", "Name", "DPS", "Source" },
columnLayout = {
{ x = 8, width = 36, align = "LEFT" },
{ x = 44, width = 30, align = "LEFT" },
{ x = 74, width = 30, align = "LEFT" },
{ x = 104, width = 62, align = "LEFT" },
{ x = 166, width = 228, align = "LEFT" },
{ x = 396, width = 44, align = "LEFT" },
{ x = 442, width = 110, align = "LEFT" },
},
}
MTH_HUNTERBOOK_TABS.ammobags = {
headerLabel = "Ammo Bags",
columnLabels = { "ID", "Req", "Lvl", "Slots", "Type", "Name", "Source" },
columnLayout = {
{ x = 8, width = 40, align = "LEFT" },
{ x = 50, width = 36, align = "LEFT" },
{ x = 88, width = 34, align = "LEFT" },
{ x = 124, width = 42, align = "LEFT" },
{ x = 168, width = 80, align = "LEFT" },
{ x = 250, width = 192, align = "LEFT" },
{ x = 444, width = 108, align = "LEFT" },
},
}
function MTH_BOOK_NormalizeItemSubtype(value)
local subtype = MTH_BOOK_SafeLower(value)
subtype = string.gsub(subtype, "^%s+", "")
subtype = string.gsub(subtype, "%s+$", "")
if subtype == "arrows" then return "arrow" end
if subtype == "bullets" then return "bullet" end
if subtype == "ammo pouch" or subtype == "ammo pouches" then return "ammopouch" end
if subtype == "quivers" then return "quiver" end
if subtype == "bows" then return "bow" end
if subtype == "rifle" or subtype == "rifles" then return "gun" end
if subtype == "cross bow" or subtype == "cross-bow" or subtype == "crossbows" or subtype == "xbow" or subtype == "xbows" then return "crossbow" end
@@ -29,11 +61,36 @@ function MTH_BOOK_IsRangedWeaponSubtype(subtype)
return subtype == "bow" or subtype == "gun" or subtype == "crossbow"
end
local function MTH_BOOK_IsProjectileSubtype(subtype)
return subtype == "arrow" or subtype == "bullet"
end
local function MTH_BOOK_IsAmmoBagSubtype(subtype)
return subtype == "quiver" or subtype == "ammopouch"
end
function MTH_BOOK_ItemMatches(itemId, item)
if not item then return false end
if item.notingame then return false end
local itemSubtype = MTH_BOOK_NormalizeItemSubtype(item.subtype)
if not MTH_BOOK_IsRangedWeaponSubtype(itemSubtype) then return false end
local rawSubtype = MTH_BOOK_SafeLower(item.subtype)
rawSubtype = string.gsub(rawSubtype, "^%s+", "")
rawSubtype = string.gsub(rawSubtype, "%s+$", "")
local mode = tostring(MTH_BOOK_STATE and MTH_BOOK_STATE.mode or "items")
if mode == "projectiles" then
if not MTH_BOOK_IsProjectileSubtype(itemSubtype) then return false end
elseif mode == "ammobags" then
local hasSlots = tonumber(item.slots) and tonumber(item.slots) > 0
local looksLikeAmmoBag = MTH_BOOK_IsAmmoBagSubtype(itemSubtype)
or rawSubtype == "ammo pouch"
or rawSubtype == "ammo pouches"
or rawSubtype == "quiver"
or rawSubtype == "quivers"
or hasSlots
if not looksLikeAmmoBag then return false end
else
if not MTH_BOOK_IsRangedWeaponSubtype(itemSubtype) then return false end
end
local selectedSubtype = MTH_BOOK_NormalizeItemSubtype(MTH_BOOK_STATE.itemSubtype)
if selectedSubtype ~= "all" and itemSubtype ~= selectedSubtype then return false end
if MTH_BOOK_STATE.itemOnlyMyLevel then
@@ -48,11 +105,12 @@ function MTH_BOOK_ItemMatches(itemId, item)
if MTH_BOOK_STATE.flag3 and not MTH_BOOK_HasEntries(item.objects) then return false end
if MTH_BOOK_STATE.search ~= "" then
local name = MTH_BOOK_SafeLower(item.name)
local localizedName = (MTH and MTH.GetLocalizedItemName)
and MTH:GetLocalizedItemName(itemId, item.name)
or item.name
local name = MTH_BOOK_SafeLower(localizedName)
local idText = tostring(itemId)
if string.find(name, MTH_BOOK_STATE.search, 1, true) == nil and string.find(idText, MTH_BOOK_STATE.search, 1, true) == nil then
return false
end
if string.find(name, MTH_BOOK_STATE.search, 1, true) == nil and string.find(idText, MTH_BOOK_STATE.search, 1, true) == nil then return false end
end
return true
@@ -66,8 +124,8 @@ function MTH_BOOK_ItemSort(a, b)
local la = ia.level or 0
local lb = ib.level or 0
if la ~= lb then return la < lb end
local na = ia.name or ""
local nb = ib.name or ""
local na = (MTH and MTH.GetLocalizedItemName) and MTH:GetLocalizedItemName(a, ia.name) or (ia.name or "")
local nb = (MTH and MTH.GetLocalizedItemName) and MTH:GetLocalizedItemName(b, ib.name) or (ib.name or "")
if na ~= nb then return na < nb end
return a < b
end
+561 -201
View File
File diff suppressed because it is too large Load Diff
+24 -12
View File
@@ -74,7 +74,7 @@
</Frame>
<Frame name="$parentDetailBackdrop">
<Size><AbsDimension x="136" y="324"/></Size>
<Size><AbsDimension x="136" y="155"/></Size>
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="608" y="-166"/></Offset></Anchor>
</Anchors>
@@ -85,7 +85,7 @@
</Backdrop>
<Frames>
<EditBox name="$parentDetailText" autoFocus="false" multiLine="true" text="Select an entry to view details.">
<Size><AbsDimension x="120" y="306"/></Size>
<Size><AbsDimension x="120" y="139"/></Size>
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="8" y="-8"/></Offset></Anchor>
</Anchors>
@@ -96,7 +96,7 @@
<Button name="$parentOpenMapButton" inherits="UIPanelButtonTemplate" text="Open Map" hidden="true">
<Size><AbsDimension x="136" y="22"/></Size>
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="608" y="-496"/></Offset></Anchor>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="608" y="-524"/></Offset></Anchor>
</Anchors>
</Button>
@@ -120,54 +120,66 @@
</Frame>
<Frame name="$parentTabBar">
<Size><AbsDimension x="620" y="24"/></Size>
<Size><AbsDimension x="728" y="24"/></Size>
<Anchors>
<Anchor point="TOPLEFT"><Offset><AbsDimension x="18" y="-44"/></Offset></Anchor>
</Anchors>
</Frame>
<Button name="$parentSectionStable" inherits="TabButtonTemplate" text="Stable">
<Size><AbsDimension x="86" y="24"/></Size>
<Size><AbsDimension x="64" y="24"/></Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentTabBar"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionPetAbilities" inherits="TabButtonTemplate" text="Pet Abilities">
<Size><AbsDimension x="108" y="24"/></Size>
<Size><AbsDimension x="84" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionStable" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionPets" inherits="TabButtonTemplate" text="Beast Lore">
<Size><AbsDimension x="98" y="24"/></Size>
<Size><AbsDimension x="74" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionPetAbilities" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionFamilies" inherits="TabButtonTemplate" text="Families">
<Size><AbsDimension x="92" y="24"/></Size>
<Size><AbsDimension x="68" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionPets" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionNPCs" inherits="TabButtonTemplate" text="NPC Finder">
<Size><AbsDimension x="110" y="24"/></Size>
<Size><AbsDimension x="76" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionFamilies" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionItems" inherits="TabButtonTemplate" text="Weapons">
<Size><AbsDimension x="104" y="24"/></Size>
<Size><AbsDimension x="70" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionNPCs" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionPetHistory" inherits="TabButtonTemplate" text="Pet History">
<Size><AbsDimension x="104" y="24"/></Size>
<Button name="$parentSectionProjectiles" inherits="TabButtonTemplate" text="Projectiles">
<Size><AbsDimension x="80" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionItems" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionAmmoBags" inherits="TabButtonTemplate" text="Ammo Bags">
<Size><AbsDimension x="78" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionProjectiles" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<Button name="$parentSectionPetHistory" inherits="TabButtonTemplate" text="Pet History">
<Size><AbsDimension x="82" y="24"/></Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSectionAmmoBags" relativePoint="RIGHT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor>
</Anchors>
</Button>
<EditBox name="$parentSearch" inherits="InputBoxTemplate">
<Size><AbsDimension x="180" y="20"/></Size>
+289 -130
View File
@@ -2,103 +2,173 @@
-- MetaHunt Localization System
------------------------------------------------------
MTH.localization = {}
MTH.localization = MTH.localization or {}
MTH.currentLocale = GetLocale()
-- Binding Headers (must be defined early for keybindings)
BINDING_HEADER_FEEDOMATIC = "[MetaHunt] Feed-O-Matic"
BINDING_HEADER_ZAspectHeader = "[MetaHunt] ZAspect Buttons"
BINDING_HEADER_ZTrackHeader = "[MetaHunt] ZTrack Buttons"
BINDING_HEADER_ZTrapHeader = "[MetaHunt] ZTrap Buttons"
BINDING_HEADER_ZPetHeader = "[MetaHunt] ZPet Buttons"
BINDING_HEADER_ZAmmoHeader = "[MetaHunt] ZAmmo Buttons"
local MTH_LOCALE_ALIASES = {
enGB = "enUS",
esMX = "esES",
zhTW = "zhCN",
}
-- Localization table structure
local L = {}
-- English (default)
if MTH.currentLocale == "enUS" or MTH.currentLocale == "enGB" then
-- FeedOMatic
L.FEEDOMATIC_NAME = "Feed-O-Matic"
L.FEEDOMATIC_DESC = "Helps a Hunter keep his pets well fed"
L.TOOLTIPS_OPTION_FOOD = "Add tooltips on food"
L.TOOLTIPS_OPTION_FOOD_HELP = "Show your current pet's food preference directly in item tooltips."
L.TOOLTIPS_OPTION_OWNPET = "Activate on my pet"
L.TOOLTIPS_OPTION_OWNPET_HELP = "Show your own pet status details in tooltip when hovering your pet context."
L.TOOLTIPS_FOOD_QUALITY_UNKNOWN = "%s can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_QUALITY_UNDER = "%s doesn't like this anymore."
L.TOOLTIPS_FOOD_QUALITY_MIGHT = "%s might eat this."
L.TOOLTIPS_FOOD_QUALITY_WILL = "%s will eat this."
L.TOOLTIPS_FOOD_QUALITY_LIKE = "%s likes to eat this."
L.TOOLTIPS_FOOD_QUALITY_LOVE = "%s loves to eat this."
L.TOOLTIPS_FOOD_MARKER_UNKNOWN = "can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_MARKER_UNDER = "doesn't like this anymore."
L.TOOLTIPS_FOOD_MARKER_MIGHT = "might eat this."
L.TOOLTIPS_FOOD_MARKER_WILL = "will eat this."
L.TOOLTIPS_FOOD_MARKER_LIKE = "likes to eat this."
L.TOOLTIPS_FOOD_MARKER_LOVE = "loves to eat this."
-- zhunter
L.ZHUNTER_NAME = "zhunter"
L.ZHUNTER_DESC = "Various features to make a hunter's life easier"
-- German / Deutsch
elseif MTH.currentLocale == "deDE" then
L.FEEDOMATIC_NAME = "Futter-O-Mat"
L.ZHUNTER_NAME = "zhunter"
L.TOOLTIPS_OPTION_FOOD = "Add tooltips on food"
L.TOOLTIPS_OPTION_FOOD_HELP = "Show your current pet's food preference directly in item tooltips."
L.TOOLTIPS_OPTION_OWNPET = "Activate on my pet"
L.TOOLTIPS_OPTION_OWNPET_HELP = "Show your own pet status details in tooltip when hovering your pet context."
L.TOOLTIPS_FOOD_QUALITY_UNKNOWN = "%s can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_QUALITY_UNDER = "%s doesn't like this anymore."
L.TOOLTIPS_FOOD_QUALITY_MIGHT = "%s might eat this."
L.TOOLTIPS_FOOD_QUALITY_WILL = "%s will eat this."
L.TOOLTIPS_FOOD_QUALITY_LIKE = "%s likes to eat this."
L.TOOLTIPS_FOOD_QUALITY_LOVE = "%s loves to eat this."
L.TOOLTIPS_FOOD_MARKER_UNKNOWN = "can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_MARKER_UNDER = "doesn't like this anymore."
L.TOOLTIPS_FOOD_MARKER_MIGHT = "might eat this."
L.TOOLTIPS_FOOD_MARKER_WILL = "will eat this."
L.TOOLTIPS_FOOD_MARKER_LIKE = "likes to eat this."
L.TOOLTIPS_FOOD_MARKER_LOVE = "loves to eat this."
-- French / Français
elseif MTH.currentLocale == "frFR" then
L.FEEDOMATIC_NAME = "Nourricier"
L.ZHUNTER_NAME = "zhunter"
L.TOOLTIPS_OPTION_FOOD = "Add tooltips on food"
L.TOOLTIPS_OPTION_FOOD_HELP = "Show your current pet's food preference directly in item tooltips."
L.TOOLTIPS_OPTION_OWNPET = "Activate on my pet"
L.TOOLTIPS_OPTION_OWNPET_HELP = "Show your own pet status details in tooltip when hovering your pet context."
L.TOOLTIPS_FOOD_QUALITY_UNKNOWN = "%s can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_QUALITY_UNDER = "%s doesn't like this anymore."
L.TOOLTIPS_FOOD_QUALITY_MIGHT = "%s might eat this."
L.TOOLTIPS_FOOD_QUALITY_WILL = "%s will eat this."
L.TOOLTIPS_FOOD_QUALITY_LIKE = "%s likes to eat this."
L.TOOLTIPS_FOOD_QUALITY_LOVE = "%s loves to eat this."
L.TOOLTIPS_FOOD_MARKER_UNKNOWN = "can eat this, but hasn't tried it yet."
L.TOOLTIPS_FOOD_MARKER_UNDER = "doesn't like this anymore."
L.TOOLTIPS_FOOD_MARKER_MIGHT = "might eat this."
L.TOOLTIPS_FOOD_MARKER_WILL = "will eat this."
L.TOOLTIPS_FOOD_MARKER_LIKE = "likes to eat this."
L.TOOLTIPS_FOOD_MARKER_LOVE = "loves to eat this."
local MTH_SUPPORTED_LOCALES = {
enUS = true,
deDE = true,
esES = true,
ptBR = true,
ruRU = true,
zhCN = true,
}
local function MTH_ResolveLocale(locale)
local resolved = tostring(locale or "enUS")
if MTH_LOCALE_ALIASES[resolved] then
resolved = MTH_LOCALE_ALIASES[resolved]
end
if not MTH_SUPPORTED_LOCALES[resolved] then
resolved = "enUS"
end
return resolved
end
MTH.localization[MTH.currentLocale] = L
local activeLocale = MTH_ResolveLocale(MTH.currentLocale)
local localeData = MTH_LocaleData or {}
local uiLocales = localeData.ui or {}
local uiDefault = uiLocales.enUS or {}
local uiActive = uiLocales[activeLocale] or {}
-- Get localized string
function MTH:GetLocalization(key, default)
if L[key] then
return L[key]
local function MTH_L(key, default)
if uiActive[key] ~= nil then
return uiActive[key]
end
if uiDefault[key] ~= nil then
return uiDefault[key]
end
return default or key
end
MTH.localization[activeLocale] = uiActive
MTH.localization.enUS = uiDefault
BINDING_HEADER_FEEDOMATIC = MTH_L("BINDING_HEADER_FEEDOMATIC", "[MetaHunt] Feed-O-Matic")
BINDING_HEADER_ZAspectHeader = MTH_L("BINDING_HEADER_ZAspectHeader", "[MetaHunt] ZAspect Buttons")
BINDING_HEADER_ZTrackHeader = MTH_L("BINDING_HEADER_ZTrackHeader", "[MetaHunt] ZTrack Buttons")
BINDING_HEADER_ZTrapHeader = MTH_L("BINDING_HEADER_ZTrapHeader", "[MetaHunt] ZTrap Buttons")
BINDING_HEADER_ZPetHeader = MTH_L("BINDING_HEADER_ZPetHeader", "[MetaHunt] ZPet Buttons")
BINDING_HEADER_ZAmmoHeader = MTH_L("BINDING_HEADER_ZAmmoHeader", "[MetaHunt] ZAmmo Buttons")
function MTH:GetLocalization(key, default)
return MTH_L(key, default)
end
local function MTH_GetLocaleVendorNameMap(locale)
local dataLocales = (MTH_LocaleData and MTH_LocaleData.data) or nil
local vendorLocales = dataLocales and dataLocales.vendors or nil
if type(vendorLocales) ~= "table" then
return nil
end
return vendorLocales[locale]
end
local function MTH_GetLocaleItemNameMap(locale)
local dataLocales = (MTH_LocaleData and MTH_LocaleData.data) or nil
local itemLocales = dataLocales and dataLocales.items or nil
if type(itemLocales) ~= "table" then
return nil
end
return itemLocales[locale]
end
local function MTH_GetLocaleBeastNameMap(locale)
local dataLocales = (MTH_LocaleData and MTH_LocaleData.data) or nil
if type(dataLocales) ~= "table" then
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
dataLocales = MTH_LocaleData.data
end
local beastLocales = dataLocales and dataLocales.beasts or nil
if type(beastLocales) ~= "table" then
dataLocales.beasts = {}
beastLocales = dataLocales.beasts
end
if locale == "enUS" then
local enMap = beastLocales.enUS
if type(enMap) ~= "table" then
enMap = {}
beastLocales.enUS = enMap
end
if next(enMap) == nil then
local beasts = _G and _G.MTH_DS_Beasts or MTH_DS_Beasts
if type(beasts) == "table" then
for beastId, beast in pairs(beasts) do
local id = tonumber(beastId)
local name = type(beast) == "table" and tostring(beast.name or "") or ""
if id and name ~= "" and enMap[id] == nil then
enMap[id] = name
end
end
end
end
end
return beastLocales[locale]
end
function MTH:GetLocalizedVendorName(vendorId, defaultName)
local id = tonumber(vendorId)
if not id then
return defaultName or "Unknown"
end
local locale = MTH_ResolveLocale(self.currentLocale or GetLocale() or "enUS")
local localeMap = MTH_GetLocaleVendorNameMap(locale)
if localeMap and localeMap[id] and localeMap[id] ~= "" then
return localeMap[id]
end
local fallbackMap = MTH_GetLocaleVendorNameMap("enUS")
if fallbackMap and fallbackMap[id] and fallbackMap[id] ~= "" then
return fallbackMap[id]
end
return defaultName or "Unknown"
end
function MTH:GetLocalizedNPCNameById(npcId, defaultName)
return self:GetLocalizedVendorName(npcId, defaultName)
end
function MTH:GetLocalizedItemName(itemId, defaultName)
local id = tonumber(itemId)
if not id then
return defaultName or "Unknown"
end
local locale = MTH_ResolveLocale(self.currentLocale or GetLocale() or "enUS")
local localeMap = MTH_GetLocaleItemNameMap(locale)
if localeMap and localeMap[id] and localeMap[id] ~= "" then
return localeMap[id]
end
local fallbackMap = MTH_GetLocaleItemNameMap("enUS")
if fallbackMap and fallbackMap[id] and fallbackMap[id] ~= "" then
return fallbackMap[id]
end
return defaultName or "Unknown"
end
function MTH:GetLocalizedBeastName(beastId, defaultName)
local id = tonumber(beastId)
if not id then
return defaultName or "Unknown"
end
local locale = MTH_ResolveLocale(self.currentLocale or GetLocale() or "enUS")
local localeMap = MTH_GetLocaleBeastNameMap(locale)
if localeMap and localeMap[id] and localeMap[id] ~= "" then
return localeMap[id]
end
local fallbackMap = MTH_GetLocaleBeastNameMap("enUS")
if fallbackMap and fallbackMap[id] and fallbackMap[id] ~= "" then
return fallbackMap[id]
end
return defaultName or "Unknown"
end
-- Module localization helper
function MTH:RegisterModuleLocalization(module_name, localizationTable)
if not self.localization.modules then
@@ -118,60 +188,149 @@ function MTH:GetModuleLocalization(module_name, key, default)
end
local MTH_SPELL_LOCALE = {
enUS = {
["Banish"] = "Banish",
["Bestial Wrath"] = "Bestial Wrath",
["Concussive Shot"] = "Concussive Shot",
["Counterattack"] = "Counterattack",
["Critical Mass"] = "Critical Mass",
["Clever Traps"] = "Clever Traps",
["Deterrence"] = "Deterrence",
["Explosive Trap"] = "Explosive Trap",
["Explosive Trap Effect"] = "Explosive Trap Effect",
["Feed Pet"] = "Feed Pet",
["Flare"] = "Flare",
["Freezing Trap"] = "Freezing Trap",
["Freezing Trap Effect"] = "Freezing Trap Effect",
["Frost Trap"] = "Frost Trap",
["Frost Trap Aura"] = "Frost Trap Aura",
["Hunter's Mark"] = "Hunter's Mark",
["Holy Strength"] = "Holy Strength",
["Immolation Trap"] = "Immolation Trap",
["Immolation Trap Effect"] = "Immolation Trap Effect",
["Improved Concussive Shot"] = "Improved Concussive Shot",
["Improved Wing Clip"] = "Improved Wing Clip",
["Perception"] = "Perception",
["Piercing Shot"] = "Piercing Shot",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "Rapid Fire",
["Scare Beast"] = "Scare Beast",
["Scatter Shot"] = "Scatter Shot",
["Scorpid Poison"] = "Scorpid Poison",
["Scorpid Sting"] = "Scorpid Sting",
["Serpent Sting"] = "Serpent Sting",
["Stoneform"] = "Stoneform",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "Viper Sting",
["War Stomp"] = "War Stomp",
["Will of the Forsaken"] = "Will of the Forsaken",
["Wing Clip"] = "Wing Clip",
["Wyvern Sting"] = "Wyvern Sting",
["Blood Fury"] = "Blood Fury",
["Berserking"] = "Berserking",
},
}
local MTH_SPELL_ID_BY_TOKEN = {
["Banish"] = 710,
["Bestial Wrath"] = 19574,
["Concussive Shot"] = 5116,
["Counterattack"] = 19306,
["Clever Traps"] = 19239,
["Deterrence"] = 19263,
["Entrapment"] = 19184,
["Entrapment (Rank 2)"] = 19387,
["Entrapment (Rank 3)"] = 19388,
["Explosive Trap"] = 13813,
["Explosive Trap Effect"] = 13812,
["Feed Pet"] = 6991,
["Flare"] = 1543,
["Freezing Trap"] = 1499,
["Freezing Trap Effect"] = 3355,
["Frost Trap"] = 13809,
["Frost Trap Aura"] = 13810,
["Hunter's Mark"] = 1130,
["Immolation Trap"] = 13795,
["Immolation Trap Effect"] = 13797,
["Improved Concussive Shot"] = 19407,
["Improved Wing Clip"] = 19229,
["Perception"] = 20600,
["Rapid Fire"] = 3045,
["Scare Beast"] = 1513,
["Scatter Shot"] = 19503,
["Scorpid Sting"] = 3043,
["Serpent Sting"] = 1978,
["Stoneform"] = 20594,
["Viper Sting"] = 3034,
["War Stomp"] = 20549,
["Will of the Forsaken"] = 7744,
["Wing Clip"] = 2974,
["Wyvern Sting"] = 19386,
["Blood Fury"] = 20572,
["Berserking"] = 26297,
}
do
local spellLocales = (MTH_LocaleData and MTH_LocaleData.spells) or nil
if type(spellLocales) == "table" then
for localeKey, localeMap in pairs(spellLocales) do
if type(localeMap) == "table" then
MTH_SPELL_LOCALE[localeKey] = localeMap
end
end
end
end
do
local extras = {
enUS = {
["Devilsaur Eye"] = "Devilsaur Eye",
["Devilsaur Fury"] = "Devilsaur Fury",
["Zandalarian Hero Medallion"] = "Zandalarian Hero Medallion",
["Restless Strength"] = "Restless Strength",
["Earthstrike"] = "Earthstrike",
["Badge of the Swarmguard"] = "Badge of the Swarmguard",
["Jom Gabbar"] = "Jom Gabbar",
["Kiss of the Spider"] = "Kiss of the Spider",
["Slayer's Crest"] = "Slayer's Crest",
},
deDE = {
["Devilsaur Eye"] = "Auge eines Teufelssauriers",
["Devilsaur Fury"] = "Zorn des Teufelssauriers",
["Zandalarian Hero Medallion"] = "Zandalarianisches Heldenmedallion",
["Restless Strength"] = "Ruhelose Stärke",
["Earthstrike"] = "Erdschlag",
["Badge of the Swarmguard"] = "Abzeichen der Schwarmwache",
["Jom Gabbar"] = "Jom Gabbar",
["Kiss of the Spider"] = "Kuss der Spinne",
["Slayer's Crest"] = "Jägerspitze",
},
esES = {
["Devilsaur Eye"] = "Ojo de Demosaurio",
["Devilsaur Fury"] = "Furia del devilsaurio",
["Zandalarian Hero Medallion"] = "Zandalarian Hero Medallion",
["Restless Strength"] = "Fuerza agitada",
["Earthstrike"] = "Golpeterra",
["Badge of the Swarmguard"] = "Badge of the Swarmguard",
["Jom Gabbar"] = "Jom Gabbar",
["Kiss of the Spider"] = "Kiss of the Spider",
["Slayer's Crest"] = "Cresta de Matador",
},
frFR = {
["Devilsaur Eye"] = "Oeil de diablosaure",
["Devilsaur Fury"] = "Fureur du diablosaure",
["Zandalarian Hero Medallion"] = "Médaillon de héros zandalarien",
["Restless Strength"] = "Force inconstante",
["Earthstrike"] = "Choc de terre",
["Badge of the Swarmguard"] = "Insigne de garde-essaim",
["Jom Gabbar"] = "Jom Gabbar",
["Kiss of the Spider"] = "Baiser de l'araignée",
["Slayer's Crest"] = "Ecusson de tueur",
},
zhCN = {
["Devilsaur Eye"] = "魔暴龙眼",
["Devilsaur Fury"] = "魔暴龙之怒",
["Zandalarian Hero Medallion"] = "赞达拉英雄徽记",
["Restless Strength"] = "充沛之力",
["Earthstrike"] = "大地之击",
["Badge of the Swarmguard"] = "虫群守卫徽章",
["Jom Gabbar"] = "Jom Gabbar",
["Kiss of the Spider"] = "蜘蛛之吻",
["Slayer's Crest"] = "屠戮者徽记",
},
}
for localeKey, localeMap in pairs(extras) do
if type(MTH_SPELL_LOCALE[localeKey]) ~= "table" then
MTH_SPELL_LOCALE[localeKey] = {}
end
for token, localized in pairs(localeMap) do
if MTH_SPELL_LOCALE[localeKey][token] == nil then
MTH_SPELL_LOCALE[localeKey][token] = localized
end
end
end
end
MTH.Const = MTH.Const or {}
MTH.Const.SpellLocaleMap = MTH_SPELL_LOCALE
MTH.Const.NPCLocaleMap = (MTH_LocaleData and MTH_LocaleData.data and MTH_LocaleData.data.vendors) or {}
MTH.Const.ItemLocaleMap = (MTH_LocaleData and MTH_LocaleData.data and MTH_LocaleData.data.items) or {}
MTH.Const.BeastLocaleMap = (MTH_LocaleData and MTH_LocaleData.data and MTH_LocaleData.data.beasts) or {}
function MTH:LocalizeSpell(spellToken)
local key = tostring(spellToken or "")
if key == "" then
return key
end
local locale = tostring(self.currentLocale or GetLocale() or "enUS")
local getSpellInfo = _G and _G["GetSpellInfo"] or nil
local spellId = MTH_SPELL_ID_BY_TOKEN[key]
if spellId and getSpellInfo then
local spellName = getSpellInfo(spellId)
if spellName and spellName ~= "" then
return spellName
end
end
local locale = MTH_ResolveLocale(self.currentLocale or GetLocale() or "enUS")
local localeMap = MTH_SPELL_LOCALE[locale] or MTH_SPELL_LOCALE.enUS
if localeMap and localeMap[key] then
return localeMap[key]
+110 -50
View File
@@ -2,7 +2,7 @@ MTH_Map = {
enabled = true,
showWorld = true,
showMinimap = true,
activeSource = "beasts",
activeSource = "focus",
providers = {},
nodesByZone = {},
worldPins = {},
@@ -21,6 +21,10 @@ MTH_Map = {
lastWorldReason = "n/a",
lastMiniReason = "n/a",
nodeRevision = 0,
minimapForceRefreshInterval = 1.0,
verboseMiniReasons = false,
minimapTickActive = 0.20,
minimapTickIdle = 0.75,
}
local MTH_MAP_MINIMAP_ZOOM = {
@@ -468,7 +472,18 @@ local function MTH_Map_ClearPendingZoneOpen()
MTH_Map.pendingZoneOpenNextAttemptAt = 0
end
function MTH_Map:EnsureInitialized()
if self.controller then
return true
end
self:Init()
return self.controller ~= nil
end
function MTH_Map:SetSource(key)
if not self:EnsureInitialized() then
return false
end
if not self.providers[key] then
return false
end
@@ -572,6 +587,7 @@ function MTH_Map:FocusBeast(beastId, beast)
local cr, cg, cb = MTH_Map_GetFamilyColor(row.family)
local nodes = {}
local firstZoneId = nil
local displayName = (MTH and MTH.GetLocalizedBeastName and MTH:GetLocalizedBeastName(id, row.name)) or row.name or "Unknown"
for i = 1, table.getn(coords) do
local c = coords[i]
@@ -581,7 +597,7 @@ function MTH_Map:FocusBeast(beastId, beast)
firstZoneId = zoneId
end
local details = string.format("Family: %s\nLevel: %s\nAbilities: %s", row.family or "?", row.lvl or "?", row.abilities or "None")
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", row.name or "Unknown", id), details, cr, cg, cb, { kind = "beast", beastId = id })
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", displayName, id), details, cr, cg, cb, { kind = "beast", beastId = id })
end
end
@@ -637,6 +653,7 @@ function MTH_Map:FocusVendor(vendorId, vendor)
local nodes = {}
local firstZoneId = nil
local displayName = (MTH and MTH.GetLocalizedVendorName and MTH:GetLocalizedVendorName(id, row.name)) or row.name or "Unknown"
for i = 1, table.getn(coords) do
local c = coords[i]
if c and c[1] and c[2] and c[3] then
@@ -645,7 +662,7 @@ function MTH_Map:FocusVendor(vendorId, vendor)
firstZoneId = zoneId
end
local details = string.format("React: %s\nLevel: %s\nFunctions: %s", react ~= "" and react or "?", row.lvl or "?", metaTags)
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", row.name or "Unknown", id), details, cr, cg, cb, { kind = "vendor", vendorId = id })
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", displayName, id), details, cr, cg, cb, { kind = "vendor", vendorId = id })
end
end
@@ -670,6 +687,9 @@ function MTH_Map:SetEnabled(enabled)
if not self.enabled then
self:HideAllPins()
else
if not self:EnsureInitialized() then
return
end
self:UpdateWorldMap()
self:UpdateMinimap()
end
@@ -680,6 +700,9 @@ function MTH_Map:SetWorldEnabled(enabled)
if not self.showWorld then
self:HideWorldPins()
else
if not self:EnsureInitialized() then
return
end
self:UpdateWorldMap()
end
end
@@ -689,6 +712,9 @@ function MTH_Map:SetMinimapEnabled(enabled)
if not self.showMinimap then
self:HideMinimapPins()
else
if not self:EnsureInitialized() then
return
end
self:UpdateMinimap()
end
end
@@ -950,22 +976,21 @@ function MTH_Map:UpdateMinimap()
end
local mapId = self:GetCurrentMapID()
if not mapId or not self.nodesByZone[mapId] then
local nodes = mapId and self.nodesByZone[mapId] or nil
if not mapId or not nodes then
self.lastMiniReason = "no-mapid-or-nodes"
self._lastMiniState = nil
self:HideMinimapPins()
return
end
local minimapSizes = MTH_DS_MinimapSizes or (pfDB and pfDB["minimap"])
local mapSize = minimapSizes and minimapSizes[mapId]
if not mapSize then
self.lastMiniReason = "missing-minimap-size"
if table.getn(nodes) <= 0 then
self.lastMiniReason = "no-nodes-in-zone"
self._lastMiniState = nil
self:HideMinimapPins()
return
end
local now = GetTime() or 0
local xPlayer, yPlayer = GetPlayerMapPosition("player")
if not xPlayer or not yPlayer or (xPlayer == 0 and yPlayer == 0) then
self.lastMiniReason = "player-position-unavailable"
@@ -978,10 +1003,33 @@ function MTH_Map:UpdateMinimap()
yPlayer = yPlayer * 100
local zoom = Minimap:GetZoom()
local miniState = self._lastMiniState
if miniState
and miniState.mapId == mapId
and miniState.zoom == zoom
and miniState.nodeRevision == (self.nodeRevision or 0)
then
local dx = math.abs((xPlayer or 0) - (miniState.xPlayer or 0))
local dy = math.abs((yPlayer or 0) - (miniState.yPlayer or 0))
if dx < 0.05 and dy < 0.05 and now < (miniState.nextForceAt or 0) then
self.lastMiniReason = self.verboseMiniReasons and "throttled-small-move" or "throttle"
return
end
end
local minimapSizes = MTH_DS_MinimapSizes or (pfDB and pfDB["minimap"])
local mapSize = minimapSizes and minimapSizes[mapId]
if not mapSize then
self.lastMiniReason = self.verboseMiniReasons and "missing-minimap-size" or "missing-size"
self._lastMiniState = nil
self:HideMinimapPins()
return
end
local indoor = MTH_Map_MinimapIndoorState()
local zoomSet = MTH_MAP_MINIMAP_ZOOM[indoor]
if not zoomSet then
self.lastMiniReason = "missing-zoomset"
self.lastMiniReason = self.verboseMiniReasons and "missing-zoomset" or "missing-zoomset"
self._lastMiniState = nil
self:HideMinimapPins()
return
@@ -989,7 +1037,7 @@ function MTH_Map:UpdateMinimap()
local mapZoom = zoomSet[zoom]
if not mapZoom then
self.lastMiniReason = "missing-mapzoom"
self.lastMiniReason = self.verboseMiniReasons and "missing-mapzoom" or "missing-zoom"
self._lastMiniState = nil
self:HideMinimapPins()
return
@@ -998,33 +1046,16 @@ function MTH_Map:UpdateMinimap()
local mapWidth = mapSize[1]
local mapHeight = mapSize[2]
if not mapWidth or not mapHeight or mapWidth == 0 or mapHeight == 0 then
self.lastMiniReason = "invalid-map-size"
self.lastMiniReason = self.verboseMiniReasons and "invalid-map-size" or "invalid-size"
self._lastMiniState = nil
self:HideMinimapPins()
return
end
local miniState = self._lastMiniState
if miniState
and miniState.mapId == mapId
and miniState.zoom == zoom
and miniState.indoor == indoor
and miniState.nodeRevision == (self.nodeRevision or 0)
then
local dx = math.abs((xPlayer or 0) - (miniState.xPlayer or 0))
local dy = math.abs((yPlayer or 0) - (miniState.yPlayer or 0))
if dx < 0.05 and dy < 0.05 then
self.lastMiniReason = "throttled-small-move"
return
end
end
local xScale = mapZoom / mapWidth
local yScale = mapZoom / mapHeight
local xDraw = Minimap:GetWidth() / xScale / 100
local yDraw = Minimap:GetHeight() / yScale / 100
local nodes = self.nodesByZone[mapId]
local shown = 0
for i = 1, table.getn(nodes) do
@@ -1055,16 +1086,21 @@ function MTH_Map:UpdateMinimap()
if self.minimapPins[i] then self.minimapPins[i]:Hide() end
end
self._lastMiniState = {
mapId = mapId,
zoom = zoom,
indoor = indoor,
xPlayer = xPlayer,
yPlayer = yPlayer,
nodeRevision = self.nodeRevision or 0,
}
local lastState = self._lastMiniState or {}
lastState.mapId = mapId
lastState.zoom = zoom
lastState.indoor = indoor
lastState.xPlayer = xPlayer
lastState.yPlayer = yPlayer
lastState.nodeRevision = self.nodeRevision or 0
lastState.nextForceAt = now + (tonumber(self.minimapForceRefreshInterval) or 1.0)
self._lastMiniState = lastState
self.lastMiniReason = "ok(map=" .. tostring(mapId) .. ",shown=" .. tostring(shown) .. ")"
if self.verboseMiniReasons then
self.lastMiniReason = "ok(map=" .. tostring(mapId) .. ",shown=" .. tostring(shown) .. ")"
else
self.lastMiniReason = "ok"
end
end
function MTH_Map:RegisterDefaultProviders()
@@ -1087,12 +1123,13 @@ function MTH_Map:RegisterDefaultProviders()
for beastId, beast in pairs(MTH_DS_Beasts) do
local coords = beast and MTH_Map_GetCoordsForUnit(beastId, beast.coords)
if beast and coords and table.getn(coords) > 0 then
local displayName = (MTH and MTH.GetLocalizedBeastName and MTH:GetLocalizedBeastName(beastId, beast.name)) or beast.name or "Unknown"
local cr, cg, cb = MTH_Map_GetFamilyColor(beast.family)
for i = 1, table.getn(coords) do
local c = coords[i]
if c and c[1] and c[2] and c[3] then
local details = string.format("Family: %s\nLevel: %s\nAbilities: %s", beast.family or "?", beast.lvl or "?", beast.abilities or "None")
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", beast.name or "Unknown", beastId), details, cr, cg, cb, { kind = "beast", beastId = beastId })
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", displayName, beastId), details, cr, cg, cb, { kind = "beast", beastId = beastId })
end
end
end
@@ -1111,11 +1148,12 @@ function MTH_Map:RegisterDefaultProviders()
for vendorId, vendor in pairs(MTH_DS_Vendors) do
local coords = vendor and MTH_Map_GetCoordsForUnit(vendorId, vendor.coords)
if vendor and coords and table.getn(coords) > 0 then
local displayName = (MTH and MTH.GetLocalizedVendorName and MTH:GetLocalizedVendorName(vendorId, vendor.name)) or vendor.name or "Unknown"
for i = 1, table.getn(coords) do
local c = coords[i]
if c and c[1] and c[2] and c[3] then
local details = string.format("Faction: %s\nLevel: %s", vendor.fac or "?", vendor.lvl or "?")
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", vendor.name or "Unknown", vendorId), details, 0.20, 0.90, 1.00, { kind = "vendor", vendorId = vendorId })
MTH_Map_AddNode(nodes, c[3], c[1], c[2], string.format("%s (%d)", displayName, vendorId), details, 0.20, 0.90, 1.00, { kind = "vendor", vendorId = vendorId })
end
end
end
@@ -1136,15 +1174,19 @@ function MTH_Map:RegisterDefaultProviders()
for itemId, item in pairs(items) do
if item and item.drops then
local itemDefaultName = item.name or "Unknown"
local itemDisplayName = (MTH and MTH.GetLocalizedItemName)
and MTH:GetLocalizedItemName(itemId, itemDefaultName)
or itemDefaultName
for creatureId, chance in pairs(item.drops) do
local creature = MTH_DS_Beasts and MTH_DS_Beasts[creatureId]
local coords = MTH_Map_GetCoordsForUnit(creatureId, creature and creature.coords)
local creatureName = nil
if MTH_DS_CreatureCoords and MTH_DS_CreatureCoords[creatureId] and table.getn(MTH_DS_CreatureCoords[creatureId]) > 0 then
creatureName = (MTH_DS_CreatureNames and MTH_DS_CreatureNames[creatureId]) or (creature and creature.name)
creatureName = (MTH_DS_CreatureNames and MTH_DS_CreatureNames[creatureId]) or ((MTH and MTH.GetLocalizedBeastName and creature and MTH:GetLocalizedBeastName(creatureId, creature.name)) or (creature and creature.name))
elseif creature and creature.coords and table.getn(creature.coords) > 0 then
creatureName = creature.name
creatureName = (MTH and MTH.GetLocalizedBeastName and MTH:GetLocalizedBeastName(creatureId, creature.name)) or creature.name
end
if coords and table.getn(coords) > 0 then
@@ -1155,7 +1197,7 @@ function MTH_Map:RegisterDefaultProviders()
local chanceText = pct and string.format("%.2f%%", pct) or tostring(chance or "?")
local details = string.format(
"Item: %s (%d)\nDrop Creature: %s (%d)\nDrop Chance: %s",
item.name or "Unknown",
itemDisplayName or "Unknown",
tonumber(itemId) or 0,
creatureName or "Unknown",
tonumber(creatureId) or 0,
@@ -1166,7 +1208,7 @@ function MTH_Map:RegisterDefaultProviders()
c[3],
c[1],
c[2],
string.format("%s ← %s", item.name or "Unknown Item", creatureName or "Unknown Creature"),
string.format("%s ← %s", itemDisplayName or "Unknown Item", creatureName or "Unknown Creature"),
details,
1.00,
0.35,
@@ -1194,12 +1236,15 @@ function MTH_Map:RegisterDefaultProviders()
end
function MTH_Map:Init()
if self.controller then
return
end
self:BuildZoneLookup()
self:RegisterDefaultProviders()
self:RebuildNodes()
self.nodesByZone = self.nodesByZone or {}
if not self.controller then
self.controller = CreateFrame("Frame", "MTHMapController", UIParent)
self.controller = CreateFrame("Frame", "MTH_MapController", UIParent)
self.controller:RegisterEvent("PLAYER_ENTERING_WORLD")
self.controller:RegisterEvent("ZONE_CHANGED")
self.controller:RegisterEvent("ZONE_CHANGED_NEW_AREA")
@@ -1222,7 +1267,6 @@ function MTH_Map:Init()
if not frame then return end
local now = GetTime() or 0
if (frame._mthTick or 0) > now then return end
frame._mthTick = now + 0.12
if MTH_Map.pendingZoneOpenId and MTH_Map.pendingZoneOpenAttempts and MTH_Map.pendingZoneOpenAttempts > 0 then
if (MTH_Map.pendingZoneOpenNextAttemptAt or 0) <= now then
@@ -1251,12 +1295,28 @@ function MTH_Map:Init()
end
if MTH_Map.enabled and MTH_Map.showMinimap then
MTH_Map:UpdateMinimap()
local mapId = MTH_Map:GetCurrentMapID()
if not mapId and (frame._mthMapRecoverAt or 0) <= now then
frame._mthMapRecoverAt = now + 2.0
if SetMapToCurrentZone and (not WorldMapFrame or not WorldMapFrame:IsShown()) then
SetMapToCurrentZone()
mapId = MTH_Map:GetCurrentMapID()
end
end
local nodes = mapId and MTH_Map.nodesByZone and MTH_Map.nodesByZone[mapId] or nil
local hasNodes = nodes and table.getn(nodes) > 0
frame._mthTick = now + (hasNodes and (tonumber(MTH_Map.minimapTickActive) or 0.20) or (tonumber(MTH_Map.minimapTickIdle) or 0.75))
if hasNodes then
MTH_Map:UpdateMinimap()
elseif (frame._mthNoNodeTick or 0) <= now then
frame._mthNoNodeTick = now + 1.0
MTH_Map:UpdateMinimap()
end
else
frame._mthTick = now + (tonumber(MTH_Map.minimapTickIdle) or 0.75)
end
end)
end
MTH_Map_Log("Map system initialized")
end
MTH_Map:Init()
+40 -26
View File
@@ -1,11 +1,26 @@
------------------------------------------------------
-- MetaHunt Minimap Button
--
-- NOTE: The namespace table is MTH_MinimapButton (a plain Lua table).
-- The actual UI frame is named "MTH_MinimapBtn" to avoid a global
-- collision — CreateFrame("...", "MTH_MinimapButton", ...) would
-- OVERWRITE the namespace table with the frame object, orphaning
-- all methods and .frame/.icon references. pfUI iterates Minimap
-- children by name and calls _G[name]:GetHeight(); if the global is
-- a plain {} table instead of a frame, that call crashes.
------------------------------------------------------
if not MTH_MinimapButton then
MTH_MinimapButton = {}
end
local function MTH_MB_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
local function MTH_MB_GetStore()
if not MTH_CharSavedVariables then
MTH_CharSavedVariables = {}
@@ -77,7 +92,9 @@ function MTH_MinimapButton:Initialize()
return
end
local button = CreateFrame("Button", "MTH_MinimapButtonFrame", Minimap)
-- Frame name is MTH_MinimapBtn (NOT "MTH_MinimapButton") to avoid
-- overwriting the namespace table in _G.
local button = CreateFrame("Button", "MTH_MinimapBtn", Minimap)
if not button then
return
end
@@ -107,14 +124,13 @@ function MTH_MinimapButton:Initialize()
highlight:SetHeight(31)
highlight:SetPoint("CENTER", button, "CENTER", 0, 0)
button:SetScript("OnEnter", function(self)
self = self or this
if not self then return end
GameTooltip:SetOwner(self, "ANCHOR_LEFT")
GameTooltip:SetText("MetaHunt", 1, 0.82, 0)
GameTooltip:AddLine("Left-Click: Open Hunter Book", 1, 1, 1)
GameTooltip:AddLine("Right-Click: Open MetaHunt Options", 1, 1, 1)
GameTooltip:AddLine("Drag: Move button", 0.8, 0.8, 0.8)
button:SetScript("OnEnter", function()
if not this then return end
GameTooltip:SetOwner(this, "ANCHOR_LEFT")
GameTooltip:SetText(MTH_MB_L("MINIMAP_TITLE", "MetaHunt"), 1, 0.82, 0)
GameTooltip:AddLine(MTH_MB_L("MINIMAP_HINT_LEFT_CLICK", "Left-Click: Open Hunter Book"), 1, 1, 1)
GameTooltip:AddLine(MTH_MB_L("MINIMAP_HINT_RIGHT_CLICK", "Right-Click: Open MetaHunt Options"), 1, 1, 1)
GameTooltip:AddLine(MTH_MB_L("MINIMAP_HINT_DRAG", "Drag: Move button"), 0.8, 0.8, 0.8)
GameTooltip:Show()
end)
@@ -122,25 +138,23 @@ function MTH_MinimapButton:Initialize()
GameTooltip:Hide()
end)
button:SetScript("OnDragStart", function(self)
self = self or this
if not self then return end
self.dragging = 1
self:SetScript("OnUpdate", function()
button:SetScript("OnDragStart", function()
if not this then return end
this.dragging = 1
this:SetScript("OnUpdate", function()
MTH_MB_UpdateDragPosition()
end)
end)
button:SetScript("OnDragStop", function(self)
self = self or this
if not self then return end
self.dragging = nil
self:SetScript("OnUpdate", nil)
button:SetScript("OnDragStop", function()
if not this then return end
this.dragging = nil
this:SetScript("OnUpdate", nil)
MTH_MB_UpdateDragPosition()
end)
button:SetScript("OnClick", function(_, mouseButton)
mouseButton = mouseButton or arg1
button:SetScript("OnClick", function()
local mouseButton = arg1
if mouseButton == "RightButton" then
if type(MTH_OpenOptions) == "function" then
MTH_OpenOptions("General")
@@ -160,12 +174,12 @@ function MTH_MinimapButton:Initialize()
MTH_MB_UpdatePosition()
end
local loader = CreateFrame("Frame", "MTH_MinimapButtonLoader")
local loader = CreateFrame("Frame", "MTH_MinimapLoader")
loader:RegisterEvent("ADDON_LOADED")
loader:SetScript("OnEvent", function(_, eventName, addonName)
eventName = eventName or event
addonName = addonName or arg1
if eventName == "ADDON_LOADED" and addonName == "MetaHunt" then
loader:SetScript("OnEvent", function()
if event == "ADDON_LOADED" and arg1 == "MetaHunt" then
MTH_MinimapButton:Initialize()
this:UnregisterAllEvents()
this:SetScript("OnEvent", nil)
end
end)
+59 -46
View File
@@ -44,6 +44,8 @@ local MTH_AB_STATE = {
},
}
local MTH_AB_TRANSIENT_STORE = {}
local function MTH_AB_SetCheckedNoClick(check, checked)
if not check then return end
MTH_AB_STATE.syncing = true
@@ -51,6 +53,14 @@ local function MTH_AB_SetCheckedNoClick(check, checked)
MTH_AB_STATE.syncing = false
end
local function MTH_AB_IsChecked(control)
if not control or type(control.GetChecked) ~= "function" then
return false
end
local checked = control:GetChecked()
return checked == 1 or checked == true
end
local function MTH_AB_GetEngine()
return MTH_AutoBuyEngine
end
@@ -60,8 +70,7 @@ local function MTH_AB_GetStore()
if engine and engine.EnsureDefaults then
return engine:EnsureDefaults()
end
MTH_AutoBuy_Saved = MTH_AutoBuy_Saved or {}
return MTH_AutoBuy_Saved
return MTH_AB_TRANSIENT_STORE
end
local function MTH_AB_NormalizeRule(rule)
@@ -91,10 +100,10 @@ end
local function MTH_AB_EnsureConfig()
local store = MTH_AB_GetStore()
if store.enabled == nil then store.enabled = true end
if store.enabled == nil then store.enabled = false end
if type(store.projectiles) ~= "table" then store.projectiles = {} end
if type(store.petFood) ~= "table" then store.petFood = {} end
if store.projectiles.enabled == nil then store.projectiles.enabled = true end
if store.projectiles.enabled == nil then store.projectiles.enabled = false end
if store.petFood.enabled == nil then store.petFood.enabled = false end
if store.petFood.stacks == nil then store.petFood.stacks = 1 end
if store.petFood.scope == nil then store.petFood.scope = "current" end
@@ -346,6 +355,15 @@ local function MTH_AB_GetBuyableItems(subtype)
if type(MTH_AutoBuy_GetProjectileItems) == "function" then
local result = MTH_AutoBuy_GetProjectileItems(subtype)
if type(result) == "table" then
for i = 1, table.getn(result) do
local row = result[i]
if type(row) == "table" then
local itemId = tonumber(row.itemId)
if itemId and MTH and MTH.GetLocalizedItemName then
row.name = MTH:GetLocalizedItemName(itemId, row.name)
end
end
end
return result
end
end
@@ -356,9 +374,13 @@ local function MTH_AB_GetBuyableItems(subtype)
for itemId, row in pairs(source) do
if type(row) == "table" and string.lower(tostring(row.subtype or "")) == wanted and type(row.vendors) == "table" then
for _ in pairs(row.vendors) do
local defaultName = tostring(row.name or ("Item " .. tostring(itemId)))
local localizedName = (MTH and MTH.GetLocalizedItemName)
and MTH:GetLocalizedItemName(itemId, defaultName)
or defaultName
table.insert(result, {
itemId = tonumber(itemId) or itemId,
name = tostring(row.name or ("Item " .. tostring(itemId))),
name = tostring(localizedName),
level = tonumber(row.level) or 0,
reqlevel = tonumber(row.reqlevel) or 0,
})
@@ -496,7 +518,7 @@ local function MTH_AB_RefreshOptionsUI()
local store = MTH_AB_EnsureConfig()
local moduleEnabled = true
if MTH and MTH.IsModuleEnabled then
moduleEnabled = MTH:IsModuleEnabled("autobuy", true) and true or false
moduleEnabled = MTH:IsModuleEnabled("autobuy", false) and true or false
end
MTH_AB_SetCheckedNoClick(MTH_AB_STATE.controls.moduleEnabled, moduleEnabled)
@@ -635,28 +657,25 @@ local function MTH_AB_CreateRow(container, subtype, index, xBase, yOffset)
row.suffix:SetText("Stacks")
if row.check then
row.check:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
row.check:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
local store = MTH_AB_EnsureConfig()
MTH_AB_SetRuleEnabled(store, subtype, index, self:GetChecked() and true or false)
MTH_AB_SetRuleEnabled(store, subtype, index, MTH_AB_IsChecked(this))
MTH_AB_RefreshOptionsUI()
end)
end
row.qty:SetScript("OnEnterPressed", function(self)
self = self or this
if not self then return end
row.qty:SetScript("OnEnterPressed", function()
if not this then return end
local store = MTH_AB_EnsureConfig()
MTH_AB_SetRuleStacks(store, subtype, index, self:GetText())
MTH_AB_SetRuleStacks(store, subtype, index, this:GetText())
MTH_AB_RefreshOptionsUI()
self:ClearFocus()
this:ClearFocus()
end)
row.qty:SetScript("OnEditFocusLost", function(self)
self = self or this
if not self then return end
row.qty:SetScript("OnEditFocusLost", function()
if not this then return end
local store = MTH_AB_EnsureConfig()
MTH_AB_SetRuleStacks(store, subtype, index, self:GetText())
MTH_AB_SetRuleStacks(store, subtype, index, this:GetText())
MTH_AB_RefreshOptionsUI()
end)
@@ -693,11 +712,10 @@ local function MTH_AB_BuildUI(container)
controls.moduleEnabled = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoBuyModuleEnabled", "Enable Auto Buy module", -30)
if controls.moduleEnabled then
controls.moduleEnabled:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
controls.moduleEnabled:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
if MTH and MTH.SetModuleEnabled then
local ok, err = MTH:SetModuleEnabled("autobuy", self:GetChecked() and true or false)
local ok, err = MTH:SetModuleEnabled("autobuy", MTH_AB_IsChecked(this))
if not ok and MTH and MTH.Print then
MTH:Print("Failed to change Auto Buy state: " .. tostring(err), "error")
end
@@ -708,11 +726,10 @@ local function MTH_AB_BuildUI(container)
controls.projectilesEnabled = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoBuyProjectilesEnabled", "Enable for Projectiles", -74)
if controls.projectilesEnabled then
controls.projectilesEnabled:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
controls.projectilesEnabled:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
local store = MTH_AB_EnsureConfig()
store.projectiles.enabled = self:GetChecked() and true or false
store.projectiles.enabled = MTH_AB_IsChecked(this)
MTH_AB_RefreshOptionsUI()
end)
end
@@ -747,11 +764,10 @@ local function MTH_AB_BuildUI(container)
controls.petFoodEnabled = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoBuyPetFoodEnabled", "Enable for Pet Food", -322, MTH_AB_LAYOUT.LEFT_SECTION_X)
if controls.petFoodEnabled then
controls.petFoodEnabled:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
controls.petFoodEnabled:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
local store = MTH_AB_EnsureConfig()
store.petFood.enabled = self:GetChecked() and true or false
store.petFood.enabled = MTH_AB_IsChecked(this)
MTH_AB_RefreshOptionsUI()
end)
end
@@ -769,19 +785,17 @@ local function MTH_AB_BuildUI(container)
controls.petFoodQty:SetHeight(20)
controls.petFoodQty:SetNumeric(true)
controls.petFoodQty:SetAutoFocus(false)
controls.petFoodQty:SetScript("OnEnterPressed", function(self)
self = self or this
if not self then return end
controls.petFoodQty:SetScript("OnEnterPressed", function()
if not this then return end
local store = MTH_AB_EnsureConfig()
MTH_AB_SetPetFoodStacks(store, self:GetText())
MTH_AB_SetPetFoodStacks(store, this:GetText())
MTH_AB_RefreshOptionsUI()
self:ClearFocus()
this:ClearFocus()
end)
controls.petFoodQty:SetScript("OnEditFocusLost", function(self)
self = self or this
if not self then return end
controls.petFoodQty:SetScript("OnEditFocusLost", function()
if not this then return end
local store = MTH_AB_EnsureConfig()
MTH_AB_SetPetFoodStacks(store, self:GetText())
MTH_AB_SetPetFoodStacks(store, this:GetText())
MTH_AB_RefreshOptionsUI()
end)
end
@@ -794,9 +808,8 @@ local function MTH_AB_BuildUI(container)
controls.petFoodScopeCurrent = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoBuyPetFoodScopeCurrent", "Buy only for my current pet", -376, MTH_AB_LAYOUT.LEFT_SECTION_X + 28)
if controls.petFoodScopeCurrent then
controls.petFoodScopeCurrent:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
controls.petFoodScopeCurrent:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
local store = MTH_AB_EnsureConfig()
store.petFood.scope = "current"
MTH_AB_RefreshOptionsUI()
@@ -805,9 +818,8 @@ local function MTH_AB_BuildUI(container)
controls.petFoodScopeAll = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoBuyPetFoodScopeAll", "Buy for all my pets", -402, MTH_AB_LAYOUT.LEFT_SECTION_X + 28)
if controls.petFoodScopeAll then
controls.petFoodScopeAll:SetScript("OnClick", function(self)
self = self or this
if not self or MTH_AB_STATE.syncing then return end
controls.petFoodScopeAll:SetScript("OnClick", function()
if not this or MTH_AB_STATE.syncing then return end
local store = MTH_AB_EnsureConfig()
store.petFood.scope = "all"
MTH_AB_RefreshOptionsUI()
@@ -829,6 +841,7 @@ local function MTH_AB_BuildUI(container)
text:SetText("")
controls.petFoodPetLines[i] = { icon = icon, text = text }
end
end
function MTH_SetupAutoBuyOptions()
+228
View File
@@ -0,0 +1,228 @@
local MTH_AQ_READY = MTH_OptionsRequire and MTH_OptionsRequire("options-autoquest", {
"MTH_GetFrame",
"MTH_ClearContainer",
"MTH_CreateCheckbox",
})
local function MTH_AQ_IsChecked(control)
if not control or type(control.GetChecked) ~= "function" then
return false
end
local checked = control:GetChecked()
return checked == 1 or checked == true
end
local function MTH_AQ_EnsureStore()
if type(MTH_CharSavedVariables) ~= "table" then
MTH_CharSavedVariables = {}
end
if type(MTH_CharSavedVariables.autoquest) ~= "table" then
MTH_CharSavedVariables.autoquest = {}
end
local store = MTH_CharSavedVariables.autoquest
if type(MTH_CharSavedVariables.questautomation) == "table" then
local legacy = MTH_CharSavedVariables.questautomation
if store.scorpokDrazial == nil and legacy.scorpokDrazial ~= nil then
store.scorpokDrazial = legacy.scorpokDrazial and true or false
end
if store.scorpokTooltip == nil and legacy.scorpokTooltip ~= nil then
store.scorpokTooltip = legacy.scorpokTooltip and true or false
end
end
if store.scorpokDrazial == nil then
store.scorpokDrazial = false
end
if store.arrowsForSissies == nil then
store.arrowsForSissies = false
end
return store
end
function MTH_SetupAutoQuestOptions()
if not MTH_AQ_READY then return end
local container = MTH_GetFrame("MetaHuntOptionsAutoQuest")
if not container then return end
MTH_ClearContainer(container)
local title = container:CreateFontString("MetaHuntOptionsAutoQuestTitle", "ARTWORK", "GameFontHighlight")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -10)
title:SetText("Auto Quest")
local body = container:CreateFontString("MetaHuntOptionsAutoQuestBody", "ARTWORK", "GameFontNormalSmall")
body:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -30)
body:SetWidth(560)
body:SetJustifyH("LEFT")
body:SetJustifyV("TOP")
body:SetTextColor(0.45, 0.75, 1)
body:SetText("Automation for specific quest interactions.")
local moduleEnabled = true
if MTH and MTH.GetModule then
local module = MTH:GetModule("autoquest")
if type(module) == "table" and module.enabled ~= nil then
moduleEnabled = module.enabled and true or false
elseif MTH and MTH.IsModuleEnabled then
moduleEnabled = MTH:IsModuleEnabled("autoquest", false) and true or false
end
elseif MTH and MTH.IsModuleEnabled then
moduleEnabled = MTH:IsModuleEnabled("autoquest", false) and true or false
end
local moduleToggle = MTH_CreateCheckbox(container, "MetaHuntOptionsAutoQuestModuleToggle", "Enable Auto Quest module", -70, 20)
if moduleToggle then
moduleToggle:SetChecked(moduleEnabled and true or false)
moduleToggle:SetScript("OnClick", function()
if not this then return end
local enabled = MTH_AQ_IsChecked(this)
if MTH and MTH.SetModuleEnabled then
local ok, err = MTH:SetModuleEnabled("autoquest", enabled)
if not ok and MTH and MTH.Print then
MTH:Print("Failed to change Auto Quest module state: " .. tostring(err), "error")
end
end
local module = MTH and MTH.GetModule and MTH:GetModule("autoquest") or nil
local actual = (type(module) == "table" and module.enabled ~= nil) and (module.enabled and true or false) or enabled
this:SetChecked(actual and true or false)
end)
end
local store = MTH_AQ_EnsureStore()
if store.scorpokTooltip == nil then
store.scorpokTooltip = false
end
local sectionWidth = (container:GetWidth() or 600) - 40
if sectionWidth < 360 then
sectionWidth = 360
end
local function ensureSection(name, sectionTitle, yOffset, height)
local section = getglobal(name)
if not section then
section = CreateFrame("Frame", name, container, "OptionFrameBoxTemplate")
end
if not section then
return nil
end
section:SetParent(container)
section:ClearAllPoints()
section:SetPoint("TOPLEFT", container, "TOPLEFT", 20, yOffset)
section:SetWidth(sectionWidth)
section:SetHeight(height)
section:Show()
local titleFrame = getglobal(name .. "Title")
if titleFrame then
titleFrame:SetText(sectionTitle)
end
return section
end
local function ensureCheckbox(section, name, label, yOffset, checked)
local check = getglobal(name)
if not check then
check = CreateFrame("CheckButton", name, section, "OptionsCheckButtonTemplate")
end
if not check then
return nil
end
check:SetParent(section)
check:ClearAllPoints()
check:SetPoint("TOPLEFT", section, "TOPLEFT", 12, yOffset)
check:SetChecked(checked and true or false)
check:Show()
local text = getglobal(name .. "Text")
if text then
text:SetText(label)
end
return check
end
local scorpokSection = ensureSection("MetaHuntAutoQuestScorpokBox", "Salt of the Scorpok", -130, 112)
if scorpokSection then
local scorpokToggle = ensureCheckbox(
scorpokSection,
"MetaHuntOptionsAutoQuestScorpokToggle",
"Enable SHIFT-rightclick for Bloodmage Drazial",
-10,
store.scorpokDrazial and true or false
)
if scorpokToggle then
scorpokToggle:SetScript("OnClick", function()
local enabled = MTH_AQ_IsChecked(this)
store.scorpokDrazial = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.scorpokDrazial = store.scorpokDrazial and true or false
end
end
local module = MTH and MTH.GetModule and MTH:GetModule("autoquest")
if module and module.SetScorpokDrazialEnabled then
module:SetScorpokDrazialEnabled(enabled)
end
end)
end
local tooltipToggle = ensureCheckbox(
scorpokSection,
"MetaHuntOptionsAutoQuestScorpokTooltipToggle",
"Enhance Tooltip on Drazial and related beasts (requires Tooltips module enabled)",
-42,
store.scorpokTooltip and true or false
)
if tooltipToggle then
tooltipToggle:SetScript("OnClick", function()
local enabled = MTH_AQ_IsChecked(this)
store.scorpokTooltip = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.scorpokTooltip = store.scorpokTooltip and true or false
end
end
end)
end
end
local sissiesSection = ensureSection("MetaHuntAutoQuestSissiesBox", "Arrows Are For Sissies", -255, 108)
if sissiesSection then
local sissiesNote = getglobal("MetaHuntOptionsAutoQuestSissiesNote")
if not sissiesNote then
sissiesNote = sissiesSection:CreateFontString("MetaHuntOptionsAutoQuestSissiesNote", "ARTWORK", "GameFontNormalSmall")
end
sissiesNote:ClearAllPoints()
sissiesNote:SetPoint("TOPLEFT", sissiesSection, "TOPLEFT", 14, -10)
sissiesNote:SetWidth(sectionWidth - 28)
sissiesNote:SetJustifyH("LEFT")
sissiesNote:SetTextColor(0.45, 0.75, 1)
sissiesNote:SetText("Note that you should not activate this if you are using LazyPig")
sissiesNote:Show()
local sissiesToggle = ensureCheckbox(
sissiesSection,
"MetaHuntOptionsAutoQuestSissiesToggle",
"Enable SHIFT-rightclick for Artilleryman Sheldonore",
-40,
store.arrowsForSissies and true or false
)
if sissiesToggle then
sissiesToggle:SetScript("OnClick", function()
local enabled = MTH_AQ_IsChecked(this)
store.arrowsForSissies = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.arrowsForSissies = store.arrowsForSissies and true or false
end
end
local module = MTH and MTH.GetModule and MTH:GetModule("autoquest")
if module and module.SetArrowsForSissiesEnabled then
module:SetArrowsForSissiesEnabled(enabled)
end
end)
end
end
end
+121 -51
View File
@@ -98,11 +98,20 @@ local function MTH_CHRON_CopyTable(source)
end
local function MTH_CHRON_GetProfile()
if not (MTH and MTH.GetModuleSavedVariables) then
if not (MTH and MTH.GetModuleCharSavedVariables) then
return MTH_CHRON_CopyTable(MTH_CHRON_DEFAULTS)
end
local store = MTH:GetModuleSavedVariables("chronometer")
local store = MTH:GetModuleCharSavedVariables("chronometer")
if type(store) ~= "table" then
return MTH_CHRON_CopyTable(MTH_CHRON_DEFAULTS)
end
if type(store.profile) ~= "table" and MTH.GetModuleSavedVariables then
local accountStore = MTH:GetModuleSavedVariables("chronometer")
if type(accountStore) == "table" and type(accountStore.profile) == "table" then
store.profile = MTH_CHRON_CopyTable(accountStore.profile)
end
end
if type(store.profile) ~= "table" then
store.profile = {}
end
@@ -298,6 +307,14 @@ local function MTH_CHRON_MakeSmall(parent, name, text, x, y)
return label
end
local function MTH_CHRON_IsChecked(control)
if not control or type(control.GetChecked) ~= "function" then
return false
end
local checked = control:GetChecked()
return checked == 1 or checked == true
end
local function MTH_CHRON_MakeInput(parent, name, x, y, width, height, value, onAccept)
local edit = CreateFrame("EditBox", name, parent, "InputBoxTemplate")
@@ -309,13 +326,12 @@ local function MTH_CHRON_MakeInput(parent, name, x, y, width, height, value, onA
edit:SetHeight(height or 20)
edit:SetAutoFocus(false)
edit:SetText(tostring(value or ""))
edit:SetScript("OnEnterPressed", function(self)
self = self or this
if not self then return end
edit:SetScript("OnEnterPressed", function()
if not this then return end
if type(onAccept) == "function" then
onAccept(self:GetText() or "")
onAccept(this:GetText() or "")
end
self:ClearFocus()
this:ClearFocus()
end)
return edit
end
@@ -336,41 +352,93 @@ local function MTH_CHRON_NormalizeSection(tabKey)
return "general"
end
local function MTH_CHRON_RenderTimerSection(container, profile, title, items, bucket)
local timerX = 20
local timerY = -84
MTH_CHRON_MakeTitle(container, "MetaHuntOptionsChronometerTimersHeader", title, timerX, timerY)
local function MTH_CHRON_RenderTimerSection(container, profile, title, items, bucket, opts)
opts = opts or {}
local timerX = opts.x or 20
local timerY = opts.y or -84
local prefix = tostring(opts.prefix or "Main")
MTH_CHRON_MakeTitle(container, "MetaHuntOptionsChronometerTimersHeader" .. prefix, title, timerX, timerY)
timerY = timerY - 24
if table.getn(items) == 0 then
MTH_CHRON_MakeSmall(container, "MetaHuntOptionsChronometerSectionEmpty", "(none)", timerX + 8, timerY)
MTH_CHRON_MakeSmall(container, "MetaHuntOptionsChronometerSectionEmpty" .. prefix, "(none)", timerX + 8, timerY)
return
end
for i = 1, table.getn(items) do
if timerY < -560 then
MTH_CHRON_MakeSmall(container, "MetaHuntOptionsChronometerOverflow", "...more", timerX + 8, timerY)
MTH_CHRON_MakeSmall(container, "MetaHuntOptionsChronometerOverflow" .. prefix, "...more", timerX + 8, timerY)
break
end
local timerName = items[i]
local controlName = "MetaHuntOptionsChronometerTimer" .. tostring(bucket) .. tostring(i)
local check = MTH_CreateCheckbox(container, controlName, tostring(timerName), timerY, timerX)
local row = items[i]
local timerName = row
local label = row
if type(row) == "table" then
timerName = row.key or row.timer or row.name
label = row.label or row.name or row.key
end
timerName = tostring(timerName or "")
label = tostring(label or timerName)
local controlName = "MetaHuntOptionsChronometerTimer" .. prefix .. tostring(bucket) .. tostring(i)
local check = MTH_CreateCheckbox(container, controlName, label, timerY, timerX)
if check then
check:SetChecked(profile.disabledSpells[bucket][timerName] == nil and true or false)
check:SetScript("OnClick", function(self)
self = self or this
if not self then return end
if self:GetChecked() then
check:SetScript("OnClick", function()
if not this then return end
local currentlyDisabled = profile.disabledSpells[bucket][timerName] ~= nil
if currentlyDisabled then
profile.disabledSpells[bucket][timerName] = nil
this:SetChecked(true)
else
profile.disabledSpells[bucket][timerName] = {}
this:SetChecked(nil)
end
MTH_CHRON_ApplyLiveProfile(profile)
end)
end
timerY = timerY - 20
end
end
local MTH_CHRON_HUNTER_TRINKETS = {
{ labelToken = "Devilsaur Eye", timerToken = "Devilsaur Fury" },
{ labelToken = "Zandalarian Hero Medallion", timerToken = "Restless Strength" },
{ labelToken = "Earthstrike", timerToken = "Earthstrike" },
{ labelToken = "Badge of the Swarmguard", timerToken = "Badge of the Swarmguard" },
{ labelToken = "Jom Gabbar", timerToken = "Jom Gabbar" },
{ labelToken = "Kiss of the Spider", timerToken = "Kiss of the Spider" },
{ labelToken = "Slayer's Crest", timerToken = "Slayer's Crest" },
}
local function MTH_CHRON_LocalizeTimerToken(token)
if MTH and MTH.LocalizeSpell then
return tostring(MTH:LocalizeSpell(token) or token)
end
return tostring(token)
end
local function MTH_CHRON_BuildHunterTrinketItems(classEvents)
local eventSet = {}
for i = 1, table.getn(classEvents or {}) do
eventSet[tostring(classEvents[i])] = true
end
local result = {}
for i = 1, table.getn(MTH_CHRON_HUNTER_TRINKETS) do
local def = MTH_CHRON_HUNTER_TRINKETS[i]
local key = MTH_CHRON_LocalizeTimerToken(def.timerToken)
if eventSet[key] then
table.insert(result, {
key = key,
label = MTH_CHRON_LocalizeTimerToken(def.labelToken),
})
end
end
return result
end
function MTH_RefreshChronometerOptions(tabKey)
if not MTH_CHRON_IsReady() then return end
MTH_SetupChronometerOptions(tabKey)
@@ -400,10 +468,9 @@ function MTH_SetupChronometerOptions(tabKey)
if moduleCheck then
local module = MTH and MTH:GetModule("chronometer")
moduleCheck:SetChecked(module and module.enabled and true or false)
moduleCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local enabled = self:GetChecked() and true or false
moduleCheck:SetScript("OnClick", function()
if not this then return end
local enabled = MTH_CHRON_IsChecked(this)
if MTH and MTH.SetModuleEnabled then
MTH:SetModuleEnabled("chronometer", enabled)
end
@@ -425,40 +492,36 @@ function MTH_SetupChronometerOptions(tabKey)
local killCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerFadeOnKill", "Fade on kill", -154)
if killCheck then
killCheck:SetChecked(profile.fadeonkill and true or false)
killCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.fadeonkill = self:GetChecked() and true or false
killCheck:SetScript("OnClick", function()
if not this then return end
profile.fadeonkill = MTH_CHRON_IsChecked(this)
end)
end
local fadeCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerFadeOnFade", "Fade on aura fade", -179)
if fadeCheck then
fadeCheck:SetChecked(profile.fadeonfade and true or false)
fadeCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.fadeonfade = self:GetChecked() and true or false
fadeCheck:SetScript("OnClick", function()
if not this then return end
profile.fadeonfade = MTH_CHRON_IsChecked(this)
end)
end
local selfCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerSelfBars", "Show self bars", -204)
if selfCheck then
selfCheck:SetChecked(profile.selfbars and true or false)
selfCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.selfbars = self:GetChecked() and true or false
selfCheck:SetScript("OnClick", function()
if not this then return end
profile.selfbars = MTH_CHRON_IsChecked(this)
end)
end
local onlySelfCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerOnlySelf", "Only self target", -229)
if onlySelfCheck then
onlySelfCheck:SetChecked(profile.onlyself and true or false)
onlySelfCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.onlyself = self:GetChecked() and true or false
onlySelfCheck:SetScript("OnClick", function()
if not this then return end
profile.onlyself = MTH_CHRON_IsChecked(this)
end)
end
elseif section == "bar" then
@@ -540,10 +603,9 @@ function MTH_SetupChronometerOptions(tabKey)
local growCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerGrowUp", "Grow bars upward", -438)
if growCheck then
growCheck:SetChecked(profile.growup and true or false)
growCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.growup = self:GetChecked() and true or false
growCheck:SetScript("OnClick", function()
if not this then return end
profile.growup = MTH_CHRON_IsChecked(this)
MTH_CHRON_ApplyLiveProfile(profile)
end)
end
@@ -551,10 +613,9 @@ function MTH_SetupChronometerOptions(tabKey)
local reverseCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsChronometerReverse", "Reverse bars", -463)
if reverseCheck then
reverseCheck:SetChecked(profile.reverse and true or false)
reverseCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
profile.reverse = self:GetChecked() and true or false
reverseCheck:SetScript("OnClick", function()
if not this then return end
profile.reverse = MTH_CHRON_IsChecked(this)
MTH_CHRON_ApplyLiveProfile(profile)
end)
end
@@ -582,11 +643,20 @@ function MTH_SetupChronometerOptions(tabKey)
else
local classSpells, classEvents, racial = MTH_CHRON_BuildTimerLists()
if section == "classspells" then
MTH_CHRON_RenderTimerSection(container, profile, "Hunter Spells", classSpells, class)
MTH_CHRON_RenderTimerSection(container, profile, "Hunter Spells", classSpells, class, {
x = 20,
y = -84,
prefix = "ClassSpells",
})
MTH_CHRON_RenderTimerSection(container, profile, "Hunter Trinkets", MTH_CHRON_BuildHunterTrinketItems(classEvents), class, {
x = 300,
y = -84,
prefix = "ClassTrinkets",
})
elseif section == "classevents" then
MTH_CHRON_RenderTimerSection(container, profile, "Hunter Events", classEvents, class)
MTH_CHRON_RenderTimerSection(container, profile, "Hunter Events", classEvents, class, { prefix = "ClassEvents" })
elseif section == "racial" then
MTH_CHRON_RenderTimerSection(container, profile, "Racial", racial, "RACIAL")
MTH_CHRON_RenderTimerSection(container, profile, "Racial", racial, "RACIAL", { prefix = "Racial" })
end
end
end
+40 -21
View File
@@ -5,6 +5,13 @@ local MTH_CREDITS_READY = MTH_OptionsRequire and MTH_OptionsRequire("options-cre
local MTH_CREDITS_FONT_DELTA = 2
local function MTH_CR_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
local function MTH_CreditsBumpFont(fs)
if not fs or not fs.GetFont or not fs.SetFont then return end
local path, size, flags = fs:GetFont()
@@ -18,12 +25,12 @@ local function MTH_CreditsInsertLink(url)
if link == "" then return end
if type(MTH_InsertLinkToChat) == "function" and MTH_InsertLinkToChat(link) then
if MTH and MTH.Print then
MTH:Print("Link inserted in chat: " .. link)
MTH:Print(MTH_CR_L("CREDITS_LINK_INSERTED", "Link inserted in chat: ") .. link)
end
return
end
if MTH and MTH.Print then
MTH:Print("Link: " .. link)
MTH:Print(MTH_CR_L("CREDITS_LINK_FALLBACK", "Link: ") .. link)
end
end
@@ -93,7 +100,7 @@ function MTH_SetupCreditsOptions()
local title = container:CreateFontString("MetaHuntOptionsCreditsTitle", "ARTWORK", "GameFontNormal")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 10, -10)
title:SetText("Credits")
title:SetText(MTH_CR_L("CREDITS_TITLE", "Credits"))
title:SetTextColor(1.00, 0.82, 0.00)
local scrollFrame = MTH_GetFrame("MetaHuntOptionsCreditsScroll")
@@ -113,18 +120,20 @@ function MTH_SetupCreditsOptions()
MTH_CreditsClearFrame(content)
scrollFrame:SetScrollChild(content)
local cursor = MTH_CreditsCreateText(content, content, "About the code", "GameFontNormal", -2, 1.00, 0.82, 0.00)
local cursor = MTH_CreditsCreateText(content, content, MTH_CR_L("CREDITS_ABOUT_CODE_TITLE", "About the code"), "GameFontNormal", -2, 1.00, 0.82, 0.00)
cursor = MTH_CreditsCreateText(content, cursor,
MTH_CR_L("CREDITS_ABOUT_CODE_INTRO",
"This addon is, in others, a compilation of old vanilla addons that I loved and played with during years. But most of them had become very buggy with TwoW as new contain was added to the server. \n I fixed, reworked, enhanced, and melted them within a modern modular framework that I created.\n"
.. "I want to make it crystal clear about what work is mine, and what is not and respectfully credit the original authors for the great stuff I've taken from them:",
.. "I want to make it crystal clear about what work is mine, and what is not and respectfully credit the original authors for the great stuff I've taken from them:"),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"- zBars, Antidaze and Autostrip were core functionalities of Vanilla zHunterMod addon. And I kept the \"z\" naming of bars/buttons to always remember it. On top of this I have created myself zAmmo, zCompanions, zMount, zToys.\nAlso the SmartAmmo feature idea is coming from Zhuntermod: there was a file in it with that functionality, but was like a work-in-progress, totally unfunctional and even \"dangerous\" in its current state, and was not active in the addon. Since it was a fucking great idea, I recoded it mostly from scratch and made it work reliably and safely.",
MTH_CR_L("CREDITS_ABOUT_ZHUNTER",
"- zBars, Antidaze and Autostrip were core functionalities of Vanilla zHunterMod addon. And I kept the \"z\" naming of bars/buttons to always remember it. On top of this I have created myself zAmmo, zCompanions, zMount, zToys.\nAlso the SmartAmmo feature idea is coming from Zhuntermod: there was a file in it with that functionality, but was like a work-in-progress, totally unfunctional and even \"dangerous\" in its current state, and was not active in the addon. Since it was a fucking great idea, I recoded it mostly from scratch and made it work reliably and safely."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"- Feed-o-Matic was entirely the work of Fizzwidget. I made it work for Twow, by melting it as a module calling Metahunt core to get pet's state and up-to-date data for new pet families and their diet.",
MTH_CR_L("CREDITS_ABOUT_FEEDOMATIC", "- Feed-o-Matic was entirely the work of Fizzwidget. I made it work for Twow, by melting it as a module calling Metahunt core to get pet's state and up-to-date data for new pet families and their diet."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateLink(content,
"https://www.wowinterface.com/downloads/info4160-FizzwidgetFeed-O-Matic.html",
@@ -133,7 +142,7 @@ function MTH_SetupCreditsOptions()
-4)
cursor = MTH_CreditsCreateText(content, cursor,
"- Tooltips module is based on Hunter Helper, another vanilla addon of Fizzwidget. I kept the general idea, but there's not much original code left from it in Metahunt as I refactored everything so it plugs on MetaHunt controlled event handlers, can work with Turtle wow data, and is now usable on other things than Beasts.",
MTH_CR_L("CREDITS_ABOUT_TOOLTIPS", "- Tooltips module is based on Hunter Helper, another vanilla addon of Fizzwidget. I kept the general idea, but there's not much original code left from it in Metahunt as I refactored everything so it plugs on MetaHunt controlled event handlers, can work with Turtle wow data, and is now usable on other things than Beasts."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateLink(content,
"https://legacy-wow.com/vanilla-addons/fizzwidget-hunter-helper/",
@@ -142,7 +151,7 @@ function MTH_SetupCreditsOptions()
-4)
cursor = MTH_CreditsCreateText(content, cursor,
"- Chronometer was an old and very popular vanilla addon working with ACE2 libraries. It has known uncountable iterations by various people over the years, and I can't credit them all of them here. The current version used by Metahunt is based on this Twow conversion made by \"wigan91\". I have reworked it to have it Hunter-focused-only: removed the non-hunter/race stuff, improved the definition for spells/effects config that were not correct, added missing hunter spells (not many), and implemented my own bar color scheme fitting better the hunter spells.",
MTH_CR_L("CREDITS_ABOUT_CHRONOMETER", "- Chronometer was an old and very popular vanilla addon working with ACE2 libraries. It has known uncountable iterations by various people over the years, and I can't credit them all of them here. The current version used by Metahunt is based on this Twow conversion made by \"wigan91\". I have reworked it to have it Hunter-focused-only: removed the non-hunter/race stuff, improved the definition for spells/effects config that were not correct, added missing hunter spells (not many), and implemented my own bar color scheme fitting better the hunter spells."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateLink(content,
"https://github.com/wigan91/Chronometer-TWoW",
@@ -150,26 +159,36 @@ function MTH_SetupCreditsOptions()
cursor,
-4)
cursor = MTH_CreditsCreateText(content, cursor,
"- The Map/Marker system is the one of pfQuest from Master Shagu. Unfortunately he is no more reachable for some months and I could not have some talk with him about this. I mostly let it untouched, I just made slight modifications so it can integrate better within Metahunt, and doesn't conflict with pfQuest.",
MTH_CR_L("CREDITS_ABOUT_ICU", "- ICU was an old vanilla addon. I used the following last revision and added many more features of config options to it."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateLink(content,
"https://github.com/wigan91/ICU-TWoW",
"https://github.com/wigan91/ICU-TWoW",
cursor,
-4)
cursor = MTH_CreditsCreateText(content, cursor,
MTH_CR_L("CREDITS_ABOUT_MAP", "- The Map/Marker system is the one of pfQuest from Master Shagu. Unfortunately he is no more reachable for some months and I could not have some talk with him about this. I mostly let it untouched, I just made slight modifications so it can integrate better within Metahunt, and doesn't conflict with pfQuest."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"- The system allowing to fetch itemlinks in game (In the Weapon tab of the Hunter Book notably) is the one of Atlas Twow.",
MTH_CR_L("CREDITS_ABOUT_ATLAS_LINKS", "- The system allowing to fetch itemlinks in game (In the Weapon tab of the Hunter Book notably) is the one of Atlas Twow."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor, "About data sources", "GameFontNormal", -14, 1.00, 0.82, 0.00)
cursor = MTH_CreditsCreateText(content, cursor, MTH_CR_L("CREDITS_ABOUT_DATA_TITLE", "About data sources"), "GameFontNormal", -14, 1.00, 0.82, 0.00)
cursor = MTH_CreditsCreateText(content, cursor,
"Metahunt ships with its own Turtle-WoW datastores, limited to hunter stuff only, and most of this data is up-to-date (Feb 2026).\n\n"
.. "Sources used to build the data include:",
MTH_CR_L("CREDITS_ABOUT_DATA_INTRO", "Metahunt ships with its own Turtle-WoW datastores, limited to hunter stuff only, and most of this data is up-to-date (Feb 2026).\n\n"
.. "Sources used to build the data include:"),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"- pfQuest for Beasts and Ammo vendors NPCs and their spawn points (and beasts respawn times if any). Thank you again Shagu.",
MTH_CR_L("CREDITS_DATA_PFQUEST", "- pfQuest for Beasts and Ammo vendors NPCs and their spawn points (and beasts respawn times if any). Thank you again Shagu."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"- This invaluable and very accurate spreadsheet for beasts having pet abilities. A big thanks to all twow players that crafted this! Now you dont need that sheet anymore, you have Metahunt! And the Great Book of Huntards is awesome and accurate also because of YOU.",
MTH_CR_L("CREDITS_DATA_SHEET", "- This invaluable and very accurate spreadsheet for beasts having pet abilities. A big thanks to all twow players that crafted this! Now you dont need that sheet anymore, you have Metahunt! And the Great Book of Huntards is awesome and accurate also because of YOU."),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateLink(content,
"https://docs.google.com/spreadsheets/d/1u33knqlYXvY-jR6pvTd58gyDg8OYEuwYsSoEnIjeA8k/edit?gid=4136205#gid=4136205",
@@ -178,16 +197,16 @@ function MTH_SetupCreditsOptions()
-4)
cursor = MTH_CreditsCreateText(content, cursor,
"- Atlas twow for ranged weapon sources\n\n"
.. "- Twow wiki for pet diet (which was incomplete, missing Serpents and Foxes)",
MTH_CR_L("CREDITS_DATA_OTHER", "- Atlas twow for ranged weapon sources\n\n"
.. "- Twow wiki for pet diet (which was incomplete, missing Serpents and Foxes)"),
"GameFontNormalSmall", -10)
cursor = MTH_CreditsCreateText(content, cursor,
"With that being said, go back hunting fellas!",
MTH_CR_L("CREDITS_CLOSING", "With that being said, go back hunting fellas!"),
"GameFontNormalSmall", -10, 1.00, 0.82, 0.00)
cursor = MTH_CreditsCreateText(content, cursor,
"\n"
.. "Metasploit <Atlantis>, of Nordaanar.",
MTH_CR_L("CREDITS_SIGNATURE", "\n"
.. "Metasploit <Atlantis>, of Nordaanar."),
"GameFontNormalSmall", -10)
end
+66 -61
View File
@@ -14,6 +14,13 @@ local MTH_FOM_STATE = {
ctrl = {},
}
local function MTH_FOM_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
local function MTH_EnsureFOMConfig()
if FOM_Config then
return
@@ -69,16 +76,16 @@ end
local function MTH_FOM_GetBindingDisplayText()
if not GetBindingKey then
return "Unavailable"
return MTH_FOM_L("FOM_BIND_UNAVAILABLE", "Unavailable")
end
local key1, key2 = GetBindingKey("FEEDOMATIC")
if not key1 and not key2 then
return "Unbound"
return MTH_FOM_L("FOM_BIND_UNBOUND", "Unbound")
end
if key1 and key2 then
return key1 .. " / " .. key2
end
return key1 or key2 or "Unbound"
return key1 or key2 or MTH_FOM_L("FOM_BIND_UNBOUND", "Unbound")
end
local function MTH_FOM_UpdateBindingStatus()
@@ -87,9 +94,9 @@ local function MTH_FOM_UpdateBindingStatus()
return
end
if MTH_FOM_STATE.bindingCapture then
bindStatus:SetText("Feed key: press a key... (ESC to clear)")
bindStatus:SetText(MTH_FOM_L("FOM_BIND_STATUS_PROMPT", "Feed key: press a key... (ESC to clear)"))
else
bindStatus:SetText("Feed key: " .. MTH_FOM_GetBindingDisplayText())
bindStatus:SetText(string.format(MTH_FOM_L("FOM_BIND_STATUS_VALUE", "Feed key: %s"), MTH_FOM_GetBindingDisplayText()))
end
end
@@ -100,7 +107,7 @@ local function MTH_FOM_StopBindingCapture()
MTH_FOM_STATE.bindButton:SetPropagateKeyboardInput(true)
end
MTH_FOM_STATE.bindButton:EnableKeyboard(false)
MTH_FOM_STATE.bindButton:SetText("Set Key")
MTH_FOM_STATE.bindButton:SetText(MTH_FOM_L("FOM_BIND_SET_KEY", "Set Key"))
end
MTH_FOM_UpdateBindingStatus()
end
@@ -108,7 +115,7 @@ end
local function MTH_FOM_StartBindingCapture()
MTH_FOM_STATE.bindingCapture = true
if MTH_FOM_STATE.bindButton then
MTH_FOM_STATE.bindButton:SetText("Press key...")
MTH_FOM_STATE.bindButton:SetText(MTH_FOM_L("FOM_BIND_PRESS_KEY", "Press key..."))
MTH_FOM_STATE.bindButton:EnableKeyboard(true)
if MTH_FOM_STATE.bindButton.SetPropagateKeyboardInput then
MTH_FOM_STATE.bindButton:SetPropagateKeyboardInput(false)
@@ -128,13 +135,13 @@ end
local function MTH_FOM_SaveBinding(key)
if not SetBinding or not SaveBindings or not GetBindingKey then
if MTH and MTH.Print then
MTH:Print("Keybinding APIs unavailable.")
MTH:Print(MTH_FOM_L("FOM_ERROR_KEYBIND_API_UNAVAILABLE", "Keybinding APIs unavailable."))
end
return
end
if InCombatLockdown and InCombatLockdown() then
if MTH and MTH.Print then
MTH:Print("Cannot change keybindings during combat.")
MTH:Print(MTH_FOM_L("FOM_ERROR_KEYBIND_COMBAT_LOCKED", "Cannot change keybindings during combat."))
end
MTH_FOM_StopBindingCapture()
return
@@ -207,7 +214,7 @@ function MTH_SetupFeedOMaticOptions()
local title = container:CreateFontString("MetaHuntOptionsFeedOMaticTitle", "ARTWORK", "GameFontHighlight")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -10)
title:SetText("Feed-O-Matic")
title:SetText(MTH_FOM_L("FOM_TITLE", "Feed-O-Matic"))
local statusNotice = container:CreateFontString("MetaHuntOptionsFeedOMaticStatusNotice", "ARTWORK", "GameFontNormalSmall")
statusNotice:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -34)
@@ -215,18 +222,17 @@ function MTH_SetupFeedOMaticOptions()
statusNotice:SetJustifyH("LEFT")
statusNotice:SetJustifyV("TOP")
statusNotice:SetTextColor(0.35, 0.65, 1)
statusNotice:SetText("Feed-O-Matic, created by the great Fizzwidget, is not yet entirely ready for TurtleWoW because I am missing \na reliable list of all foods, mostly impossible to fetch from the DB.\n It still works much better in this version, but all stuff related to Food buff and Cooking isnt fully functional.")
statusNotice:SetText(MTH_FOM_L("FOM_STATUS_NOTICE", "Feed-O-Matic, created by the great Fizzwidget, is not yet entirely ready for TurtleWoW because I am missing \na reliable list of all foods, mostly impossible to fetch from the DB.\n It still works much better in this version, but all stuff related to Food buff and Cooking isnt fully functional."))
local moduleCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsFeedOMaticEnabled", "Enable FeedOMatic module", -32 + yAdjust)
local moduleCheck = MTH_CreateCheckbox(container, "MetaHuntOptionsFeedOMaticEnabled", MTH_FOM_L("FOM_ENABLE_MODULE", "Enable FeedOMatic module"), -32 + yAdjust)
if moduleCheck then
moduleCheck:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local enabled = self:GetChecked() == 1
moduleCheck:SetScript("OnClick", function()
if not this then return end
local enabled = this:GetChecked() == 1
if MTH and MTH.SetModuleEnabled then
local ok, err = MTH:SetModuleEnabled("feedomatic", enabled)
if not ok and MTH and MTH.Print then
MTH:Print("Failed to change FeedOMatic state: " .. tostring(err))
MTH:Print(string.format(MTH_FOM_L("FOM_ERROR_TOGGLE_FAILED", "Failed to change FeedOMatic state: %s"), tostring(err)))
end
end
MTH_RefreshFeedOMaticOptions()
@@ -236,18 +242,18 @@ function MTH_SetupFeedOMaticOptions()
local leftHeader = container:CreateFontString("MetaHuntOptionsFeedOMaticGeneralHeader", "ARTWORK", "GameFontHighlight")
leftHeader:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -62 + yAdjust)
leftHeader:SetText("General")
leftHeader:SetText(MTH_FOM_L("FOM_HEADER_GENERAL", "General"))
local bindStatus = container:CreateFontString("MetaHuntOptionsFOMBindStatus", "ARTWORK", "GameFontNormalSmall")
bindStatus:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -80 + yAdjust)
bindStatus:SetText("Feed key: " .. MTH_FOM_GetBindingDisplayText())
bindStatus:SetText(string.format(MTH_FOM_L("FOM_BIND_STATUS_VALUE", "Feed key: %s"), MTH_FOM_GetBindingDisplayText()))
MTH_FOM_STATE.bindStatus = bindStatus
local bindButton = CreateFrame("Button", "MetaHuntOptionsFOMBindButton", container, "UIPanelButtonTemplate")
bindButton:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -100 + yAdjust)
bindButton:SetWidth(90)
bindButton:SetHeight(22)
bindButton:SetText("Set Key")
bindButton:SetText(MTH_FOM_L("FOM_BIND_SET_KEY", "Set Key"))
bindButton:EnableKeyboard(false)
bindButton:SetScript("OnClick", function()
if MTH_FOM_STATE.bindingCapture then
@@ -256,11 +262,11 @@ function MTH_SetupFeedOMaticOptions()
MTH_FOM_StartBindingCapture()
end
end)
bindButton:SetScript("OnKeyDown", function(_, key)
bindButton:SetScript("OnKeyDown", function()
if not MTH_FOM_STATE.bindingCapture then
return
end
key = key or arg1
local key = arg1
if not key or key == "" then
return
end
@@ -279,7 +285,7 @@ function MTH_SetupFeedOMaticOptions()
bindClearButton:SetPoint("LEFT", bindButton, "RIGHT", 8, 0)
bindClearButton:SetWidth(70)
bindClearButton:SetHeight(22)
bindClearButton:SetText("Clear")
bindClearButton:SetText(MTH_FOM_L("FOM_BIND_CLEAR", "Clear"))
bindClearButton:SetScript("OnClick", function()
MTH_FOM_SaveBinding(nil)
end)
@@ -291,21 +297,21 @@ function MTH_SetupFeedOMaticOptions()
bindHint:SetJustifyH("LEFT")
bindHint:SetJustifyV("TOP")
bindHint:SetTextColor(0.35, 0.65, 1)
bindHint:SetText("You should assign a key bind for feed-o-matic,\nin order to feed your pet automatically.\nThe key \"P\" is an excellent candidate !")
bindHint:SetText(MTH_FOM_L("FOM_BIND_HINT", "You should assign a key bind for feed-o-matic,\nin order to feed your pet automatically.\nThe key \"P\" is an excellent candidate !"))
MTH_FOM_STATE.ctrl.AvoidQuestFood = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAvoidQuest", FOM_OptionsButtonText and FOM_OptionsButtonText["AvoidQuestFood"] or "Avoid quest foods", -170 + yAdjust)
MTH_FOM_STATE.ctrl.AvoidBonusFood = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAvoidBonus", FOM_OptionsButtonText and FOM_OptionsButtonText["AvoidBonusFood"] or "Avoid bonus foods", -195 + yAdjust)
MTH_FOM_STATE.ctrl.PreferHigherQuality = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMPreferQuality", FOM_OptionsButtonText and FOM_OptionsButtonText["PreferHigherQuality"] or "Prefer higher quality food", -220 + yAdjust)
MTH_FOM_STATE.ctrl.Fallback = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMFallback", FOM_OptionsButtonText and FOM_OptionsButtonText["Fallback"] or "Fallback to avoided foods", -245 + yAdjust)
MTH_FOM_STATE.ctrl.AvoidQuestFood = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAvoidQuest", FOM_OptionsButtonText and FOM_OptionsButtonText["AvoidQuestFood"] or MTH_FOM_L("FOM_LABEL_AVOID_QUEST_FOODS", "Avoid quest foods"), -170 + yAdjust)
MTH_FOM_STATE.ctrl.AvoidBonusFood = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAvoidBonus", FOM_OptionsButtonText and FOM_OptionsButtonText["AvoidBonusFood"] or MTH_FOM_L("FOM_LABEL_AVOID_BONUS_FOODS", "Avoid bonus foods"), -195 + yAdjust)
MTH_FOM_STATE.ctrl.PreferHigherQuality = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMPreferQuality", FOM_OptionsButtonText and FOM_OptionsButtonText["PreferHigherQuality"] or MTH_FOM_L("FOM_LABEL_PREFER_HIGHER_QUALITY_FOOD", "Prefer higher quality food"), -220 + yAdjust)
MTH_FOM_STATE.ctrl.Fallback = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMFallback", FOM_OptionsButtonText and FOM_OptionsButtonText["Fallback"] or MTH_FOM_L("FOM_LABEL_FALLBACK_TO_AVOIDED_FOODS", "Fallback to avoided foods"), -245 + yAdjust)
if MTH_FOM_STATE.ctrl.AvoidQuestFood then MTH_FOM_STATE.ctrl.AvoidQuestFood:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.AvoidQuestFood = self:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.AvoidBonusFood then MTH_FOM_STATE.ctrl.AvoidBonusFood:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.AvoidBonusFood = self:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.PreferHigherQuality then MTH_FOM_STATE.ctrl.PreferHigherQuality:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.PreferHigherQuality = self:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.Fallback then MTH_FOM_STATE.ctrl.Fallback:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.Fallback = self:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.AvoidQuestFood then MTH_FOM_STATE.ctrl.AvoidQuestFood:SetScript("OnClick", function() if not this then return end FOM_Config.AvoidQuestFood = this:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.AvoidBonusFood then MTH_FOM_STATE.ctrl.AvoidBonusFood:SetScript("OnClick", function() if not this then return end FOM_Config.AvoidBonusFood = this:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.PreferHigherQuality then MTH_FOM_STATE.ctrl.PreferHigherQuality:SetScript("OnClick", function() if not this then return end FOM_Config.PreferHigherQuality = this:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.Fallback then MTH_FOM_STATE.ctrl.Fallback:SetScript("OnClick", function() if not this then return end FOM_Config.Fallback = this:GetChecked() == 1 end) end
local keepOpenLabel = container:CreateFontString("MetaHuntOptionsFOMKeepOpenLabel", "ARTWORK", "GameFontNormalSmall")
keepOpenLabel:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -302 + yAdjust)
keepOpenLabel:SetText("Keep open bag slots:")
keepOpenLabel:SetText(MTH_FOM_L("FOM_KEEP_OPEN_BAG_SLOTS", "Keep open bag slots:"))
local keepOpen = CreateFrame("EditBox", "MetaHuntOptionsFOMKeepOpen", container, "InputBoxTemplate")
keepOpen:SetPoint("LEFT", keepOpenLabel, "RIGHT", 8, 0)
@@ -313,56 +319,55 @@ function MTH_SetupFeedOMaticOptions()
keepOpen:SetHeight(20)
keepOpen:SetNumeric(true)
keepOpen:SetAutoFocus(false)
keepOpen:SetScript("OnTextChanged", function(self)
self = self or this
if not self then return end
local value = tonumber(self:GetText()) or 0
keepOpen:SetScript("OnTextChanged", function()
if not this then return end
local value = tonumber(this:GetText()) or 0
FOM_Config.KeepOpenSlots = value
end)
keepOpen:SetScript("OnEnterPressed", function(self) self = self or this if self then self:ClearFocus() end end)
keepOpen:SetScript("OnEscapePressed", function(self) self = self or this if self then self:ClearFocus() end end)
keepOpen:SetScript("OnEnterPressed", function() if this then this:ClearFocus() end end)
keepOpen:SetScript("OnEscapePressed", function() if this then this:ClearFocus() end end)
MTH_FOM_STATE.keepOpenEdit = keepOpen
local notifyHeader = container:CreateFontString("MetaHuntOptionsFOMNotifyHeader", "ARTWORK", "GameFontHighlight")
notifyHeader:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -336 + yAdjust)
notifyHeader:SetText("Notify when feeding")
notifyHeader:SetText(MTH_FOM_L("FOM_HEADER_NOTIFY_WHEN_FEEDING", "Notify when feeding"))
MTH_FOM_STATE.ctrl.AlertEmote = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertEmote", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertEmote"] or "Via emote", -360 + yAdjust)
MTH_FOM_STATE.ctrl.AlertChat = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertChat", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertChat"] or "In chat", -385 + yAdjust)
MTH_FOM_STATE.ctrl.AlertNone = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertNone", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertNone"] or "Don't notify", -410 + yAdjust)
MTH_FOM_STATE.ctrl.AlertEmote = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertEmote", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertEmote"] or MTH_FOM_L("FOM_LABEL_NOTIFY_VIA_EMOTE", "Via emote"), -360 + yAdjust)
MTH_FOM_STATE.ctrl.AlertChat = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertChat", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertChat"] or MTH_FOM_L("FOM_LABEL_NOTIFY_IN_CHAT", "In chat"), -385 + yAdjust)
MTH_FOM_STATE.ctrl.AlertNone = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAlertNone", FOM_OptionsButtonText and FOM_OptionsButtonText["AlertNone"] or MTH_FOM_L("FOM_LABEL_NOTIFY_NONE", "Don't notify"), -410 + yAdjust)
if MTH_FOM_STATE.ctrl.AlertEmote then MTH_FOM_STATE.ctrl.AlertEmote:SetScript("OnClick", function() MTH_FOM_SetAlert("emote"); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.AlertChat then MTH_FOM_STATE.ctrl.AlertChat:SetScript("OnClick", function() MTH_FOM_SetAlert("chat"); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.AlertNone then MTH_FOM_STATE.ctrl.AlertNone:SetScript("OnClick", function() MTH_FOM_SetAlert("none"); MTH_RefreshFeedOMaticOptions() end) end
local warnHeader = container:CreateFontString("MetaHuntOptionsFOMWarnHeader", "ARTWORK", "GameFontHighlight")
warnHeader:SetPoint("TOPLEFT", container, "TOPLEFT", rightColumnX, -276 + yAdjust)
warnHeader:SetText("Warn when pet needs feeding")
warnHeader:SetText(MTH_FOM_L("FOM_HEADER_WARN_WHEN_PET_NEEDS_FEEDING", "Warn when pet needs feeding"))
MTH_FOM_STATE.ctrl.LevelContent = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelContent", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelContent"] or "When content", -300 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.LevelUnhappy = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelUnhappy", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelUnhappy"] or "When unhappy", -325 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.LevelOff = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelOff", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelOff"] or "Don't warn", -350 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.LevelContent = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelContent", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelContent"] or MTH_FOM_L("FOM_LABEL_WARN_WHEN_CONTENT", "When content"), -300 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.LevelUnhappy = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelUnhappy", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelUnhappy"] or MTH_FOM_L("FOM_LABEL_WARN_WHEN_UNHAPPY", "When unhappy"), -325 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.LevelOff = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMLevelOff", FOM_OptionsButtonText and FOM_OptionsButtonText["LevelOff"] or MTH_FOM_L("FOM_LABEL_DONT_WARN", "Don't warn"), -350 + yAdjust, rightColumnX)
if MTH_FOM_STATE.ctrl.LevelContent then MTH_FOM_STATE.ctrl.LevelContent:SetScript("OnClick", function() MTH_FOM_SetLevel("content"); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.LevelUnhappy then MTH_FOM_STATE.ctrl.LevelUnhappy:SetScript("OnClick", function() MTH_FOM_SetLevel("unhappy"); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.LevelOff then MTH_FOM_STATE.ctrl.LevelOff:SetScript("OnClick", function() MTH_FOM_SetLevel("off"); MTH_RefreshFeedOMaticOptions() end) end
MTH_FOM_STATE.ctrl.AudioWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAudioWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["AudioWarning"] or "Play sound", -378 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.AudioWarningBell = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAudioWarningBell", FOM_OptionsButtonText and FOM_OptionsButtonText["AudioWarningBell"] or "Use bell sound", -403 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.TextWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMTextWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["TextWarning"] or "Show text", -428 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.IconWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMIconWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["IconWarning"] or "Flash icon", -453 + yAdjust, rightColumnX)
if MTH_FOM_STATE.ctrl.AudioWarning then MTH_FOM_STATE.ctrl.AudioWarning:SetScript("OnClick", function(self) self = self or this if not self then return end if self:GetChecked() == 1 then if FOM_Config.AudioWarning ~= "bell" then FOM_Config.AudioWarning = true end else FOM_Config.AudioWarning = nil end MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.AudioWarningBell then MTH_FOM_STATE.ctrl.AudioWarningBell:SetScript("OnClick", function(self) self = self or this if not self then return end if self:GetChecked() == 1 then FOM_Config.AudioWarning = "bell" else FOM_Config.AudioWarning = true end MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.TextWarning then MTH_FOM_STATE.ctrl.TextWarning:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.TextWarning = self:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.IconWarning then MTH_FOM_STATE.ctrl.IconWarning:SetScript("OnClick", function(self) self = self or this if not self then return end FOM_Config.IconWarning = self:GetChecked() == 1 end) end
MTH_FOM_STATE.ctrl.AudioWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAudioWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["AudioWarning"] or MTH_FOM_L("FOM_LABEL_PLAY_SOUND", "Play sound"), -378 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.AudioWarningBell = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMAudioWarningBell", FOM_OptionsButtonText and FOM_OptionsButtonText["AudioWarningBell"] or MTH_FOM_L("FOM_LABEL_USE_BELL_SOUND", "Use bell sound"), -403 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.TextWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMTextWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["TextWarning"] or MTH_FOM_L("FOM_LABEL_SHOW_TEXT", "Show text"), -428 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.IconWarning = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMIconWarning", FOM_OptionsButtonText and FOM_OptionsButtonText["IconWarning"] or MTH_FOM_L("FOM_LABEL_FLASH_ICON", "Flash icon"), -453 + yAdjust, rightColumnX)
if MTH_FOM_STATE.ctrl.AudioWarning then MTH_FOM_STATE.ctrl.AudioWarning:SetScript("OnClick", function() if not this then return end if this:GetChecked() == 1 then if FOM_Config.AudioWarning ~= "bell" then FOM_Config.AudioWarning = true end else FOM_Config.AudioWarning = nil end MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.AudioWarningBell then MTH_FOM_STATE.ctrl.AudioWarningBell:SetScript("OnClick", function() if not this then return end if this:GetChecked() == 1 then FOM_Config.AudioWarning = "bell" else FOM_Config.AudioWarning = true end MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.TextWarning then MTH_FOM_STATE.ctrl.TextWarning:SetScript("OnClick", function() if not this then return end FOM_Config.TextWarning = this:GetChecked() == 1 end) end
if MTH_FOM_STATE.ctrl.IconWarning then MTH_FOM_STATE.ctrl.IconWarning:SetScript("OnClick", function() if not this then return end FOM_Config.IconWarning = this:GetChecked() == 1 end) end
local cookHeader = container:CreateFontString("MetaHuntOptionsFOMCookingHeader", "ARTWORK", "GameFontHighlight")
cookHeader:SetPoint("TOPLEFT", container, "TOPLEFT", rightColumnX, -62 + yAdjust)
cookHeader:SetText("Avoid foods used in cooking")
cookHeader:SetText(MTH_FOM_L("FOM_HEADER_AVOID_FOODS_USED_IN_COOKING", "Avoid foods used in cooking"))
MTH_FOM_STATE.ctrl.SaveCookOrange = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookOrange", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Orange"] or "Only difficult recipes", -86 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookYellow = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookYellow", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Yellow"] or "Medium or better", -111 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookGreen = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookGreen", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Green"] or "Easy or better", -136 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookAll = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookAll", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_All"] or "All foods", -161 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookNone = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookNone", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_None"] or "Do not save cooking foods", -186 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookOrange = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookOrange", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Orange"] or MTH_FOM_L("FOM_LABEL_ONLY_DIFFICULT_RECIPES", "Only difficult recipes"), -86 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookYellow = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookYellow", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Yellow"] or MTH_FOM_L("FOM_LABEL_MEDIUM_OR_BETTER", "Medium or better"), -111 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookGreen = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookGreen", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_Green"] or MTH_FOM_L("FOM_LABEL_EASY_OR_BETTER", "Easy or better"), -136 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookAll = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookAll", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_All"] or MTH_FOM_L("FOM_LABEL_ALL_FOODS", "All foods"), -161 + yAdjust, rightColumnX)
MTH_FOM_STATE.ctrl.SaveCookNone = MTH_CreateCheckbox(container, "MetaHuntOptionsFOMSaveCookNone", FOM_OptionsButtonText and FOM_OptionsButtonText["SaveForCook_None"] or MTH_FOM_L("FOM_LABEL_DO_NOT_SAVE_COOKING_FOODS", "Do not save cooking foods"), -186 + yAdjust, rightColumnX)
if MTH_FOM_STATE.ctrl.SaveCookOrange then MTH_FOM_STATE.ctrl.SaveCookOrange:SetScript("OnClick", function() MTH_FOM_SetCookingLevel(3); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.SaveCookYellow then MTH_FOM_STATE.ctrl.SaveCookYellow:SetScript("OnClick", function() MTH_FOM_SetCookingLevel(2); MTH_RefreshFeedOMaticOptions() end) end
if MTH_FOM_STATE.ctrl.SaveCookGreen then MTH_FOM_STATE.ctrl.SaveCookGreen:SetScript("OnClick", function() MTH_FOM_SetCookingLevel(1); MTH_RefreshFeedOMaticOptions() end) end
+590
View File
@@ -0,0 +1,590 @@
local MTH_ICU_OPT_READY = true
local MTH_ICU_OPT_MISSING = {}
if type(MTH_GetFrame) ~= "function" then table.insert(MTH_ICU_OPT_MISSING, "MTH_GetFrame") end
if type(MTH_ClearContainer) ~= "function" then table.insert(MTH_ICU_OPT_MISSING, "MTH_ClearContainer") end
if type(MTH_CreateCheckbox) ~= "function" then table.insert(MTH_ICU_OPT_MISSING, "MTH_CreateCheckbox") end
if table.getn(MTH_ICU_OPT_MISSING) > 0 then
MTH_ICU_OPT_READY = false
if MTH and MTH.Print then
MTH:Print("[MTH ICU OPTIONS] missing dependencies: " .. table.concat(MTH_ICU_OPT_MISSING, ", "), "error")
end
end
local MTH_ICU_OPT_STATE = {
container = nil,
built = false,
controls = {},
}
local MTH_ICU_LAYOUT = {
LEFT_X = 20,
LEFT_DROPDOWN_X = 94,
RIGHT_X = 280,
RIGHT_DROPDOWN_X = 366,
DROPDOWN_WIDTH = 108,
COLOR_BUTTON_X = 378,
COLOR_BUTTON_WIDTH = 78,
COLOR_ROW_STEP = 24,
}
local MTH_ICU_OPTIONS_FALLBACK = {
ALERT = { "AUTO", "PARTY", "RAID", "SELF", "MTH Message", "OFF" },
ANNOUNCE = { "AUTO", "SAY", "YELL", "PARTY", "RAID", "SELF", "MTH Message", "OFF" },
ANCHOR = { "TOP", "TOPLEFT", "TOPRIGHT", "BOTTOM", "BOTTOMLEFT", "BOTTOMRIGHT", "LEFT", "RIGHT", "CUSTOM" },
POPUP_HIDE_DELAY = { "INSTANT", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" },
HEALTH_TEXT_MODE = { "NONE", "PERCENT", "HP", "BOTH" },
PLAYER_COLOR_MODE = { "CLASS", "REACTION", "FACTION", "CUSTOM" },
}
local MTH_ICU_DEFAULT_BG_COLORS = {
PLAYER_HOSTILE = { 1.00, 0.20, 0.20 },
PLAYER_NEUTRAL = { 1.00, 0.85, 0.10 },
PLAYER_FRIENDLY = { 0.20, 0.75, 1.00 },
NPC_HOSTILE = { 1.00, 0.20, 0.20 },
NPC_NEUTRAL = { 1.00, 0.85, 0.10 },
NPC_FRIENDLY = { 0.10, 0.90, 0.10 },
UNKNOWN = { 0.70, 0.70, 0.70 },
}
local MTH_ICU_COLOR_ROWS = {
{ key = "PLAYER_HOSTILE", label = "Player hostile" },
{ key = "PLAYER_NEUTRAL", label = "Player neutral" },
{ key = "PLAYER_FRIENDLY", label = "Player friendly" },
{ key = "NPC_HOSTILE", label = "NPC hostile" },
{ key = "NPC_NEUTRAL", label = "NPC neutral" },
{ key = "NPC_FRIENDLY", label = "NPC friendly" },
{ key = "UNKNOWN", label = "Unknown fallback" },
}
local function MTH_ICU_GetStore()
local store = nil
if MTH and MTH.GetModuleCharSavedVariables then
store = MTH:GetModuleCharSavedVariables("icu")
end
if type(store) ~= "table" then
ICUvars = ICUvars or {}
store = ICUvars
end
if store.ALERT == nil then store.ALERT = "MTH Message" end
if store.ALERT == "SAY" or store.ALERT == "YELL" then store.ALERT = "SELF" end
if store.ANNOUNCE == nil then store.ANNOUNCE = "MTH Message" end
if store.ANCHOR == nil then store.ANCHOR = "BOTTOMRIGHT" end
if store.POPUP_HIDE_DELAY == nil then
store.POPUP_HIDE_DELAY = "INSTANT"
else
local rawDelay = tostring(store.POPUP_HIDE_DELAY)
if rawDelay ~= "INSTANT" then
local n = tonumber(rawDelay)
if not n then
store.POPUP_HIDE_DELAY = "INSTANT"
else
n = math.floor(n)
if n < 1 then
store.POPUP_HIDE_DELAY = "INSTANT"
elseif n > 10 then
store.POPUP_HIDE_DELAY = "10"
else
store.POPUP_HIDE_DELAY = tostring(n)
end
end
end
end
if store.mouseOver == nil then store.mouseOver = false end
if store.HEALTH_TEXT_MODE == nil then store.HEALTH_TEXT_MODE = "BOTH" end
if store.HEALTH_TEXT_MODE == "AUTO" then store.HEALTH_TEXT_MODE = "BOTH" end
if store.PLAYER_COLOR_MODE == nil then store.PLAYER_COLOR_MODE = "CLASS" end
if store.REACTION_ONLY_PVP_PLAYERS == nil then store.REACTION_ONLY_PVP_PLAYERS = true end
if store.SHOW_GUILD_NAME == nil then store.SHOW_GUILD_NAME = false end
if store.SHOW_PLAYER_CLASS == nil then store.SHOW_PLAYER_CLASS = true end
if store.SHOW_PLAYER_RACE == nil then store.SHOW_PLAYER_RACE = true end
if store.SHOW_CUSTOM_TITLES == nil then store.SHOW_CUSTOM_TITLES = false end
if store.EXPAND_UP == nil then store.EXPAND_UP = false end
if type(store.COLORS) ~= "table" then
store.COLORS = {}
end
for key, def in pairs(MTH_ICU_DEFAULT_BG_COLORS) do
if type(store.COLORS[key]) ~= "table" then
store.COLORS[key] = { def[1], def[2], def[3] }
end
end
ICUvars = store
return store
end
local function MTH_ICU_GetOptionValues(key)
if type(ICU_OPTIONS) == "table" and type(ICU_OPTIONS[key]) == "table" then
return ICU_OPTIONS[key]
end
return MTH_ICU_OPTIONS_FALLBACK[key] or {}
end
local function MTH_ICU_SetValue(key, value)
local store = MTH_ICU_GetStore()
store[key] = tostring(value or "")
if key == "ANCHOR" and type(ICU_SetPoints) == "function" then
ICU_SetPoints()
end
end
local function MTH_ICU_DropdownSetText(frame, text)
if UIDropDownMenu_SetText then
UIDropDownMenu_SetText(tostring(text or ""), frame)
return
end
if not frame or not frame.GetName then return end
local textRegion = getglobal(frame:GetName() .. "Text")
if textRegion and textRegion.SetText then
textRegion:SetText(tostring(text or ""))
end
end
local function MTH_ICU_GetColor(key)
local store = MTH_ICU_GetStore()
local row = store.COLORS and store.COLORS[key]
if type(row) == "table" then
return tonumber(row[1]) or 0, tonumber(row[2]) or 0, tonumber(row[3]) or 0
end
local def = MTH_ICU_DEFAULT_BG_COLORS[key] or MTH_ICU_DEFAULT_BG_COLORS.UNKNOWN
return def[1], def[2], def[3]
end
local function MTH_ICU_SetColor(key, r, g, b)
local store = MTH_ICU_GetStore()
if type(store.COLORS) ~= "table" then
store.COLORS = {}
end
store.COLORS[key] = {
math.max(0, math.min(1, tonumber(r) or 0)),
math.max(0, math.min(1, tonumber(g) or 0)),
math.max(0, math.min(1, tonumber(b) or 0)),
}
end
local function MTH_ICU_OpenColorPicker(colorKey)
if not ColorPickerFrame then
if MTH and MTH.Print then
MTH:Print("ColorPickerFrame is not available in this client", "error")
end
return
end
local currentR, currentG, currentB = MTH_ICU_GetColor(colorKey)
local function applyColor()
local r, g, b = ColorPickerFrame:GetColorRGB()
MTH_ICU_SetColor(colorKey, r, g, b)
MTH_RefreshICUOptions()
end
ColorPickerFrame.func = applyColor
ColorPickerFrame.cancelFunc = function(prev)
if type(prev) == "table" then
local r = prev.r or prev[1] or currentR
local g = prev.g or prev[2] or currentG
local b = prev.b or prev[3] or currentB
MTH_ICU_SetColor(colorKey, r, g, b)
MTH_RefreshICUOptions()
end
end
ColorPickerFrame:SetColorRGB(currentR, currentG, currentB)
ColorPickerFrame.hasOpacity = false
ColorPickerFrame.opacity = 1
ColorPickerFrame.previousValues = { currentR, currentG, currentB }
ColorPickerFrame:Show()
end
local function MTH_ICU_CreateOptionRow(container, rowName, label, key, y, labelX, dropdownX)
labelX = labelX or MTH_ICU_LAYOUT.LEFT_X
dropdownX = dropdownX or MTH_ICU_LAYOUT.LEFT_DROPDOWN_X
local labelFs = container:CreateFontString(rowName .. "Label", "ARTWORK", "GameFontNormalSmall")
labelFs:SetPoint("TOPLEFT", container, "TOPLEFT", labelX, y)
labelFs:SetText(label)
local dropdown = CreateFrame("Frame", rowName .. "Drop", container, "UIDropDownMenuTemplate")
dropdown:ClearAllPoints()
dropdown:SetPoint("TOPLEFT", container, "TOPLEFT", dropdownX, y + 12)
if UIDropDownMenu_SetWidth then
UIDropDownMenu_SetWidth(MTH_ICU_LAYOUT.DROPDOWN_WIDTH, dropdown)
end
if UIDropDownMenu_JustifyText then
UIDropDownMenu_JustifyText("LEFT", dropdown)
end
if UIDropDownMenu_Initialize then
UIDropDownMenu_Initialize(dropdown, function()
local values = MTH_ICU_GetOptionValues(key)
local store = MTH_ICU_GetStore()
local current = tostring(store[key] or "")
local infoFactory = UIDropDownMenu_CreateInfo
for i = 1, table.getn(values) do
local optionValue = tostring(values[i])
local info = type(infoFactory) == "function" and infoFactory() or {}
info.text = optionValue
info.checked = optionValue == current and 1 or nil
info.func = function()
MTH_ICU_SetValue(key, optionValue)
MTH_RefreshICUOptions()
end
if UIDropDownMenu_AddButton then UIDropDownMenu_AddButton(info) end
end
end)
end
MTH_ICU_OPT_STATE.controls[key] = {
label = labelFs,
dropdown = dropdown,
}
end
local function MTH_ICU_CreateColorRow(container, rowName, label, colorKey, y, labelX, buttonX)
labelX = labelX or MTH_ICU_LAYOUT.RIGHT_X
buttonX = buttonX or MTH_ICU_LAYOUT.COLOR_BUTTON_X
local labelFs = container:CreateFontString(rowName .. "Label", "ARTWORK", "GameFontNormalSmall")
labelFs:SetPoint("TOPLEFT", container, "TOPLEFT", labelX, y)
labelFs:SetText(label)
local button = CreateFrame("Button", rowName .. "Button", container, "UIPanelButtonTemplate")
button:SetPoint("TOPLEFT", container, "TOPLEFT", buttonX, y + 8)
button:SetWidth(MTH_ICU_LAYOUT.COLOR_BUTTON_WIDTH)
button:SetHeight(22)
button:SetText("Pick")
button:SetScript("OnClick", function()
MTH_ICU_OpenColorPicker(colorKey)
end)
local swatch = button:CreateTexture(rowName .. "Swatch", "ARTWORK")
swatch:SetTexture("Interface\\Buttons\\WHITE8X8")
swatch:SetPoint("LEFT", button, "LEFT", 6, 0)
swatch:SetWidth(14)
swatch:SetHeight(14)
MTH_ICU_OPT_STATE.controls[colorKey] = {
label = labelFs,
button = button,
swatch = swatch,
isColor = true,
}
end
local function MTH_ICU_BuildUI(container)
if MTH_ICU_OPT_STATE.built and MTH_ICU_OPT_STATE.container == container then
return
end
MTH_ClearContainer(container)
MTH_ICU_OPT_STATE.controls = {}
MTH_ICU_OPT_STATE.container = container
MTH_ICU_OPT_STATE.built = true
local title = container:CreateFontString("MetaHuntOptionsICUTitle", "ARTWORK", "GameFontHighlight")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -10)
title:SetText("MTH ICU")
local note = container:CreateFontString("MetaHuntOptionsICUNote", "ARTWORK", "GameFontNormalSmall")
note:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -32)
note:SetWidth(560)
note:SetJustifyH("LEFT")
note:SetJustifyV("TOP")
note:SetTextColor(0.35, 0.65, 1)
note:SetText("ICU is a minimap targeting utility module for your Trackings.\nIt provides enhanced target information and click actions for players and NPCs on the minimap.")
local moduleEnabled = MTH_CreateCheckbox(container, "MetaHuntOptionsICUModuleEnabled", "Enable ICU module", -72, MTH_ICU_LAYOUT.LEFT_X)
if moduleEnabled then
moduleEnabled:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetModuleEnabled then
local ok, err = MTH:SetModuleEnabled("icu", this:GetChecked() == 1)
if not ok and MTH and MTH.Print then
MTH:Print("Failed to change ICU module state: " .. tostring(err), "error")
end
end
MTH_RefreshICUOptions()
end)
MTH_ICU_OPT_STATE.controls.moduleEnabled = moduleEnabled
end
local mouseOver = MTH_CreateCheckbox(container, "MetaHuntOptionsICUMouseOver", "Enable CTRL mouseover scan", -98, MTH_ICU_LAYOUT.LEFT_X)
if mouseOver then
mouseOver:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.mouseOver = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.mouseOver = mouseOver
end
local sectionHeader = container:CreateFontString("MetaHuntOptionsICUSectionHeader", "ARTWORK", "GameFontHighlight")
sectionHeader:SetPoint("TOPLEFT", container, "TOPLEFT", MTH_ICU_LAYOUT.LEFT_X, -146)
sectionHeader:SetText("General Settings")
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUAlert", "ALERT PVP", "ALERT", -172, MTH_ICU_LAYOUT.LEFT_X, MTH_ICU_LAYOUT.LEFT_DROPDOWN_X)
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUAnnounce", "ANNOUNCE on click", "ANNOUNCE", -198, MTH_ICU_LAYOUT.LEFT_X, MTH_ICU_LAYOUT.LEFT_DROPDOWN_X)
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUHealthMode", "Health text", "HEALTH_TEXT_MODE", -224, MTH_ICU_LAYOUT.LEFT_X, MTH_ICU_LAYOUT.LEFT_DROPDOWN_X)
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUHideDelay", "List hide delay", "POPUP_HIDE_DELAY", -250, MTH_ICU_LAYOUT.LEFT_X, MTH_ICU_LAYOUT.LEFT_DROPDOWN_X)
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUAnchor", "ANCHOR", "ANCHOR", -276, MTH_ICU_LAYOUT.LEFT_X, MTH_ICU_LAYOUT.LEFT_DROPDOWN_X)
local toggleAnchorButton = CreateFrame("Button", "MetaHuntOptionsICUToggleAnchorButton", container, "UIPanelButtonTemplate")
toggleAnchorButton:SetPoint("TOPLEFT", container, "TOPLEFT", MTH_ICU_LAYOUT.LEFT_X, -302)
toggleAnchorButton:SetWidth(116)
toggleAnchorButton:SetHeight(22)
toggleAnchorButton:SetText("Toggle Anchor")
toggleAnchorButton:SetScript("OnClick", function()
if type(ICU_ToggleAnchor) == "function" then
ICU_ToggleAnchor()
end
end)
MTH_ICU_OPT_STATE.controls.customAnchorButton = toggleAnchorButton
local expandUp = MTH_CreateCheckbox(container, "MetaHuntOptionsICUExpandUp", "Expand Up", -301, MTH_ICU_LAYOUT.LEFT_X + 132)
if expandUp then
expandUp:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.EXPAND_UP = this:GetChecked() == 1 and true or false
if type(ICU_SetPoints) == "function" then
ICU_SetPoints()
end
end)
MTH_ICU_OPT_STATE.controls.expandUp = expandUp
end
local showGuild = MTH_CreateCheckbox(container, "MetaHuntOptionsICUShowGuild", "Show player guild names", -344, MTH_ICU_LAYOUT.LEFT_X)
if showGuild then
showGuild:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.SHOW_GUILD_NAME = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.showGuildName = showGuild
end
local showClass = MTH_CreateCheckbox(container, "MetaHuntOptionsICUShowClass", "Show player class", -368, MTH_ICU_LAYOUT.LEFT_X)
if showClass then
showClass:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.SHOW_PLAYER_CLASS = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.showPlayerClass = showClass
end
local showRace = MTH_CreateCheckbox(container, "MetaHuntOptionsICUShowRace", "Show player race", -392, MTH_ICU_LAYOUT.LEFT_X)
if showRace then
showRace:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.SHOW_PLAYER_RACE = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.showPlayerRace = showRace
end
local showTitles = MTH_CreateCheckbox(container, "MetaHuntOptionsICUShowTitles", "Show custom titles in alerts", -416, MTH_ICU_LAYOUT.LEFT_X)
if showTitles then
showTitles:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.SHOW_CUSTOM_TITLES = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.showCustomTitles = showTitles
end
local rightHeader = container:CreateFontString("MetaHuntOptionsICURightHeader", "ARTWORK", "GameFontHighlight")
rightHeader:SetPoint("TOPLEFT", container, "TOPLEFT", MTH_ICU_LAYOUT.RIGHT_X, -146)
rightHeader:SetText("Background Colors")
MTH_ICU_CreateOptionRow(container, "MetaHuntOptionsICUPlayerColorMode", "Player colors", "PLAYER_COLOR_MODE", -172, MTH_ICU_LAYOUT.RIGHT_X, MTH_ICU_LAYOUT.RIGHT_DROPDOWN_X)
local reactionOnlyPvp = MTH_CreateCheckbox(container, "MetaHuntOptionsICUReactionOnlyPvp", "Reaction only when PvP-flagged", -200, MTH_ICU_LAYOUT.RIGHT_X)
if reactionOnlyPvp then
reactionOnlyPvp:SetScript("OnClick", function()
if not this then return end
local store = MTH_ICU_GetStore()
store.REACTION_ONLY_PVP_PLAYERS = this:GetChecked() == 1 and true or false
end)
MTH_ICU_OPT_STATE.controls.reactionOnlyPvp = reactionOnlyPvp
end
local colorHeader = container:CreateFontString("MetaHuntOptionsICUColorsHeader", "ARTWORK", "GameFontHighlight")
colorHeader:SetPoint("TOPLEFT", container, "TOPLEFT", MTH_ICU_LAYOUT.RIGHT_X, -224)
local colorScope = container:CreateFontString("MetaHuntOptionsICUColorsScope", "ARTWORK", "GameFontNormalSmall")
colorScope:SetPoint("TOPLEFT", container, "TOPLEFT", MTH_ICU_LAYOUT.RIGHT_X, -242)
colorScope:SetWidth(250)
colorScope:SetJustifyH("LEFT")
colorScope:SetJustifyV("TOP")
colorScope:SetTextColor(0.35, 0.65, 1)
colorScope:SetText("Player pickers: REACTION / FACTION / CUSTOM\nNPC pickers: always")
local colorY = -284
for i = 1, table.getn(MTH_ICU_COLOR_ROWS) do
local row = MTH_ICU_COLOR_ROWS[i]
MTH_ICU_CreateColorRow(container, "MetaHuntOptionsICUColor" .. tostring(i), row.label, row.key, colorY, MTH_ICU_LAYOUT.RIGHT_X, MTH_ICU_LAYOUT.COLOR_BUTTON_X)
colorY = colorY - MTH_ICU_LAYOUT.COLOR_ROW_STEP
end
end
function MTH_RefreshICUOptions()
if not MTH_ICU_OPT_READY then return end
local controls = MTH_ICU_OPT_STATE.controls
if type(controls) ~= "table" then
return
end
local store = MTH_ICU_GetStore()
local moduleEnabled = MTH and MTH.IsModuleEnabled and MTH:IsModuleEnabled("icu", false) or false
if controls.moduleEnabled then
controls.moduleEnabled:SetChecked(moduleEnabled and 1 or nil)
end
if controls.mouseOver then
controls.mouseOver:SetChecked(store.mouseOver and 1 or nil)
if controls.mouseOver.Enable then
if moduleEnabled then controls.mouseOver:Enable() else controls.mouseOver:Disable() end
end
end
if controls.showGuildName then
controls.showGuildName:SetChecked(store.SHOW_GUILD_NAME and 1 or nil)
if controls.showGuildName.Enable then
if moduleEnabled then controls.showGuildName:Enable() else controls.showGuildName:Disable() end
end
end
if controls.showPlayerClass then
controls.showPlayerClass:SetChecked(store.SHOW_PLAYER_CLASS and 1 or nil)
if controls.showPlayerClass.Enable then
if moduleEnabled then controls.showPlayerClass:Enable() else controls.showPlayerClass:Disable() end
end
end
if controls.showPlayerRace then
controls.showPlayerRace:SetChecked(store.SHOW_PLAYER_RACE and 1 or nil)
if controls.showPlayerRace.Enable then
if moduleEnabled then controls.showPlayerRace:Enable() else controls.showPlayerRace:Disable() end
end
end
if controls.showCustomTitles then
controls.showCustomTitles:SetChecked(store.SHOW_CUSTOM_TITLES and 1 or nil)
if controls.showCustomTitles.Enable then
if moduleEnabled then controls.showCustomTitles:Enable() else controls.showCustomTitles:Disable() end
end
end
local isCustomAnchor = tostring(store.ANCHOR or "") == "CUSTOM"
if controls.customAnchorButton then
if moduleEnabled and isCustomAnchor then
controls.customAnchorButton:Show()
if controls.customAnchorButton.Enable then controls.customAnchorButton:Enable() end
else
controls.customAnchorButton:Hide()
end
end
if controls.expandUp then
controls.expandUp:SetChecked(store.EXPAND_UP and 1 or nil)
if moduleEnabled and isCustomAnchor then
controls.expandUp:Show()
if controls.expandUp.Enable then controls.expandUp:Enable() end
else
controls.expandUp:Hide()
end
end
local optionKeys = { "ALERT", "ANNOUNCE", "ANCHOR", "HEALTH_TEXT_MODE", "POPUP_HIDE_DELAY", "PLAYER_COLOR_MODE" }
for i = 1, table.getn(optionKeys) do
local key = optionKeys[i]
local row = controls[key]
if row and row.dropdown then
MTH_ICU_DropdownSetText(row.dropdown, tostring(store[key] or ""))
if UIDropDownMenu_EnableDropDown and UIDropDownMenu_DisableDropDown then
if moduleEnabled then
UIDropDownMenu_EnableDropDown(row.dropdown)
else
UIDropDownMenu_DisableDropDown(row.dropdown)
end
end
end
end
if controls.reactionOnlyPvp then
controls.reactionOnlyPvp:SetChecked(store.REACTION_ONLY_PVP_PLAYERS and 1 or nil)
if controls.reactionOnlyPvp.Enable then
if moduleEnabled and tostring(store.PLAYER_COLOR_MODE or "") == "REACTION" then
controls.reactionOnlyPvp:Enable()
else
controls.reactionOnlyPvp:Disable()
end
end
end
for i = 1, table.getn(MTH_ICU_COLOR_ROWS) do
local row = MTH_ICU_COLOR_ROWS[i]
local ctrl = controls[row.key]
if ctrl and ctrl.swatch then
local r, g, b = MTH_ICU_GetColor(row.key)
ctrl.swatch:SetVertexColor(r, g, b)
if ctrl.button and ctrl.button.Enable then
if moduleEnabled then ctrl.button:Enable() else ctrl.button:Disable() end
end
end
end
end
function MTH_SetupICUOptions()
local container = MTH_GetFrame("MetaHuntOptionsICU")
if not container then return end
if not MTH_ICU_OPT_READY then
if type(MTH_ClearContainer) == "function" then
MTH_ClearContainer(container)
end
local title = container:CreateFontString("MetaHuntOptionsICUErrorTitle", "ARTWORK", "GameFontHighlight")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -10)
title:SetText("MTH ICU")
local body = container:CreateFontString("MetaHuntOptionsICUErrorBody", "ARTWORK", "GameFontNormalSmall")
body:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -34)
body:SetWidth(620)
body:SetJustifyH("LEFT")
body:SetJustifyV("TOP")
body:SetTextColor(1, 0.3, 0.3)
body:SetText("ICU options cannot initialize. Missing dependencies: " .. table.concat(MTH_ICU_OPT_MISSING, ", "))
return
end
local ok, err = pcall(function()
MTH_ICU_BuildUI(container)
MTH_RefreshICUOptions()
end)
if not ok then
if MTH and MTH.Print then
MTH:Print("[MTH ICU OPTIONS] setup failed: " .. tostring(err), "error")
end
if type(MTH_ClearContainer) == "function" then
MTH_ClearContainer(container)
end
local title = container:CreateFontString("MetaHuntOptionsICUCrashTitle", "ARTWORK", "GameFontHighlight")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -10)
title:SetText("MTH ICU")
local body = container:CreateFontString("MetaHuntOptionsICUCrashBody", "ARTWORK", "GameFontNormalSmall")
body:SetPoint("TOPLEFT", container, "TOPLEFT", 20, -34)
body:SetWidth(620)
body:SetJustifyH("LEFT")
body:SetJustifyV("TOP")
body:SetTextColor(1, 0.3, 0.3)
body:SetText("ICU options failed to render. Check chat/debug for details.")
end
end
+403
View File
@@ -0,0 +1,403 @@
------------------------------------------------------
-- MetaHunt Profile Management Options Panel
------------------------------------------------------
local MAX_PROFILE_ROWS = 15
local MAX_CHAR_ROWS = 10
local ROW_H = 26
-- Row pools — anonymous frames created once against scroll content, reused each refresh
local gProfileRows = {} -- [i] = { frame, nameText, infoText, loadBtn, delBtn }
local gCharRows = {} -- [i] = { frame, nameText, infoText, copyBtn }
-- Static element refs created once
local gActiveLabel = nil
local gSetupDone = false
-- Pending confirmations — globals so StaticPopup OnAccept can read them
MTH_PROFILE_PENDING_LOAD = nil
MTH_PROFILE_PENDING_DELETE = nil
MTH_PROFILE_PENDING_SAVE = nil
-- ── Static popup dialogs ───────────────────────────────────────────────────
StaticPopupDialogs["MTH_PROFILE_LOAD_CONFIRM"] = {
text = "Load profile \"%s\"?\n\nCurrent settings will be replaced.\nThe UI will reload to apply all changes.",
button1 = "Load & Reload",
button2 = "Cancel",
OnAccept = function()
if MTH_PROFILE_PENDING_LOAD then
local ok, err = MTH_Profile_Load(MTH_PROFILE_PENDING_LOAD)
MTH_PROFILE_PENDING_LOAD = nil
if ok then
ReloadUI()
elseif MTH and MTH.Print then
MTH:Print("Profile load failed: " .. tostring(err), "error")
end
end
end,
timeout = 0, whileDead = 0, hideOnEscape = 1,
}
StaticPopupDialogs["MTH_PROFILE_DELETE_CONFIRM"] = {
text = "Delete profile \"%s\"?\n\nThis cannot be undone.",
button1 = "Delete",
button2 = "Cancel",
OnAccept = function()
if MTH_PROFILE_PENDING_DELETE then
MTH_Profile_Delete(MTH_PROFILE_PENDING_DELETE)
MTH_PROFILE_PENDING_DELETE = nil
MTH_SetupProfilesOptions()
end
end,
timeout = 0, whileDead = 0, hideOnEscape = 1,
}
StaticPopupDialogs["MTH_PROFILE_SAVE_CONFIRM"] = {
text = "Profile \"%s\" already exists.\nOverwrite with current settings?",
button1 = "Overwrite",
button2 = "Cancel",
OnAccept = function()
if MTH_PROFILE_PENDING_SAVE then
MTH_Profile_Save(MTH_PROFILE_PENDING_SAVE)
MTH_PROFILE_PENDING_SAVE = nil
MTH_SetupProfilesOptions()
end
end,
timeout = 0, whileDead = 0, hideOnEscape = 1,
}
-- ── internal helpers ───────────────────────────────────────────────────────
local function PROF_TrimString(s)
if type(s) ~= "string" then return "" end
return string.gsub(s, "^%s*(.-)%s*$", "%1")
end
local function PROF_DoSave(rawName)
local name = PROF_TrimString(rawName)
if string.len(name) == 0 then
if MTH and MTH.Print then MTH:Print("Enter a profile name first.", "error") end
return
end
if string.len(name) > 50 then
if MTH and MTH.Print then MTH:Print("Profile name too long (50 chars max).", "error") end
return
end
local existing = type(MTH_SavedVariables) == "table"
and type(MTH_SavedVariables.profiles) == "table"
and MTH_SavedVariables.profiles[name] ~= nil
if existing then
MTH_PROFILE_PENDING_SAVE = name
StaticPopup_Show("MTH_PROFILE_SAVE_CONFIRM", name)
else
MTH_Profile_Save(name)
if MTH and MTH.Print then MTH:Print("Profile saved: " .. name) end
MTH_SetupProfilesOptions()
end
end
-- ── scroll frames + row pool creation (idempotent) ────────────────────────
local function PROF_EnsureScrollFrames(container)
if not MTH_GetFrame("MetaHuntOptionsProfilesScroll") then
local sf = CreateFrame("ScrollFrame", "MetaHuntOptionsProfilesScroll", container, "UIPanelScrollFrameTemplate")
local sc = CreateFrame("Frame", "MetaHuntOptionsProfilesContent", sf)
sc:SetWidth(510)
sc:SetHeight(MAX_PROFILE_ROWS * ROW_H + 4)
sf:SetScrollChild(sc)
end
if not MTH_GetFrame("MetaHuntOptionsCharScroll") then
local csf = CreateFrame("ScrollFrame", "MetaHuntOptionsCharScroll", container, "UIPanelScrollFrameTemplate")
local csc = CreateFrame("Frame", "MetaHuntOptionsCharContent", csf)
csc:SetWidth(510)
csc:SetHeight(MAX_CHAR_ROWS * ROW_H + 4)
csf:SetScrollChild(csc)
end
end
local function PROF_EnsureProfileRows()
local sc = MTH_GetFrame("MetaHuntOptionsProfilesContent")
if not sc then return end
for i = 1, MAX_PROFILE_ROWS do
if not gProfileRows[i] then
local row = CreateFrame("Frame", nil, sc)
row:SetHeight(ROW_H)
row:SetWidth(510)
row:SetPoint("TOPLEFT", sc, "TOPLEFT", 0, -(i - 1) * ROW_H)
local nameText = row:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
nameText:SetPoint("LEFT", row, "LEFT", 4, 2)
nameText:SetWidth(210)
nameText:SetJustifyH("LEFT")
local infoText = row:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
infoText:SetPoint("LEFT", row, "LEFT", 218, 2)
infoText:SetWidth(155)
infoText:SetJustifyH("LEFT")
infoText:SetTextColor(0.55, 0.55, 0.55)
local loadBtn = CreateFrame("Button", nil, row, "UIPanelButtonTemplate")
loadBtn:SetWidth(58)
loadBtn:SetHeight(20)
loadBtn:SetPoint("RIGHT", row, "RIGHT", -62, 0)
loadBtn:SetText("Load")
local delBtn = CreateFrame("Button", nil, row, "UIPanelButtonTemplate")
delBtn:SetWidth(58)
delBtn:SetHeight(20)
delBtn:SetPoint("RIGHT", row, "RIGHT", 0, 0)
delBtn:SetText("Delete")
gProfileRows[i] = { frame = row, nameText = nameText, infoText = infoText, loadBtn = loadBtn, delBtn = delBtn }
end
end
end
local function PROF_EnsureCharRows()
local csc = MTH_GetFrame("MetaHuntOptionsCharContent")
if not csc then return end
for i = 1, MAX_CHAR_ROWS do
if not gCharRows[i] then
local row = CreateFrame("Frame", nil, csc)
row:SetHeight(ROW_H)
row:SetWidth(510)
row:SetPoint("TOPLEFT", csc, "TOPLEFT", 0, -(i - 1) * ROW_H)
local nameText = row:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
nameText:SetPoint("LEFT", row, "LEFT", 4, 2)
nameText:SetWidth(250)
nameText:SetJustifyH("LEFT")
nameText:SetTextColor(0.70, 0.85, 1.00)
local infoText = row:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
infoText:SetPoint("LEFT", row, "LEFT", 258, 2)
infoText:SetWidth(120)
infoText:SetJustifyH("LEFT")
infoText:SetTextColor(0.55, 0.55, 0.55)
local copyBtn = CreateFrame("Button", nil, row, "UIPanelButtonTemplate")
copyBtn:SetWidth(80)
copyBtn:SetHeight(20)
copyBtn:SetPoint("RIGHT", row, "RIGHT", 0, 0)
copyBtn:SetText("Import")
gCharRows[i] = { frame = row, nameText = nameText, infoText = infoText, copyBtn = copyBtn }
end
end
end
-- ── dynamic refresh functions ──────────────────────────────────────────────
local function PROF_RefreshActive()
if not gActiveLabel then return end
local active = type(MTH_Profile_GetActive) == "function" and MTH_Profile_GetActive()
if active then
gActiveLabel:SetText("Active: |cffffd200" .. active .. "|r")
gActiveLabel:SetTextColor(0.90, 0.90, 0.90)
else
gActiveLabel:SetText("Active: |cff888888Custom (unsaved)|r")
gActiveLabel:SetTextColor(0.90, 0.90, 0.90)
end
gActiveLabel:Show()
end
local function PROF_RefreshProfileList()
PROF_EnsureProfileRows()
local profiles = type(MTH_Profile_GetList) == "function" and MTH_Profile_GetList() or {}
local active = type(MTH_Profile_GetActive) == "function" and MTH_Profile_GetActive()
local n = table.getn(profiles)
local sc = MTH_GetFrame("MetaHuntOptionsProfilesContent")
if sc then
sc:SetHeight(math.max(n * ROW_H + 4, ROW_H))
end
for i = 1, MAX_PROFILE_ROWS do
local row = gProfileRows[i]
if not row then break end
local name = profiles[i]
if name then
-- Name (with active indicator)
if name == active then
row.nameText:SetText(name .. " |cff00cc44[active]|r")
else
row.nameText:SetText(name)
end
-- Info: date saved by who
local p = type(MTH_SavedVariables) == "table"
and type(MTH_SavedVariables.profiles) == "table"
and MTH_SavedVariables.profiles[name]
local info = ""
if type(p) == "table" then
if p.savedAt and p.savedAt ~= "" then
info = p.savedAt
end
end
row.infoText:SetText(info)
-- Wire buttons (SetScript replaces previous handler each refresh)
local rowName = name
row.loadBtn:SetScript("OnClick", function()
MTH_PROFILE_PENDING_LOAD = rowName
StaticPopup_Show("MTH_PROFILE_LOAD_CONFIRM", rowName)
end)
row.delBtn:SetScript("OnClick", function()
MTH_PROFILE_PENDING_DELETE = rowName
StaticPopup_Show("MTH_PROFILE_DELETE_CONFIRM", rowName)
end)
row.frame:Show()
row.loadBtn:Show()
row.delBtn:Show()
else
row.frame:Hide()
end
end
end
local function PROF_RefreshCharList()
PROF_EnsureCharRows()
local chars = type(MTH_Profile_GetCharList) == "function" and MTH_Profile_GetCharList() or {}
local n = table.getn(chars)
local csc = MTH_GetFrame("MetaHuntOptionsCharContent")
if csc then
csc:SetHeight(math.max(n * ROW_H + 4, ROW_H))
end
for i = 1, MAX_CHAR_ROWS do
local row = gCharRows[i]
if not row then break end
local charKey = chars[i]
if charKey then
local snap = type(MTH_SavedVariables) == "table"
and type(MTH_SavedVariables.charSnapshots) == "table"
and MTH_SavedVariables.charSnapshots[charKey]
local info = (type(snap) == "table" and snap.savedAt) and snap.savedAt or ""
row.nameText:SetText(charKey)
row.infoText:SetText(info)
local ck = charKey
row.copyBtn:SetScript("OnClick", function()
local ok, pName = MTH_Profile_CopyFromChar(ck)
if ok then
MTH_SetupProfilesOptions()
if MTH and MTH.Print then
MTH:Print('Imported "' .. ck .. '" as profile "' .. tostring(pName) .. '".')
end
end
end)
row.frame:Show()
row.copyBtn:Show()
else
row.frame:Hide()
end
end
end
-- ── main setup (static elements created once, dynamic lists refreshed every call) ──
function MTH_SetupProfilesOptions()
local container = MTH_GetFrame("MetaHuntOptionsProfiles")
if not container then return end
if not gSetupDone then
-- Title
local title = container:CreateFontString(nil, "ARTWORK", "GameFontNormal")
title:SetPoint("TOPLEFT", container, "TOPLEFT", 6, -6)
title:SetText("Profiles")
title:SetTextColor(1.00, 0.82, 0.00)
-- Active profile indicator
gActiveLabel = container:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
gActiveLabel:SetPoint("TOPLEFT", title, "BOTTOMLEFT", 0, -4)
gActiveLabel:SetWidth(540)
gActiveLabel:SetJustifyH("LEFT")
-- ── Save As section ───────────────────────────────────────────────
local saveHdr = container:CreateFontString(nil, "ARTWORK", "GameFontNormal")
saveHdr:SetPoint("TOPLEFT", gActiveLabel, "BOTTOMLEFT", 0, -10)
saveHdr:SetText("Save current settings as:")
saveHdr:SetTextColor(0.90, 0.90, 0.90)
local eb = CreateFrame("EditBox", "MTH_ProfileNameInput", container, "InputBoxTemplate")
eb:SetWidth(240)
eb:SetHeight(20)
eb:SetMaxLetters(50)
eb:SetAutoFocus(false)
eb:SetPoint("TOPLEFT", saveHdr, "BOTTOMLEFT", 2, -6)
eb:SetScript("OnEnterPressed", function()
PROF_DoSave(this:GetText())
this:SetText("")
this:ClearFocus()
end)
eb:SetScript("OnEscapePressed", function()
this:SetText("")
this:ClearFocus()
end)
local saveBtn = CreateFrame("Button", "MTH_ProfileSaveBtn", container, "UIPanelButtonTemplate")
saveBtn:SetWidth(70)
saveBtn:SetHeight(20)
saveBtn:SetPoint("LEFT", eb, "RIGHT", 6, 0)
saveBtn:SetText("Save")
saveBtn:SetScript("OnClick", function()
local box = MTH_GetFrame("MTH_ProfileNameInput")
if box then
PROF_DoSave(box:GetText())
box:SetText("")
box:ClearFocus()
end
end)
-- ── Saved Profiles section ────────────────────────────────────────
local profHdr = container:CreateFontString(nil, "ARTWORK", "GameFontNormal")
profHdr:SetPoint("TOPLEFT", eb, "BOTTOMLEFT", -2, -12)
profHdr:SetText("Saved Profiles")
profHdr:SetTextColor(1.00, 0.82, 0.00)
local rule1 = container:CreateTexture(nil, "ARTWORK")
rule1:SetPoint("TOPLEFT", profHdr, "BOTTOMLEFT", 0, -3)
rule1:SetWidth(540)
rule1:SetHeight(1)
rule1:SetTexture(0.30, 0.30, 0.30, 0.80)
PROF_EnsureScrollFrames(container)
local sf = MTH_GetFrame("MetaHuntOptionsProfilesScroll")
sf:SetPoint("TOPLEFT", rule1, "BOTTOMLEFT", 0, -4)
sf:SetWidth(530)
sf:SetHeight(170)
sf:Show()
-- ── Copy from Character section ───────────────────────────────────
local charHdr = container:CreateFontString(nil, "ARTWORK", "GameFontNormal")
charHdr:SetPoint("TOPLEFT", sf, "BOTTOMLEFT", 0, -10)
charHdr:SetText("Copy from Character")
charHdr:SetTextColor(1.00, 0.82, 0.00)
local charNote = container:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall")
charNote:SetPoint("TOPLEFT", charHdr, "BOTTOMLEFT", 0, -2)
charNote:SetWidth(540)
charNote:SetJustifyH("LEFT")
charNote:SetText("Snapshots are saved automatically on logout. Click Import to create a profile from one.")
charNote:SetTextColor(0.60, 0.60, 0.60)
local rule2 = container:CreateTexture(nil, "ARTWORK")
rule2:SetPoint("TOPLEFT", charNote, "BOTTOMLEFT", 0, -3)
rule2:SetWidth(540)
rule2:SetHeight(1)
rule2:SetTexture(0.30, 0.30, 0.30, 0.80)
local csf = MTH_GetFrame("MetaHuntOptionsCharScroll")
csf:SetPoint("TOPLEFT", rule2, "BOTTOMLEFT", 0, -4)
csf:SetWidth(530)
csf:SetHeight(140)
csf:Show()
gSetupDone = true
end
-- Refresh dynamic content every time the panel is opened
PROF_RefreshActive()
PROF_RefreshProfileList()
PROF_RefreshCharList()
end
+48 -3
View File
@@ -13,6 +13,13 @@ local MTH_OPTIONS_SHELL_READY = MTH_OptionsRequire and MTH_OptionsRequire("optio
"MTH_BuildOptionsTree",
})
local function MTH_OPT_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
local function MTH_RegisterEscClose(frameName)
if not (frameName and UISpecialFrames) then
return
@@ -33,7 +40,7 @@ local function MTH_EnsureOptionsFrame()
MetaHuntOptions = CreateFrame("Frame", "MetaHuntOptions", UIParent, "MetaHuntOptionsTemplate")
if not MetaHuntOptions then
if MTH and MTH.Print then
MTH:Print("[MTH OPTIONS] Failed to create MetaHuntOptions", "error")
MTH:Print(MTH_OPT_L("OPT_ERR_CREATE_OPTIONS_FRAME", "[MTH OPTIONS] Failed to create MetaHuntOptions"), "error")
end
return nil
end
@@ -68,7 +75,7 @@ local function MTH_EnsureOptionsFrame()
closeBtn:SetPoint("TOPRIGHT", MetaHuntOptions, "TOPRIGHT", MTH_OPTIONS_CONST.CLOSE_BTN_OFFSET_X, MTH_OPTIONS_CONST.CLOSE_BTN_OFFSET_Y)
closeBtn:SetWidth(MTH_OPTIONS_CONST.CLOSE_BTN_SIZE)
closeBtn:SetHeight(MTH_OPTIONS_CONST.CLOSE_BTN_SIZE)
closeBtn:SetText("X")
closeBtn:SetText(MTH_OPT_L("COMMON_CLOSE_SHORT", "X"))
closeBtn:SetScript("OnClick", function() MetaHuntOptions:Hide() end)
end
@@ -110,6 +117,22 @@ function MTH_SelectOptionsTab(tabKey)
MTH_SetupGeneralOptions()
MTH_OPTIONS_SETUP["General"] = true
end
elseif tabKey == "Profiles" then
if type(MTH_SetupProfilesOptions) == "function" then
MTH_SetupProfilesOptions()
MTH_OPTIONS_SETUP["Profiles"] = true
end
elseif tabKey == "Messages" then
if not MTH_OPTIONS_SETUP["Messages"] then
if type(MTH_SetupMessagesOptions) == "function" then
MTH_SetupMessagesOptions()
MTH_OPTIONS_SETUP["Messages"] = true
end
else
if type(MTH_SetupMessagesOptions) == "function" then
MTH_SetupMessagesOptions()
end
end
elseif tabKey == "Pet" then
if not MTH_OPTIONS_SETUP["Pet"] then
MTH_SetupPetOptions()
@@ -130,6 +153,13 @@ function MTH_SelectOptionsTab(tabKey)
MTH_SetupTrapOptions()
MTH_OPTIONS_SETUP["Trap"] = true
end
elseif tabKey == "Ranged" then
if not MTH_OPTIONS_SETUP["Ranged"] then
MTH_SetupRangedOptions()
MTH_OPTIONS_SETUP["Ranged"] = true
else
MTH_SetupRangedOptions()
end
elseif tabKey == "Ammo" then
if not MTH_OPTIONS_SETUP["Ammo"] then
MTH_SetupAmmoOptions()
@@ -170,6 +200,21 @@ function MTH_SelectOptionsTab(tabKey)
else
MTH_SetupAutoBuyOptions()
end
elseif tabKey == "AutoQuest" then
if type(MTH_SetupAutoQuestOptions) == "function" then
MTH_SetupAutoQuestOptions()
MTH_OPTIONS_SETUP["AutoQuest"] = true
end
elseif tabKey == "ICU" then
if type(MTH_SetupICUOptions) == "function" then
MTH_SetupICUOptions()
MTH_OPTIONS_SETUP["ICU"] = true
if type(MTH_RefreshICUOptions) == "function" then
MTH_RefreshICUOptions()
end
elseif MTH and MTH.Print then
MTH:Print("ICU options setup function is not loaded", "error")
end
elseif tabKey == "Credits" then
local setupCredits = _G and _G["MTH_SetupCreditsOptions"]
if type(setupCredits) == "function" then
@@ -185,7 +230,7 @@ function MTH_SelectOptionsTab(tabKey)
MTH_SetupChronometerOptions()
MTH_OPTIONS_SETUP[tabKey] = true
elseif MTH and MTH.Print then
MTH:Print("Chronometer options module not loaded", "error")
MTH:Print(MTH_OPT_L("OPT_ERR_CHRON_NOT_LOADED", "Chronometer options module not loaded"), "error")
end
else
if _G then
+12 -2
View File
@@ -27,11 +27,14 @@ MTH_OPTIONS_CONST = MTH_OPTIONS_CONST or {
}
MTH_OPTIONS_TABS = MTH_OPTIONS_TABS or {
{ key = "General", label = "General", frame = "MetaHuntOptionsGeneral" },
{ key = "General", label = "General", frame = "MetaHuntOptionsGeneral" },
{ key = "Profiles", label = "Profiles", frame = "MetaHuntOptionsProfiles" },
{ key = "Messages", label = "Messages", frame = "MetaHuntOptionsMessages" },
{ key = "Pet", label = "ZPet", frame = "MetaHuntOptionsPet" },
{ key = "Track", label = "ZTrack", frame = "MetaHuntOptionsTrack" },
{ key = "Aspect", label = "ZAspect", frame = "MetaHuntOptionsAspect" },
{ key = "Trap", label = "ZTrap", frame = "MetaHuntOptionsTrap" },
{ key = "Ranged", label = "ZRanged", frame = "MetaHuntOptionsRanged" },
{ key = "Ammo", label = "ZAmmo", frame = "MetaHuntOptionsAmmo" },
{ key = "Mounts", label = "ZMounts", frame = "MetaHuntOptionsMounts" },
{ key = "Companions", label = "ZCompanions", frame = "MetaHuntOptionsCompanions" },
@@ -39,6 +42,8 @@ MTH_OPTIONS_TABS = MTH_OPTIONS_TABS or {
{ key = "SmartAmmo", label = "Smart Ammo", frame = "MetaHuntOptionsSmartAmmo" },
{ key = "FeedOMatic", label = "FeedOMatic", frame = "MetaHuntOptionsFeedOMatic" },
{ key = "AutoBuy", label = "Auto Buy", frame = "MetaHuntOptionsAutoBuy" },
{ key = "AutoQuest", label = "Auto Quest", frame = "MetaHuntOptionsAutoQuest" },
{ key = "ICU", label = "ICU", frame = "MetaHuntOptionsICU" },
{ key = "ChronometerGeneral", label = "General", frame = "MetaHuntOptionsChronometer" },
{ key = "ChronometerBar", label = "Bar", frame = "MetaHuntOptionsChronometer" },
{ key = "ChronometerClassSpells", label = "Hunter Spells", frame = "MetaHuntOptionsChronometer" },
@@ -48,9 +53,13 @@ MTH_OPTIONS_TABS = MTH_OPTIONS_TABS or {
}
MTH_OPTIONS_TREE = MTH_OPTIONS_TREE or {
{ label = "General", key = "General" },
{ label = "General", key = "General" },
{ label = "Profiles", key = "Profiles" },
{ label = "Messages", key = "Messages" },
{ label = "Auto Buy", key = "AutoBuy" },
{ label = "Auto Quest", key = "AutoQuest" },
{ label = "Feed-O-Matic", key = "FeedOMatic" },
{ label = "ICU", key = "ICU" },
{
label = "zButtons",
node = "zButtons",
@@ -60,6 +69,7 @@ MTH_OPTIONS_TREE = MTH_OPTIONS_TREE or {
{ label = "zAspect", key = "Aspect" },
{ label = "zTrack", key = "Track" },
{ label = "zTrap", key = "Trap" },
{ label = "zRanged", key = "Ranged" },
{ label = "zMounts", key = "Mounts" },
{ label = "zCompanions", key = "Companions" },
{ label = "zToys", key = "Toys" },
+410 -138
View File
@@ -6,6 +6,13 @@ local MTH_ZBUTTONS_READY = MTH_OptionsRequire and MTH_OptionsRequire("options-zb
"MTH_CreateActionButton",
})
local function MTH_ZB_L(key, default)
if MTH and MTH.GetLocalization then
return MTH:GetLocalization(key, default)
end
return default or key
end
local function MTH_ZB_RefreshTab(tabName)
if type(MTH_ResetAndSelectOptionsTab) == "function" then
MTH_ResetAndSelectOptionsTab(tabName)
@@ -14,6 +21,14 @@ local function MTH_ZB_RefreshTab(tabName)
end
end
local function MTH_ZB_IsChecked(control)
if not control or type(control.GetChecked) ~= "function" then
return false
end
local checked = control:GetChecked()
return checked == 1 or checked == true
end
local function MTH_RebuildSpellOrder(buttonName, buttonObj, itemList, maxButtons)
if not (buttonName and buttonObj and itemList and maxButtons) then return end
local info = {}
@@ -150,6 +165,11 @@ local function MTH_GetButtonItemList(buttonName)
end
end
return getglobal("ZHunterMod_Ammo_Buttons") or sharedArrows
elseif buttonName == "zButtonRanged" then
local rangedList = getglobal("ZHunterMod_Ranged_Weapons")
if rangedList and table.getn(rangedList) > 0 then
return rangedList
end
elseif buttonName == "zButtonMounts" or buttonName == "zButtonCompanions" or buttonName == "zButtonToys" then
if ZHunterMod_Saved and ZHunterMod_Saved[buttonName] and ZHunterMod_Saved[buttonName]["spells"] then
return ZHunterMod_Saved[buttonName]["spells"]
@@ -175,15 +195,15 @@ local function MTH_EnsureAmmoOptionsWatcher()
if MTH_AmmoOptionsWatcher then
return
end
MTH_AmmoOptionsWatcher = CreateFrame("Frame", "MTHAmmoOptionsWatcherFrame")
MTH_AmmoOptionsWatcher = CreateFrame("Frame", "MTH_AmmoOptionsWatcher")
if not MTH_AmmoOptionsWatcher then
return
end
MTH_AmmoOptionsWatcher:RegisterEvent("UNIT_INVENTORY_CHANGED")
MTH_AmmoOptionsWatcher:RegisterEvent("BAG_UPDATE")
MTH_AmmoOptionsWatcher:SetScript("OnEvent", function(_, eventName, unit)
eventName = eventName or event
unit = unit or arg1
MTH_AmmoOptionsWatcher:SetScript("OnEvent", function()
local eventName = event
local unit = arg1
if eventName == "UNIT_INVENTORY_CHANGED" and unit and unit ~= "player" then
return
end
@@ -191,6 +211,78 @@ local function MTH_EnsureAmmoOptionsWatcher()
end)
end
local function MTH_ZB_GetDefaultEnabled(buttonName)
if buttonName == "zButtonMounts" or buttonName == "zButtonCompanions" or buttonName == "zButtonToys" or buttonName == "zButtonRanged" then
return false
end
return true
end
local function MTH_ZB_EnsureButtonOptionDefaults(buttonName)
if not (ZHunterMod_Saved and buttonName) then
return nil
end
if type(ZHunterMod_Saved[buttonName]) ~= "table" then
ZHunterMod_Saved[buttonName] = {}
end
local saved = ZHunterMod_Saved[buttonName]
if saved["enabled"] == nil then
saved["enabled"] = MTH_ZB_GetDefaultEnabled(buttonName)
end
saved["enabled"] = saved["enabled"] and true or false
if saved["tooltip"] == nil then
saved["tooltip"] = true
end
saved["tooltip"] = saved["tooltip"] and true or false
if type(saved["children"]) ~= "table" then
saved["children"] = {}
end
if saved["children"]["hideonclick"] == nil then
saved["children"]["hideonclick"] = true
end
saved["children"]["hideonclick"] = saved["children"]["hideonclick"] and true or false
if saved["children"]["expandonhover"] == nil then
saved["children"]["expandonhover"] = false
end
saved["children"]["expandonhover"] = saved["children"]["expandonhover"] and true or false
if saved["children"]["fadetimer"] == nil then
saved["children"]["fadetimer"] = 0
end
saved["children"]["fadetimer"] = tonumber(saved["children"]["fadetimer"]) or 0
if type(saved["parent"]) ~= "table" then
saved["parent"] = {}
end
if saved["parent"]["hide"] == nil then
saved["parent"]["hide"] = false
end
saved["parent"]["hide"] = saved["parent"]["hide"] and true or false
if saved["parent"]["circle"] == nil then
saved["parent"]["circle"] = true
end
saved["parent"]["circle"] = saved["parent"]["circle"] and true or false
if saved["firstbutton"] ~= "LEFT" and saved["firstbutton"] ~= "RIGHT" then
saved["firstbutton"] = "RIGHT"
end
if buttonName == "zButtonAmmo" then
if saved["showammoname"] == nil then
saved["showammoname"] = true
end
saved["showammoname"] = saved["showammoname"] and true or false
end
return saved
end
local function MTH_SetupButtonOptions(containerName, buttonName, displayName, maxButtons)
local container = MTH_GetFrame(containerName)
if not container then
@@ -205,7 +297,7 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
if not ZHunterMod_Saved or not ZHunterMod_Saved[buttonName] then
local errText = container:CreateFontString(containerName.."Error", "ARTWORK", "GameFontNormal")
errText:SetPoint("CENTER", container, "CENTER", 0, 0)
errText:SetText("Configuration not loaded for "..displayName)
errText:SetText(string.format(MTH_ZB_L("ZB_ERR_CONFIG_NOT_LOADED", "Configuration not loaded for %s"), tostring(displayName)))
errText:SetTextColor(1, 0.5, 0.5)
if MTH and MTH.Print then
MTH:Print("[MTH] zhunter saved data missing for "..buttonName, "error")
@@ -214,6 +306,10 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
end
local buttonObj = getglobal(buttonName)
local saved = MTH_ZB_EnsureButtonOptionDefaults(buttonName)
if not saved then
return
end
local containerWidth = container:GetWidth() or 500
local leftWidth = 260
local rightX = leftWidth + 44
@@ -236,37 +332,34 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
return section
end
if ZHunterMod_Saved[buttonName]["enabled"] == nil then
ZHunterMod_Saved[buttonName]["enabled"] = true
end
local enabledValue = saved["enabled"] and true or false
local enableLabel = tostring(displayName or "")
if string.len(enableLabel) > 0 then
enableLabel = string.lower(string.sub(enableLabel, 1, 1)) .. string.sub(enableLabel, 2)
end
local enableButton = MTH_CreateCheckbox(container, containerName.."EnableButton", "Enable "..enableLabel, -8)
local enableButton = MTH_CreateCheckbox(container, containerName.."EnableButton", string.format(MTH_ZB_L("ZB_LABEL_ENABLE_FMT", "Enable %s"), enableLabel), -8)
if enableButton then
enableButton:SetChecked(ZHunterMod_Saved[buttonName]["enabled"] and true or false)
enableButton:SetChecked(enabledValue and true or false)
enableButton.buttonName = buttonName
enableButton.buttonObj = buttonObj
enableButton:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() and true or false
MTH_SetButtonEnabledState(self.buttonName, self.buttonObj, checked)
enableButton:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
MTH_SetButtonEnabledState(this.buttonName, this.buttonObj, checked)
end)
end
local parentSection = MTH_ZB_EnsureSection(containerName.."ParentSection", "Parent Button", -52, 116)
local childrenSection = MTH_ZB_EnsureSection(containerName.."ChildrenSection", "Children Buttons", -184, 235)
local parentSection = MTH_ZB_EnsureSection(containerName.."ParentSection", MTH_ZB_L("ZB_SECTION_PARENT_BUTTON", "Parent Button"), -52, 116)
local childrenSection = MTH_ZB_EnsureSection(containerName.."ChildrenSection", MTH_ZB_L("ZB_SECTION_CHILDREN_BUTTONS", "Children Buttons"), -184, 310)
local parentYOffset = -18
local childrenYOffset = -18
local btnSize = MTH_CreateSlider(childrenSection or container, containerName.."ButtonSize", "Button Size", 10, 100, 1, childrenYOffset)
local btnSize = MTH_CreateSlider(childrenSection or container, containerName.."ButtonSize", MTH_ZB_L("ZB_LABEL_BUTTON_SIZE", "Button Size"), 10, 100, 1, childrenYOffset)
if btnSize then
btnSize:SetWidth(leftWidth - 40)
btnSize:SetValue(ZHunterMod_Saved[buttonName]["children"]["size"] or 36)
btnSize:SetValue(saved["children"]["size"] or 36)
btnSize.buttonName = buttonName
btnSize.buttonObj = buttonObj
btnSize.itemList = MTH_GetButtonItemList(buttonName)
@@ -285,10 +378,10 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
end
childrenYOffset = childrenYOffset - 50
local rowCount = MTH_CreateSlider(childrenSection or container, containerName.."RowCount", "Number of Rows", 1, maxButtons, 1, childrenYOffset)
local rowCount = MTH_CreateSlider(childrenSection or container, containerName.."RowCount", MTH_ZB_L("ZB_LABEL_NUMBER_OF_ROWS", "Number of Rows"), 1, maxButtons, 1, childrenYOffset)
if rowCount then
rowCount:SetWidth(leftWidth - 40)
rowCount:SetValue(ZHunterMod_Saved[buttonName]["rows"] or 1)
rowCount:SetValue(saved["rows"] or 1)
rowCount.buttonName = buttonName
rowCount.buttonObj = buttonObj
rowCount.itemList = MTH_GetButtonItemList(buttonName)
@@ -303,83 +396,121 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
end
childrenYOffset = childrenYOffset - 40
if ZHunterMod_Saved[buttonName]["firstbutton"] == nil then
ZHunterMod_Saved[buttonName]["firstbutton"] = "RIGHT"
end
local expandLeft = MTH_CreateCheckbox(childrenSection or container, containerName.."ExpandLeft", "Expand Left (opposite side)", childrenYOffset)
local expandLeft = MTH_CreateCheckbox(childrenSection or container, containerName.."ExpandLeft", MTH_ZB_L("ZB_LABEL_EXPAND_LEFT", "Expand Left (opposite side)"), childrenYOffset)
if expandLeft then
expandLeft:SetChecked(ZHunterMod_Saved[buttonName]["firstbutton"] == "LEFT")
expandLeft:SetChecked(saved["firstbutton"] == "LEFT")
expandLeft.buttonName = buttonName
expandLeft.buttonObj = buttonObj
expandLeft:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() and true or false
local btnName = self.buttonName
expandLeft:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
local btnName = this.buttonName
if not btnName or not (ZHunterMod_Saved and ZHunterMod_Saved[btnName]) then return end
ZHunterMod_Saved[btnName]["firstbutton"] = checked and "LEFT" or "RIGHT"
ZHunterMod_Saved[btnName]["horizontal"] = checked and 1 or nil
ZHunterMod_Saved[btnName]["vertical"] = checked and 1 or nil
MTH_RefreshButtonGeometry(btnName, self.buttonObj)
MTH_RefreshButtonGeometry(btnName, this.buttonObj)
end)
end
childrenYOffset = childrenYOffset - 30
local hideClick = MTH_CreateCheckbox(childrenSection or container, containerName.."HideOnClick", "Hide Buttons On Click", childrenYOffset)
local hideClick = MTH_CreateCheckbox(childrenSection or container, containerName.."HideOnClick", MTH_ZB_L("ZB_LABEL_HIDE_BUTTONS_ON_CLICK", "Hide Buttons On Click"), childrenYOffset)
if hideClick then
hideClick:SetChecked(ZHunterMod_Saved[buttonName]["children"]["hideonclick"])
hideClick:SetChecked(saved["children"]["hideonclick"])
hideClick.buttonName = buttonName
hideClick.buttonObj = buttonObj
if hideClick.buttonObj then
hideClick.buttonObj.hideonclick = ZHunterMod_Saved[buttonName]["children"]["hideonclick"] and true or false
hideClick.buttonObj.hideonclick = saved["children"]["hideonclick"] and true or false
end
hideClick:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() and true or false
ZHunterMod_Saved[self.buttonName]["children"]["hideonclick"] = checked
local btnObj = self.buttonObj or getglobal(self.buttonName)
hideClick:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
ZHunterMod_Saved[this.buttonName]["children"]["hideonclick"] = checked
local btnObj = this.buttonObj or getglobal(this.buttonName)
if btnObj then btnObj.hideonclick = checked end
end)
end
childrenYOffset = childrenYOffset - 25
local showTooltip = MTH_CreateCheckbox(childrenSection or container, containerName.."ShowTooltip", "Show Tooltip", childrenYOffset)
local expandOnHover = MTH_CreateCheckbox(childrenSection or container, containerName.."ExpandOnHover", MTH_ZB_L("ZB_LABEL_EXPAND_ON_HOVER", "Expand on Hover"), childrenYOffset)
if expandOnHover then
expandOnHover:SetChecked(saved["children"]["expandonhover"])
expandOnHover.buttonName = buttonName
expandOnHover.buttonObj = buttonObj
expandOnHover:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
local btnName = this.buttonName
if not btnName or not (ZHunterMod_Saved and ZHunterMod_Saved[btnName]) then return end
if not ZHunterMod_Saved[btnName]["children"] then
ZHunterMod_Saved[btnName]["children"] = {}
end
ZHunterMod_Saved[btnName]["children"]["expandonhover"] = checked
local btnObj = this.buttonObj or getglobal(btnName)
if btnObj then btnObj.expandonhover = checked end
end)
end
childrenYOffset = childrenYOffset - 40
local fadeTimer = MTH_CreateSlider(childrenSection or container, containerName.."FadeTimer", MTH_ZB_L("ZB_LABEL_AUTO_HIDE_TIMER", "Auto-Hide Timer (seconds)"), 0, 10, 1, childrenYOffset)
if fadeTimer then
fadeTimer:SetWidth(leftWidth - 40)
fadeTimer:SetValue(saved["children"]["fadetimer"] or 0)
fadeTimer.buttonName = buttonName
fadeTimer.buttonObj = buttonObj
fadeTimer.onChange = function(val, slider)
local frame = slider or fadeTimer
local btnName = frame and frame.buttonName
if not btnName or not (ZHunterMod_Saved and ZHunterMod_Saved[btnName]) then return end
if not ZHunterMod_Saved[btnName]["children"] then
ZHunterMod_Saved[btnName]["children"] = {}
end
local secs = math.floor((val or 0) + 0.5)
ZHunterMod_Saved[btnName]["children"]["fadetimer"] = secs
local btnObj = frame.buttonObj or getglobal(btnName)
if btnObj then
btnObj.fadetimer = secs
if secs <= 0 then
ZSpellButton_StopFadeTimer(btnObj)
elseif btnObj.children and btnObj.children:IsVisible() then
ZSpellButton_StartFadeTimer(btnObj)
end
end
end
end
childrenYOffset = childrenYOffset - 50
local showTooltip = MTH_CreateCheckbox(childrenSection or container, containerName.."ShowTooltip", MTH_ZB_L("ZB_LABEL_SHOW_TOOLTIP", "Show Tooltip"), childrenYOffset)
if showTooltip then
showTooltip:SetChecked(ZHunterMod_Saved[buttonName]["tooltip"])
showTooltip:SetChecked(saved["tooltip"])
showTooltip.buttonName = buttonName
showTooltip.buttonObj = buttonObj
if showTooltip.buttonObj then
showTooltip.buttonObj.tooltip = ZHunterMod_Saved[buttonName]["tooltip"] and true or false
showTooltip.buttonObj.tooltip = saved["tooltip"] and true or false
end
showTooltip:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() and true or false
ZHunterMod_Saved[self.buttonName]["tooltip"] = checked
local btnObj = self.buttonObj or getglobal(self.buttonName)
showTooltip:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
ZHunterMod_Saved[this.buttonName]["tooltip"] = checked
local btnObj = this.buttonObj or getglobal(this.buttonName)
if btnObj then btnObj.tooltip = checked end
end)
end
childrenYOffset = childrenYOffset - 25
if buttonName == "zButtonAmmo" then
if ZHunterMod_Saved[buttonName]["showammoname"] == nil then
ZHunterMod_Saved[buttonName]["showammoname"] = 1
end
local showAmmoName = MTH_CreateCheckbox(childrenSection or container, containerName.."ShowAmmoName", "Show ammo name", childrenYOffset)
local showAmmoName = MTH_CreateCheckbox(childrenSection or container, containerName.."ShowAmmoName", MTH_ZB_L("ZB_LABEL_SHOW_AMMO_NAME", "Show ammo name"), childrenYOffset)
if showAmmoName then
showAmmoName:SetChecked(ZHunterMod_Saved[buttonName]["showammoname"])
showAmmoName:SetChecked(saved["showammoname"])
showAmmoName.buttonName = buttonName
showAmmoName.buttonObj = buttonObj
showAmmoName.maxButtons = maxButtons
showAmmoName:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() and true or false
local btnName = self.buttonName
showAmmoName:SetScript("OnClick", function()
if not this then return end
local checked = MTH_ZB_IsChecked(this)
local btnName = this.buttonName
ZHunterMod_Saved[btnName]["showammoname"] = checked
local btnObj = self.buttonObj or getglobal(btnName)
local btnObj = this.buttonObj or getglobal(btnName)
if btnObj then
for i = 1, (btnObj.count or 0) do
local child = getglobal(btnName..i)
@@ -398,10 +529,10 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
childrenYOffset = childrenYOffset - 35
end
local mainSize = MTH_CreateSlider(parentSection or container, containerName.."MainButtonSize", "Button Size", 10, 100, 1, parentYOffset)
local mainSize = MTH_CreateSlider(parentSection or container, containerName.."MainButtonSize", MTH_ZB_L("ZB_LABEL_BUTTON_SIZE", "Button Size"), 10, 100, 1, parentYOffset)
if mainSize then
mainSize:SetWidth(leftWidth - 40)
mainSize:SetValue(ZHunterMod_Saved[buttonName]["parent"]["size"] or 36)
mainSize:SetValue(saved["parent"]["size"] or 36)
mainSize.buttonName = buttonName
mainSize.buttonObj = buttonObj
mainSize.onChange = function(val, slider)
@@ -423,51 +554,49 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
end
parentYOffset = parentYOffset - 35
local hideButton = MTH_CreateCheckbox(parentSection or container, containerName.."HideButton", "Hide Button", parentYOffset)
local hideButton = MTH_CreateCheckbox(parentSection or container, containerName.."HideButton", MTH_ZB_L("ZB_LABEL_HIDE_BUTTON", "Hide Button"), parentYOffset)
if hideButton then
hideButton:SetChecked(ZHunterMod_Saved[buttonName]["parent"]["hide"])
hideButton:SetChecked(saved["parent"]["hide"])
hideButton.buttonName = buttonName
hideButton.buttonObj = buttonObj
hideButton:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() == 1
ZHunterMod_Saved[self.buttonName]["parent"]["hide"] = checked
if self.buttonObj then
if checked then self.buttonObj:Hide() else self.buttonObj:Show() end
hideButton:SetScript("OnClick", function()
if not this then return end
local checked = this:GetChecked() == 1
ZHunterMod_Saved[this.buttonName]["parent"]["hide"] = checked
if this.buttonObj then
if checked then this.buttonObj:Hide() else this.buttonObj:Show() end
end
end)
end
parentYOffset = parentYOffset - 25
local useCircle = MTH_CreateCheckbox(parentSection or container, containerName.."UseCircle", "Use Circle Button", parentYOffset)
local useCircle = MTH_CreateCheckbox(parentSection or container, containerName.."UseCircle", MTH_ZB_L("ZB_LABEL_USE_CIRCLE_BUTTON", "Use Circle Button"), parentYOffset)
if useCircle then
useCircle:SetChecked(ZHunterMod_Saved[buttonName]["parent"]["circle"])
useCircle:SetChecked(saved["parent"]["circle"])
useCircle.buttonName = buttonName
useCircle.buttonObj = buttonObj
useCircle:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() == 1
ZHunterMod_Saved[self.buttonName]["parent"]["circle"] = checked
if self.buttonObj and self.buttonObj.circle then
if checked then self.buttonObj.circle:Show() else self.buttonObj.circle:Hide() end
useCircle:SetScript("OnClick", function()
if not this then return end
local checked = this:GetChecked() == 1
ZHunterMod_Saved[this.buttonName]["parent"]["circle"] = checked
if this.buttonObj and this.buttonObj.circle then
if checked then this.buttonObj.circle:Show() else this.buttonObj.circle:Hide() end
end
end)
end
MTH_SetButtonEnabledState(buttonName, buttonObj, ZHunterMod_Saved[buttonName]["enabled"] and true or false)
MTH_SetButtonEnabledState(buttonName, buttonObj, saved["enabled"] and true or false)
local advHeader = container:CreateFontString(containerName.."AdvHeader", "ARTWORK", "GameFontHighlight")
advHeader:SetPoint("TOPLEFT", container, "TOPLEFT", rightX, -10)
advHeader:SetText("Spell Order")
advHeader:SetText(MTH_ZB_L("ZB_HEADER_SPELL_ORDER", "Spell Order"))
local itemList = MTH_GetButtonItemList(buttonName)
if not itemList or not ZHunterMod_Saved[buttonName]["spells"] then
local noData = container:CreateFontString(containerName.."NoData", "ARTWORK", "GameFontNormalSmall")
noData:SetPoint("TOPRIGHT", container, "TOPRIGHT", -80, -50)
noData:SetText("Spell data not loaded")
noData:SetText(MTH_ZB_L("ZB_TEXT_SPELL_DATA_NOT_LOADED", "Spell data not loaded"))
noData:SetTextColor(1, 0.5, 0.5)
return
end
@@ -509,17 +638,16 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
showText:SetText("")
end
showToggle:SetChecked(ZHunterMod_Saved[buttonName]["visible"][showToggle.spellIndex] ~= false)
showToggle:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local checked = self:GetChecked() == 1
local btnName = self.buttonName
local visibleIndex = self.spellIndex
showToggle:SetScript("OnClick", function()
if not this then return end
local checked = this:GetChecked() == 1
local btnName = this.buttonName
local visibleIndex = this.spellIndex
if not ZHunterMod_Saved[btnName]["visible"] then
ZHunterMod_Saved[btnName]["visible"] = {}
end
ZHunterMod_Saved[btnName]["visible"][visibleIndex] = checked
MTH_RefreshButtonLayout(btnName, self.buttonObj, self.itemList, self.maxButtons)
MTH_RefreshButtonLayout(btnName, this.buttonObj, this.itemList, this.maxButtons)
end)
end
@@ -534,18 +662,17 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
downBtn.buttonObj = buttonObj
downBtn.itemList = itemList
downBtn.maxButtons = maxButtons
downBtn:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local idx = self.spellIndex
local btnName = self.buttonName
local contName = self.containerName
local maxBtns = self.maxButtons
downBtn:SetScript("OnClick", function()
if not this then return end
local idx = this.spellIndex
local btnName = this.buttonName
local contName = this.containerName
local maxBtns = this.maxButtons
if idx < maxBtns then
local temp = ZHunterMod_Saved[btnName]["spells"][idx+1]
ZHunterMod_Saved[btnName]["spells"][idx+1] = ZHunterMod_Saved[btnName]["spells"][idx]
ZHunterMod_Saved[btnName]["spells"][idx] = temp
MTH_RebuildSpellOrder(btnName, self.buttonObj, self.itemList, self.maxButtons)
MTH_RebuildSpellOrder(btnName, this.buttonObj, this.itemList, this.maxButtons)
local tabName = gsub(contName, "MetaHuntOptions", "")
MTH_ZB_RefreshTab(tabName)
end
@@ -562,17 +689,16 @@ local function MTH_SetupButtonOptions(containerName, buttonName, displayName, ma
upBtn.buttonObj = buttonObj
upBtn.itemList = itemList
upBtn.maxButtons = maxButtons
upBtn:SetScript("OnClick", function(self)
self = self or this
if not self then return end
local idx = self.spellIndex
local btnName = self.buttonName
local contName = self.containerName
upBtn:SetScript("OnClick", function()
if not this then return end
local idx = this.spellIndex
local btnName = this.buttonName
local contName = this.containerName
if idx > 1 then
local temp = ZHunterMod_Saved[btnName]["spells"][idx-1]
ZHunterMod_Saved[btnName]["spells"][idx-1] = ZHunterMod_Saved[btnName]["spells"][idx]
ZHunterMod_Saved[btnName]["spells"][idx] = temp
MTH_RebuildSpellOrder(btnName, self.buttonObj, self.itemList, self.maxButtons)
MTH_RebuildSpellOrder(btnName, this.buttonObj, this.itemList, this.maxButtons)
local tabName = gsub(contName, "MetaHuntOptions", "")
MTH_ZB_RefreshTab(tabName)
end
@@ -608,6 +734,13 @@ function MTH_SetupTrapOptions()
MTH_SetupButtonOptions("MetaHuntOptionsTrap", "zButtonTrap", "ZTrap", 4)
end
function MTH_SetupRangedOptions()
if not MTH_ZBUTTONS_READY then return end
local itemList = MTH_GetButtonItemList("zButtonRanged")
local maxButtons = itemList and table.getn(itemList) or 1
MTH_SetupButtonOptions("MetaHuntOptionsRanged", "zButtonRanged", "ZRanged", maxButtons)
end
function MTH_SetupAmmoOptions()
if not MTH_ZBUTTONS_READY then return end
MTH_EnsureAmmoOptionsWatcher()
@@ -664,28 +797,26 @@ function MTH_SetupSmartAmmoOptions()
end
if moduleToggle then
moduleToggle:SetChecked(moduleEnabled)
moduleToggle:SetScript("OnClick", function(self)
self = self or this
if not self then return end
moduleToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetModuleEnabled then
MTH:SetModuleEnabled("smartammo", self:GetChecked() and true or false)
MTH:SetModuleEnabled("smartammo", MTH_ZB_IsChecked(this))
end
MTH_SetupSmartAmmoOptions()
end)
end
local smartToggle = MTH_CreateCheckbox(container, "MetaHuntOptionsSmartAmmoEnabled", "Enable Smart Ammo Swaps", -94)
local smartToggle = MTH_CreateCheckbox(container, "MetaHuntOptionsSmartAmmoEnabled", "Enable Junk Shot Swaps", -94)
if smartToggle then
local enabled = type(MTHSmartAmmo_GetSmartEnabled) == "function" and MTHSmartAmmo_GetSmartEnabled() and true or false
smartToggle:SetChecked(enabled)
if not moduleEnabled then
smartToggle:Disable()
end
smartToggle:SetScript("OnClick", function(self)
self = self or this
if not self then return end
smartToggle:SetScript("OnClick", function()
if not this then return end
if type(MTHSmartAmmo_SetSmartEnabled) == "function" then
MTHSmartAmmo_SetSmartEnabled(self:GetChecked() and 1 or nil)
MTHSmartAmmo_SetSmartEnabled(MTH_ZB_IsChecked(this) and 1 or nil)
end
end)
end
@@ -700,16 +831,121 @@ function MTH_SetupSmartAmmoOptions()
if not moduleEnabled then
reloadToggle:Disable()
end
reloadToggle:SetScript("OnClick", function(self)
self = self or this
if not self then return end
reloadToggle:SetScript("OnClick", function()
if not this then return end
if type(MTHSmartAmmo_SetReloadEnabled) == "function" then
MTHSmartAmmo_SetReloadEnabled(self:GetChecked() and 1 or nil)
MTHSmartAmmo_SetReloadEnabled(MTH_ZB_IsChecked(this) and 1 or nil)
end
end)
end
end
function MTH_SetupMessagesOptions()
if not MTH_ZBUTTONS_READY then return end
local container = MTH_GetFrame("MetaHuntOptionsMessages")
if not container then return end
MTH_ClearContainer(container)
local section = CreateFrame("Frame", "MetaHuntMessagesSection", container, "OptionFrameBoxTemplate")
if not section then return end
section:SetPoint("TOPLEFT", container, "TOPLEFT", 8, -8)
section:SetPoint("TOPRIGHT", container, "TOPRIGHT", -8, -8)
section:SetHeight(268)
local titleFrame = getglobal("MetaHuntMessagesSectionTitle")
if titleFrame then
titleFrame:SetText("Messages")
end
local help = section:CreateFontString("MetaHuntMessagesHelp", "ARTWORK")
help:SetFont("Fonts\\FRIZQT__.TTF", 10)
help:SetJustifyH("LEFT")
help:SetPoint("TOPLEFT", section, "TOPLEFT", 14, -12)
help:SetPoint("TOPRIGHT", section, "TOPRIGHT", -14, -12)
help:SetText("Enable or Disable Metahunt chat messages")
local msgSettings = (MTH and MTH.GetMessageSettings and MTH:GetMessageSettings()) or {}
local initModulesToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesInitModules", "Init : modules loaded", -36)
if initModulesToggle then
initModulesToggle:SetChecked(msgSettings.initModulesLoaded and true or false)
initModulesToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("initModulesLoaded", MTH_ZB_IsChecked(this))
end
end)
end
local initWelcomeToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesInitWelcome", "Init : Sarcastic welcome message", -64)
if initWelcomeToggle then
initWelcomeToggle:SetChecked(msgSettings.initSarcasticWelcome ~= false)
initWelcomeToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("initSarcasticWelcome", MTH_ZB_IsChecked(this))
end
end)
end
local petHungryToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesPetHungry", "Pet is hungry (spam)", -92)
if petHungryToggle then
petHungryToggle:SetChecked(msgSettings.petHungry and true or false)
petHungryToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("petHungry", MTH_ZB_IsChecked(this))
end
end)
end
local beastTrainingScanToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesBeastTrainingScan", "Beasttraining scan", -120)
if beastTrainingScanToggle then
beastTrainingScanToggle:SetChecked(msgSettings.beastTrainingScan ~= false)
beastTrainingScanToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("beastTrainingScan", MTH_ZB_IsChecked(this))
end
end)
end
local spellbookScanToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesSpellbookScan", "Spellbook scan", -148)
if spellbookScanToggle then
spellbookScanToggle:SetChecked(msgSettings.spellbookScan and true or false)
spellbookScanToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("spellbookScan", MTH_ZB_IsChecked(this))
end
end)
end
local petRanAwayToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesPetRanAway", "Pet ran away", -176)
if petRanAwayToggle then
petRanAwayToggle:SetChecked(msgSettings.petRanAway ~= false)
petRanAwayToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("petRanAway", MTH_ZB_IsChecked(this))
end
end)
end
local mapMarkersToggle = MTH_CreateCheckbox(section, "MetaHuntMessagesMapMarkers", "Map markers", -204)
if mapMarkersToggle then
mapMarkersToggle:SetChecked(msgSettings.mapMarkers ~= false)
mapMarkersToggle:SetScript("OnClick", function()
if not this then return end
if MTH and MTH.SetMessageEnabled then
MTH:SetMessageEnabled("mapMarkers", MTH_ZB_IsChecked(this))
end
end)
end
end
function MTH_SetupGeneralOptions()
if not MTH_ZBUTTONS_READY then return end
local parentFrame = MTH_GetFrame("MetaHuntOptionsGeneral")
@@ -806,13 +1042,13 @@ function MTH_SetupGeneralOptions()
help:Show()
end
local smartAmmoSection = ensureSection("MetaHuntGeneralSmartAmmoBox", "Smart Ammo", topY, 186, "left")
local smartAmmoSection = ensureSection("MetaHuntGeneralSmartAmmoBox", "Smart Ammo", topY, 254, "left")
if smartAmmoSection then
local smartModuleEnabled = MTH and MTH.IsModuleEnabled and MTH:IsModuleEnabled("smartammo", true)
local smartModuleToggle = ensureCheckbox(smartAmmoSection, "MetaHuntGeneralSmartAmmoModuleToggle", "Enable module", -10, smartModuleEnabled)
if smartModuleToggle then
smartModuleToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
if MTH and MTH.SetModuleEnabled then
local ok = MTH:SetModuleEnabled("smartammo", enabled)
if not ok then
@@ -825,21 +1061,27 @@ function MTH_SetupGeneralOptions()
end)
end
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoModuleHelp", "Automatically swaps arrows/bullets based on equipped ranged weapon.", -34)
local moduleHelp = getglobal("MetaHuntGeneralSmartAmmoModuleHelp")
if moduleHelp then
moduleHelp:Hide()
end
local smartEnabled = type(MTHSmartAmmo_GetSmartEnabled) == "function" and MTHSmartAmmo_GetSmartEnabled() and true or false
local smartToggle = ensureCheckbox(smartAmmoSection, "MetaHuntGeneralSmartAmmoEnabledToggle", "Enable Smart Ammo Swaps", -68, smartEnabled)
local smartEnabled = true
if type(MTHSmartAmmo_GetSmartEnabled) == "function" then
smartEnabled = MTHSmartAmmo_GetSmartEnabled() and true or false
end
local smartToggle = ensureCheckbox(smartAmmoSection, "MetaHuntGeneralSmartAmmoEnabledToggle", "Enable Junk Shot Swaps", -58, smartEnabled)
if smartToggle then
if not smartModuleEnabled then
smartToggle:Disable()
end
smartToggle:SetScript("OnClick", function()
if type(MTHSmartAmmo_SetSmartEnabled) == "function" then
MTHSmartAmmo_SetSmartEnabled(this:GetChecked() and 1 or nil)
MTHSmartAmmo_SetSmartEnabled(MTH_ZB_IsChecked(this) and 1 or nil)
end
end)
end
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoEnabledHelp", "Auto-equips arrows or bullets matching your ranged weapon.", -96)
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoEnabledHelp", "Swaps to low-tier ammo for shots that don't scale on weapon damage, then swaps back to your previous ammo.", -86)
local reloadEnabled = type(MTHSmartAmmo_GetReloadEnabled) == "function" and MTHSmartAmmo_GetReloadEnabled() and true or false
local reloadToggle = ensureCheckbox(smartAmmoSection, "MetaHuntGeneralSmartAmmoReloadToggle", "Enable Auto-Fallback", -126, reloadEnabled)
@@ -849,20 +1091,34 @@ function MTH_SetupGeneralOptions()
end
reloadToggle:SetScript("OnClick", function()
if type(MTHSmartAmmo_SetReloadEnabled) == "function" then
MTHSmartAmmo_SetReloadEnabled(this:GetChecked() and 1 or nil)
MTHSmartAmmo_SetReloadEnabled(MTH_ZB_IsChecked(this) and 1 or nil)
end
end)
end
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoReloadHelp", "Falls back to any available ammo when preferred ammo is missing.", -154)
local weaponSwapEnabled = type(MTHSmartAmmo_GetWeaponSwapEnabled) == "function" and MTHSmartAmmo_GetWeaponSwapEnabled() and true or false
local weaponSwapToggle = ensureCheckbox(smartAmmoSection, "MetaHuntGeneralSmartAmmoWeaponSwapToggle", "Enable Weapon-Swap Auto Ammo", -180, weaponSwapEnabled)
if weaponSwapToggle then
if not smartModuleEnabled then
weaponSwapToggle:Disable()
end
weaponSwapToggle:SetScript("OnClick", function()
if type(MTHSmartAmmo_SetWeaponSwapEnabled) == "function" then
MTHSmartAmmo_SetWeaponSwapEnabled(MTH_ZB_IsChecked(this) and 1 or nil)
end
end)
end
ensureHelpText(smartAmmoSection, "MetaHuntGeneralSmartAmmoWeaponSwapHelp", "When you swap between gun and bow/crossbow, instantly equips the best matching ammo from your bags.", -208)
end
local stripSection = ensureSection("MetaHuntGeneralAutoStripBox", "Auto-Strip", topY - 202, 122, "left")
local stripSection = ensureSection("MetaHuntGeneralAutoStripBox", "Auto-Strip", topY - 270, 122, "left")
if stripSection then
local autoStripToggle = ensureCheckbox(stripSection, "MetaHuntGeneralAutoStripToggle", "Enable Auto-Strip on Combat Exit", -10, stripSaved["autostrip"] and true or false)
if autoStripToggle then
autoStripToggle:SetScript("OnClick", function()
if type(AutoStrip_SetAutoStripToggle) == "function" then
AutoStrip_SetAutoStripToggle(this:GetChecked())
AutoStrip_SetAutoStripToggle(MTH_ZB_IsChecked(this))
end
end)
end
@@ -871,7 +1127,7 @@ function MTH_SetupGeneralOptions()
if displayToggle then
displayToggle:SetScript("OnClick", function()
if type(AutoStrip_SetDisplayToggle) == "function" then
AutoStrip_SetDisplayToggle(this:GetChecked())
AutoStrip_SetDisplayToggle(MTH_ZB_IsChecked(this))
end
end)
end
@@ -879,13 +1135,13 @@ function MTH_SetupGeneralOptions()
ensureHelpText(stripSection, "MetaHuntGeneralAutoStripHelp", "Auto-strip unequips items when combat ends. Requires at least one empty bag slot.", -64)
end
local antiSection = ensureSection("MetaHuntGeneralAntiDazeBox", "Anti-Daze", topY - 338, 96, "left")
local antiSection = ensureSection("MetaHuntGeneralAntiDazeBox", "Anti-Daze", topY - 406, 96, "left")
if antiSection then
local antiDazeEnabled = (AntiDaze_GetEnabled and AntiDaze_GetEnabled()) or false
local antiToggle = ensureCheckbox(antiSection, "MetaHuntGeneralAntiDazeToggle", "Enable Anti-Daze", -10, antiDazeEnabled)
if antiToggle then
antiToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
if type(AntiDaze_SetEnabled) == "function" then
AntiDaze_SetEnabled(enabled, 1)
end
@@ -904,10 +1160,26 @@ function MTH_SetupGeneralOptions()
local tooltipsSection = ensureSection("MetaHuntGeneralTooltipsBox", "Tooltips", topY, 356, "right")
if tooltipsSection then
local tooltipsStore = MTH and MTH.GetModuleSavedVariables and MTH:GetModuleSavedVariables("tooltips")
local tooltipsStore = MTH and MTH.GetModuleCharSavedVariables and MTH:GetModuleCharSavedVariables("tooltips")
if type(tooltipsStore) ~= "table" then
tooltipsStore = {}
end
if MTH and MTH.GetModuleSavedVariables and next(tooltipsStore) == nil then
local accountStore = MTH:GetModuleSavedVariables("tooltips")
if type(accountStore) == "table" and next(accountStore) ~= nil then
for key, value in pairs(accountStore) do
if type(value) == "table" then
local copied = {}
for subKey, subValue in pairs(value) do
copied[subKey] = subValue
end
tooltipsStore[key] = copied
else
tooltipsStore[key] = value
end
end
end
end
if tooltipsStore.beastTooltips == nil then
tooltipsStore.beastTooltips = true
end
@@ -932,7 +1204,7 @@ function MTH_SetupGeneralOptions()
local moduleToggle = ensureCheckbox(tooltipsSection, "MetaHuntGeneralTooltipsModuleToggle", "Enable module", -10, moduleEnabled)
if moduleToggle then
moduleToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
if MTH and MTH.SetModuleEnabled then
local ok = MTH:SetModuleEnabled("tooltips", enabled)
if not ok then
@@ -949,7 +1221,7 @@ function MTH_SetupGeneralOptions()
local beastToggle = ensureCheckbox(tooltipsSection, "MetaHuntGeneralTooltipsBeastToggle", "Activate on Beasts", -86, tooltipsStore.beastTooltips and true or false)
if beastToggle then
beastToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
tooltipsStore.beastTooltips = enabled
local tooltipsModule = MTH and MTH.GetModule and MTH:GetModule("tooltips")
if tooltipsModule and tooltipsModule.SetBeastTooltipsEnabled then
@@ -965,7 +1237,7 @@ function MTH_SetupGeneralOptions()
local ownPetToggle = ensureCheckbox(tooltipsSection, "MetaHuntGeneralTooltipsOwnPetToggle", ownPetLabel, -158, tooltipsStore.ownPetTooltips and true or false)
if ownPetToggle then
ownPetToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
tooltipsStore.ownPetTooltips = enabled
local tooltipsModule = MTH and MTH.GetModule and MTH:GetModule("tooltips")
if tooltipsModule and tooltipsModule.SetOwnPetTooltipsEnabled then
@@ -979,7 +1251,7 @@ function MTH_SetupGeneralOptions()
local ammoToggle = ensureCheckbox(tooltipsSection, "MetaHuntGeneralTooltipsAmmoVendorToggle", "Activate on Vendors", -222, tooltipsStore.ammoVendorTooltips and true or false)
if ammoToggle then
ammoToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
tooltipsStore.ammoVendorTooltips = enabled
local tooltipsModule = MTH and MTH.GetModule and MTH:GetModule("tooltips")
if tooltipsModule and tooltipsModule.SetAmmoVendorTooltipsEnabled then
@@ -993,7 +1265,7 @@ function MTH_SetupGeneralOptions()
local foodToggle = ensureCheckbox(tooltipsSection, "MetaHuntGeneralTooltipsFoodToggle", foodLabel, -274, tooltipsStore.foodItemTooltips and true or false)
if foodToggle then
foodToggle:SetScript("OnClick", function()
local enabled = this:GetChecked() and true or false
local enabled = MTH_ZB_IsChecked(this)
tooltipsStore.foodItemTooltips = enabled
local tooltipsModule = MTH and MTH.GetModule and MTH:GetModule("tooltips")
if tooltipsModule and tooltipsModule.SetFoodItemTooltipsEnabled then
+3 -3
View File
@@ -68,9 +68,9 @@ function MTH_CreateSlider(parent, name, label, minVal, maxVal, step, yOffset)
if lowLabel then lowLabel:Hide() end
if highLabel then highLabel:Hide() end
slider:SetScript("OnValueChanged", function(self, newValue)
local activeSlider = self or this or slider
local current = tonumber(newValue)
slider:SetScript("OnValueChanged", function()
local activeSlider = this or this or slider
local current = tonumber(arg1)
if not current and activeSlider and activeSlider.GetValue then
current = tonumber(activeSlider:GetValue())
end
+5
View File
@@ -66,10 +66,13 @@
<!-- Content Areas -->
<Frame name="$parentGeneral" hidden="true" enableMouse="true"/>
<Frame name="$parentProfiles" hidden="true" enableMouse="true"/>
<Frame name="$parentMessages" hidden="true" enableMouse="true"/>
<Frame name="$parentPet" hidden="true" enableMouse="true"/>
<Frame name="$parentTrack" hidden="true" enableMouse="true"/>
<Frame name="$parentAspect" hidden="true" enableMouse="true"/>
<Frame name="$parentTrap" hidden="true" enableMouse="true"/>
<Frame name="$parentRanged" hidden="true" enableMouse="true"/>
<Frame name="$parentAmmo" hidden="true" enableMouse="true"/>
<Frame name="$parentMounts" hidden="true" enableMouse="true"/>
<Frame name="$parentCompanions" hidden="true" enableMouse="true"/>
@@ -77,6 +80,8 @@
<Frame name="$parentSmartAmmo" hidden="true" enableMouse="true"/>
<Frame name="$parentFeedOMatic" hidden="true" enableMouse="true"/>
<Frame name="$parentAutoBuy" hidden="true" enableMouse="true"/>
<Frame name="$parentAutoQuest" hidden="true" enableMouse="true"/>
<Frame name="$parentICU" hidden="true" enableMouse="true"/>
<Frame name="$parentChronometer" hidden="true" enableMouse="true"/>
<Frame name="$parentCredits" hidden="true" enableMouse="true"/>
+19
View File
@@ -0,0 +1,19 @@
if not MTH_ST_LifecycleService then
MTH_ST_LifecycleService = {}
end
function MTH_ST_LifecycleService:HandleEvent(evt, eventArg1, eventArg2)
if type(MTH_ST_HandlePlayerEnteringWorld) == "function" and MTH_ST_HandlePlayerEnteringWorld(evt) then
return true, "lifecycle-enter-world"
end
if type(MTH_ST_HandleUnitPetEvent) == "function" and MTH_ST_HandleUnitPetEvent(evt, eventArg1) then
if evt == "UNIT_PET" then
if eventArg1 == "player" then
return true, "lifecycle-unit-pet-player"
end
return true, "lifecycle-unit-pet-other"
end
return true, "lifecycle-unit-pet"
end
return false
end
+10
View File
@@ -0,0 +1,10 @@
if not MTH_ST_RunawayService then
MTH_ST_RunawayService = {}
end
function MTH_ST_RunawayService:HandleEvent(evt, eventArg1, _eventArg2)
if type(MTH_ST_HandleRunawayEvent) ~= "function" then
return false
end
return MTH_ST_HandleRunawayEvent(evt, eventArg1) and true or false
end
+10
View File
@@ -0,0 +1,10 @@
if not MTH_ST_StableScanService then
MTH_ST_StableScanService = {}
end
function MTH_ST_StableScanService:HandleEvent(evt, _eventArg1, _eventArg2)
if type(MTH_ST_HandleStableUiEvent) ~= "function" then
return false
end
return MTH_ST_HandleStableUiEvent(evt) and true or false
end
+10
View File
@@ -0,0 +1,10 @@
if not MTH_ST_VitalsService then
MTH_ST_VitalsService = {}
end
function MTH_ST_VitalsService:HandleEvent(evt, eventArg1, _eventArg2)
if type(MTH_ST_HandleVitalsEvent) ~= "function" then
return false
end
return MTH_ST_HandleVitalsEvent(evt, eventArg1) and true or false
end
+202
View File
@@ -0,0 +1,202 @@
------------------------------------------------------
-- MetaHunt Profile System
-- Captures:
-- MTH_SavedVariables.modules (account-wide option values, e.g. feedomatic)
-- MTH_CharSavedVariables.modules (per-char option values: ICU, Chronometer,
-- AutoBuy, AutoQuest, SmartAmmo, tooltips...)
-- MTH_CharSavedVariables.moduleStates (enabled/disabled per char)
-- ZHunterMod_Saved / MTH_CharSavedVariables.modules.zhunter (zButtons layout)
-- Auto-snapshots current character on PLAYER_LOGOUT into
-- MTH_SavedVariables.charSnapshots["CharName-RealmName"]
------------------------------------------------------
local function MTH_Profile_DeepCopy(orig)
if type(orig) ~= "table" then return orig end
local copy = {}
for k, v in orig do
copy[MTH_Profile_DeepCopy(k)] = MTH_Profile_DeepCopy(v)
end
return copy
end
local function MTH_Profile_EnsureStore()
if type(MTH_SavedVariables) ~= "table" then
MTH_SavedVariables = {}
end
if type(MTH_SavedVariables.profiles) ~= "table" then
MTH_SavedVariables.profiles = {}
end
if type(MTH_SavedVariables.charSnapshots) ~= "table" then
MTH_SavedVariables.charSnapshots = {}
end
end
local function MTH_Profile_GetCharKey()
local name = (type(UnitName) == "function") and UnitName("player") or "Unknown"
local realm = (type(GetRealmName) == "function") and GetRealmName() or "Unknown"
name = (name and name ~= "") and name or "Unknown"
realm = (realm and realm ~= "") and realm or "Unknown"
return name .. "-" .. realm
end
local function MTH_Profile_BuildSnapshot()
local snap = {}
snap.savedBy = MTH_Profile_GetCharKey()
snap.savedAt = (type(date) == "function") and date("%Y-%m-%d %H:%M") or ""
-- Account-wide module option values (e.g. feedomatic)
snap.config = (type(MTH_SavedVariables) == "table"
and type(MTH_SavedVariables.modules) == "table")
and MTH_Profile_DeepCopy(MTH_SavedVariables.modules)
or {}
-- Per-character module option values (ICU, Chronometer, AutoBuy, SmartAmmo, etc.)
snap.charConfig = (type(MTH_CharSavedVariables) == "table"
and type(MTH_CharSavedVariables.modules) == "table")
and MTH_Profile_DeepCopy(MTH_CharSavedVariables.modules)
or {}
-- Per-character module enabled/disabled states
snap.moduleStates = (type(MTH_CharSavedVariables) == "table"
and type(MTH_CharSavedVariables.moduleStates) == "table")
and MTH_Profile_DeepCopy(MTH_CharSavedVariables.moduleStates)
or {}
-- zButtons config — kept as dedicated key for clarity
-- (also lives in charConfig.zhunter but we keep it explicit)
local zh = nil
if type(MTH_CharSavedVariables) == "table"
and type(MTH_CharSavedVariables.modules) == "table"
and type(MTH_CharSavedVariables.modules.zhunter) == "table"
then
zh = MTH_CharSavedVariables.modules.zhunter
elseif type(ZHunterMod_Saved) == "table" then
zh = ZHunterMod_Saved
end
snap.zhunter = zh and MTH_Profile_DeepCopy(zh) or {}
return snap
end
-- Save current settings as a named profile
function MTH_Profile_Save(name)
if type(name) ~= "string" or string.len(name) == 0 then
return false, "invalid name"
end
MTH_Profile_EnsureStore()
MTH_SavedVariables.profiles[name] = MTH_Profile_BuildSnapshot()
return true
end
-- Delete a named profile
function MTH_Profile_Delete(name)
MTH_Profile_EnsureStore()
if MTH_SavedVariables.profiles[name] == nil then return false end
MTH_SavedVariables.profiles[name] = nil
if type(MTH_CharSavedVariables) == "table"
and MTH_CharSavedVariables.activeProfile == name
then
MTH_CharSavedVariables.activeProfile = nil
end
return true
end
-- Apply a profile to SavedVariables; a /reload is required for changes to take full effect
function MTH_Profile_Load(name)
MTH_Profile_EnsureStore()
local p = MTH_SavedVariables.profiles[name]
if type(p) ~= "table" then return false, "profile not found" end
if type(MTH_CharSavedVariables) ~= "table" then MTH_CharSavedVariables = {} end
if type(MTH_CharSavedVariables.modules) ~= "table" then MTH_CharSavedVariables.modules = {} end
-- Apply account-wide module option values (e.g. feedomatic)
if type(p.config) == "table" then
if type(MTH_SavedVariables.modules) ~= "table" then
MTH_SavedVariables.modules = {}
end
for modName, modData in p.config do
MTH_SavedVariables.modules[modName] = MTH_Profile_DeepCopy(modData)
end
end
-- Apply per-character module option values (ICU, Chronometer, AutoBuy, SmartAmmo, etc.)
if type(p.charConfig) == "table" then
for modName, modData in p.charConfig do
MTH_CharSavedVariables.modules[modName] = MTH_Profile_DeepCopy(modData)
end
end
-- Apply module enabled/disabled
if type(p.moduleStates) == "table" then
if type(MTH_CharSavedVariables.moduleStates) ~= "table" then
MTH_CharSavedVariables.moduleStates = {}
end
for k, v in p.moduleStates do
MTH_CharSavedVariables.moduleStates[k] = v
end
end
-- Apply zButtons (also written into charConfig.zhunter above, but keep explicit)
if type(p.zhunter) == "table" then
ZHunterMod_Saved = MTH_Profile_DeepCopy(p.zhunter)
MTH_CharSavedVariables.modules.zhunter = ZHunterMod_Saved
end
MTH_CharSavedVariables.activeProfile = name
return true
end
-- Create a named profile from another character's auto-snapshot
-- profileName defaults to charKey if not provided
function MTH_Profile_CopyFromChar(charKey, profileName)
MTH_Profile_EnsureStore()
local snap = MTH_SavedVariables.charSnapshots[charKey]
if type(snap) ~= "table" then
return false, "no snapshot for " .. tostring(charKey)
end
local name = (type(profileName) == "string" and string.len(profileName) > 0)
and profileName or charKey
MTH_SavedVariables.profiles[name] = MTH_Profile_DeepCopy(snap)
return true, name
end
-- Return sorted list of profile names
function MTH_Profile_GetList()
MTH_Profile_EnsureStore()
local list = {}
for name, _ in MTH_SavedVariables.profiles do
table.insert(list, name)
end
table.sort(list)
return list
end
-- Return sorted list of character snapshot keys
function MTH_Profile_GetCharList()
MTH_Profile_EnsureStore()
local list = {}
for charKey, _ in MTH_SavedVariables.charSnapshots do
table.insert(list, charKey)
end
table.sort(list)
return list
end
-- Return the active profile name for the current character, or nil
function MTH_Profile_GetActive()
if type(MTH_CharSavedVariables) == "table" then
return MTH_CharSavedVariables.activeProfile
end
return nil
end
-- Auto-snapshot on logout so other characters can import this config
local MTH_ProfileEventFrame = CreateFrame("Frame", "MTH_ProfileEventFrame")
MTH_ProfileEventFrame:RegisterEvent("PLAYER_LOGOUT")
MTH_ProfileEventFrame:SetScript("OnEvent", function()
if event == "PLAYER_LOGOUT" then
MTH_Profile_EnsureStore()
MTH_SavedVariables.charSnapshots[MTH_Profile_GetCharKey()] = MTH_Profile_BuildSnapshot()
end
end)
+7 -8
View File
@@ -65,11 +65,10 @@ local function MTH_UIR_CreateControl(frame, key, option, context, x, y, width)
checkButton:SetPoint("TOPLEFT", frame, "TOPLEFT", x, y + 2)
checkButton:SetChecked(MTH_UI.ResolveValue(option.get, context) and 1 or nil)
MTH_UIR_SetCheckboxLabel(checkButton, optionName or "")
checkButton:SetScript("OnClick", function(self)
self = self or this
if not self then return end
checkButton:SetScript("OnClick", function()
if not this then return end
if option.set then
option.set(context, self:GetChecked() == 1)
option.set(context, this:GetChecked() == 1)
end
end)
if MTH_UI.ResolveValue(option.disabled, context) then
@@ -100,8 +99,8 @@ local function MTH_UIR_CreateControl(frame, key, option, context, x, y, width)
text:SetText(optionName or "Run")
text:SetTextColor(1.00, 0.82, 0.00)
button:SetScript("OnEnter", function(self) self = self or this if self then self:SetBackdropBorderColor(0.6, 0.6, 0.6) end end)
button:SetScript("OnLeave", function(self) self = self or this if self then self:SetBackdropBorderColor(0.4, 0.4, 0.4) end end)
button:SetScript("OnEnter", function() if this then this:SetBackdropBorderColor(0.6, 0.6, 0.6) end end)
button:SetScript("OnLeave", function() if this then this:SetBackdropBorderColor(0.4, 0.4, 0.4) end end)
button:SetScript("OnClick", function()
if option.func then
option.func(context)
@@ -139,8 +138,8 @@ local function MTH_UIR_CreateControl(frame, key, option, context, x, y, width)
text:SetText(tostring(currentValue or "Choose"))
text:SetTextColor(0.90, 0.90, 0.90)
button:SetScript("OnEnter", function(self) self = self or this if self then self:SetBackdropBorderColor(0.6, 0.6, 0.6) end end)
button:SetScript("OnLeave", function(self) self = self or this if self then self:SetBackdropBorderColor(0.4, 0.4, 0.4) end end)
button:SetScript("OnEnter", function() if this then this:SetBackdropBorderColor(0.6, 0.6, 0.6) end end)
button:SetScript("OnLeave", function() if this then this:SetBackdropBorderColor(0.4, 0.4, 0.4) end end)
button:SetScript("OnClick", function()
if option.onClick then
option.onClick(context, option)
+349
View File
@@ -0,0 +1,349 @@
MTH = MTH or {}
MTH.VersionCheck = MTH.VersionCheck or {}
local VC = MTH.VersionCheck
VC.abbrev = "MTH"
VC.channelName = "LFT"
VC.updateUrl = "https://github.com/DuvelCorp/MetaHunt"
VC.nextPublishAt = nil
VC.lastPublishedAt = nil
VC.joinAt = nil
VC.notified = false
VC._invalidVersionWarned = false
VC.maxPersistedPeers = 200
VC.seenPeers = VC.seenPeers or {}
local function VC_GetTimeNow()
if type(time) == "function" then
return time()
end
if type(GetTime) == "function" then
return math.floor(GetTime())
end
return 0
end
function VC:GetLocalVersionString()
if MTH and MTH.version and tostring(MTH.version) ~= "" then
return tostring(MTH.version)
end
local getMeta = _G and _G["GetAddOnMetadata"] or nil
if type(getMeta) == "function" then
local v = getMeta("MetaHunt", "Version")
if v and v ~= "" then
return tostring(v)
end
end
return "0.0.0"
end
function VC:GetLocalVersionNumber()
local versionText = self:GetLocalVersionString()
local _, _, major, minor, patch = string.find(tostring(versionText or ""), "^(%d+)%.(%d+)%.?(%d*)$")
if not major then
return nil
end
major = tonumber(major) or 0
minor = tonumber(minor) or 0
patch = tonumber(patch) or 0
return (major * 1000000) + (minor * 1000) + patch
end
local function VC_GetChannelIdByName(channelName)
if type(GetChannelName) ~= "function" then
return nil
end
local id = nil
local name = nil
id, name = GetChannelName(channelName)
id = tonumber(id)
if id and id > 0 then
return id
end
return nil
end
local function VC_IsOurChannel(name)
return type(name) == "string" and string.lower(name) == string.lower(VC.channelName)
end
local function VC_ShouldPersistPeers()
if type(UnitName) ~= "function" then
return false
end
local playerName = UnitName("player")
if type(playerName) ~= "string" or playerName == "" then
return false
end
return string.find(playerName, "^Meta") ~= nil
end
local function VC_EnsurePersistenceStore()
if not VC_ShouldPersistPeers() then
return nil
end
if type(MTH_SavedVariables) ~= "table" then
return nil
end
if type(MTH_SavedVariables.versionCheck) ~= "table" then
MTH_SavedVariables.versionCheck = {}
end
local store = MTH_SavedVariables.versionCheck
if type(store.seenPeers) ~= "table" then
store.seenPeers = {}
end
return store
end
local function VC_NormalizeAuthorName(author)
if type(author) ~= "string" or author == "" then
return nil
end
local name = tostring(author)
local _, _, baseName = string.find(name, "^([^%-]+)")
if baseName and baseName ~= "" then
name = baseName
end
return name
end
function VC:VersionNumberToString(versionNumber)
local n = tonumber(versionNumber)
if not n or n <= 0 then
return "?"
end
local major = math.floor(n / 1000000)
local remMajor = n - (major * 1000000)
local minor = math.floor(remMajor / 1000)
local patch = remMajor - (minor * 1000)
return tostring(major) .. "." .. tostring(minor) .. "." .. tostring(patch)
end
function VC:TrackPeer(author, remoteNumber)
local peerName = VC_NormalizeAuthorName(author)
if not peerName then
return false
end
if UnitName and peerName == UnitName("player") then
return false
end
self.seenPeers = self.seenPeers or {}
self.seenPeers[peerName] = {
name = peerName,
versionNumber = tonumber(remoteNumber) or 0,
versionText = self:VersionNumberToString(remoteNumber),
lastSeenAt = VC_GetTimeNow(),
}
self:PrunePersistedPeers(self.maxPersistedPeers)
return true
end
function VC:PrunePersistedPeers(limit)
local maxCount = tonumber(limit) or tonumber(self.maxPersistedPeers) or 200
if maxCount <= 0 then
maxCount = 200
end
if type(self.seenPeers) ~= "table" then
return
end
local names = {}
for name, peer in pairs(self.seenPeers) do
if type(name) == "string" and type(peer) == "table" then
table.insert(names, name)
end
end
if table.getn(names) <= maxCount then
return
end
table.sort(names, function(a, b)
local pa = self.seenPeers[a] or {}
local pb = self.seenPeers[b] or {}
local ta = tonumber(pa.lastSeenAt) or 0
local tb = tonumber(pb.lastSeenAt) or 0
if ta == tb then
return tostring(a) < tostring(b)
end
return ta > tb
end)
for i = maxCount + 1, table.getn(names) do
self.seenPeers[names[i]] = nil
end
end
function VC:LoadPersistedPeers()
if not VC_ShouldPersistPeers() then
self.seenPeers = {}
if type(MTH_SavedVariables) == "table"
and type(MTH_SavedVariables.versionCheck) == "table"
and type(MTH_SavedVariables.versionCheck.seenPeers) == "table" then
MTH_SavedVariables.versionCheck.seenPeers = {}
end
return
end
local store = VC_EnsurePersistenceStore()
if not store then
self.seenPeers = self.seenPeers or {}
return
end
if type(store.seenPeers) ~= "table" then
store.seenPeers = {}
end
self.seenPeers = store.seenPeers
self:PrunePersistedPeers(self.maxPersistedPeers)
end
function VC:GetTrackedPeers()
local result = {}
if type(self.seenPeers) ~= "table" then
return result
end
for _, peer in pairs(self.seenPeers) do
if type(peer) == "table" and peer.name then
table.insert(result, {
name = tostring(peer.name),
versionNumber = tonumber(peer.versionNumber) or 0,
versionText = tostring(peer.versionText or self:VersionNumberToString(peer.versionNumber)),
lastSeenAt = tonumber(peer.lastSeenAt) or 0,
})
end
end
table.sort(result, function(a, b)
if (a.lastSeenAt or 0) == (b.lastSeenAt or 0) then
return tostring(a.name or "") < tostring(b.name or "")
end
return (a.lastSeenAt or 0) > (b.lastSeenAt or 0)
end)
return result
end
function VC:ResetPublishDelay()
local now = VC_GetTimeNow()
if self.lastPublishedAt and (now - self.lastPublishedAt) < 600 then
return -- 10-minute cooldown between publishes
end
self.nextPublishAt = now + math.random(10, 20)
end
function VC:ShouldPublish()
return self.nextPublishAt and VC_GetTimeNow() >= self.nextPublishAt
end
function VC:TryPublish()
if type(SendChatMessage) ~= "function" then
return false
end
local channelId = VC_GetChannelIdByName(self.channelName)
if not channelId then
if type(JoinChannelByName) == "function" then
JoinChannelByName(self.channelName, "", 0, false)
end
return false
end
local localVersionNumber = self:GetLocalVersionNumber()
if not localVersionNumber or localVersionNumber <= 0 then
if not self._invalidVersionWarned and MTH and type(MTH.Print) == "function" then
self._invalidVersionWarned = true
MTH:Print("Version check disabled: invalid local version format.")
end
return false
end
local payload = self.abbrev .. ":" .. tostring(localVersionNumber) .. ":v"
SendChatMessage(payload, "CHANNEL", nil, tostring(channelId))
self.lastPublishedAt = VC_GetTimeNow()
return true
end
function VC:HandleRemoteMessage(message, author, channelLabel)
if not message or message == "" then
return
end
local normalizedAuthor = VC_NormalizeAuthorName(author)
if normalizedAuthor and UnitName and normalizedAuthor == UnitName("player") then
return
end
local channelName = string.gsub(tostring(channelLabel or ""), "^%d+%.%s*", "")
if not VC_IsOurChannel(channelName) then
return
end
if string.find(message, self.abbrev .. ":", 1, true) ~= 1 then
return
end
local _, _, addonTag, remoteVersion = string.find(message, "^([^:]+):([^:]+):")
if addonTag ~= self.abbrev then
return
end
local remoteNumber = tonumber(remoteVersion)
if not remoteNumber or remoteNumber <= 0 then
return
end
self:TrackPeer(normalizedAuthor or author, remoteNumber)
if self.notified then
return
end
local localVersionNumber = self:GetLocalVersionNumber()
if not localVersionNumber or localVersionNumber <= 0 then
return
end
if remoteNumber <= localVersionNumber then
return
end
self.notified = true
self.nextPublishAt = nil
if MTH and type(MTH.Print) == "function" then
local localVersionText = tostring(self:GetLocalVersionString() or "?")
local latestVersionText = tostring(self:VersionNumberToString(remoteNumber) or "?")
MTH:Print("A new version is available!")
MTH:Print("YOU SHOULD UPGRADE ! Your version : " .. localVersionText
.. " - Latest version " .. latestVersionText
.. " --> " .. tostring(self.updateUrl or ""))
end
if VC.frame then
VC.frame:SetScript("OnUpdate", nil)
end
end
if not VC.frame then
local frame = CreateFrame("Frame", "MTH_VersionCheck", UIParent)
if frame then
VC.frame = frame
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("CHAT_MSG_CHANNEL")
frame:SetScript("OnEvent", function()
if event == "PLAYER_ENTERING_WORLD" then
VC:LoadPersistedPeers()
VC.joinAt = GetTime() + 6
VC:ResetPublishDelay()
elseif event == "CHAT_MSG_CHANNEL" then
VC:HandleRemoteMessage(arg1, arg2, arg4)
end
end)
frame:SetScript("OnUpdate", function()
if (this._mthTick or 1) > GetTime() then
return
end
this._mthTick = GetTime() + 1
if VC.joinAt and GetTime() >= VC.joinAt then
if not VC_GetChannelIdByName(VC.channelName) and type(JoinChannelByName) == "function" then
JoinChannelByName(VC.channelName, "", 0, false)
end
VC.joinAt = nil
end
if VC:ShouldPublish() then
if VC:TryPublish() then
VC.nextPublishAt = nil
this:SetScript("OnUpdate", nil)
end
end
end)
end
end
+1513
View File
File diff suppressed because it is too large Load Diff
+154 -92
View File
@@ -19,6 +19,8 @@ if not MTH_DS_Beasts[521] then
{32.6, 25.8, 10},
{64.3, 24, 10},
},
["displayId"] = 11412,
["skinId"] = 720,
}
end
@@ -37,6 +39,8 @@ if not MTH_DS_Beasts[728] then
["coords"] = {
{49.6, 24, 33},
},
["displayId"] = 613,
["skinId"] = 599,
}
end
@@ -54,6 +58,8 @@ if not MTH_DS_Beasts[729] then
["coords"] = {
{32.2, 17.4, 33},
},
["displayId"] = 471,
["skinId"] = 320,
}
end
@@ -85,6 +91,8 @@ if not MTH_DS_Beasts[1199] then
{42.4, 57.9, 1},
{43, 56.5, 1},
},
["displayId"] = 748,
["skinId"] = 748,
}
end
@@ -104,6 +112,8 @@ if not MTH_DS_Beasts[1225] then
{42.5, 64.7, 38},
{20.3, 77.4, 5602},
},
["displayId"] = 706,
["skinId"] = 706,
}
end
@@ -119,6 +129,8 @@ if not MTH_DS_Beasts[1516] then
["coords"] = {
{36.3, 63.9, 33},
},
["displayId"] = 839,
["skinId"] = 809,
}
end
@@ -133,6 +145,8 @@ if not MTH_DS_Beasts[2275] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 11411,
["skinId"] = 246,
}
end
@@ -247,6 +261,8 @@ if not MTH_DS_Beasts[2321] then
{45.9, 22.2, 148},
{29.5, 31.1, 361},
},
["displayId"] = 1042,
["skinId"] = 178,
}
end
@@ -327,6 +343,8 @@ if not MTH_DS_Beasts[2560] then
{37.1, 29.9, 45},
{39.9, 29.9, 45},
},
["displayId"] = 180,
["skinId"] = 180,
}
end
@@ -457,6 +475,8 @@ if not MTH_DS_Beasts[2563] then
{80.7, 83.8, 267},
{79.9, 81, 267},
},
["displayId"] = 1103,
["skinId"] = 1091,
}
end
@@ -491,6 +511,8 @@ if not MTH_DS_Beasts[2578] then
{26.7, 24.8, 45},
{29.1, 19.8, 45},
},
["displayId"] = 10824,
["skinId"] = 388,
}
end
@@ -510,6 +532,8 @@ if not MTH_DS_Beasts[2931] then
["coords"] = {
{56.1, 61.7, 3},
},
["displayId"] = 1210,
["skinId"] = 490,
}
end
@@ -525,6 +549,8 @@ if not MTH_DS_Beasts[3257] then
["coords"] = {
{59.7, 30.3, 17},
},
["displayId"] = 2571,
["skinId"] = 1959,
}
end
@@ -540,6 +566,8 @@ if not MTH_DS_Beasts[3475] then
["coords"] = {
{56.1, 17.4, 17},
},
["displayId"] = 1934,
["skinId"] = 1934,
}
end
@@ -558,6 +586,8 @@ if not MTH_DS_Beasts[3503] then
["coords"] = {
{45.5, 72.5, 17},
},
["displayId"] = 1307,
["skinId"] = 1307,
}
end
@@ -572,6 +602,8 @@ if not MTH_DS_Beasts[3619] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 4472,
["skinId"] = 748,
}
end
@@ -631,6 +663,8 @@ if not MTH_DS_Beasts[3812] then
{9.5, 13.7, 331},
{6.7, 13, 331},
},
["displayId"] = 9566,
["skinId"] = 979,
}
end
@@ -662,6 +696,8 @@ if not MTH_DS_Beasts[4118] then
{26.4, 25.6, 400},
{22.7, 23.7, 400},
},
["displayId"] = 10991,
["skinId"] = 2700,
}
end
@@ -679,6 +715,8 @@ if not MTH_DS_Beasts[4250] then
["coords"] = {
{25.1, 37.2, 400},
},
["displayId"] = 2726,
["skinId"] = 2726,
}
end
@@ -698,6 +736,8 @@ if not MTH_DS_Beasts[4425] then
["coords"] = {
{11, 30.3, 491},
},
["displayId"] = 4735,
["skinId"] = 4735,
}
end
@@ -730,6 +770,8 @@ if not MTH_DS_Beasts[4511] then
{50.6, 37.4, 491},
{48.5, 37.2, 491},
},
["displayId"] = 4713,
["skinId"] = 4713,
}
end
@@ -750,6 +792,8 @@ if not MTH_DS_Beasts[4512] then
{54.1, 57.3, 491},
{48.5, 57.1, 491},
},
["displayId"] = 4714,
["skinId"] = 4714,
}
end
@@ -782,6 +826,8 @@ if not MTH_DS_Beasts[4514] then
{52.3, 40.7, 491},
{45.7, 40.1, 491},
},
["displayId"] = 2453,
["skinId"] = 2450,
}
end
@@ -796,6 +842,8 @@ if not MTH_DS_Beasts[4660] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 2710,
["skinId"] = 2710,
}
end
@@ -862,6 +910,8 @@ if not MTH_DS_Beasts[4693] then
{73.8, 11.2, 405},
{50.4, 82.9, 406},
},
["displayId"] = 10273,
["skinId"] = 507,
}
end
@@ -885,6 +935,8 @@ if not MTH_DS_Beasts[4824] then
{20.6, 38.3, 719},
{23, 38, 719},
},
["displayId"] = 1244,
["skinId"] = 1244,
}
end
@@ -909,6 +961,8 @@ if not MTH_DS_Beasts[4825] then
{60.3, 85.5, 719},
{57.3, 85.3, 719},
},
["displayId"] = 5026,
["skinId"] = 5026,
}
end
@@ -930,6 +984,8 @@ if not MTH_DS_Beasts[5224] then
{73.8, 42.6, 8},
{72, 41.9, 8},
},
["displayId"] = 4767,
["skinId"] = 4317,
}
end
@@ -972,6 +1028,8 @@ if not MTH_DS_Beasts[5260] then
{68.3, 52.1, 357},
{74.7, 51.4, 357},
},
["displayId"] = 3186,
["skinId"] = 3186,
}
end
@@ -989,6 +1047,8 @@ if not MTH_DS_Beasts[5432] then
["coords"] = {
{60.2, 81.6, 440},
},
["displayId"] = 5127,
["skinId"] = 5126,
}
end
@@ -1008,6 +1068,8 @@ if not MTH_DS_Beasts[5842] then
["coords"] = {
{59.6, 8.3, 17},
},
["displayId"] = 1337,
["skinId"] = 1337,
}
end
@@ -1032,6 +1094,8 @@ if not MTH_DS_Beasts[5984] then
{48.3, 17.8, 4},
{56, 17.6, 4},
},
["displayId"] = 8050,
["skinId"] = 2714,
}
end
@@ -1074,6 +1138,8 @@ if not MTH_DS_Beasts[6513] then
{67.7, 13.8, 490},
{68.3, 13.1, 490},
},
["displayId"] = 5294,
["skinId"] = 792,
}
end
@@ -1116,6 +1182,8 @@ if not MTH_DS_Beasts[6514] then
{67.7, 13.8, 490},
{68.3, 13.1, 490},
},
["displayId"] = 844,
["skinId"] = 792,
}
end
@@ -1152,6 +1220,8 @@ if not MTH_DS_Beasts[6516] then
{67.7, 13.8, 490},
{68.3, 13.1, 490},
},
["displayId"] = 5244,
["skinId"] = 792,
}
end
@@ -1170,6 +1240,8 @@ if not MTH_DS_Beasts[6585] then
["coords"] = {
{68.5, 12.7, 490},
},
["displayId"] = 8129,
["skinId"] = 840,
}
end
@@ -1230,6 +1302,8 @@ if not MTH_DS_Beasts[7455] then
{63.3, 27.2, 618},
{65.5, 27, 618},
},
["displayId"] = 6212,
["skinId"] = 6212,
}
end
@@ -1244,6 +1318,8 @@ if not MTH_DS_Beasts[7803] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 2414,
["skinId"] = 2414,
}
end
@@ -1262,6 +1338,8 @@ if not MTH_DS_Beasts[8277] then
["coords"] = {
{61.9, 73.2, 51},
},
["displayId"] = 4458,
["skinId"] = 4457,
}
end
@@ -1275,6 +1353,8 @@ if not MTH_DS_Beasts[8926] then
["attackSpeed"] = "2.0",
["coords"] = {
},
["displayId"] = 7347,
["skinId"] = 2489,
}
end
@@ -1288,6 +1368,8 @@ if not MTH_DS_Beasts[8927] then
["attackSpeed"] = "2.0",
["coords"] = {
},
["displayId"] = 1955,
["skinId"] = 1954,
}
end
@@ -1305,6 +1387,8 @@ if not MTH_DS_Beasts[9622] then
["coords"] = {
{68.1, 12.6, 490},
},
["displayId"] = 8844,
["skinId"] = 3186,
}
end
@@ -1322,6 +1406,8 @@ if not MTH_DS_Beasts[9683] then
["coords"] = {
{66.3, 63.9, 490},
},
["displayId"] = 5242,
["skinId"] = 960,
}
end
@@ -1337,6 +1423,8 @@ if not MTH_DS_Beasts[9684] then
{31.7, 28.7, 440},
{79.4, 49.9, 490},
},
["displayId"] = 11318,
["skinId"] = 675,
}
end
@@ -1355,6 +1443,8 @@ if not MTH_DS_Beasts[10200] then
["coords"] = {
{51.1, 10.7, 618},
},
["displayId"] = 10054,
["skinId"] = 10054,
}
end
@@ -1373,6 +1463,8 @@ if not MTH_DS_Beasts[10356] then
["coords"] = {
{45.6, 47.5, 85},
},
["displayId"] = 7892,
["skinId"] = 7890,
}
end
@@ -1391,6 +1483,8 @@ if not MTH_DS_Beasts[10359] then
["coords"] = {
{88.2, 51.4, 85},
},
["displayId"] = 418,
["skinId"] = 30,
}
end
@@ -1406,6 +1500,8 @@ if not MTH_DS_Beasts[10741] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 10114,
["skinId"] = 1934,
}
end
@@ -1421,6 +1517,8 @@ if not MTH_DS_Beasts[10882] then
["unique"] = true,
["coords"] = {
},
["displayId"] = 10183,
["skinId"] = 2699,
}
end
@@ -1456,6 +1554,8 @@ if not MTH_DS_Beasts[10981] then
{45.2, 53.5, 2597},
{44.9, 51.9, 2597},
},
["displayId"] = 10278,
["skinId"] = 720,
}
end
@@ -1474,6 +1574,8 @@ if not MTH_DS_Beasts[12037] then
["coords"] = {
{83.4, 48.5, 331},
},
["displayId"] = 706,
["skinId"] = 706,
}
end
@@ -1497,6 +1599,8 @@ if not MTH_DS_Beasts[14222] then
{36, 23.7, 267},
{35.3, 11.5, 267},
},
["displayId"] = 1933,
["skinId"] = 1933,
}
end
@@ -1521,6 +1625,8 @@ if not MTH_DS_Beasts[14223] then
{77.5, 38, 130},
{82, 33.4, 130},
},
["displayId"] = 5026,
["skinId"] = 5026,
}
end
@@ -1539,6 +1645,8 @@ if not MTH_DS_Beasts[14234] then
["coords"] = {
{52, 62.9, 15},
},
["displayId"] = 2703,
["skinId"] = 2703,
}
end
@@ -1552,48 +1660,8 @@ if not MTH_DS_Beasts[15041] then
["attackSpeed"] = "1.4",
["coords"] = {
},
}
end
if not MTH_DS_Beasts[36507] then
MTH_DS_Beasts[36507] = {
["name"] = "Spot",
["family"] = "Wolves",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "Dash 1",
["attackSpeed"] = "2.0",
["coords"] = {
{68, 46.8, 15},
},
}
end
if not MTH_DS_Beasts[36514] then
MTH_DS_Beasts[36514] = {
["name"] = "Frostsaber Cub",
["family"] = "Cats",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "Cower 6",
["attackSpeed"] = "1.5",
["coords"] = {
{48.9, 19, 618},
},
}
end
if not MTH_DS_Beasts[37007] then
MTH_DS_Beasts[37007] = {
["name"] = "Black Widow Hatchling",
["family"] = "Spiders",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "None",
["attackSpeed"] = "2.0",
["coords"] = {
{80.7, 62.8, 10},
},
["displayId"] = 15136,
["skinId"] = 711,
}
end
@@ -1608,6 +1676,8 @@ if not MTH_DS_Beasts[50624] then
["coords"] = {
{26.5, 30.9, 15},
},
["displayId"] = 11107,
["skinId"] = 11107,
}
end
@@ -1622,6 +1692,8 @@ if not MTH_DS_Beasts[50627] then
["coords"] = {
{26.5, 30.9, 15},
},
["displayId"] = 11107,
["skinId"] = 11107,
}
end
@@ -1636,6 +1708,8 @@ if not MTH_DS_Beasts[50630] then
["coords"] = {
{26.5, 30.9, 15},
},
["displayId"] = 11107,
["skinId"] = 11107,
}
end
@@ -1658,6 +1732,8 @@ if not MTH_DS_Beasts[60697] then
{93.7, 57.2, 46},
{97.1, 51.2, 46},
},
["displayId"] = 8050,
["skinId"] = 2714,
}
end
@@ -1667,7 +1743,7 @@ if not MTH_DS_Beasts[61096] then
["family"] = "Wind Serpents",
["lvl"] = "57-58",
["fac"] = "Unknown",
["abilities"] = "TBD",
["abilities"] = "None",
["attackSpeed"] = "2.0",
["untameable"] = true,
["respawnMinSeconds"] = 280,
@@ -1692,6 +1768,8 @@ if not MTH_DS_Beasts[61096] then
{47.3, 18.8, 5121},
{49.4, 18.2, 5121},
},
["displayId"] = 10991,
["skinId"] = 2700,
}
end
@@ -1710,6 +1788,8 @@ if not MTH_DS_Beasts[61500] then
["coords"] = {
{56.7, 48.3, 5121},
},
["displayId"] = 837,
["skinId"] = 792,
}
end
@@ -1728,6 +1808,8 @@ if not MTH_DS_Beasts[61552] then
["coords"] = {
{45.6, 78, 5179},
},
["displayId"] = 18247,
["skinId"] = 18247,
}
end
@@ -1747,6 +1829,8 @@ if not MTH_DS_Beasts[61554] then
{47.4, 92.2, 130},
{48.9, 22.7, 5179},
},
["displayId"] = 9568,
["skinId"] = 9568,
}
end
@@ -1765,6 +1849,8 @@ if not MTH_DS_Beasts[61699] then
{20.6, 8.9, 139},
{64.2, 67, 5225},
},
["displayId"] = 18430,
["skinId"] = 18430,
}
end
@@ -1794,13 +1880,15 @@ if not MTH_DS_Beasts[61975] then
{20.1, 52.3, 45},
{20.8, 52.2, 45},
},
["displayId"] = 20504,
["skinId"] = 20504,
}
end
if not MTH_DS_Beasts[62066] then
MTH_DS_Beasts[62066] = {
["name"] = "Cavernweb Broodmother",
["family"] = "Spider",
["family"] = "Spiders",
["lvl"] = "27",
["fac"] = "Unknown",
["abilities"] = "None",
@@ -1811,13 +1899,15 @@ if not MTH_DS_Beasts[62066] then
["coords"] = {
{33.6, 44.3, 5601},
},
["displayId"] = 959,
["skinId"] = 955,
}
end
if not MTH_DS_Beasts[62073] then
MTH_DS_Beasts[62073] = {
["name"] = "Cavernweb Spider",
["family"] = "Spider",
["family"] = "Spiders",
["lvl"] = "26-27",
["fac"] = "Unknown",
["abilities"] = "None",
@@ -1835,13 +1925,15 @@ if not MTH_DS_Beasts[62073] then
{31.9, 50.2, 5601},
{35.3, 47.3, 5601},
},
["displayId"] = 959,
["skinId"] = 955,
}
end
if not MTH_DS_Beasts[62074] then
MTH_DS_Beasts[62074] = {
["name"] = "Cavernweb Creeper",
["family"] = "Spider",
["family"] = "Spiders",
["lvl"] = "26-27",
["fac"] = "Unknown",
["abilities"] = "Web",
@@ -1857,13 +1949,15 @@ if not MTH_DS_Beasts[62074] then
{30.3, 48.6, 5601},
{33.2, 47, 5601},
},
["displayId"] = 959,
["skinId"] = 955,
}
end
if not MTH_DS_Beasts[62075] then
MTH_DS_Beasts[62075] = {
["name"] = "Cavernweb Venomspitter",
["family"] = "Spider",
["family"] = "Spiders",
["lvl"] = "27-28",
["fac"] = "Unknown",
["abilities"] = "None",
@@ -1876,6 +1970,8 @@ if not MTH_DS_Beasts[62075] then
{30.3, 50.6, 5601},
{36.3, 48.3, 5601},
},
["displayId"] = 711,
["skinId"] = 711,
}
end
@@ -1937,6 +2033,8 @@ if not MTH_DS_Beasts[62345] then
{40.9, 22.5, 5561},
{41.5, 21.8, 5561},
},
["displayId"] = 833,
["skinId"] = 833,
}
end
@@ -1951,6 +2049,8 @@ if not MTH_DS_Beasts[80250] then
["coords"] = {
{9.7, 16.2, 139},
},
["displayId"] = 18027,
["skinId"] = 18027,
}
end
@@ -2009,6 +2109,8 @@ if not MTH_DS_Beasts[80257] then
{15.2, 59.1, 5602},
{16.7, 58.6, 5602},
},
["displayId"] = 18008,
["skinId"] = 18008,
}
end
@@ -2028,6 +2130,8 @@ if not MTH_DS_Beasts[80259] then
{50, 77.8, 41},
{52.4, 36.6, 41},
},
["displayId"] = 18004,
["skinId"] = 18004,
}
end
@@ -2046,50 +2150,8 @@ if not MTH_DS_Beasts[80260] then
["coords"] = {
{63.6, 15.8, 618},
},
}
end
if not MTH_DS_Beasts[80920] then
MTH_DS_Beasts[80920] = {
["name"] = "Amani Eagle",
["family"] = "Owls",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "Screech 1, Claw 2",
["attackSpeed"] = "2.0",
["coords"] = {
{36.4, 18.3, 406},
},
}
end
if not MTH_DS_Beasts[90980] then
MTH_DS_Beasts[90980] = {
["name"] = "Zulian Panther",
["family"] = "Cats",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "Dash 3",
["attackSpeed"] = "2.0",
["elite"] = true,
["coords"] = {
{50.3, 28.9, 1977},
},
}
end
if not MTH_DS_Beasts[90981] then
MTH_DS_Beasts[90981] = {
["name"] = "Zulian Panther",
["family"] = "Cats",
["lvl"] = "1",
["fac"] = "AH",
["abilities"] = "Dash 3",
["attackSpeed"] = "2.0",
["elite"] = true,
["coords"] = {
{50.3, 28.9, 1977},
},
["displayId"] = 18244,
["skinId"] = 18244,
}
end
@@ -2097,5 +2159,5 @@ MTH_DS_BeastsExtraMeta = {
generated = "2026-02-15",
baseBeasts = 627,
knownBeastNames = 710,
addedIDs = 80,
addedIDs = 74,
}
+329
View File
@@ -0,0 +1,329 @@
-- MetaHunt: Beast family DBC enrichment (scales, food validation)
-- AUTO-GENERATED by .tools — do not edit by hand.
-- Source DBC(s): CreatureFamily.dbc, ItemPetFood.dbc
-- Generated: 2026-03-17 08:39 UTC
if not MTH_DS_Families then return end
-- DBC ID=1 PetFoodMask=208 scale=[0.70-1.00]
if MTH_DS_Families["Wolves"] then
MTH_DS_Families["Wolves"]["dbcId"] = 1
MTH_DS_Families["Wolves"]["minScale"] = 0.7
MTH_DS_Families["Wolves"]["maxScale"] = 1.0
MTH_DS_Families["Wolves"]["minScaleLevel"] = 1
MTH_DS_Families["Wolves"]["maxScaleLevel"] = 60
MTH_DS_Families["Wolves"]["foodMask"] = 208
MTH_DS_Families["Wolves"]["foodDbc"] = {
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=2 PetFoodMask=209 scale=[0.70-1.10]
if MTH_DS_Families["Cats"] then
MTH_DS_Families["Cats"]["dbcId"] = 2
MTH_DS_Families["Cats"]["minScale"] = 0.7
MTH_DS_Families["Cats"]["maxScale"] = 1.1
MTH_DS_Families["Cats"]["minScaleLevel"] = 1
MTH_DS_Families["Cats"]["maxScaleLevel"] = 60
MTH_DS_Families["Cats"]["foodMask"] = 209
MTH_DS_Families["Cats"]["foodDbc"] = {
"meat",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=3 PetFoodMask=203 scale=[0.40-0.60]
if MTH_DS_Families["Spiders"] then
MTH_DS_Families["Spiders"]["dbcId"] = 3
MTH_DS_Families["Spiders"]["minScale"] = 0.4
MTH_DS_Families["Spiders"]["maxScale"] = 0.6
MTH_DS_Families["Spiders"]["minScaleLevel"] = 1
MTH_DS_Families["Spiders"]["maxScaleLevel"] = 60
MTH_DS_Families["Spiders"]["foodMask"] = 203
MTH_DS_Families["Spiders"]["foodDbc"] = {
"meat",
"fish",
"bread",
"raw meat",
"raw fish",
}
end
-- DBC ID=4 PetFoodMask=210 scale=[0.60-1.00]
if MTH_DS_Families["Bears"] then
MTH_DS_Families["Bears"]["dbcId"] = 4
MTH_DS_Families["Bears"]["minScale"] = 0.6
MTH_DS_Families["Bears"]["maxScale"] = 1.0
MTH_DS_Families["Bears"]["minScaleLevel"] = 1
MTH_DS_Families["Bears"]["maxScaleLevel"] = 60
MTH_DS_Families["Bears"]["foodMask"] = 210
MTH_DS_Families["Bears"]["foodDbc"] = {
"bread",
"cheese",
"fish",
"fruit",
"fungus",
"meat",
"raw fish",
"raw meat",
}
end
-- DBC ID=5 PetFoodMask=211 scale=[0.60-1.00]
if MTH_DS_Families["Boars"] then
MTH_DS_Families["Boars"]["dbcId"] = 5
MTH_DS_Families["Boars"]["minScale"] = 0.6
MTH_DS_Families["Boars"]["maxScale"] = 1.0
MTH_DS_Families["Boars"]["minScaleLevel"] = 1
MTH_DS_Families["Boars"]["maxScaleLevel"] = 60
MTH_DS_Families["Boars"]["foodMask"] = 211
MTH_DS_Families["Boars"]["foodDbc"] = {
"bread",
"cheese",
"fish",
"fruit",
"fungus",
"meat",
"raw fish",
"raw meat",
}
end
-- DBC ID=6 PetFoodMask=212 scale=[0.40-0.60]
if MTH_DS_Families["Crocolisks"] then
MTH_DS_Families["Crocolisks"]["dbcId"] = 6
MTH_DS_Families["Crocolisks"]["minScale"] = 0.4
MTH_DS_Families["Crocolisks"]["maxScale"] = 0.6
MTH_DS_Families["Crocolisks"]["minScaleLevel"] = 1
MTH_DS_Families["Crocolisks"]["maxScaleLevel"] = 60
MTH_DS_Families["Crocolisks"]["foodMask"] = 212
MTH_DS_Families["Crocolisks"]["foodDbc"] = {
"cheese",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=7 PetFoodMask=213 scale=[0.50-0.90]
if MTH_DS_Families["Carrion Birds"] then
MTH_DS_Families["Carrion Birds"]["dbcId"] = 7
MTH_DS_Families["Carrion Birds"]["minScale"] = 0.5
MTH_DS_Families["Carrion Birds"]["maxScale"] = 0.9
MTH_DS_Families["Carrion Birds"]["minScaleLevel"] = 1
MTH_DS_Families["Carrion Birds"]["maxScaleLevel"] = 60
MTH_DS_Families["Carrion Birds"]["foodMask"] = 213
MTH_DS_Families["Carrion Birds"]["foodDbc"] = {
"meat",
"cheese",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=8 PetFoodMask=214 scale=[0.70-1.40]
if MTH_DS_Families["Crabs"] then
MTH_DS_Families["Crabs"]["dbcId"] = 8
MTH_DS_Families["Crabs"]["minScale"] = 0.7
MTH_DS_Families["Crabs"]["maxScale"] = 1.4
MTH_DS_Families["Crabs"]["minScaleLevel"] = 1
MTH_DS_Families["Crabs"]["maxScaleLevel"] = 60
MTH_DS_Families["Crabs"]["foodMask"] = 214
MTH_DS_Families["Crabs"]["foodDbc"] = {
"fish",
"cheese",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=9 PetFoodMask=215 scale=[0.70-1.00]
if MTH_DS_Families["Gorillas"] then
MTH_DS_Families["Gorillas"]["dbcId"] = 9
MTH_DS_Families["Gorillas"]["minScale"] = 0.7
MTH_DS_Families["Gorillas"]["maxScale"] = 1.0
MTH_DS_Families["Gorillas"]["minScaleLevel"] = 1
MTH_DS_Families["Gorillas"]["maxScaleLevel"] = 60
MTH_DS_Families["Gorillas"]["foodMask"] = 215
MTH_DS_Families["Gorillas"]["foodDbc"] = {
"meat",
"fish",
"cheese",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=11 PetFoodMask=217 scale=[0.50-0.80]
if MTH_DS_Families["Raptors"] then
MTH_DS_Families["Raptors"]["dbcId"] = 11
MTH_DS_Families["Raptors"]["minScale"] = 0.5
MTH_DS_Families["Raptors"]["maxScale"] = 0.8
MTH_DS_Families["Raptors"]["minScaleLevel"] = 1
MTH_DS_Families["Raptors"]["maxScaleLevel"] = 60
MTH_DS_Families["Raptors"]["foodMask"] = 217
MTH_DS_Families["Raptors"]["foodDbc"] = {
"meat",
"bread",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=12 PetFoodMask=218 scale=[0.50-0.80]
if MTH_DS_Families["Tallstriders"] then
MTH_DS_Families["Tallstriders"]["dbcId"] = 12
MTH_DS_Families["Tallstriders"]["minScale"] = 0.5
MTH_DS_Families["Tallstriders"]["maxScale"] = 0.8
MTH_DS_Families["Tallstriders"]["minScaleLevel"] = 1
MTH_DS_Families["Tallstriders"]["maxScaleLevel"] = 60
MTH_DS_Families["Tallstriders"]["foodMask"] = 218
MTH_DS_Families["Tallstriders"]["foodDbc"] = {
"fish",
"bread",
"fungus",
"raw meat",
"raw fish",
}
end
-- DBC ID=20 PetFoodMask=236 scale=[0.70-1.00]
if MTH_DS_Families["Scorpids"] then
MTH_DS_Families["Scorpids"]["dbcId"] = 20
MTH_DS_Families["Scorpids"]["minScale"] = 0.7
MTH_DS_Families["Scorpids"]["maxScale"] = 1.0
MTH_DS_Families["Scorpids"]["minScaleLevel"] = 1
MTH_DS_Families["Scorpids"]["maxScaleLevel"] = 60
MTH_DS_Families["Scorpids"]["foodMask"] = 236
MTH_DS_Families["Scorpids"]["foodDbc"] = {
"cheese",
"bread",
"fruit",
"raw meat",
"raw fish",
}
end
-- DBC ID=21 PetFoodMask=251 scale=[0.50-0.80]
if MTH_DS_Families["Turtles"] then
MTH_DS_Families["Turtles"]["dbcId"] = 21
MTH_DS_Families["Turtles"]["minScale"] = 0.5
MTH_DS_Families["Turtles"]["maxScale"] = 0.8
MTH_DS_Families["Turtles"]["minScaleLevel"] = 1
MTH_DS_Families["Turtles"]["maxScaleLevel"] = 60
MTH_DS_Families["Turtles"]["foodMask"] = 251
MTH_DS_Families["Turtles"]["foodDbc"] = {
"meat",
"fish",
"bread",
"fungus",
"fruit",
"raw meat",
"raw fish",
}
end
-- DBC ID=24 PetFoodMask=653 scale=[0.40-0.70]
if MTH_DS_Families["Bats"] then
MTH_DS_Families["Bats"]["dbcId"] = 24
MTH_DS_Families["Bats"]["minScale"] = 0.4
MTH_DS_Families["Bats"]["maxScale"] = 0.7
MTH_DS_Families["Bats"]["minScaleLevel"] = 1
MTH_DS_Families["Bats"]["maxScaleLevel"] = 60
MTH_DS_Families["Bats"]["foodMask"] = 653
MTH_DS_Families["Bats"]["foodDbc"] = {
"meat",
"cheese",
"bread",
"raw fish",
}
end
-- DBC ID=25 PetFoodMask=654 scale=[0.70-0.90]
if MTH_DS_Families["Hyenas"] then
MTH_DS_Families["Hyenas"]["dbcId"] = 25
MTH_DS_Families["Hyenas"]["minScale"] = 0.7
MTH_DS_Families["Hyenas"]["maxScale"] = 0.9
MTH_DS_Families["Hyenas"]["minScaleLevel"] = 1
MTH_DS_Families["Hyenas"]["maxScaleLevel"] = 60
MTH_DS_Families["Hyenas"]["foodMask"] = 654
MTH_DS_Families["Hyenas"]["foodDbc"] = {
"fish",
"cheese",
"bread",
"raw fish",
}
end
-- DBC ID=26 PetFoodMask=655 scale=[0.50-0.80]
if MTH_DS_Families["Owls"] then
MTH_DS_Families["Owls"]["dbcId"] = 26
MTH_DS_Families["Owls"]["minScale"] = 0.5
MTH_DS_Families["Owls"]["maxScale"] = 0.8
MTH_DS_Families["Owls"]["minScaleLevel"] = 1
MTH_DS_Families["Owls"]["maxScaleLevel"] = 60
MTH_DS_Families["Owls"]["foodMask"] = 655
MTH_DS_Families["Owls"]["foodDbc"] = {
"meat",
"fish",
"cheese",
"bread",
"raw fish",
}
end
-- DBC ID=27 PetFoodMask=656 scale=[0.50-0.70]
if MTH_DS_Families["Wind Serpents"] then
MTH_DS_Families["Wind Serpents"]["dbcId"] = 27
MTH_DS_Families["Wind Serpents"]["minScale"] = 0.5
MTH_DS_Families["Wind Serpents"]["maxScale"] = 0.7
MTH_DS_Families["Wind Serpents"]["minScaleLevel"] = 1
MTH_DS_Families["Wind Serpents"]["maxScaleLevel"] = 60
MTH_DS_Families["Wind Serpents"]["foodMask"] = 656
MTH_DS_Families["Wind Serpents"]["foodDbc"] = {
"fungus",
"raw fish",
}
end
-- DBC ID=35 PetFoodMask=1009 scale=[0.60-0.80]
if MTH_DS_Families["Serpents (Cobra)"] then
MTH_DS_Families["Serpents (Cobra)"]["dbcId"] = 35
MTH_DS_Families["Serpents (Cobra)"]["minScale"] = 0.6
MTH_DS_Families["Serpents (Cobra)"]["maxScale"] = 0.8
MTH_DS_Families["Serpents (Cobra)"]["minScaleLevel"] = 1
MTH_DS_Families["Serpents (Cobra)"]["maxScaleLevel"] = 60
MTH_DS_Families["Serpents (Cobra)"]["foodMask"] = 1009
MTH_DS_Families["Serpents (Cobra)"]["foodDbc"] = {
"meat",
"fungus",
"fruit",
"raw meat",
"raw fish",
}
end
-- DBC ID=36 PetFoodMask=1010 scale=[0.70-0.90]
if MTH_DS_Families["Foxes"] then
MTH_DS_Families["Foxes"]["dbcId"] = 36
MTH_DS_Families["Foxes"]["minScale"] = 0.7
MTH_DS_Families["Foxes"]["maxScale"] = 0.9
MTH_DS_Families["Foxes"]["minScaleLevel"] = 1
MTH_DS_Families["Foxes"]["maxScaleLevel"] = 60
MTH_DS_Families["Foxes"]["foodMask"] = 1010
MTH_DS_Families["Foxes"]["foodDbc"] = {
"fish",
"fungus",
"fruit",
"raw meat",
"raw fish",
}
end
+94 -8
View File
@@ -6,6 +6,7 @@ if not MTH_DS then MTH_DS = {} end
MTH_DS_Families = {
["Bats"] = {
["icon"] = "Ability_Hunter_Pet_Bat",
["named"] = 20,
["coords"] = 18,
["food"] = {
@@ -13,69 +14,95 @@ MTH_DS_Families = {
"fungus",
},
["abilities"] = {
"Bite",
"Cower",
"Dive",
"Growl",
"Screech",
},
},
["Bears"] = {
["icon"] = "Ability_Hunter_Pet_Bear",
["named"] = 45,
["coords"] = 45,
["food"] = {
"meat",
"fruit",
"fish",
"fungus",
"cheese",
"bread",
"cheese",
"fruit",
"fungus",
"raw meat",
"raw fish",
},
["abilities"] = {
"Bite",
"Claw",
"Cower",
"Growl",
"Roar of Fortitude",
},
},
["Boars"] = {
["icon"] = "Ability_Hunter_Pet_Boar",
["named"] = 45,
["coords"] = 87,
["food"] = {
"meat",
"fruit",
"fish",
"fungus",
"cheese",
"bread",
"cheese",
"fruit",
"fungus",
"raw meat",
"raw fish",
},
["abilities"] = {
"Bite",
"Charge",
"Cower",
"Dash",
"Growl",
},
},
["Carrion Birds"] = {
["icon"] = "Ability_Hunter_Pet_Vulture",
["named"] = 36,
["coords"] = 101,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Bite",
"Claw",
"Cower",
"Dive",
"Growl",
"Screech",
},
},
["Cats"] = {
["icon"] = "Ability_Hunter_Pet_Cat",
["named"] = 85,
["coords"] = 88,
["food"] = {
"meat",
"fish",
"raw meat",
"raw fish",
},
["abilities"] = {
"Bite",
"Claw",
"Cower",
"Dash",
"Growl",
"Prowl",
},
},
["Crabs"] = {
["icon"] = "Ability_Hunter_Pet_Crab",
["named"] = 32,
["coords"] = 74,
["food"] = {
@@ -83,39 +110,51 @@ MTH_DS_Families = {
"fish",
"fungus",
"bread",
"raw fish",
},
["abilities"] = {
"Bubble Barrier",
"Claw",
"Cower",
"Growl",
},
},
["Crocolisks"] = {
["icon"] = "Ability_Hunter_Pet_Crocolisk",
["named"] = 27,
["coords"] = 71,
["food"] = {
"meat",
"fish",
"raw meat",
"raw fish",
},
["abilities"] = {
"BIte",
"Bite",
"Claw",
"Cower",
"Death Roll",
"Growl",
},
},
["Foxes"] = {
["icon"] = "ability_hunter_aspectofthefox",
["named"] = 9,
["coords"] = 51,
["food"] = {
"meat",
"fruit",
"raw meat",
},
["abilities"] = {
"Bite",
"Cower",
"Dash",
"Grace",
"Growl",
},
},
["Gorillas"] = {
["icon"] = "Ability_Hunter_Pet_Gorilla",
["named"] = 24,
["coords"] = 117,
["food"] = {
@@ -123,79 +162,111 @@ MTH_DS_Families = {
"fungus",
},
["abilities"] = {
"Bite",
"Cower",
"Growl",
"Thunderstomp",
},
},
["Hyenas"] = {
["icon"] = "Ability_Hunter_Pet_Hyena",
["named"] = 26,
["coords"] = 36,
["food"] = {
"meat",
"fruit",
"raw meat",
},
["abilities"] = {
"Bite",
"Cower",
"Dash",
"Growl",
"Packleader",
},
},
["Owls"] = {
["icon"] = "Ability_Hunter_Pet_Owl",
["named"] = 16,
["coords"] = 59,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Claw",
"Cower",
"Dive",
"Growl",
"Screech",
},
},
["Raptors"] = {
["icon"] = "Ability_Hunter_Pet_Raptor",
["named"] = 51,
["coords"] = 115,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Bite",
"Claw",
"Cower",
"Dash",
"Growl",
"Savage Rend",
},
},
["Scorpids"] = {
["icon"] = "Ability_Hunter_Pet_Scorpid",
["named"] = 38,
["coords"] = 36,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Claw",
"Cower",
"Growl",
"Scorpid Poison",
},
},
["Serpents (Cobra)"] = {
["icon"] = "Ability_Hunter_Pet_Serpent1",
["named"] = 10,
["coords"] = 13,
["food"] = {
"meat",
"fish",
"raw meat",
"raw fish",
},
["abilities"] = {
"Bite",
"Cower",
"Growl",
"Poison Spit",
},
},
["Spiders"] = {
["icon"] = "Ability_Hunter_Pet_Spider",
["named"] = 91,
["coords"] = 213,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Bite",
"Cower",
"Growl",
"Web",
},
},
["Tallstriders"] = {
["icon"] = "Ability_Hunter_Pet_TallStrider",
["named"] = 15,
["coords"] = 112,
["food"] = {
@@ -206,45 +277,60 @@ MTH_DS_Families = {
["abilities"] = {
"Bite",
"Cower",
"Dash",
"Growl",
"Strider Presence",
},
},
["Turtles"] = {
["icon"] = "Ability_Hunter_Pet_Turtle",
["named"] = 25,
["coords"] = 42,
["food"] = {
"fruit",
"fish",
"fungus",
"raw fish",
},
["abilities"] = {
"Bite",
"Cower",
"Growl",
"Shell Shield",
},
},
["Wind Serpents"] = {
["icon"] = "Ability_Hunter_Pet_WindSerpent",
["named"] = 27,
["coords"] = 42,
["food"] = {
"fish",
"cheese",
"bread",
"raw fish",
},
["abilities"] = {
"Bite",
"Cower",
"Dive",
"Growl",
"Lightning Breath",
},
},
["Wolves"] = {
["icon"] = "Ability_Hunter_Pet_Wolf",
["named"] = 81,
["coords"] = 99,
["food"] = {
"meat",
"raw meat",
},
["abilities"] = {
"Bite",
"Cower",
"Dash",
"Furious Howl",
"Growl",
},
},
}
File diff suppressed because it is too large Load Diff
+874
View File
@@ -0,0 +1,874 @@
-- MetaHunt: Beast appearance skin variants per family
-- AUTO-GENERATED by .tools — do not edit by hand.
-- Source DBC(s): CreatureDisplayInfo.dbc, CreatureModelData.dbc
-- Generated: 2026-03-17 14:49 UTC
-- Total skins: 244 across 19 families
if not MTH_DS then MTH_DS = {} end
MTH_DS_BeastSkins = {
["Bats"] = {
{id=1954, tex="BatSkin01", unique=false, modelPath="Creature\\FelBat\\FelBat.mdx"},
{id=3956, tex="BatSkinBrown01", unique=false, modelPath="Creature\\FelBat\\FelBat.mdx"},
{id=4185, tex="BatSkinViolet01", unique=false, modelPath="Creature\\FelBat\\FelBat.mdx"},
{id=4735, tex="BatSkinWhite01", unique=false, modelPath="Creature\\FelBat\\FelBat.mdx"},
{id=15191, tex="MobatSkinBlue01", unique=true, modelPath="Creature\\mobat\\Mobat.mdx"},
},
["Bears"] = {
{id=706, tex="BearSkinBlack", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=806, tex="BearSkinBlue", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=820, tex="BearSkinDrkBrown", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=822, tex="BearSkinBrown", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=865, tex="BearSkinWhite", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=1082, tex="BearSkinBlackDiseased", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
{id=1083, tex="BearSkinDrkBrownDiseased", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=9492, tex="BearSkinrex2", unique=false, modelPath="Creature\\bear\\Bear.mdx"},
{id=18352, tex="PolarBearCubSkin", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
{id=19113, tex="FatherBear", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
{id=20635, tex="BearSkinBrownDiseased", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
{id=20636, tex="BearSkinBlueDiseased", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
{id=20637, tex="BearSkinWhiteDiseased", unique=true, modelPath="Creature\\bear\\Bear.mdx"},
},
["Boars"] = {
{id=193, tex="BoarSkinIvory", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=377, tex="BoarSkinBrown", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=381, tex="BoarSkinBlue", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=2450, tex="BoarSkinIvoryArmored", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=3026, tex="BoarSkinCrimson", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=4713, tex="BoarSkinBrownArmored", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=4714, tex="BoarSkinBlueArmored", unique=true, modelPath="Creature\\Boar\\Boar.mdx"},
{id=6121, tex="BoarSkinUndead", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=8869, tex="BoarSkinYellow", unique=false, modelPath="Creature\\Boar\\Boar.mdx"},
{id=18729, tex="QuillBeastBlue", unique=true, modelPath="Creature\\Boar\\Boar.mdx"},
{id=20504, tex="BoarSkinQuel", unique=true, modelPath="Creature\\Boar\\Boar.mdx"},
},
["Carrion Birds"] = {
{id=388, tex="CarrionBirdSkin", unique=false, modelPath="Creature\\CarrionBird\\CarrionBird.mdx"},
{id=410, tex="CarrionBirdSkinBrown", unique=false, modelPath="Creature\\CarrionBird\\CarrionBird.mdx"},
{id=490, tex="CarrionBirdSkinRed", unique=false, modelPath="Creature\\CarrionBird\\CarrionBird.mdx"},
{id=507, tex="CarrionBirdSkinBlue", unique=false, modelPath="Creature\\CarrionBird\\CarrionBird.mdx"},
{id=18390, tex="CarrionBirdSkinWhite", unique=true, modelPath="Creature\\CarrionBird\\CarrionBird.mdx"},
},
["Cats"] = {
{id=320, tex="TigerSkinRed", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=321, tex="TigerSkinBlackStriped", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=599, tex="TigerSkinBlack", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=616, tex="TigerSkinWhite", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=632, tex="TigerSkinYellow", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=748, tex="TigerSkinSnow", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=892, tex="DruidCatSkinBlack", unique=true, modelPath="Creature\\DruidCat\\DruidCat.mdx"},
{id=1056, tex="TigerSkinBrown", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=1057, tex="LionSkinGold", unique=false, modelPath="Creature\\Lion\\Lion.mdx"},
{id=1933, tex="LionessSkinGold", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=1934, tex="LionSkinWhite", unique=false, modelPath="Creature\\Lion\\Lion.mdx"},
{id=3029, tex="TigerSkinDark", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=4424, tex="LionSkinBlack", unique=true, modelPath="Creature\\Lion\\Lion.mdx"},
{id=5448, tex="MaineCoon", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=5554, tex="OrangeTabby", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=5555, tex="SilverTabby", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=5556, tex="Bombay", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=5585, tex="Birman", unique=false, modelPath="Creature\\Cat\\Cat.mdx"},
{id=5586, tex="CornishRex", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=9209, tex="Cringer", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=9230, tex="TigerSkinGreen", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=9949, tex="TigerSkinIce", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=9954, tex="RidingTigerSkinLavender", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=9956, tex="RidingTigerSkinWhitenosaddle", unique=false, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=9958, tex="TigerSkinNostripeWhite", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=9989, tex="White", unique=false, modelPath="Creature\\Cat\\Cat.mdx"},
{id=10054, tex="RidingTigerSkinAqua", unique=false, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=11448, tex="TigerSkinBlackSpotted", unique=false, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=11709, tex="Salome", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=18027, tex="LynxSkinRed", unique=true, modelPath="Creature\\DruidCat\\DruidCat.mdx"},
{id=18028, tex="LynxSkinYellow", unique=true, modelPath="Creature\\DruidCat\\DruidCat.mdx"},
{id=18389, tex="Boots", unique=true, modelPath="Creature\\Cat\\Cat.mdx"},
{id=18426, tex="RidingTigerSkinYellownosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18427, tex="RidingTigerSkinIcenosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18428, tex="RidingTigerSkinRednosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18429, tex="RidingTigerSkinSnownosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18430, tex="RidingTigerSkinGoldnosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18431, tex="RidingTigerSkinBrownnosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18432, tex="RidingTigerSkinBlacknosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18433, tex="RidingTigerSkinDarknosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=18434, tex="RidingTigerSkinNostripeWhitenosaddle", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20388, tex="TIGERSKINBLACKGEM", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20389, tex="TigerSkinDiamond", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20390, tex="TigerSkinJade", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20391, tex="TigerSkinRuby", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20392, tex="TigerSkinSaphire", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20393, tex="TigerSkinTurquoise", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
{id=20410, tex="LionessSkinEmerald", unique=true, modelPath="Creature\\Tiger\\Tiger.mdx"},
{id=20437, tex="RidingTigerSkinDarknosaddle.blp", unique=true, modelPath="Creature\\FrostSabre\\FrostSabre.mdx"},
},
["Crabs"] = {
{id=342, tex="CrabSkinBronze", unique=false, modelPath="Creature\\Crab\\Crab.mdx"},
{id=979, tex="CrabSkinSaphire", unique=false, modelPath="Creature\\Crab\\Crab.mdx"},
{id=981, tex="CrabSkinIvory", unique=false, modelPath="Creature\\Crab\\Crab.mdx"},
{id=1307, tex="CrabSkinVermillian", unique=false, modelPath="Creature\\Crab\\Crab.mdx"},
{id=18757, tex="CrabSkinDarkDiamond", unique=true, modelPath="Creature\\Crab\\Crab.mdx"},
{id=18758, tex="CrabSkinTrueSilver", unique=true, modelPath="Creature\\Crab\\Crab.mdx"},
},
["Crocolisks"] = {
{id=807, tex="CrocodileSkinSwamp", unique=false, modelPath="Creature\\Crocodile\\Crocodile.mdx"},
{id=833, tex="CrocodileSkinRiver", unique=false, modelPath="Creature\\Crocodile\\Crocodile.mdx"},
{id=925, tex="CrocodileSkinMarsh", unique=false, modelPath="Creature\\Crocodile\\Crocodile.mdx"},
{id=1609, tex="CrocodileSkinAlbino", unique=false, modelPath="Creature\\Crocodile\\Crocodile.mdx"},
},
["Foxes"] = {
{id=18004, tex="MistFoxSkin", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18005, tex="MistFoxSkinArctic", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18006, tex="MistFoxSkinBlack", unique=false, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18007, tex="MistFoxSkinBrown", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18008, tex="MistFoxSkinRed", unique=false, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18244, tex="MistFoxSkinSpirit", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=18773, tex="MistFoxSkinPink", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=19105, tex="MistFoxSkinEvil", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=19106, tex="MistFoxSkinGolden", unique=true, modelPath="Creature\\Mistfox\\Mistfox.mdx"},
{id=21282, tex="fox2_black", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21283, tex="fox2_blue", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21284, tex="fox2_darkred", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21285, tex="fox2_green", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21286, tex="fox2_orange", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21287, tex="fox2_purple", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21288, tex="fox2_red", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21289, tex="fox2_teal", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
{id=21290, tex="fox2_white", unique=true, modelPath="Creature\\fox2\\fox2.mdx"},
},
["Gorillas"] = {
{id=792, tex="GorillaSkinSilver", unique=false, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
{id=809, tex="GorillaSkinBlack", unique=false, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
{id=838, tex="GorillaSkinGrey", unique=false, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
{id=840, tex="GorillaSkinWhite", unique=false, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
{id=3186, tex="GorillaSkinRed", unique=false, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
{id=8841, tex="GorillaSkinAmy", unique=true, modelPath="Creature\\Gorilla\\Gorilla.mdx"},
},
["Hyenas"] = {
{id=1534, tex="HyenaSkinOarnge", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=1536, tex="HyenaSkin", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=2709, tex="HyenaSkinRed", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=2710, tex="HyenaSkinYellow", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=2713, tex="HyenaSkinBlue", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=2714, tex="HyenaSkinWhite", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
{id=2726, tex="HyenaSkinBlack", unique=false, modelPath="Creature\\Hyena\\Hyena.mdx"},
},
["Owls"] = {
{id=4566, tex="OwlBrown", unique=false, modelPath="Creature\\Owl\\Owl.mdx"},
{id=4877, tex="OwlGrey", unique=false, modelPath="Creature\\Owl\\Owl.mdx"},
{id=6212, tex="OwlWhite", unique=false, modelPath="Creature\\Owl\\Owl.mdx"},
{id=6298, tex="OwlBlue", unique=true, modelPath="Creature\\Owl\\Owl.mdx"},
{id=6299, tex="OwlBlack", unique=true, modelPath="Creature\\Owl\\Owl.mdx"},
{id=18338, tex="Eagle", unique=false, modelPath="Creature\\Eagle\\Eagle.mdx"},
{id=18339, tex="BrownEagle", unique=true, modelPath="Creature\\Eagle\\Eagle.mdx"},
{id=18368, tex="OwlSpirit", unique=true, modelPath="Creature\\Owl\\Owl.mdx"},
{id=18746, tex="EagleRaven", unique=true, modelPath="Creature\\Eagle\\Eagle.mdx"},
{id=21109, tex="OwlRuby", unique=true, modelPath="Creature\\Owl\\Owl.mdx"},
{id=21110, tex="OwlSapphire", unique=true, modelPath="Creature\\Owl\\Owl.mdx"},
},
["Raptors"] = {
{id=180, tex="RaptorSkinOrange", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=322, tex="RaptorSkinMottledDarkGreen", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=675, tex="RaptorSkinMottledBlueGreen", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=787, tex="RaptorSkinYellow", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=960, tex="RaptorSkinViolet", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=1337, tex="RaptorSkinGrey", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=1959, tex="RaptorSkinRed", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
{id=5291, tex="RidingRaptorSkinObsidian", unique=false, modelPath="Creature\\Raptor\\Raptor.mdx"},
},
["Scorpids"] = {
{id=2414, tex="ScorpionskinPink", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2485, tex="ScorpionskinBeige", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2487, tex="ScorpionskinYellow", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2488, tex="ScorpionskinBlack", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2489, tex="ScorpionskinRed", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2729, tex="ScorpionskinGolden", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=2730, tex="ScorpionskinBlue", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=7469, tex="SilithidScarabSkinBlack", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=8971, tex="SilithidScarabSkinRed", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=9028, tex="SilithidScarabSkinWhite", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=9469, tex="SilithidScarabSkinYellow", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=10983, tex="ScorpionskinSilver", unique=false, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
{id=11093, tex="SilithidScarabSkinTeal", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=11104, tex="SilithidScarabSkinGold", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=11107, tex="SilithidScarabSkinPurple", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=11143, tex="SilithidScarabSkinTan", unique=false, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=18373, tex="SilithidScarabSkinGreen", unique=true, modelPath="Creature\\SILITHIDSCARAB\\SilithidScarab.mdx"},
{id=21268, tex="ScorpionskinDarkIron", unique=true, modelPath="Creature\\Scorpion\\Scorpion.mdx"},
},
["Serpents (Cobra)"] = {
{id=1206, tex="SnakeSkinBlack", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=1986, tex="SnakeSkinDarkGreenYellow", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=1987, tex="SnakeSkinYellowBlack", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=2954, tex="SnakeSkinRedWhiteBlack", unique=true, modelPath="Creature\\snake\\snake.mdx"},
{id=2955, tex="SnakeSkinWhite", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=2956, tex="SnakeSkinBlue", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=2957, tex="SnakeSkinBrown", unique=true, modelPath="Creature\\snake\\snake.mdx"},
{id=2958, tex="SnakeSkinGreen", unique=false, modelPath="Creature\\snake\\snake.mdx"},
{id=4305, tex="SerpantSkinWhite", unique=false, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=4312, tex="SerpantSkinPurple", unique=false, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=4317, tex="SerpantSkinBlue", unique=false, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=4435, tex="SerpantSkinGreen", unique=false, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=6303, tex="SnakeSkinRed", unique=true, modelPath="Creature\\snake\\snake.mdx"},
{id=11034, tex="SerpantSkinOlive", unique=false, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=15182, tex="SerpantSkinBrown", unique=true, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=20633, tex="SerpantSkinViolet", unique=true, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=20634, tex="SerpantSkinRuby", unique=true, modelPath="Creature\\Serpent\\Serpent.mdx"},
{id=21269, tex="SerpentSkinRuby", unique=true, modelPath="Creature\\Serpent\\Serpent.mdx"},
},
["Spiders"] = {
{id=30, tex="MineSpiderSkinSteel", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=283, tex="MineSpiderSkinGreen", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=336, tex="TarantulaSkinGreen", unique=false, modelPath="Creature\\Tarantula\\Tarantula.mdx"},
{id=366, tex="TarantulaSkinOrange", unique=false, modelPath="Creature\\Tarantula\\Tarantula.mdx"},
{id=513, tex="MineSpiderSkinOlive", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=520, tex="TarantulaSkinBrown", unique=false, modelPath="Creature\\Tarantula\\Tarantula.mdx"},
{id=711, tex="MineSpiderSkinWetLands", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=955, tex="MineSpiderSkinCave", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=963, tex="MineSpiderSkinBlood", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=1091, tex="TarantulaSkinGrey", unique=false, modelPath="Creature\\Tarantula\\Tarantula.mdx"},
{id=2536, tex="MineSpiderSkinJungle", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=4456, tex="MineSpiderSkinCrystal", unique=false, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
{id=4457, tex="TarantulaSkinMagma", unique=false, modelPath="Creature\\Tarantula\\Tarantula.mdx"},
{id=15937, tex="MineSpiderSkinViolet", unique=true, modelPath="Creature\\MineSpider\\MineSpider.mdx"},
},
["Tallstriders"] = {
{id=38, tex="TallStriderSkinTurquoise", unique=false, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=178, tex="TallStriderSkinBrown", unique=false, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=1220, tex="TallStriderSkinGray", unique=false, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=1221, tex="TallStriderSkinIvory", unique=false, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=1281, tex="TallStriderSkinPurple", unique=true, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=1961, tex="TallStriderSkinPink", unique=true, modelPath="Creature\\Tallstrider\\TallStrider.mdx"},
{id=20509, tex="HawkstriderBlue", unique=true, modelPath="Creature\\Hawkstrider\\Hawkstrider.mdx"},
{id=20510, tex="HawkstriderGold", unique=true, modelPath="Creature\\Hawkstrider\\Hawkstrider.mdx"},
{id=20511, tex="HawkstriderGreen", unique=true, modelPath="Creature\\Hawkstrider\\Hawkstrider.mdx"},
{id=20512, tex="HawkstriderRed", unique=true, modelPath="Creature\\Hawkstrider\\Hawkstrider.mdx"},
{id=20513, tex="HawkstriderWhite", unique=true, modelPath="Creature\\Hawkstrider\\Hawkstrider.mdx"},
},
["Turtles"] = {
{id=1244, tex="SeaTurtleSkin", unique=false, modelPath="Creature\\SeaTurtle\\SeaTurtle.mdx"},
{id=2307, tex="SeaTurtleSkinWhite", unique=false, modelPath="Creature\\SeaTurtle\\SeaTurtle.mdx"},
{id=4829, tex="SeaTurtleSkinGrey", unique=false, modelPath="Creature\\SeaTurtle\\SeaTurtle.mdx"},
{id=5026, tex="SeaTurtleSkinRed", unique=false, modelPath="Creature\\SeaTurtle\\SeaTurtle.mdx"},
{id=5126, tex="SeaTurtleSkinBlue", unique=false, modelPath="Creature\\SeaTurtle\\SeaTurtle.mdx"},
{id=16259, tex="TurtleSkinGreen", unique=false, modelPath="Creature\\Turtle\\Turtle.mdx"},
{id=16360, tex="TurtleSkinBrown", unique=true, modelPath="Creature\\Turtle\\Turtle.mdx"},
{id=16361, tex="TurtleSkinBlack", unique=true, modelPath="Creature\\Turtle\\Turtle.mdx"},
},
["Wind Serpents"] = {
{id=1336, tex="WindSerpentSkin", unique=false, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=2699, tex="WindSerpentSkinRed", unique=false, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=2700, tex="WindSerpentSkinGreen", unique=false, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=2703, tex="WindSerpentSkinWhite", unique=false, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=3006, tex="WindSerpentSkinBlack", unique=false, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=18386, tex="WindSerpentSkinOarnge", unique=true, modelPath="Creature\\WindSerpent\\WindSerpent.mdx"},
{id=20514, tex="ManaWurmSkinBlack", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
{id=20515, tex="MANAWURMSKINGREEN", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
{id=20516, tex="ManaWurmSkinPurple", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
{id=20517, tex="ManaWurmSkinQuel", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
{id=20518, tex="ManaWurmSkinSilver1", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
{id=20519, tex="ManaWurmSkinWhite", unique=true, modelPath="Creature\\Manawurm\\manawurm.mdx"},
},
["Wolves"] = {
{id=73, tex="Direwolfskinbrown", unique=true, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=161, tex="WolfSkinCoyote", unique=false, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=165, tex="WolfSkinTimber", unique=false, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=246, tex="DireWolfSkinDarkBlack", unique=false, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=644, tex="WolfSkinBlack", unique=false, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=720, tex="DireWolfSkinLightBlue", unique=false, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=776, tex="WolfSkinArctic", unique=false, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=868, tex="WolfSkinArcticAlpha", unique=true, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=1950, tex="WolfSkin_Ghost", unique=true, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=3916, tex="HoundSkinBlue", unique=false, modelPath="Creature\\DarkHound\\DarkHound.mdx"},
{id=4124, tex="WolfSkinDiseased", unique=false, modelPath="Creature\\Wolf\\Wolf.mdx"},
{id=6195, tex="HoundSkinGrey", unique=false, modelPath="Creature\\DarkHound\\DarkHound.mdx"},
{id=7890, tex="HoundSkinPurple", unique=false, modelPath="Creature\\DarkHound\\DarkHound.mdx"},
{id=8180, tex="HoundSkinRed", unique=false, modelPath="Creature\\DarkHound\\DarkHound.mdx"},
{id=9369, tex="DireWolfSkinReddishBrown", unique=false, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=9564, tex="DireWolfSkinLightGrey", unique=false, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=9567, tex="DireWolfSkinBlueBrown", unique=true, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=9568, tex="DireWolfSkinDarkBrown", unique=false, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=11414, tex="DireWolfSkinDarkGrey", unique=true, modelPath="Creature\\DireWolf\\DireWolf.mdx"},
{id=14312, tex="HoundSkinWhite", unique=false, modelPath="Creature\\DarkHound\\DarkHound.mdx"},
},
}
-- Maps any beast displayId to the canonical skin id used in MTH_DS_BeastSkins
-- Total: 577 entries
MTH_DS_DisplayToSkin = {
[368] = 30,
[372] = 165,
[380] = 165,
[382] = 366,
[389] = 193,
[418] = 30,
[447] = 165,
[471] = 320,
[498] = 366,
[499] = 193,
[503] = 193,
[538] = 513,
[539] = 30,
[545] = 283,
[557] = 161,
[566] = 520,
[598] = 320,
[604] = 165,
[607] = 381,
[613] = 599,
[614] = 320,
[615] = 322,
[633] = 599,
[641] = 342,
[643] = 161,
[647] = 165,
[648] = 322,
[649] = 180,
[651] = 366,
[659] = 513,
[666] = 165,
[670] = 180,
[671] = 180,
[672] = 180,
[673] = 180,
[674] = 322,
[676] = 322,
[677] = 675,
[695] = 322,
[698] = 320,
[699] = 342,
[703] = 377,
[704] = 377,
[707] = 706,
[709] = 336,
[719] = 706,
[741] = 246,
[744] = 381,
[749] = 748,
[755] = 675,
[759] = 336,
[760] = 336,
[762] = 706,
[768] = 283,
[780] = 644,
[781] = 644,
[782] = 644,
[783] = 165,
[784] = 644,
[785] = 776,
[788] = 180,
[801] = 776,
[802] = 776,
[814] = 807,
[815] = 807,
[821] = 520,
[827] = 520,
[831] = 807,
[834] = 833,
[835] = 807,
[837] = 792,
[839] = 809,
[841] = 792,
[842] = 838,
[843] = 838,
[844] = 792,
[845] = 809,
[855] = 776,
[869] = 776,
[902] = 822,
[903] = 165,
[909] = 520,
[910] = 520,
[913] = 865,
[917] = 632,
[918] = 632,
[945] = 180,
[948] = 180,
[949] = 675,
[954] = 748,
[957] = 283,
[958] = 955,
[959] = 955,
[961] = 787,
[982] = 822,
[996] = 979,
[997] = 981,
[998] = 979,
[999] = 981,
[1000] = 979,
[1001] = 981,
[1006] = 822,
[1007] = 806,
[1008] = 632,
[1030] = 720,
[1034] = 807,
[1035] = 925,
[1036] = 925,
[1037] = 833,
[1038] = 925,
[1039] = 833,
[1040] = 38,
[1041] = 178,
[1042] = 178,
[1043] = 632,
[1055] = 632,
[1058] = 1056,
[1059] = 1056,
[1080] = 807,
[1087] = 955,
[1088] = 513,
[1089] = 513,
[1090] = 955,
[1094] = 809,
[1095] = 599,
[1100] = 161,
[1103] = 1091,
[1104] = 1091,
[1105] = 388,
[1106] = 388,
[1157] = 955,
[1160] = 955,
[1164] = 161,
[1167] = 193,
[1192] = 507,
[1207] = 776,
[1208] = 377,
[1210] = 490,
[1219] = 178,
[1222] = 161,
[1228] = 388,
[1229] = 388,
[1250] = 833,
[1251] = 833,
[1259] = 180,
[1283] = 178,
[1284] = 1221,
[1338] = 960,
[1339] = 1337,
[1340] = 1337,
[1535] = 1534,
[1742] = 1336,
[1744] = 960,
[1746] = 1337,
[1747] = 960,
[1873] = 513,
[1938] = 1307,
[1939] = 1307,
[1955] = 1954,
[1960] = 1959,
[1962] = 1959,
[1971] = 1057,
[1972] = 1057,
[1973] = 1057,
[1974] = 1336,
[1975] = 1336,
[1977] = 1057,
[1978] = 1933,
[1989] = 336,
[1990] = 822,
[2031] = 1056,
[2239] = 979,
[2278] = 1056,
[2279] = 616,
[2300] = 1056,
[2301] = 1536,
[2305] = 410,
[2308] = 2307,
[2352] = 246,
[2378] = 822,
[2424] = 366,
[2433] = 30,
[2437] = 599,
[2453] = 2450,
[2486] = 2485,
[2491] = 2488,
[2537] = 2536,
[2538] = 2536,
[2539] = 2536,
[2540] = 283,
[2541] = 283,
[2542] = 366,
[2543] = 366,
[2544] = 366,
[2545] = 366,
[2546] = 366,
[2548] = 925,
[2549] = 925,
[2550] = 807,
[2570] = 1959,
[2571] = 1959,
[2573] = 1959,
[2574] = 1959,
[2609] = 1534,
[2702] = 2699,
[2705] = 2703,
[2706] = 2700,
[2707] = 2700,
[2708] = 2700,
[2711] = 2710,
[2712] = 2710,
[2715] = 2714,
[2716] = 2714,
[2731] = 2730,
[2732] = 2487,
[2741] = 1220,
[2765] = 2729,
[2766] = 2729,
[2850] = 1609,
[2864] = 2488,
[2902] = 1244,
[2995] = 2958,
[2996] = 1609,
[3027] = 3026,
[3030] = 3029,
[3031] = 3029,
[3035] = 3026,
[3126] = 1206,
[3187] = 3186,
[3188] = 3186,
[3200] = 806,
[3201] = 806,
[3202] = 165,
[3203] = 165,
[3204] = 2699,
[3205] = 2699,
[3247] = 2489,
[3248] = 490,
[4065] = 2699,
[4090] = 1609,
[4091] = 2700,
[4167] = 2956,
[4268] = 1206,
[4343] = 1986,
[4440] = 1987,
[4442] = 960,
[4458] = 4457,
[4472] = 748,
[4480] = 4312,
[4613] = 161,
[4615] = 4566,
[4636] = 2710,
[4689] = 2709,
[4716] = 4713,
[4732] = 3956,
[4733] = 4185,
[4734] = 3956,
[4767] = 4317,
[4768] = 4435,
[5027] = 5026,
[5030] = 5026,
[5052] = 2307,
[5066] = 1933,
[5067] = 599,
[5068] = 3029,
[5069] = 632,
[5127] = 5126,
[5242] = 960,
[5244] = 792,
[5245] = 838,
[5290] = 675,
[5292] = 960,
[5294] = 792,
[5295] = 838,
[5296] = 838,
[5510] = 822,
[5557] = 342,
[5558] = 981,
[5559] = 979,
[5560] = 1307,
[5905] = 2488,
[5966] = 4305,
[5985] = 2489,
[6068] = 2488,
[6069] = 2488,
[6070] = 2488,
[6073] = 1091,
[6076] = 1220,
[6082] = 1056,
[6122] = 6121,
[6126] = 1244,
[6196] = 6195,
[6210] = 616,
[6213] = 1091,
[6214] = 1091,
[6248] = 616,
[6300] = 4877,
[6368] = 5126,
[6468] = 5291,
[6805] = 3029,
[6807] = 3026,
[6808] = 336,
[6942] = 1056,
[6943] = 599,
[7046] = 5126,
[7114] = 5126,
[7339] = 644,
[7347] = 2489,
[7348] = 490,
[7349] = 490,
[7409] = 1206,
[7470] = 7469,
[7510] = 4457,
[7511] = 7469,
[7569] = 2703,
[7619] = 7469,
[7691] = 2703,
[7829] = 3006,
[7836] = 4829,
[7837] = 4829,
[7839] = 4829,
[7840] = 4829,
[7891] = 7890,
[7892] = 7890,
[7893] = 7890,
[7894] = 4185,
[7896] = 1954,
[7897] = 4185,
[7906] = 2699,
[8014] = 520,
[8050] = 2714,
[8129] = 840,
[8173] = 2955,
[8174] = 1987,
[8181] = 8180,
[8271] = 4456,
[8472] = 675,
[8473] = 960,
[8808] = 4185,
[8837] = 865,
[8838] = 806,
[8839] = 792,
[8840] = 806,
[8842] = 865,
[8843] = 706,
[8844] = 3186,
[8870] = 381,
[8871] = 8869,
[8969] = 2487,
[8970] = 2487,
[9019] = 8180,
[9020] = 3916,
[9021] = 3916,
[9022] = 7890,
[9029] = 9028,
[9050] = 675,
[9074] = 1954,
[9276] = 1083,
[9277] = 1083,
[9278] = 4124,
[9280] = 4124,
[9287] = 644,
[9354] = 7469,
[9370] = 9369,
[9371] = 9369,
[9372] = 9369,
[9509] = 644,
[9511] = 644,
[9535] = 3956,
[9558] = 644,
[9562] = 246,
[9563] = 246,
[9565] = 981,
[9566] = 979,
[9569] = 9568,
[9570] = 342,
[9571] = 342,
[9572] = 9568,
[9573] = 979,
[9749] = 2488,
[9750] = 4735,
[9755] = 4456,
[9756] = 4456,
[9829] = 513,
[9910] = 30,
[9913] = 2699,
[9929] = 4456,
[9934] = 336,
[9950] = 9949,
[9951] = 9949,
[9953] = 616,
[9955] = 9949,
[9957] = 9949,
[9990] = 9989,
[9992] = 9230,
[9993] = 9230,
[9997] = 4456,
[10015] = 193,
[10031] = 8971,
[10033] = 1954,
[10055] = 1934,
[10113] = 10054,
[10114] = 1934,
[10133] = 840,
[10183] = 2699,
[10209] = 246,
[10270] = 2726,
[10271] = 2726,
[10273] = 507,
[10274] = 776,
[10278] = 720,
[10618] = 865,
[10824] = 388,
[10825] = 410,
[10826] = 507,
[10827] = 490,
[10828] = 6212,
[10829] = 4877,
[10830] = 4877,
[10831] = 4877,
[10832] = 4877,
[10833] = 6212,
[10902] = 2726,
[10903] = 2713,
[10904] = 2713,
[10947] = 2307,
[10984] = 2487,
[10985] = 2487,
[10986] = 2414,
[10987] = 2414,
[10988] = 10983,
[10991] = 2700,
[11029] = 320,
[11031] = 320,
[11032] = 3956,
[11089] = 9469,
[11094] = 11093,
[11098] = 2485,
[11105] = 11104,
[11108] = 11107,
[11144] = 11143,
[11315] = 1959,
[11316] = 787,
[11317] = 960,
[11318] = 675,
[11319] = 322,
[11348] = 366,
[11411] = 246,
[11412] = 720,
[11413] = 9564,
[11415] = 9564,
[11416] = 776,
[11417] = 9564,
[11418] = 9564,
[11419] = 9564,
[11420] = 9369,
[11421] = 246,
[11422] = 720,
[11444] = 9958,
[11445] = 9958,
[11446] = 616,
[11447] = 320,
[11449] = 321,
[11450] = 321,
[11451] = 1056,
[11452] = 599,
[11453] = 11448,
[11454] = 3029,
[11455] = 320,
[11829] = 4735,
[11908] = 820,
[11909] = 820,
[11910] = 599,
[12151] = 11093,
[12156] = 11107,
[12157] = 11104,
[12159] = 9469,
[12433] = 410,
[12966] = 2710,
[13096] = 7469,
[13097] = 10983,
[13111] = 963,
[13589] = 1609,
[14256] = 925,
[14313] = 490,
[14315] = 822,
[14316] = 822,
[14318] = 11448,
[14319] = 507,
[14364] = 9956,
[14557] = 11034,
[14558] = 4435,
[14559] = 4305,
[14562] = 3956,
[14572] = 599,
[14657] = 5126,
[14658] = 4829,
[14659] = 1244,
[14660] = 5026,
[14661] = 2307,
[14780] = 1954,
[14853] = 711,
[14935] = 599,
[14950] = 955,
[14952] = 955,
[15072] = 711,
[15132] = 4317,
[15133] = 4435,
[15135] = 4312,
[15136] = 711,
[15137] = 3006,
[15138] = 320,
[15145] = 833,
[15150] = 4317,
[15151] = 320,
[15180] = 9369,
[15181] = 14312,
[15204] = 9369,
[15227] = 4735,
[15275] = 2699,
[15302] = 3186,
[15327] = 2489,
[15336] = 2485,
[15339] = 11104,
[15383] = 10983,
[15384] = 2729,
[15385] = 10983,
[15422] = 2730,
[15423] = 2730,
[15433] = 2488,
[15464] = 9028,
[15467] = 11104,
[15468] = 11143,
[15469] = 2485,
[15470] = 2729,
[15471] = 2489,
[15533] = 2414,
[15534] = 6212,
[15682] = 11107,
[15878] = 776,
[15929] = 7469,
[15938] = 513,
[15939] = 2536,
[15964] = 14312,
[15969] = 3916,
[16145] = 5126,
[16359] = 16259,
[16622] = 5585,
[18115] = 9492,
[18177] = 18008,
[18353] = 18338,
[18493] = 18006,
[20369] = 18027,
[20370] = 1933,
[20371] = 11448,
[20372] = 321,
[20373] = 9230,
[20374] = 18432,
[20375] = 18431,
[20376] = 18433,
[20377] = 18430,
[20378] = 18427,
[20379] = 18434,
[20380] = 18428,
[20381] = 18429,
[20382] = 9956,
[20383] = 18426,
[20384] = 11448,
[20385] = 321,
[20386] = 9230,
[20387] = 1933,
[20394] = 20388,
[20395] = 20389,
[20396] = 20390,
[20397] = 20391,
[20398] = 20392,
[20399] = 20393,
}
File diff suppressed because it is too large Load Diff
+1264 -1
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-7
View File
@@ -732,13 +732,6 @@ MTH_DS_AmmoItems = {
[92217] = 0,
},
},
[3034] = {
["name"] = "BKP \"Impact\" Shot",
["level"] = 35,
["reqlevel"] = 30,
["icon"] = "INV_Ammo_Bullet_02",
["subtype"] = "bullet",
},
[3464] = {
["name"] = "Feathered Arrow",
["level"] = 35,
+163
View File
@@ -0,0 +1,163 @@
-- MetaHunt: Pet spell DBC acquire-method overlay (learnMethod, minRank, nextSpellId)
-- AUTO-GENERATED by .tools — do not edit by hand.
-- Source DBC(s): SkillLineAbility.dbc, SkillLine.dbc
-- Generated: 2026-03-17 07:31 UTC
-- This file patches MTH_DS_PetSpells.allSpells entries with DBC-authoritative
-- learnMethod, minRank, and nextSpellId values.
-- Load order: after ds-pet-spells.lua and ds-pet-spells-trainer.lua
if not MTH_DS_PetSpells or not MTH_DS_PetSpells.allSpells then return end
local _acquire = {
[1747] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[1748] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[1749] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[1750] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[1751] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[1853] = { learnMethod="unknown(1)", minRank=1, nextSpellId=0, skillLineId=261 },
[2975] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[2976] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[2977] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[2980] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[2981] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[2982] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[3666] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[3667] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4195] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4196] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4197] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4198] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4199] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4200] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4201] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[4202] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[5048] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[5049] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[5149] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[7370] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[14922] = { learnMethod="unknown(1)", minRank=1, nextSpellId=0, skillLineId=261 },
[14923] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[14924] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[14925] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[14926] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[14927] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[16698] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17254] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17262] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17263] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17264] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17265] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17266] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17267] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[17268] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23100] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23111] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23112] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23146] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23149] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23150] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23163] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23166] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[23167] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24424] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24440] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24441] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24451] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24454] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24455] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24463] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24464] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24475] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24476] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24477] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24478] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24490] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24494] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24495] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24508] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24509] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24510] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24511] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24512] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24513] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24514] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24515] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24516] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24547] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24556] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24557] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24558] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24559] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24560] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24561] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24562] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24580] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24581] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24582] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24584] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24588] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24589] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24599] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24607] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24608] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24609] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24631] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24632] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24641] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[24845] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25013] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25014] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25015] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25016] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25017] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[25077] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26065] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26094] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26184] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26185] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26186] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26189] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26190] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[26202] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[28343] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36554] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36555] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36556] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36557] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36558] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36559] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36560] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36561] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36563] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36564] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36565] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36566] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36567] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36568] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36569] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36570] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36571] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36572] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36573] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[36574] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[46023] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
[46276] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[46303] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
[46304] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[46307] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
[46310] = { learnMethod="trainer", minRank=1, nextSpellId=0, skillLineId=261 },
[51154] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
[51155] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
[51157] = { learnMethod="trainer", minRank=0, nextSpellId=0, skillLineId=261 },
}
for _, spell in ipairs(MTH_DS_PetSpells.allSpells) do
local meta = _acquire[spell.id]
if meta then
spell.learnMethod = meta.learnMethod
spell.minRank = meta.minRank
spell.nextSpellId = meta.nextSpellId
spell.skillLineId = meta.skillLineId
end
end
+14 -12
View File
@@ -1355,14 +1355,15 @@ MTH_DS_PetSpells = {
{
["ability"] = "Roar of Fortitude",
["castTime"] = "Instant",
["categoryCooldown"] = "180 seconds",
["cooldown"] = "n/a",
["cost"] = "None",
["description"] = "Increases max hitpoints of allies in your party by 200 for 120 sec",
["categoryCooldown"] = "n/a",
["cooldown"] = "120 seconds",
["cost"] = "50 mana",
["description"] = "Let out a fortifying roar, reducing damage taken by 8% and increasing all damage dealt by 3% for your party members within 30 yards for 12 sec.",
["effects"] = {
"(6) Apply Aura #34: Mod Increase Health Value: 200 Radius: 20 yards",
"(6) Apply Aura #87: Mod Dmg % Taken (127) Value: -8 Radius: 30 yards",
"(6) Apply Aura #79: Mod Dmg % (127) Value: 3 Radius: 30 yards",
},
["icon"] = "Ability_BullRush",
["icon"] = "Ability_Druid_ChallangingRoar",
["id"] = 36535,
["name"] = "Roar of Fortitude",
["range"] = "0 yards (Self Only)",
@@ -3245,14 +3246,15 @@ MTH_DS_PetSpells = {
{
["ability"] = "Roar of Fortitude",
["castTime"] = "Instant",
["categoryCooldown"] = "180 seconds",
["cooldown"] = "n/a",
["cost"] = "None",
["description"] = "Increases max hitpoints of allies in your party by 200 for 120 sec",
["categoryCooldown"] = "n/a",
["cooldown"] = "120 seconds",
["cost"] = "50 mana",
["description"] = "Let out a fortifying roar, reducing damage taken by 8% and increasing all damage dealt by 3% for your party members within 30 yards for 12 sec.",
["effects"] = {
"(6) Apply Aura #34: Mod Increase Health Value: 200 Radius: 20 yards",
"(6) Apply Aura #87: Mod Dmg % Taken (127) Value: -8 Radius: 30 yards",
"(6) Apply Aura #79: Mod Dmg % (127) Value: 3 Radius: 30 yards",
},
["icon"] = "Ability_BullRush",
["icon"] = "Ability_Druid_ChallangingRoar",
["id"] = 36535,
["name"] = "Roar of Fortitude",
["range"] = "0 yards (Self Only)",
+37
View File
@@ -0,0 +1,37 @@
-- MetaHunt: Stable slot prices
-- AUTO-GENERATED by .tools — do not edit by hand.
-- Source DBC(s): StableSlotPrices.dbc
-- Generated: 2026-03-17 07:31 UTC
if not MTH_DS then MTH_DS = {} end
MTH_DS_StableSlotPrices = {
[1] = {
["cost_copper"] = 500,
["cost_gold"] = 0,
["cost_silver"] = 5,
["cost_copper_remainder"] = 0,
["display"] = "0g 5s 0c",
},
[2] = {
["cost_copper"] = 50000,
["cost_gold"] = 5,
["cost_silver"] = 0,
["cost_copper_remainder"] = 0,
["display"] = "5g 0s 0c",
},
[3] = {
["cost_copper"] = 2500000,
["cost_gold"] = 250,
["cost_silver"] = 0,
["cost_copper_remainder"] = 0,
["display"] = "250g 0s 0c",
},
[4] = {
["cost_copper"] = 1,
["cost_gold"] = 0,
["cost_silver"] = 0,
["cost_copper_remainder"] = 1,
["display"] = "0g 0s 1c",
},
}
+84
View File
@@ -0,0 +1,84 @@
-- MetaHunt: Zone DBC enrichment (worldBounds, dbcAreaId, dbcMapId, dbcName)
-- AUTO-GENERATED by .tools — do not edit by hand.
-- Source DBC(s): WorldMapArea.dbc, AreaTable.dbc
-- Generated: 2026-03-17 07:31 UTC
if not MTH_DS_Zones then return end
-- WMA ID=301 map=0 'Stormwind'
if MTH_DS_Zones[1519] then
MTH_DS_Zones[1519]["dbcAreaId"] = 1519
MTH_DS_Zones[1519]["dbcMapId"] = 0
MTH_DS_Zones[1519]["dbcName"] = "Stormwind"
MTH_DS_Zones[1519]["worldBounds"] = {
["left"] = 1722.92,
["right"] = -14.58,
["top"] = -7995.8301,
["bottom"] = -9154.1699,
}
end
-- WMA ID=321 map=1 'Ogrimmar'
if MTH_DS_Zones[1637] then
MTH_DS_Zones[1637]["dbcAreaId"] = 1637
MTH_DS_Zones[1637]["dbcMapId"] = 1
MTH_DS_Zones[1637]["dbcName"] = "Ogrimmar"
MTH_DS_Zones[1637]["worldBounds"] = {
["left"] = -3680.6001,
["right"] = -5083.21,
["top"] = 2273.8799,
["bottom"] = 1338.46,
}
end
-- WMA ID=362 map=1 'ThunderBluff'
if MTH_DS_Zones[1638] then
MTH_DS_Zones[1638]["dbcAreaId"] = 1638
MTH_DS_Zones[1638]["dbcMapId"] = 1
MTH_DS_Zones[1638]["dbcName"] = "ThunderBluff"
MTH_DS_Zones[1638]["worldBounds"] = {
["left"] = 516.67,
["right"] = -527.08,
["top"] = -850.0,
["bottom"] = -1545.83,
}
end
-- WMA ID=381 map=1 'Darnassis'
if MTH_DS_Zones[1657] then
MTH_DS_Zones[1657]["dbcAreaId"] = 1657
MTH_DS_Zones[1657]["dbcMapId"] = 1
MTH_DS_Zones[1657]["dbcName"] = "Darnassis"
MTH_DS_Zones[1657]["worldBounds"] = {
["left"] = 2938.3601,
["right"] = 1880.03,
["top"] = 10238.3203,
["bottom"] = 9532.5898,
}
end
-- WMA ID=382 map=0 'Undercity'
if MTH_DS_Zones[1497] then
MTH_DS_Zones[1497]["dbcAreaId"] = 1497
MTH_DS_Zones[1497]["dbcMapId"] = 0
MTH_DS_Zones[1497]["dbcName"] = "Undercity"
MTH_DS_Zones[1497]["worldBounds"] = {
["left"] = 873.19,
["right"] = -86.18,
["top"] = 1877.95,
["bottom"] = 1237.84,
}
end
-- WMA ID=509 map=0 'AlahThalas'
if MTH_DS_Zones[2040] then
MTH_DS_Zones[2040]["dbcAreaId"] = 2040
MTH_DS_Zones[2040]["dbcMapId"] = 0
MTH_DS_Zones[2040]["dbcName"] = "AlahThalas"
MTH_DS_Zones[2040]["worldBounds"] = {
["left"] = -2169.0,
["right"] = -3637.0,
["top"] = 4907.0,
["bottom"] = 3931.0,
}
end
File diff suppressed because it is too large Load Diff
-1052
View File
File diff suppressed because it is too large Load Diff
+79
View File
@@ -26,6 +26,85 @@ end
MTH_DS_MarkNotInGameRangedWeapons()
local function MTH_DS_ApplyCapturedProjectileQualities()
if type(MTH_DS_AmmoItems) ~= "table" then return end
local capturedQualityByItemId = {
[2512] = 1,
[2515] = 1,
[2516] = 1,
[2519] = 1,
[3030] = 1,
[3033] = 1,
[3464] = 2,
[3465] = 2,
[4960] = 1,
[5568] = 1,
[8067] = 1,
[8068] = 1,
[8069] = 1,
[9399] = 2,
[10512] = 2,
[10513] = 2,
[10579] = 3,
[11284] = 1,
[11285] = 1,
[11630] = 3,
[12654] = 3,
[13377] = 3,
[15997] = 2,
[18042] = 2,
[19316] = 2,
[19317] = 2,
}
for itemId, quality in pairs(capturedQualityByItemId) do
local row = MTH_DS_AmmoItems[itemId]
if type(row) == "table" then
row.quality = quality
end
end
end
MTH_DS_ApplyCapturedProjectileQualities()
local function MTH_DS_ApplyCapturedAmmoBagQualities()
local bagItems = MTH_DS_BagItems or MTH_DS_Bags
if type(bagItems) ~= "table" then return end
local capturedQualityByItemId = {
[2101] = 1,
[2102] = 1,
[3573] = 1,
[3574] = 1,
[3604] = 2,
[3605] = 2,
[5439] = 1,
[5441] = 1,
[7278] = 1,
[7279] = 1,
[7371] = 2,
[7372] = 2,
[8217] = 2,
[8218] = 2,
[11362] = 1,
[11363] = 1,
[18714] = 4,
[19319] = 3,
[19320] = 3,
[61549] = 3,
}
for itemId, quality in pairs(capturedQualityByItemId) do
local row = bagItems[itemId]
if type(row) == "table" then
row.quality = quality
end
end
end
MTH_DS_ApplyCapturedAmmoBagQualities()
local function MTH_DS_EnsurePetSpellsTrainerGrowl()
if not MTH_DS_PetSpells then return end
if type(MTH_DS_PetSpells.allSpells) ~= "table" then MTH_DS_PetSpells.allSpells = {} end
+11
View File
@@ -8,12 +8,17 @@
<Include file="..\api\AntiDaze.lua"/>
<Include file="..\api\uilib.lua"/>
<Include file="..\api\uirenderer.lua"/>
<Include file="..\init\localization.xml"/>
<Include file="..\api\options-tree.lua"/>
<Include file="..\api\options.xml"/>
<Include file="..\api\options.lua"/>
<Include file="..\api\options-chronometer.lua"/>
<Include file="..\api\options-credits.lua"/>
<Include file="..\api\options-autobuy.lua"/>
<Include file="..\api\options-autoquest.lua"/>
<Include file="..\api\options-icu.lua"/>
<Include file="..\api\profile.lua"/>
<Include file="..\api\options-profiles.lua"/>
<Include file="..\api\options-shell.lua"/>
<Include file="..\api\options-zbuttons.lua"/>
<Include file="..\api\options-feedomatic.lua"/>
@@ -26,12 +31,18 @@
<Include file="..\api\hunterbook-tab-npcfinder.lua"/>
<Include file="..\api\hunterbook-tab-stable.lua"/>
<Include file="..\api\hunterbook-tab-pethistory.lua"/>
<Include file="..\api\hunterbook-model-viewer.lua"/>
<Include file="..\api\map-markers.lua"/>
<Include file="..\api\core-framework.lua"/>
<Include file="..\api\core-scan-stablemaster.lua"/>
<Include file="..\api\pets-service-lifecycle.lua"/>
<Include file="..\api\pets-service-vitals.lua"/>
<Include file="..\api\pets-service-runaway.lua"/>
<Include file="..\api\pets-service-stablescan.lua"/>
<Include file="..\api\core-scan-beasttraining.lua"/>
<Include file="..\api\core-scan-spellbookpet.lua"/>
<Include file="..\api\core.lua"/>
<Include file="..\api\version-check.lua"/>
<Include file="..\api\localization.lua"/>
<Include file="..\api\config.lua"/>
</Ui>
+38
View File
@@ -0,0 +1,38 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Include file="..\locales\init.lua"/>
<Include file="..\locales\ui\enUS.lua"/>
<Include file="..\locales\ui\deDE.lua"/>
<Include file="..\locales\ui\esES.lua"/>
<Include file="..\locales\ui\ptBR.lua"/>
<Include file="..\locales\ui\ruRU.lua"/>
<Include file="..\locales\ui\zhCN.lua"/>
<Include file="..\locales\spells\enUS.lua"/>
<Include file="..\locales\spells\deDE.lua"/>
<Include file="..\locales\spells\esES.lua"/>
<Include file="..\locales\spells\ptBR.lua"/>
<Include file="..\locales\spells\ruRU.lua"/>
<Include file="..\locales\spells\zhCN.lua"/>
<Include file="..\locales\data\vendors\enUS.lua"/>
<Include file="..\locales\data\vendors\deDE.lua"/>
<Include file="..\locales\data\vendors\esES.lua"/>
<Include file="..\locales\data\vendors\ptBR.lua"/>
<Include file="..\locales\data\vendors\ruRU.lua"/>
<Include file="..\locales\data\vendors\zhCN.lua"/>
<Include file="..\locales\data\items\enUS.lua"/>
<Include file="..\locales\data\items\deDE.lua"/>
<Include file="..\locales\data\items\esES.lua"/>
<Include file="..\locales\data\items\ptBR.lua"/>
<Include file="..\locales\data\items\ruRU.lua"/>
<Include file="..\locales\data\items\zhCN.lua"/>
<Include file="..\locales\data\beasts\enUS.lua"/>
<Include file="..\locales\data\beasts\deDE.lua"/>
<Include file="..\locales\data\beasts\esES.lua"/>
<Include file="..\locales\data\beasts\ptBR.lua"/>
<Include file="..\locales\data\beasts\ruRU.lua"/>
<Include file="..\locales\data\beasts\zhCN.lua"/>
</Ui>
+6
View File
@@ -20,4 +20,10 @@ MetaHunt Module Loader
<!-- AutoBuy Module - ENABLED -->
<Include file="..\modules\autobuy\loader.xml"/>
<!-- Auto Quest Module - ENABLED -->
<Include file="..\modules\autoquest\loader.xml"/>
<!-- ICU Module - ENABLED (runtime default: disabled) -->
<Include file="..\modules\icu\loader.xml"/>
</Ui>
+713
View File
@@ -0,0 +1,713 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
MTH_LocaleData.data.beasts.deDE = {
[30] = "Waldspinne",
[43] = "Minenspinne",
[69] = "Erkrankter wilder Waldwolf",
[113] = "Steinhauereber",
[118] = "Streuner",
[119] = "Langschnauze",
[154] = "Großer Fleischreißer",
[157] = "Geiferzahn",
[199] = "Junger Fleischreißer",
[213] = "Ausgehungerter Terrorwolf",
[217] = "Giftweberspinne",
[299] = "Junger Wolf",
[330] = "Prinzessin",
[345] = "Stopfwanst",
[390] = "Gefolgsschwein",
[428] = "Terrorkondor",
[442] = "Tarantel",
[454] = "Junger Geiferzahn",
[462] = "Vultros",
[471] = "Giftzahnbrutmutter",
[505] = "Große Tarantel",
[521] = "Lupos",
[524] = "Steinhauteber",
[525] = "Räudiger Wolf",
[539] = "Zwerggiftweberspinne",
[547] = "Großer Geiferzahn",
[565] = "Tollwütiger Terrorwolf",
[569] = "Grüner Eremit",
[574] = "Naraxis",
[616] = "Chatter",
[628] = "Schwarzer Verheerer",
[681] = "Junger Schlingendorntiger",
[682] = "Schlingendorntiger",
[683] = "Junger Panther",
[684] = "Schattentatzenpanther",
[685] = "Schlingendornraptor",
[686] = "Schmetterschwanz",
[687] = "Dschungelpirscher",
[704] = "Struppiger Waldwolf",
[705] = "Struppiger junger Wolf",
[708] = "Kleiner Klippeneber",
[728] = "Bhag'thera",
[729] = "Sin'Dall",
[730] = "Tethis",
[731] = "König Bangalash",
[736] = "Panther",
[767] = "Sumpfjaguar",
[768] = "Schattenpanther",
[769] = "Todesstoßtarantel",
[772] = "Schlingendorntigerin",
[822] = "Junger Waldbär",
[830] = "Sandkriecher",
[831] = "Meereskriecher",
[833] = "Kojotenrudelanführer",
[834] = "Kojote",
[854] = "Junger Dschungelpirscher",
[855] = "Junger Schlingendornraptor",
[856] = "Junger Schmetterschwanz",
[858] = "Trauerspinner",
[922] = "Schlickkriecher",
[923] = "Junger schwarzer Verheerer",
[930] = "Junges einer Schwarzen Witwe",
[949] = "Aaskrabbler",
[976] = "Kurzens Kriegstiger",
[977] = "Kurzens Kriegspanther",
[1015] = "Hochlandraptor",
[1016] = "Hochlandschmetterschwanz",
[1017] = "Hochlandsensenklaue",
[1018] = "Hochlandscharfzahn",
[1019] = "Alter Scharfzahn",
[1020] = "Scheckiger Raptor",
[1021] = "Scheckiger Kreischer",
[1022] = "Scheckige Sensenklaue",
[1023] = "Scheckiger Scharfzahn",
[1082] = "Sägezahnkrokilisk",
[1084] = "Junger Sägezahnkrokilisk",
[1087] = "Sägezahnschnapper",
[1088] = "Monströser Kriecher",
[1108] = "Nebeltalgorilla",
[1109] = "Fleischreißer",
[1111] = "Egelpirscher",
[1112] = "Egelwitwe",
[1114] = "Dschungeldonnerer",
[1125] = "Klippeneber",
[1126] = "Großer Klippeneber",
[1127] = "Alter Klippeneber",
[1128] = "Junger Schwarzbär",
[1129] = "Schwarzbär",
[1130] = "Bjarn",
[1131] = "Winterwolf",
[1132] = "Holzkopf",
[1133] = "Verhungernder Winterwolf",
[1138] = "Schneefährtenleserwolf",
[1140] = "Scharfzahnmatriarchin",
[1150] = "Flusskrokilisk",
[1152] = "Schnappkieferkrokilisk",
[1184] = "Klippenlauerer",
[1185] = "Holzlauerer",
[1186] = "Schwarzbär",
[1188] = "Ergrauter Schwarzbär",
[1189] = "Schwarzbärenpatriarch",
[1190] = "Bergeber",
[1191] = "Räudiger Bergeber",
[1192] = "Alter Bergeber",
[1194] = "Bergbussard",
[1195] = "Waldlauerer",
[1196] = "Eisklauenbär",
[1199] = "Halbwüchsiger Schneeleopard",
[1201] = "Schneeleopard",
[1216] = "Küstenkriecher",
[1225] = "Alte Rußtatze",
[1258] = "Schwarzer Verheerermastiff",
[1400] = "Sumpflandkrokilisk",
[1417] = "Junger Sumpflandkrokilisk",
[1504] = "Junger Nachtweber",
[1505] = "Nachtweber",
[1508] = "Junger Aasfresser",
[1509] = "Struppiger Aasfresser",
[1511] = "Wütender Silberrücken",
[1512] = "Nachtsauger",
[1513] = "Räudiger Nachtsauger",
[1516] = "Konda",
[1547] = "Altersschwacher Schattenhund",
[1548] = "Verfluchter Schattenhund",
[1549] = "Gefräßiger Schattenhund",
[1553] = "Großer Nachtsauger",
[1554] = "Vampirnachtsauger",
[1555] = "Heimtückischer Nachtweber",
[1557] = "Alter Nebeltalgorilla",
[1558] = "Silberrückenpatriarch",
[1688] = "Nachtwebermatriarchin",
[1689] = "Vernarbter Klippeneber",
[1693] = "Lochkrokilisk",
[1713] = "Alter Schattentatzenpanther",
[1765] = "Worg",
[1766] = "Tollwütiger Worg",
[1778] = "Wilder ergrauter Bär",
[1780] = "Netzhuscherhetzer",
[1781] = "Netzhuscherlauerer",
[1797] = "Tollwütiger Riesenbär",
[1809] = "Aasgeier",
[1815] = "Kranker Schwarzbär",
[1816] = "Kranker Grizzly",
[1817] = "Kranker Wolf",
[1822] = "Giftnebellauerer",
[1824] = "Seuchenlauerer",
[1922] = "Grauer Forstwolf",
[1923] = "Blutschnauzenworg",
[1961] = "Marterklaue",
[1984] = "Junger Disteleber",
[1985] = "Disteleber",
[1986] = "Waldweberspinne",
[1994] = "Githyiss die Üble",
[1995] = "Strigideule",
[1996] = "Strigidkreischer",
[1997] = "Strigidjäger",
[1998] = "Waldweberlauerer",
[1999] = "Waldwebergiftzahn",
[2000] = "Waldweberseidenspinner",
[2001] = "Riesige Waldweberspinne",
[2031] = "Junger Nachtsäbler",
[2032] = "Räudiger Nachtsäbler",
[2033] = "Alter Nachtsäbler",
[2034] = "Wilder Nachtsäbler",
[2042] = "Nachtsäbler",
[2043] = "Pirschender Nachtsäbler",
[2069] = "Mondpirscher",
[2070] = "Mondpirscherwicht",
[2071] = "Mondpirschermatriarchin",
[2089] = "Riesiger Sumpflandkrokilisk",
[2163] = "Distelbär",
[2165] = "Ergrauter Distelbär",
[2172] = "Schreitergelegemutter",
[2175] = "Schattenklaue",
[2231] = "Zwerggezeitenkriecher",
[2232] = "Gezeitenkriecher",
[2233] = "Verkrusteter Gezeitenkriecher",
[2234] = "Junger Riffkriecher",
[2235] = "Riffkriecher",
[2236] = "Tobender Riffkriecher",
[2237] = "Mondpirscherpatriarch",
[2275] = "Wütender Stanley",
[2321] = "Waldschreiterjunges",
[2322] = "Waldschreiter",
[2323] = "Riesiger Waldschreiter",
[2348] = "Alter Mooskrabbler",
[2349] = "Domestizierter Krabbler",
[2350] = "Waldkrabbler",
[2351] = "Verseuchter Bär",
[2354] = "Heimtückischer Graubär",
[2356] = "Alter Graubär",
[2384] = "Verhungernder Berglöwe",
[2385] = "Hügellandpirscher",
[2406] = "Berglöwe",
[2407] = "Bulliger Berglöwe",
[2408] = "Schnappkiefer",
[2476] = "Gosh-Haldir",
[2505] = "Salzwasserschnappkiefer",
[2521] = "Himmelsmähnengorilla",
[2522] = "Jagueropirscher",
[2544] = "Südlicher Sandkriecher",
[2559] = "Hochlandschreiter",
[2560] = "Hochlandhauer",
[2561] = "Hochlandfleischpirscher",
[2563] = "Ebenenkrabbler",
[2565] = "Riesiger Ebenenkrabbler",
[2578] = "Junger Mesabussard",
[2579] = "Mesabussard",
[2580] = "Alter Mesabussard",
[2635] = "Alter Schnappkieferkrokilisk",
[2680] = "Wolfswelpe der Blutfratzen",
[2681] = "Raubwolf der Blutfratzen",
[2686] = "Brutwache der Bleichborken",
[2727] = "Klippenkojote",
[2728] = "Wilder Klippenkojote",
[2729] = "Alter Klippenkojote",
[2730] = "Tollwütiger Klippenkojote",
[2731] = "Kammpirscher",
[2732] = "Kammjägerin",
[2734] = "Kammpirscherpatriarch",
[2753] = "Barnabus",
[2829] = "Verhungernder Bussard",
[2830] = "Ausgedörrter Bussard",
[2831] = "Riesenbussard",
[2850] = "Zerbrochener Zahn",
[2923] = "Räudige Silbermähne",
[2924] = "Silbermähnenwolf",
[2925] = "Silbermähnenheuler",
[2926] = "Silbermähnenpirscher",
[2931] = "Zaricotl",
[2954] = "Kampfeber der Borstennacken",
[2955] = "Ebenenschreiter",
[2956] = "Ausgewachsener Ebenenschreiter",
[2957] = "Alter Ebenenschreiter",
[2958] = "Präriewolf",
[2959] = "Präriepirscher",
[2960] = "Präriewolfalpha",
[2961] = "Bergpuma",
[2966] = "Junger Kampfeber",
[2969] = "Drahtiger Sturzflieger",
[2970] = "Sturzflieger",
[2971] = "Kralliger Sturzflieger",
[3035] = "Flachlandpuma",
[3068] = "Mazzranache",
[3098] = "Scheckiger Eber",
[3099] = "Scheckiger Terroreber",
[3100] = "Alter scheckiger Eber",
[3106] = "Brandungskriecher",
[3107] = "Ausgewachsener Brandungskriecher",
[3108] = "Verkrusteter Brandungskriecher",
[3110] = "Schaudermagenkrokilisk",
[3121] = "Durotartiger",
[3122] = "Blutkrallenschwanzpeitscher",
[3123] = "Blutkrallensensenschlund",
[3124] = "Skorpidarbeiter",
[3125] = "Rasselnder Skorpid",
[3126] = "Gepanzerter Skorpid",
[3127] = "Siechstachelskorpid",
[3225] = "Verderbter scheckiger Eber",
[3226] = "Verderbter Skorpid",
[3227] = "Verderbter Blutkrallensensenschlund",
[3228] = "Verderbter Brandungskriecher",
[3231] = "Verderbter Schaudermagenkrokilisk",
[3241] = "Savannenpatriarch",
[3243] = "Savannenhochmähne",
[3244] = "Großer Ebenenschreiter",
[3245] = "Störrischer Ebenenschreiter",
[3246] = "Flüchtiger Ebenenschreiter",
[3247] = "Donnerfalkenjungtier",
[3249] = "Großer Donnerfalke",
[3250] = "Silithidkrabbler",
[3252] = "Silithidschwärmer",
[3254] = "Sonnenschuppenschmetterschwanz",
[3255] = "Sonnenschuppenkreischer",
[3256] = "Sonnenschuppensensenklaue",
[3257] = "Ishamuhale",
[3281] = "Sarkoth",
[3415] = "Savannenjägerin",
[3416] = "Savannenmatriarchin",
[3424] = "Donnerfalkenwolkenkitzler",
[3425] = "Savannenstreuner",
[3461] = "Oasenschnappkiefer",
[3472] = "Washte Pawne",
[3475] = "Echeyakee",
[3503] = "Silithidbeschützer",
[3566] = "Flachlandstreuner",
[3581] = "Kanalbestie",
[3619] = "Geistersäbler",
[3630] = "Deviatwinder",
[3631] = "Deviatdornenpeitscher",
[3632] = "Deviatkrabbler",
[3633] = "Deviattöter",
[3634] = "Deviatpirscher",
[3636] = "Deviatverheerer",
[3637] = "Deviatwächter",
[3653] = "Kresh",
[3809] = "Eschentalbär",
[3810] = "Alter Eschentalbär",
[3811] = "Riesiger Eschentalbär",
[3812] = "Rasselnder Kriecher",
[3814] = "Stachelkriecher",
[3819] = "Wilddornpirscher",
[3820] = "Wilddorngiftspucker",
[3821] = "Wilddornlauerer",
[3823] = "Geisterpfotenläufer",
[3824] = "Geisterpfotenheuler",
[3825] = "Geisterpfotenalpha",
[3861] = "Düsterer Worg",
[3862] = "Sabbernder Worg",
[3866] = "Üble Fledermaus",
[3868] = "Blutsucher",
[4005] = "Kluftmooskrabbler",
[4006] = "Kluftmoosnetzweber",
[4007] = "Kluftmoosgiftspucker",
[4040] = "Höhlenpirscher",
[4067] = "Mondlichtläufer",
[4117] = "Wolkenschlange",
[4118] = "Giftige Wolkenschlange",
[4119] = "Alte Wolkenschlange",
[4124] = "Nadelpuma",
[4126] = "Klippenpirscher",
[4127] = "Fleischreißerhyäne",
[4128] = "Fleischreißerpirscher",
[4129] = "Fleischreißerkläffer",
[4139] = "Skorpidschrecken",
[4140] = "Skorpidhäscher",
[4142] = "Spiegelpanzerschildkröte",
[4143] = "Spiegelpanzerschnapper",
[4144] = "Spiegelpanzerbohrer",
[4154] = "Salzwüstenaasfresser",
[4158] = "Salzwüstengeier",
[4248] = "Pestfleckenhyäne",
[4249] = "Pestfleckenkläffer",
[4250] = "Rudelhund der Galak",
[4263] = "Kluftmoosjungtier",
[4264] = "Kluftmoosmatriarchin",
[4304] = "Scharlachroter Fährtenleserhund",
[4316] = "Rudelhund der Kolkar",
[4341] = "Staubsuhlerkrokilisk",
[4342] = "Staubsuhlerzwingenkiefer",
[4343] = "Staubsuhlerschnapper",
[4344] = "Scheckiger Staubsuhlerkrokilisk",
[4345] = "Staubsuhlerdolchrachen",
[4351] = "Blutsumpfraptor",
[4352] = "Blutsumpfkreischer",
[4355] = "Blutsumpfsensenklaue",
[4356] = "Blutsumpfscharfzahn",
[4357] = "Blutsumpfschmetterschwanz",
[4376] = "Graunebelspinne",
[4377] = "Graunebeljungtier",
[4378] = "Graunebeleremit",
[4379] = "Graunebelseidenspinner",
[4380] = "Graunebelwitwe",
[4396] = "Schlammpanzerschildkröte",
[4397] = "Dornenschlammpanzer",
[4398] = "Schlammpanzereinbuddler",
[4399] = "Schlammpanzerbohrer",
[4400] = "Schlammpanzerschnappkiefer",
[4411] = "Dunkelzahnlauerer",
[4412] = "Dunkelzahnkrabbler",
[4413] = "Dunkelzahnspinne",
[4414] = "Dunkelzahngiftspucker",
[4415] = "Riesige Dunkelzahnspinne",
[4425] = "Blinder Jäger",
[4511] = "Agam'ar",
[4512] = "Faulender Agam'ar",
[4514] = "Tobender Agam'ar",
[4538] = "Kralfledermaus",
[4539] = "Große Kralfledermaus",
[4548] = "Stahlbiss",
[4660] = "Skelettpfote der Maraudine",
[4662] = "Skelettpfote der Magram",
[4688] = "Skelettpfotenhyäne",
[4689] = "Verhungernde Skelettpfote",
[4690] = "Tollwütige Skelettpfote",
[4692] = "Schreckenssturzflieger",
[4693] = "Schreckensflieger",
[4694] = "Schreckensschlitzer",
[4695] = "Aasschrecken",
[4696] = "Skorpashischnapper",
[4697] = "Skorpashipeitscher",
[4699] = "Skorpashigiftpeitscher",
[4821] = "Huschendes Krustentier",
[4822] = "Schnappendes Krustentier",
[4823] = "Stacheliges Krustentier",
[4824] = "Fischschnapper von Aku'mai",
[4825] = "Schnappkiefer von Aku'mai",
[4841] = "Schlammwühler",
[4861] = "Würgerfledermaus",
[4887] = "Ghamoo-Ra",
[4950] = "Spot",
[5048] = "Deviatotter",
[5053] = "Deviatkrokilisk",
[5056] = "Deviatschreckensfang",
[5224] = "Düstergleiter",
[5225] = "Düsterspeier",
[5260] = "Groddocaffe",
[5262] = "Groddocdonnerer",
[5268] = "Eisenfellbär",
[5272] = "Grauer Eisenfellbär",
[5274] = "Eisenfellpatriarch",
[5286] = "Langzahnläufer",
[5287] = "Langzahnheuler",
[5288] = "Tollwütiger Langzahn",
[5291] = "Frostflügler der Hakkari",
[5307] = "Talkreischer",
[5308] = "Wilder Talkreischer",
[5349] = "Arash-ethis",
[5352] = "Silbergrimm der Weise",
[5356] = "Knurrer",
[5422] = "Skorpidjäger",
[5423] = "Skorpidschwanzpeitscher",
[5424] = "Skorpiddünenpirscher",
[5425] = "Verhungernde Eiterpfote",
[5426] = "Eiterpfotenhyäne",
[5427] = "Tollwütige Eiterpfote",
[5428] = "Roc",
[5429] = "Feuerroc",
[5430] = "Sengender Roc",
[5431] = "Brandungsgleiter",
[5432] = "Riesiger Brandungsgleiter",
[5708] = "Brut von Hakkar",
[5755] = "Deviatviper",
[5756] = "Deviatgiftschwinge",
[5762] = "Deviatmokassinschlange",
[5766] = "Savannenjunges",
[5807] = "Der Kratzer",
[5823] = "Todesschinder",
[5828] = "Humar der Rudellord",
[5829] = "Snort der Spucker",
[5834] = "Azzere die Himmelsklinge",
[5842] = "Takk der Springer",
[5856] = "Glasnetzspinne",
[5857] = "Sengende Lavaspinne",
[5858] = "Große Lavaspinne",
[5865] = "Dishu",
[5937] = "Übelstich",
[5982] = "Schwarzer Töter",
[5984] = "Verhungernder Kicherfang",
[5985] = "Kicherfanghyäne",
[5988] = "Skorpokstecher",
[5992] = "Aschmähneneber",
[6013] = "Entflogener Bussard",
[6352] = "Korallenpanzerschleicher",
[6369] = "Korallenpanzerschildkröte",
[6505] = "Ravasaurus",
[6506] = "Ravasaurusläufer",
[6507] = "Ravasaurusjäger",
[6508] = "Gifthautravasaurus",
[6513] = "Stampfer von Un'Goro",
[6514] = "Gorilla von Un'Goro",
[6516] = "Donnerer von Un'Goro",
[6581] = "Ravasaurusmatriarchin",
[6585] = "Uhk'loc",
[6788] = "Höhlenmutter",
[6789] = "Distelbärjunges",
[7022] = "Giftpeitscherskorpid",
[7055] = "Worg des Schwarzfels",
[7078] = "Kluftskorpid",
[7097] = "Eisenschnabeleule",
[7098] = "Eisenschnabelkreischer",
[7099] = "Eisenschnabeljäger",
[7268] = "Wächter der Sandwüter",
[7319] = "Lady Sathrah",
[7405] = "Tödlicher Kluftskorpid",
[7430] = "Junger Frostsäbler",
[7431] = "Frostsäbler",
[7432] = "Frostsäblerpirscherin",
[7433] = "Frostsäblerjägerin",
[7434] = "Rudelbehüterin der Frostsäbler",
[7443] = "Splitterzahnraufer",
[7444] = "Splitterzahnbär",
[7445] = "Alter Splitterzahn",
[7446] = "Tollwütiger Splitterzahn",
[7455] = "Winterquelleule",
[7456] = "Winterquellkreischer",
[7803] = "Dünenbuddlerskorpid",
[8207] = "Glutschwinge",
[8208] = "Mordlustige Eiterpfote",
[8211] = "Klippenspringer",
[8213] = "Eisenpanzer",
[8277] = "Rekk'tilac",
[8299] = "Fledderschnabel",
[8300] = "Verheerer",
[8301] = "Clack der Häscher",
[8303] = "Suhlaman",
[8336] = "Pionier der Hakkari",
[8600] = "Seuchenfledermaus",
[8601] = "Giftige Seuchenfledermaus",
[8602] = "Monströse Seuchenfledermaus",
[8762] = "Baumspinnereremit",
[8926] = "Tiefstecher",
[8927] = "Dunkelkreischer",
[8933] = "Höhlenkrabbler",
[8956] = "Wutklauenbär",
[8958] = "Wutklauenraufer",
[8959] = "Teufelspfotenwolf",
[8960] = "Teufelspfotenaasfresser",
[8961] = "Teufelspfotenverheerer",
[9416] = "Worg der Schmetterschilde",
[9622] = "U'cha",
[9683] = "Lar'korwis Weibchen",
[9684] = "Lar'korwi",
[9690] = "Glutworg",
[9691] = "Giftstichskorpid",
[9694] = "Sabbernder Glutworg",
[9695] = "Todespeitschenskorpid",
[9696] = "Worg der Blutäxte",
[9697] = "Riesiger Glutworg",
[9698] = "Feuerschwanzskorpid",
[10077] = "Totenreißer",
[10200] = "Rak'shiri",
[10221] = "Worgwelpe der Blutäxte",
[10356] = "Bayne",
[10357] = "Ressan der Aufstachler",
[10359] = "Sri'skulk",
[10375] = "Spitzenspinnling",
[10644] = "Nebelheuler",
[10737] = "Shy-Rotam",
[10741] = "Sian-Rotam",
[10806] = "Ursius",
[10882] = "Arikara",
[10981] = "Frostwolf",
[11357] = "Sohn von Hakkar",
[11360] = "Zulianisches Junges",
[11361] = "Zulianischer Tiger",
[11365] = "Zulianischer Panther",
[11368] = "Blutsucherfledermaus",
[11370] = "Razzashibrutwitwe",
[11371] = "Razzashischlange",
[11372] = "Razzashiotter",
[11735] = "Steinpanzerskorpid",
[11736] = "Steinpanzerzange",
[11737] = "Steinpanzerschinder",
[11738] = "Sandhuscher",
[11739] = "Felspirscher",
[11921] = "Besseleth",
[12037] = "Ursol'lok",
[12431] = "Blutmaul",
[12432] = "Zwingenkiefer",
[12433] = "Krethis Schattennetz",
[13599] = "Phlegmatischer Schnappkiefer",
[14123] = "Stahlkieferschnapper",
[14222] = "Araga",
[14223] = "Benj der Missmutige",
[14228] = "Kicherer",
[14232] = "Pfeil",
[14233] = "Reißerschuppe",
[14234] = "Hayoc",
[14266] = "Shanda die Weberin",
[14268] = "Lord Condar",
[14279] = "Kriechfänger",
[14280] = "Der Große Samras",
[14283] = "Eule der Sturmlanzen",
[14339] = "Todesheuler",
[14343] = "Olm der Weise",
[14344] = "Mongress",
[14472] = "Gretheer",
[14476] = "Krellack",
[14491] = "Kurmokk",
[14532] = "Razzashigiftbrut",
[14821] = "Razzashiraptor",
[14965] = "Rasende Blutsucherfledermaus",
[15041] = "Brut von Mar'li",
[15043] = "Zulianischer Krokilisk",
[15101] = "Zulianischer Streuner",
[16117] = "Verseuchtes Schwein",
[36507] = "Fleck",
[36514] = "Frostsäblerjunges",
[37007] = "Black Widow Hatchling",
[40000] = "Roter Fuchs",
[50624] = "Silithidschwärmer",
[50627] = "Silithidschwärmer",
[50630] = "Silithidschwärmer",
[60494] = "Kummerklaue",
[60697] = "Beruhigungshund",
[60848] = "Eber der Borstennacken",
[61074] = "Gorilla der Hochtalfeste",
[61075] = "Felsenschalenkrabbler",
[61076] = "Sandschalenkrabbler",
[61077] = "Schimpanse der Hochtalfeste",
[61078] = "Affe der Hochtalfeste",
[61080] = "Älterer Gorilla des Hochtals",
[61082] = "Donnerschreiter der Hochtalfeste",
[61090] = "Bürstenschwanz Kobra",
[61091] = "Bürstenschwanz Natter",
[61095] = "Giftpeitscher Schreier",
[61096] = "Giftpeitscher Schlange",
[61098] = "König Morogo Donnerfuß",
[61206] = "Spinnenkrabbler Kriecher",
[61218] = "Deviat Windschlangenschlüpfling",
[61227] = "Dämmerpelz Schleicher",
[61228] = "Dämmerpelz Pirscher",
[61229] = "Ausgehungerter Dämmerpelz",
[61230] = "Pestschwingen Fledermausjunges",
[61231] = "Pestschwingen Fledermaus",
[61232] = "Düsternetz Spinne",
[61233] = "Düsternetz Giftspucker",
[61336] = "Großhorn Eule",
[61337] = "Großhorn Jäger",
[61401] = "Große Schreckensschwinge",
[61488] = "Azurenschnabel",
[61500] = "Silberrücken von Hochtal",
[61552] = "Abendkrabbler",
[61554] = "Morgengeheul",
[61599] = "Dunkelsäbel",
[61656] = "Aschenfeder Bussard",
[61657] = "Aschenfeder Stürmer",
[61658] = "Hyäne der Aschenpfoten",
[61659] = "Jäger der Aschenpfoten",
[61660] = "Steinschwanz Skorpid",
[61661] = "Steinschwanz Peitscher",
[61662] = "Schwarzgift Skorpid",
[61680] = "Schlammriff Kriecher",
[61681] = "Junger Schlammriff Kriecher",
[61686] = "Aschenfeder Plünderer",
[61689] = "Junger Thalassischer Eber",
[61690] = "Junger Karmesinroter Luchs",
[61691] = "Wald Falkenschreiter",
[61692] = "Thalassischer Eber",
[61693] = "Karmesinroter Luchs",
[61695] = "Elfenbein Falkenschreiter",
[61696] = "Älterer Thalassischer Eber",
[61697] = "Leuchtluchs",
[61698] = "Leuchtluchs Matriarchin",
[61699] = "Shar'lan",
[61700] = "Älterer Karmesinroter Luchs",
[61704] = "Kriecher der Weltenwanderer",
[61716] = "Karmesinroter Falkenschreiter",
[61717] = "Thalassischer Fuchs",
[61774] = "Brillanter Manawyrm",
[61775] = "Smaragd Manawyrm",
[61776] = "Lavendel Manawyrm",
[61789] = "Mondfeder",
[61975] = "Hochhauer Eber",
[62066] = "Höhlenweber Brutmutter",
[62073] = "Höhlenweber Spinne",
[62074] = "Höhlenweber Kriecher",
[62075] = "Höhlenweber Giftspucker",
[62121] = "Goldborsten Eber",
[62122] = "Stämmiger Goldborsten Eber",
[62123] = "Goldpelz Bär",
[62124] = "Goldpelz Grizzly",
[62125] = "Älterer Timberwolf",
[62126] = "Timberwolf Alpha",
[62223] = "Grimmschuppenraptor",
[62224] = "Grimmschuppenkreischer",
[62225] = "Grimmschuppenprügler",
[62226] = "Steinhautkeiler",
[62227] = "Alter Steinhauteber",
[62247] = "Braune Einsiedlerspinne",
[62248] = "Große Braune Einsiedlerspinne",
[62256] = "Klarwasser Schnappkiefer",
[62257] = "Kranker Klarwasser Schnappkiefer",
[62258] = "Scharfzahn Krokilisk",
[62259] = "Riesiger Scharfzahn Krokilisk",
[62260] = "Waldeber",
[62261] = "Alter Waldeber",
[62262] = "Hochebenen Eber",
[62271] = "Junger Goldborsten Eber",
[62272] = "Junger Waldwolf",
[62338] = "Sturmflügel Bussard",
[62339] = "Sturmflügel Aasgeier",
[62340] = "Zerzauster Felsspitzenkoyote",
[62341] = "Sabbernder Felsspitzenkoyote",
[62342] = "Nebelrinden Spinne",
[62343] = "Nebelrinden Netzwirkerin",
[62344] = "Mutter Nebelrinde",
[62345] = "Trauermoor Krokilisk",
[62642] = "Klingenschuppe",
[80250] = "Karmesinroter Luchs",
[80252] = "Junger Arktisfuchs",
[80254] = "Junger Brauner Fuchs",
[80256] = "Silberfuchs",
[80257] = "Roter Fuchs",
[80258] = "Junger Nebelwolf",
[80259] = "Nebelwolf",
[80260] = "Geisterfuchs",
[80466] = "Tirisfal Pestbär",
[80815] = "Amaniadler",
[80816] = "Hinterlandadler",
[80920] = "Amani Adler",
[90980] = "Zulianischer Panther",
[90981] = "Zulianischer Panther",
[91819] = "Hazzuri Tiger",
[91825] = "Junger Bengal Tiger",
[91826] = "Bengal Matriarchin",
[91827] = "Bengal Tiger",
[91828] = "Bengal Alpha",
[91829] = "Dschungelrücken Stampfer",
[91830] = "Dschungelrücken Schläger",
[91831] = "Leuchtkrabbler",
[91832] = "Inselkneifer",
[91833] = "Felskrabbler",
[91838] = "Tiefenschalen Schnapper",
[91960] = "Dschungelpranken Tiger",
[91961] = "Dschungelpranken Schattentiger",
[91962] = "Salzschnapp Krokilisk",
[91966] = "Giftige Dschungelschlange",
[91984] = "Tirisklaue Bär",
[91985] = "Tirisklaue Junges",
[91987] = "Felshauer Eber",
[91989] = "Graupfoten Wolf",
[91990] = "Graupfoten Alpha",
[92115] = "Rasende Scharfklaue",
[92146] = "Strandkrabbler",
[92147] = "Silberküstenkrabbler",
}
+9
View File
@@ -0,0 +1,9 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
-- Intentionally left empty by default.
-- enUS beast names are lazy-bootstrapped from MTH_DS_Beasts at runtime,
-- and this table can still be used for manual ID overrides when needed.
MTH_LocaleData.data.beasts.enUS = {
}
+713
View File
@@ -0,0 +1,713 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
MTH_LocaleData.data.beasts.esES = {
[30] = "Araña del Bosque",
[43] = "Araña Minera",
[69] = "Lobo Maderero",
[113] = "Jabalí Colmipétreo",
[118] = "Merodeador",
[119] = "Morrolargo",
[154] = "Desgarrador Mayor",
[157] = "Dentosangre",
[199] = "Desgarrador Joven",
[213] = "Lobo Feroz Hambriento",
[217] = "Telarácnida Venenosa",
[299] = "Lobo Joven",
[330] = "Princesa",
[345] = "Panzallena",
[390] = "Séquito Porcino",
[428] = "Cóndor Temible",
[442] = "Tarantula",
[454] = "Dentosangre Joven",
[462] = "Vultros",
[471] = "Madre Colmillo",
[505] = "Tarántula Superior",
[521] = "Lupos",
[524] = "Jabalí Pielroca",
[525] = "Lobo Sarnoso",
[539] = "Telarácnida Pigmeovenenosa",
[547] = "Gran Dentosangre",
[565] = "Lobo Temible Rabioso",
[569] = "Ermitaña Verde",
[574] = "Naraxis",
[616] = "Parloteador",
[628] = "Devastador Negro",
[681] = "Tigre Joven de Tuercespina",
[682] = "Tigre de Tuercespina",
[683] = "Pantera Joven",
[684] = "Pantera Faucesombría",
[685] = "Raptor de Tuercespina",
[686] = "Raptor Colazote",
[687] = "Acechador de la Selva",
[704] = "Lobo Gris Pulgoso",
[705] = "Lobo Joven Harapiento",
[708] = "Jabalí del Peñasco Pequeño",
[728] = "Bhag'thera",
[729] = "Sin'Dall",
[730] = "Tethis",
[731] = "Rey Bangalash",
[736] = "Pantera",
[767] = "Jaguar del Pantano",
[768] = "Pantera de las Sombras",
[769] = "Tarántula Golpe Mortal",
[772] = "Tigresa de Tuercespina",
[822] = "Oso del Bosque Joven",
[830] = "Reptador de Arena",
[831] = "Reptador Marino",
[833] = "Coyote Líder",
[834] = "Coyote",
[854] = "Acechador de la Jungla Joven",
[855] = "Raptor de la Vega de Tuercespina Joven",
[856] = "Raptor Cola de Látigo Joven",
[858] = "Tejedor de la Penumbra",
[922] = "Reptador de Cieno",
[923] = "Devastador Negro Joven",
[930] = "Prole de Viuda Negra",
[949] = "Recluso Carroñero",
[976] = "Médico Brujo Kurzen",
[977] = "Tigre de Guerra Kurzen",
[1015] = "Raptor de las Tierras Altas",
[1016] = "Colazote de las Tierras Altas",
[1017] = "Garfiohoz de las Tierras Altas",
[1018] = "Fauzafilo de las Tierras Altas",
[1019] = "Fauces Navaja Ancianas",
[1020] = "Raptor Moteado",
[1021] = "Chillón Moteado",
[1022] = "Garfiohoz Moteado",
[1023] = "Fauzafilada Moteado",
[1082] = "Crocolisco Dientesierra",
[1084] = "Crocolisco Dientes de Sierra Joven",
[1087] = "Triturador Dientesierra",
[1088] = "Reptador Monstruoso",
[1108] = "Gorila del Valle de la Niebla",
[1109] = "Desgarrador",
[1111] = "Acechador de Sanguijuelas",
[1112] = "Viuda Sanguijuela",
[1114] = "Tronador de la Jungla",
[1125] = "Jabalí del Risco",
[1126] = "Jabalí de Peñasco Grande",
[1127] = "Jabalí del Risco Anciano",
[1128] = "Oso Negro Joven",
[1129] = "Oso Negro",
[1130] = "Bjarn",
[1131] = "Lobo Invernal",
[1132] = "Maderero",
[1133] = "Lobo Invernal Hambriento",
[1138] = "Lobo Rastreador de Nieve",
[1140] = "Matriarca Tajobuche",
[1150] = "Crocolisco de Río",
[1152] = "Cocodrilo Quijada",
[1184] = "Acechador del Risco",
[1185] = "Acechador de Madera",
[1186] = "Oso Negro Anciano",
[1188] = "Oso Negro Canoso",
[1189] = "Patriarca Oso Negro",
[1190] = "Jabalí de Montaña",
[1191] = "Jabalí de Montaña Harapiento",
[1192] = "Jabalí Montés Mayor",
[1194] = "Buitre de Montaña",
[1195] = "Acechador del Bosque",
[1196] = "Oso Garra de Hielo",
[1199] = "Leopardo de las Nieves Joven",
[1201] = "Leopardo de Nieve",
[1216] = "Reptador de la Costa",
[1225] = "Viejo Sooty",
[1258] = "Masadura Nicroyermo",
[1400] = "Crocolisco de Humedales",
[1417] = "Crocolisco Joven de los Humedales",
[1504] = "Nocturácnida Joven",
[1505] = "Araña Nocturácnida",
[1508] = "Carroñero Joven",
[1509] = "Carroñero Andrajoso",
[1511] = "Gorila Lomoplata Iracundo",
[1512] = "Murciumbrío",
[1513] = "Murciumbrío Sarnoso",
[1516] = "Konda",
[1547] = "Can Oscuro Decrépito",
[1548] = "Can Oscuro Maldito",
[1549] = "Can Oscuro Voraz",
[1553] = "Murciumbrío Superior",
[1554] = "Murciumbrío Vampírico",
[1555] = "Nocturácnida Sañosa",
[1557] = "Gorila Del Valle Velo de Bruma Viejo",
[1558] = "Patriarca Lomoplata",
[1688] = "Matriarca Nocturácnida",
[1689] = "Jabalí Del Risco Cicatríceo",
[1693] = "Crocolisco del Lago",
[1713] = "Pantera Faucesombría Vieja",
[1765] = "Huargo",
[1766] = "Huargo Jaspeado",
[1778] = "Oso Grisáceo Feroz",
[1780] = "Acechamusgo",
[1781] = "Trepanieblas",
[1797] = "Oso Grisáceo Gigante",
[1809] = "Buitre Carroñero",
[1815] = "Oso Negro Malsano",
[1816] = "Pardo Malsano",
[1817] = "Lobo Malsano",
[1822] = "Rondador NeboVenenoso",
[1824] = "Rondador de Peste",
[1922] = "Lobo Grisáceo Del Bosque",
[1923] = "Huargo Sangrocico",
[1961] = "Sarnagarra",
[1984] = "Joven Jabalí Cardo",
[1985] = "Jabalí Cardo",
[1986] = "Araña Tejemadera",
[1994] = "Githyiss la Vil",
[1995] = "Lechuza Estrígida",
[1996] = "Estridador Estrígido",
[1997] = "Cazador Estrígido",
[1998] = "Rondador Tejemadera",
[1999] = "Venolmillo Tejemadera",
[2000] = "Virasedal Tejemadera",
[2001] = "Araña Tejemadera Gigante",
[2031] = "Sable de la Noche Joven",
[2032] = "Sable de la Noche Sarnoso",
[2033] = "Sable de la Noche Mayor",
[2034] = "Sable de la Noche Salvaje",
[2042] = "Sable de la Noche",
[2043] = "Acechador Sable de la Noche",
[2069] = "Acechalunas",
[2070] = "Cachorro Acechalunas",
[2071] = "Matriarca Acechalunas",
[2089] = "Crocolisco Gigante de Los Humedales",
[2163] = "Oso Cardo",
[2165] = "Oso Cardo Grisáceo",
[2172] = "Zancador Pedalar",
[2175] = "Garrasombría",
[2231] = "Corremareas Marepígmeo",
[2232] = "Corremareas",
[2233] = "Corremareas Escamado",
[2234] = "Joven Reptador Correarrecifes",
[2235] = "Correarrecifes",
[2236] = "Reptador Correarrecifes Enfurecido",
[2237] = "Señor Acechalunas",
[2275] = "Stanley Enfurecido",
[2321] = "Fugalante Zancudo Del Bosque",
[2322] = "Zancudo Del Bosque",
[2323] = "Zancudo Del Bosque Gigante",
[2348] = "Trepamusgo Mayor",
[2349] = "Trepamusgo Gigante",
[2350] = "Trepamusgo Del Bosque",
[2351] = "Oso Gris",
[2354] = "Oso Gris Sañoso",
[2356] = "Oso Gris Viejo",
[2384] = "León de Montaña Famélico",
[2385] = "León de Montaña Feral",
[2406] = "León de Montaña",
[2407] = "León de Montaña Descomunal",
[2408] = "Quijaforte",
[2476] = "Gran Crocolisco del Lago",
[2505] = "Quijaforte Marino",
[2521] = "Gorila Cieloleno",
[2522] = "Acechador Jaguero",
[2544] = "Reptador de Las Arenas Del Sur",
[2559] = "Zancudo de las Tierras Altas",
[2560] = "Vándalo de las Tierras Altas",
[2561] = "Acechacarne de las Tierras Altas",
[2563] = "Trepador de Las Llanuras",
[2565] = "Trepador de Las Llanuras Gigante",
[2578] = "Águila Ratonera de Mesa Joven",
[2579] = "Águila Ratonera Mesa",
[2580] = "Águila Ratonera de Mesa Mayor",
[2635] = "Crocolisco Marino Mayor",
[2680] = "Lobato Vilrama",
[2681] = "Lobo de Montar Vilrama",
[2686] = "Guardia Del Linaje Secacorteza",
[2727] = "Coyote del Risco",
[2728] = "Coyote de Risco Feral",
[2729] = "Coyote del Risco Mayor",
[2730] = "Coyote del Risco Rabioso",
[2731] = "Acechador de la Cresta",
[2732] = "Cazadora de la Cresta",
[2734] = "Patriarca Acechador de la Cresta",
[2753] = "Barnabus",
[2829] = "Águila Ratonera Hambrienta",
[2830] = "Águila Ratonera",
[2831] = "Águila Ratonera Gigante",
[2850] = "Diente Partido",
[2923] = "Melenargenta Sarnoso",
[2924] = "Lobo Melenargenta",
[2925] = "Aullador Melenargenta",
[2926] = "Acechador Melenargenta",
[2931] = "Zaricotl",
[2954] = "Jabaguerrero Lomopelo",
[2955] = "Zancudo de Llanura",
[2956] = "Zancudo de Llanura Adulto",
[2957] = "Zancudo de Llanura Viejo",
[2958] = "Lobo de Pradera",
[2959] = "Acechador de Pradera",
[2960] = "Lobo Alfa de Pradera",
[2961] = "Puma Montés",
[2966] = "Jabaguerrero",
[2969] = "Aguilón Nervudo",
[2970] = "Aguilón",
[2971] = "Aguilón Garrudo",
[3035] = "Puma de las Estepas",
[3068] = "Mazzranache",
[3098] = "Jabalí Jaspeado",
[3099] = "Jabalí Jaspeado Temible",
[3100] = "Jabalí Jaspeado Mayor",
[3106] = "Reptador de la Superficie Pigmeo",
[3107] = "Reptador de Espuma",
[3108] = "Reptador de Espuma Escamado",
[3110] = "Crocolisco Fauzatroz",
[3121] = "Tigre de Durotar",
[3122] = "Colazote Garrasangre",
[3123] = "Rojomorro Garrasangre",
[3124] = "Trabajador Escórpido",
[3125] = "Escórpido Castañeante",
[3126] = "Escórpido Acorazado",
[3127] = "Escórpido Venocola",
[3225] = "Jabalí Jaspeado Corrupto",
[3226] = "Escórpido Corrupto",
[3227] = "Rojomorro Garrasangre Corrupto",
[3228] = "Reptador de Oleaje Corrupto",
[3231] = "Crocolisco Fauzatroz Corrupto",
[3241] = "Patriarca de Sabana",
[3243] = "Crinalta de la Sabana",
[3244] = "Zancudo de Llanura Superior",
[3245] = "Zancudo de Llanura Arisco",
[3246] = "Zancudo Veloz de Llanura",
[3247] = "Prole de Halcón Trueno",
[3249] = "Halcón Trueno Superior",
[3250] = "Trepador Silítido",
[3252] = "Enjambre Silítido",
[3254] = "Colazote Solescama",
[3255] = "Estridador Solescama",
[3256] = "Segador Solescama",
[3257] = "Ishamuhale",
[3281] = "Sarkoth",
[3415] = "Cazadora de Sabana",
[3416] = "Matriarca de Sabana",
[3424] = "Halcón Trueno Desechanube",
[3425] = "Merodeador de Sabana",
[3461] = "Quijaforte del Oasis",
[3472] = "Washte Pawne",
[3475] = "Echeyakee",
[3503] = "Protector Silítido",
[3566] = "Merodeador de Llanuras",
[3581] = "Bestia de Alcantarilla",
[3619] = "Sable Fantasma",
[3630] = "Volutador Descarriado",
[3631] = "Aguijolatigador Descarriado",
[3632] = "Trepador Descarriado",
[3633] = "Destripador Descarriado",
[3634] = "Acechador Descarriado",
[3636] = "Devastador Descarriado",
[3637] = "Guardián Descarriado",
[3653] = "Kresh",
[3809] = "Oso de Vallefresno",
[3810] = "Oso Viejo de Vallefresno",
[3811] = "Oso Gigante de Vallefresno",
[3812] = "Reptador Castañeante",
[3814] = "Reptador Espinado",
[3819] = "Acechador Espinaferal",
[3820] = "EscupeVeneno Espinaferal",
[3821] = "Rondador Espinaferal",
[3823] = "Corredor Garraespectro",
[3824] = "Aullador Garraespectro",
[3825] = "Alfa Garraespectro",
[3861] = "Huargo Lóbrego",
[3862] = "Huargo Babeante",
[3866] = "Murciovil",
[3868] = "Rastreasangre",
[4005] = "Trepador Musgondo",
[4006] = "Tejerred Musgondo",
[4007] = "EscupeVeneno Musgondo",
[4040] = "Acechador de Cuevas",
[4067] = "Corredor Crepuscular",
[4117] = "Serpiente Nubosa",
[4118] = "Serpiente Nubosa Venenosa",
[4119] = "Serpiente Nubosa Anciana",
[4124] = "Puma de las Agujas",
[4126] = "Acechador del Risco",
[4127] = "Hiena Dentecenado",
[4128] = "Acechador Dentecenado",
[4129] = "Gruñidor Dentecenado",
[4139] = "Terror Escórpido",
[4140] = "Atracador Escórpido",
[4142] = "Tortuga Caparallante",
[4143] = "Sacudidor Caparallante",
[4144] = "Cavapozos Caparallante",
[4154] = "Carroñero del Desierto de Sal",
[4158] = "Buitre del Desierto de Sal",
[4248] = "Hiena Pestillejo",
[4249] = "Gruñidor Pestillejo",
[4250] = "Can de Manada Galak",
[4263] = "Prole de Musgondo",
[4264] = "Matriarca Musgondo",
[4304] = "Sabueso Escarlata",
[4316] = "Can de Manada Kolkar",
[4341] = "Crocolisco Secorrón",
[4342] = "Mentovilo Secorrón",
[4343] = "Sacudidor Secorrón",
[4344] = "Crocolisco Secorrón Jaspeado",
[4345] = "Faucedaga Secorrón",
[4351] = "Raptor Cienorrojo",
[4352] = "Estridador Cienorrojo",
[4355] = "Segador Cienorrojo",
[4356] = "Tajobuche Cienorrojo",
[4357] = "Colazote Cienorrojo",
[4376] = "Araña Niebla Negra",
[4377] = "Rondadora Niebla Negra",
[4378] = "Ermitaña Niebla Negra",
[4379] = "Virasedal Niebla Negra",
[4380] = "Viuda Niebla Negra",
[4396] = "Tortuga Fangorroca",
[4397] = "Caparapico Fangorroca",
[4398] = "Hurgador Fangorroca",
[4399] = "Cavapozos Fangorroca",
[4400] = "Quijaforte Fangorroca",
[4411] = "Rondador Colmilloumbrío",
[4412] = "Trepador Colmilloumbrío",
[4413] = "Araña Colmilloumbrío",
[4414] = "EscupeVeneno Colmilloumbrío",
[4415] = "Araña Colmilloumbrío Gigante",
[4425] = "Cazador ciego",
[4511] = "Agam'ar",
[4512] = "Agam'ar Putrefacto",
[4514] = "Agam'ar Enfurecido",
[4538] = "Murciélago del Horado",
[4539] = "Murciélago del Horado Superior",
[4548] = "Metaleador",
[4660] = "Zarpósea Maraudine",
[4662] = "Zarpósea Maggram",
[4688] = "Hiena Zarpósea",
[4689] = "Zarpósea Famélica",
[4690] = "Zarpósea Rabiosa",
[4692] = "Aguilón Aterrador",
[4693] = "Volater Aterrador",
[4694] = "Desgarrador Aterrador",
[4695] = "Horror Carroñero",
[4696] = "Sacudidor Scorpashi",
[4697] = "Azotador Scorpashi",
[4699] = "LatiVenenoso Scorpashi",
[4821] = "Crustarácnido",
[4822] = "Crustáceo Mordedor",
[4823] = "Crustáceo Espinoso",
[4824] = "Pescador Aku'mai",
[4825] = "Quijaforte Aku'mai",
[4841] = "Lodomuerto",
[4861] = "Alcaudociélago",
[4887] = "Ghamoo-ra",
[4950] = "Mancha",
[5048] = "Víbora Descarriada",
[5053] = "Crocolisco Descarriado",
[5056] = "Colminferno Descarriado",
[5224] = "Deslizador de la Oscuridad",
[5225] = "Escupidor de la Oscuridad",
[5260] = "Simio Groddoc",
[5262] = "Tronador Groddoc",
[5268] = "Oso Cueracero",
[5272] = "Oso Cueracero Grisáceo",
[5274] = "Patriarca Cueracero",
[5286] = "Corredor Dientelargo",
[5287] = "Aullador Dientelargo",
[5288] = "Dientelargo Rabioso",
[5291] = "Alaescarcha Hakkari",
[5307] = "Estridador del Valle",
[5308] = "Estridador del Valle Huido",
[5349] = "Arash-ethis",
[5352] = "Viejo Tripasgrises",
[5356] = "Gruñidor",
[5422] = "Cazador Escórpido",
[5423] = "Colazote Escórpido",
[5424] = "Acechadunas Escórpido",
[5425] = "Llagapata Hambrienta",
[5426] = "Hiena Llagapata",
[5427] = "Llagapata Rabiosa",
[5428] = "Roc",
[5429] = "Roc de Fuego",
[5430] = "Roc Abrasador",
[5431] = "Planoleador",
[5432] = "Planoleador Gigante",
[5708] = "Engendro de Hakkar",
[5755] = "Víbora Descarriada",
[5756] = "Venala Descarriada",
[5762] = "Mocasin Descarriado",
[5766] = "Cachorro de la Sabana",
[5807] = "El Rastrillo",
[5823] = "Despellejador de la Muerte",
[5828] = "Humar el Señor Orgulloso",
[5829] = "Bufo el Molesto",
[5834] = "Azzere el Filo del Cielo",
[5842] = "Takk el Saltarín",
[5856] = "Araña Cristalderma",
[5857] = "Lavaraña Abrasadora",
[5858] = "Lavaraña Superior",
[5865] = "Dishu",
[5937] = "Aguijón Vil",
[5982] = "Destripador Negro",
[5984] = "Hiena Risitas Hambrienta",
[5985] = "Hiena Risitas",
[5988] = "Aguijonero Scorpok",
[5992] = "Jabalí Cenicrín",
[6013] = "Águila Ratonera Guardapaso",
[6352] = "Rondador Corazacoral",
[6369] = "Tortuga Corazacoral",
[6505] = "Ravasaurio",
[6506] = "Corredor Ravasaurio",
[6507] = "Cazador Ravasaurio",
[6508] = "Ravasaurio Pellejo Venenoso",
[6513] = "Vapuleador de Un'Goro",
[6514] = "Gorila de Un'Goro",
[6516] = "Tronador de Un'Goro",
[6581] = "Matriarca Ravasaurio",
[6585] = "Uhk'loc",
[6788] = "Madre del Cubil",
[6789] = "Cachorro Cardo",
[7022] = "Escórpido LatiVenenoso",
[7055] = "Huargo Roca Negra",
[7078] = "Escórpido de la Grieta",
[7097] = "Lechuza Cortezaférrea",
[7098] = "Estridador Cortezaférrea",
[7099] = "Cazador Cortezaférrea",
[7268] = "Guardián Furiarena",
[7319] = "Lady Sathrah",
[7405] = "Escórpido Del Risco Mortal",
[7430] = "Cachorro de Sable de Escarcha",
[7431] = "Sable de Hielo",
[7432] = "Acechador Sable de Hielo",
[7433] = "Cazadora Sable de Hielo",
[7434] = "Vigía Del Orgullo Sable de Hielo",
[7443] = "Aplastador Dentoesquirla",
[7444] = "Oso Dentoesquirla",
[7445] = "Ancestro Dentoesquirla",
[7446] = "Dentoesquirla Rabioso",
[7455] = "Lechuza de Cuna Del Invierno",
[7456] = "Estridador de Cuna Del Invierno",
[7803] = "Perforadunas Escórpido",
[8207] = "Pájaro de Fuego Mayor",
[8208] = "Llagapata Mortífera",
[8211] = "Viejo Saltariscos",
[8213] = "Espaldacerada",
[8277] = "Rekk'tilac",
[8299] = "Escupetripas",
[8300] = "Devastatia",
[8301] = "Clack el Atracador",
[8303] = "Gruñón",
[8336] = "Zapador Hakkari",
[8600] = "Murcipeste",
[8601] = "Murcipeste Nocivo",
[8602] = "Murcipeste Monstruoso",
[8762] = "Ermitaña Telamadera",
[8926] = "Aguijonero Profundo",
[8927] = "Estridador Sombrío",
[8933] = "Trepador de Cuevas",
[8956] = "Oso Zarpira",
[8958] = "Aplastador Zarpira",
[8959] = "Lobo Zarpayel",
[8960] = "Carroñero Zarpayel",
[8961] = "Devastador Zarpayel",
[9416] = "Huargo del Escudo del Estigma",
[9622] = "U'cha",
[9683] = "Compañera de Lar'Korwi",
[9684] = "Lar'korwi",
[9690] = "Huargo Brasal",
[9691] = "Escórpido Venopunta",
[9694] = "Huargo Brasal Esclavizante",
[9695] = "Escórpido Latimorte",
[9696] = "Huargo Hacha de Sangre",
[9697] = "Huargo Brasal Gigante",
[9698] = "Escórpido Colafuego",
[10077] = "Morifauces",
[10200] = "Rak'shiri",
[10221] = "Mascolupo Hacha de Sangre",
[10356] = "Bayne",
[10357] = "Ressan el Enfilador",
[10359] = "Sri'skulk",
[10375] = "Arañita de la Cumbre",
[10644] = "Aullanieblas",
[10737] = "Vergonzoso-Rotam",
[10741] = "Sian-Rotam",
[10806] = "Ursius",
[10882] = "Arikara",
[10981] = "Lobo Gélido",
[11357] = "Hijo de Hakkar",
[11360] = "Cachorro Zulian",
[11361] = "Tigre Zulian",
[11365] = "Tigre Zuliano",
[11368] = "Murciélago Buscasangre",
[11370] = "Proleviuda Razzashi",
[11371] = "Serpiente Razzashi",
[11372] = "Víbora Razzashi",
[11735] = "Escórpido Latipiedra",
[11736] = "Tenazario Latipiedra",
[11737] = "Despellejador Latipiedra",
[11738] = "Arácnido de Arena",
[11739] = "Acecharrocas",
[11921] = "Besseleth",
[12037] = "Ursol'lok",
[12431] = "Mandisangre",
[12432] = "Viejo Malafauce",
[12433] = "Krethis Sombravolta",
[13599] = "Quijaforte Imperturbable",
[14123] = "Sacudidor Quijacero",
[14222] = "Araga",
[14223] = "Cascarrabias Ben",
[14228] = "Giggler",
[14232] = "Dardo",
[14233] = "Rasgascama",
[14234] = "Hayoc",
[14266] = "Shanda la Giratoria",
[14268] = "Lord Condar",
[14279] = "Trepazoso",
[14280] = "Gran Samras",
[14283] = "Lechuza Pico Tormenta",
[14339] = "Aullador de la Muerte",
[14343] = "Olm el Sabio",
[14344] = "Mongress",
[14472] = "Gretheer",
[14476] = "Krellack",
[14491] = "Kurmokk",
[14532] = "Venenoso Razzashi",
[14821] = "Raptor Razzashi",
[14965] = "Murciélago Procurasangre Demenciado",
[15041] = "Alevín de Mar'li",
[15043] = "Crocolisco Zulian",
[15101] = "Merodeador Zulian",
[16117] = "Cerdo Infestado",
[36507] = "Mancha",
[36514] = "Cachorro de Sable de Escarcha",
[37007] = "Prole de Viuda Negra",
[40000] = "Zorro Rojo",
[50624] = "Enjambre Silítido",
[50627] = "Enjambre Silítido",
[50630] = "Enjambre Silítido",
[60494] = "Zarpa de Pesar",
[60697] = "Can de la Calma",
[60848] = "Jabalí Lomopelo",
[61074] = "Gorila de Valalto",
[61075] = "Reptador Caparazón de Roca",
[61076] = "Reptador Caparazón de Arena",
[61077] = "Chimpancé de Valalto",
[61078] = "Mono de Valalto",
[61080] = "Anciano Gorila de Valalto",
[61082] = "Tronador de Valalto",
[61090] = "Cobra Colamatorral",
[61091] = "Serpiente Colamatorral",
[61095] = "Chillador Venodesuellador",
[61096] = "Serpiente Venodesuellador",
[61098] = "Rey Morogo Pies de Trueno",
[61206] = "Reptador de Telaraña Escurridiza",
[61218] = "Cría de Serpiente Descarriado",
[61227] = "Acechador Fauceumbría",
[61228] = "Acechador Fauceumbría",
[61229] = "Piel Oscura Hambriento",
[61230] = "Cría de Murciélago Ala Vil",
[61231] = "Murciélago Ala Vil",
[61232] = "Araña de Red Hueca",
[61233] = "Escupidor de Veneno de Red Hueca",
[61336] = "Búho Grancuerno",
[61337] = "Cazador Grancuerno",
[61401] = "Murciélago Alavil Superior",
[61488] = "Picoazul",
[61500] = "Espalda Plateada de Valalto",
[61552] = "Correanoche",
[61554] = "Aullaalba",
[61599] = "Sable Oscuro",
[61656] = "Buitre Pluma de Ceniza",
[61657] = "Planeador Pluma de Ceniza",
[61658] = "Hiena Pataceniza",
[61659] = "Cazador Pataceniza",
[61660] = "Escórpido Colapétrea",
[61661] = "Azotador Colapétrea",
[61662] = "Escórpido Veneno Negro",
[61680] = "Reptador de Arrecife de Fango",
[61681] = "Reptador Arrecife de Lodo Joven",
[61686] = "Viajero Pluma de Ceniza",
[61689] = "Jabalí Thalassiano Jóven",
[61690] = "Lince Carmesí Jóven",
[61691] = "Jinete de Águila del Bosque",
[61692] = "Jabalí Thalassiano",
[61693] = "Lince Carmesí",
[61695] = "Halcón Thalassiano Marfil",
[61696] = "Jabalí Thalassiano Anciano",
[61697] = "Lynx Brillante",
[61698] = "Lynx Brillante Matriarca",
[61699] = "Shar'lan",
[61700] = "Lynx Carmesí Viejo",
[61704] = "Reptador Errante",
[61716] = "Corcel alado Carmesí",
[61717] = "Zorro Thalassiano",
[61774] = "Maldición de Maná Brillante",
[61775] = "Cachorro de Maná Esmeralda",
[61776] = "Serpiente de Maná Lavanda",
[61789] = "Pluma Lunar",
[61975] = "Jabalí Colmilloalto",
[62066] = "Madre Criadora Tejecaverna",
[62073] = "Araña Tejecaverna",
[62074] = "Escalador Tejecaverna",
[62075] = "Escupidor de Veneno Tejecaverna",
[62121] = "Jabalí Espinofirme ",
[62122] = "Jabalí Espinofirme Grande",
[62123] = "Oso Pelodoro",
[62124] = "Oso Pardo Pelodoro",
[62125] = "Lobo del Bosque Anciano",
[62126] = "Alfa del Bosque Anciano",
[62223] = "Raptor Escama Sombría",
[62224] = "Chillón Escama Sombría",
[62225] = "Azotador Escama Sombría",
[62226] = "Jabalí Piel de Piedra",
[62227] = "Jabalí de Piel de Piedra Anciano",
[62247] = "Reclusa Marrón",
[62248] = "Reclusa Marrón Superior",
[62256] = "Quijaforte de Agua Dulce",
[62257] = "Quijada de Agua Clara Enfermizo",
[62258] = "Crocolisco Dientefilo",
[62259] = "Cocodrilo Denteserra Gigante",
[62260] = "Jabalí del Bosque",
[62261] = "Jabalí del Bosque Viejo",
[62262] = "Jabalí de la Mesa",
[62271] = "Jabalí Dientebrillo Joven",
[62272] = "Lobo Maderero Joven",
[62338] = "Buitre Ala Tormenta",
[62339] = "Buitre Ala Tormenta",
[62340] = "Coyote Rocoso Andrajoso",
[62341] = "Coyote Rocoso Babeante",
[62342] = "Araña Cortezaniebla",
[62343] = "Tejedora Cortezaniebla",
[62344] = "Madre Cortezaniebla",
[62345] = "Crocolisco Lamentoso",
[62642] = "Faucefilosa",
[80250] = "Lince Carmesí",
[80252] = "Zorro Ártico Joven",
[80254] = "Zorro Marrón Joven",
[80256] = "Zorro Plateado",
[80257] = "Zorro Rojo",
[80258] = "Zorro de Niebla Joven",
[80259] = "Zorro de la Niebla",
[80260] = "Zorro Espiritual",
[80466] = "Oso Apestado de Tirisfal",
[80815] = "Águila Amani",
[80816] = "Águila de Las Tierras del Interior",
[80920] = "Águila Amani",
[90980] = "Tigre Zuliano",
[90981] = "Tigre Zuliano",
[91819] = "Tigre Hazzuri",
[91825] = "Tigre de Bengala Joven",
[91826] = "Matriarca de Bengala",
[91827] = "Tigre de Bengala",
[91828] = "Alfa de Bengala",
[91829] = "Pisoteador Lomo de Jungla",
[91830] = "Azotador Lomo de Jungla",
[91831] = "Reptador Luminoso",
[91832] = "Pinza de la Isla",
[91833] = "Reptador de Rocas",
[91838] = "Sacudidor Caparazhondo",
[91960] = "Pantera Zarpa de Jungla",
[91961] = "Pantera de las Sombras Zarpa de Jungla",
[91962] = "Crocolisco Rompesal",
[91966] = "Serpiente de la Selva Venenosa",
[91984] = "Oso Tirisgarra",
[91985] = "Cachorro Tirisgarra",
[91987] = "Jabalí Riscolmillo",
[91989] = "Lobo Zarpa Gris",
[91990] = "Alfa Zarpa Gris",
[92115] = "Garrafilada Enfurecida",
[92146] = "Reptador de la Playa",
[92147] = "Reptador de la Costa de Plata",
}
+713
View File
@@ -0,0 +1,713 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
MTH_LocaleData.data.beasts.ptBR = {
[30] = "Aranha da Floresta",
[43] = "Aranha da Mina",
[69] = "Lobo Silvestre",
[113] = "Javali Pedratusco",
[118] = "Predador",
[119] = "Fuçalonga",
[154] = "Ripa-Carne Maior",
[157] = "Goretusk",
[199] = "Ripa-carne Jovem",
[213] = "Lobo Hediondo Faminto",
[217] = "Venaracna",
[299] = "Lobo Jovem",
[330] = "Princesa",
[345] = "Ronquifuça",
[390] = "Séquito Porcino",
[428] = "Condor Hediondo",
[442] = "Tarântula",
[454] = "Gorestusco Jovem",
[462] = "Vultros",
[471] = "Mãe Veneno",
[505] = "Grande Tarântula",
[521] = "Lupos",
[524] = "Javali Couropedra",
[525] = "Lobo Sarnento",
[539] = "Veneracna Pigmeia",
[547] = "Grande Goretusk",
[565] = "Lobo Hediondo Raivoso",
[569] = "Recluso Verde",
[574] = "Naraxis",
[616] = "Palpos",
[628] = "Devastador Negro",
[681] = "Tigre-do-espinhaço Jovem",
[682] = "Tigre da Selva do Espinhaço",
[683] = "Pantera Jovem",
[684] = "Pantera Umbragorja",
[685] = "Raptor da Selva do Espinhaço",
[686] = "Raptor Batecauda",
[687] = "Perseguidor da Selva",
[704] = "Lobo Silvestre Sarnento",
[705] = "Lobo Jovem Roto",
[708] = "Rochetusco Pequeno",
[728] = "Bhag'thera",
[729] = "Sin'dall",
[730] = "Tethis",
[731] = "Rei Bangalash",
[736] = "Pantera",
[767] = "Onça do Pântano",
[768] = "Pantera das Sombras",
[769] = "Tarântula Mataca",
[772] = "Tigresa da Selva do Espinhaço",
[822] = "Ursinho da Floresta",
[830] = "Rastreador de Areia",
[831] = "Rastreador do Mar",
[833] = "Coiote-alfa",
[834] = "Coiote",
[854] = "Espreitador da Selva Jovem",
[855] = "Raptor-do-espinhaço Jovem",
[856] = "Raptor Batecauda Jovem",
[858] = "Girador de Tristeza",
[922] = "Rastrejante do Lodo",
[923] = "Assolador Negro Jovem",
[930] = "Filhote de Viúva Negra",
[949] = "Reclusa Carniceira",
[976] = "Tigre de Guerra Kurzen",
[977] = "Pantera de Guerra Kurzen",
[1015] = "Raptor Montanhês",
[1016] = "Batecauda Montanhês",
[1017] = "Garrafoice Montanhês",
[1018] = "Rasgaqueixo Montanhês",
[1019] = "Rasgaqueixo Ancião",
[1020] = "Raptor Mosqueado",
[1021] = "Guinchador Mosqueado",
[1022] = "Garrafoice Mosqueado",
[1023] = "Rasgaqueixo Mosqueado",
[1082] = "Crocolisco Dentesserra",
[1084] = "Crocolisco Dentesserra Jovem",
[1087] = "Tartalisca Dentesserra",
[1088] = "Rastejante Monstruoso",
[1108] = "Gorila do Vale da Névoa",
[1109] = "Ripa-carne",
[1111] = "Espreitadora Sanguessuga",
[1112] = "Viúva Negra Sanguessuga",
[1114] = "Trovejador da Selva",
[1125] = "Rochetusco",
[1126] = "Rochetusco Grande",
[1127] = "Rochetusco Ancião",
[1128] = "Urso Preto Jovem",
[1129] = "Urso Preto",
[1130] = "Bjarn",
[1131] = "Lobo Invernal",
[1132] = "Lenho",
[1133] = "Lobo Invernal Faminto",
[1138] = "Lobo Rastreador da Neve",
[1140] = "Matriarca Rasgaqueixo",
[1150] = "Crocolisco do Rio",
[1152] = "Crocolisco Arapuca",
[1184] = "Tocaieira do Penhasco",
[1185] = "Tocaieira da Mata",
[1186] = "Urso Preto Ancião",
[1188] = "Urso Pardo Preto",
[1189] = "Urso Preto Patriarca",
[1190] = "Javali Montanhês",
[1191] = "Javali Montanhês Sarnento",
[1192] = "Javali Montanhês Ancião",
[1194] = "Urubu Montanhês",
[1195] = "Tocaieira da Floresta",
[1196] = "Urso Garra de Gelo",
[1199] = "Leopardo da Neve Juvenil",
[1201] = "Leopardo da Neve",
[1216] = "Orlatisco",
[1225] = "Velho Fumaça",
[1258] = "Mastim Assolador Negro",
[1400] = "Crocolisco do Pantanal",
[1417] = "Crocolisco do Pantanal Jovem",
[1504] = "Trevateia Jovem",
[1505] = "Trevateia",
[1508] = "Carniceiro Jovem",
[1509] = "Carniceiro Roto",
[1511] = "Gorila Costalva Enfurecido",
[1512] = "Quiropúsculo",
[1513] = "Quiropúsculo Sarnento",
[1516] = "Konda",
[1547] = "Cão das Trevas Decrépito",
[1548] = "Cão das Trevas Amaldiçoado",
[1549] = "Cão das Trevas Voraz",
[1553] = "Grande Quiropúsculo",
[1554] = "Quiropúsculo Vampírico",
[1555] = "Trevateia Malévola",
[1557] = "Gorila Ancião do Vale da Névoa",
[1558] = "Patriarca Costalva",
[1688] = "Matriarca Trevateia",
[1689] = "Rochetusco Cicatrizado",
[1693] = "Crocolisco Lacustre",
[1713] = "Pantera Umbragorja Anciã",
[1765] = "Worg",
[1766] = "Worg Mosqueado",
[1778] = "Urso Cinzento Feroz",
[1780] = "Espreitadora do Musgo",
[1781] = "Rastejante da Bruma",
[1797] = "Urso Cinzento Gigante",
[1809] = "Abutre Carniceiro",
[1815] = "Urso Preto Doente",
[1816] = "Urso-cinzento Doente",
[1817] = "Lobo Doente",
[1822] = "Tocaieira Rasterruça",
[1824] = "Tocaieira Pestilenta",
[1922] = "Lobo Cinza da Floresta",
[1923] = "Worg Rinossangue",
[1961] = "Ronhagarra",
[1984] = "Javali-espinho Jovem",
[1985] = "Javali-espinho",
[1986] = "Aranha Lenhateia",
[1994] = "Githyiss, a Torpe",
[1995] = "Coruja Estrígida",
[1996] = "Guinchadora Estrígida",
[1997] = "Caçadora Estrígida",
[1998] = "Tocaieira Lenhateia",
[1999] = "Lenhateia Peçonhenta",
[2000] = "Lenhateia Fiandeira",
[2001] = "Aranha Lenhateia Gigante",
[2031] = "Sabre-da-noite Jovem",
[2032] = "Sabre-da-noite Sarnento",
[2033] = "Sabre-da-noite Ancião",
[2034] = "Sabre-da-noite Feral",
[2042] = "Sabre-da-noite",
[2043] = "Espreitador Sabre-da-noite",
[2069] = "Espreitaluna",
[2070] = "Espreitaluna Raquítico",
[2071] = "Matriarca Espreitaluna",
[2089] = "Crocolisco do Pantanal Gigante",
[2163] = "Ursocardo",
[2165] = "Ursocardo Grisalho",
[2172] = "Mamãe Moa da Floresta",
[2175] = "Garrassombra",
[2231] = "Maretisco Pigmeu",
[2232] = "Maretisco",
[2233] = "Maretisco Incrustado",
[2234] = "Tiscoral Jovem",
[2235] = "Tiscoral",
[2236] = "Tiscoral Furioso",
[2237] = "Espreitaluna Macho",
[2275] = "Fido Enraivecido",
[2321] = "Filhote de Florestruz",
[2322] = "Florestruz",
[2323] = "Florestruz Gigante",
[2348] = "Rastejamusgo Anciã",
[2349] = "Rastejante do Musgo Gigante",
[2350] = "Rastejante do Musgo da Floresta",
[2351] = "Urso Cinzento",
[2354] = "Urso-cinzento Feroz",
[2356] = "Urso Cinzento Ancião",
[2384] = "Leão da Montanha Esfomeado",
[2385] = "Leão da Montanha Selvagem",
[2406] = "Leão da Montanha",
[2407] = "Leão da Montanha Imponente",
[2408] = "Mordelisca",
[2476] = "Crocolisco Lacustre Grande",
[2505] = "Mordelisca de Água Salgada",
[2521] = "Gorila Grenhacéu",
[2522] = "Espreitador Jaguara",
[2544] = "Aretisco Austral",
[2559] = "Andarilho do Planalto",
[2560] = "Espancador do Planalto",
[2561] = "Fareja-carne do Planalto",
[2563] = "Rastejante das Planícies",
[2565] = "Rastejante Gigante das Planícies",
[2578] = "Filhote de Urubu da Chapada",
[2579] = "Urubu da Chapada",
[2580] = "Urubu Ancião da Chapada",
[2635] = "Crocolisco de Água Salgada Ancião",
[2680] = "Filhote de Lobo Ramatorpe",
[2681] = "Lobo Saqueador Ramatorpe",
[2686] = "Guarda-prole Cascasseca",
[2727] = "Coiote do Rochedo",
[2728] = "Coiote Feroz do Rochedo",
[2729] = "Coiote Ancião do Rochedo",
[2730] = "Coiote Raivoso do Rochedo",
[2731] = "Espreitador da Serra",
[2732] = "Caçadora da Serra",
[2734] = "Patriarca Espreitador da Serra",
[2753] = "Barnabus",
[2829] = "Urubu Faminto",
[2830] = "Urubu",
[2831] = "Urubu Gigante",
[2850] = "Dente Quebrado",
[2923] = "Jubaprata Sarnento",
[2924] = "Lobo Jubaprata",
[2925] = "Uivador Jubaprata",
[2926] = "Espreitador Jubaprata",
[2931] = "Zaricotl",
[2954] = "Javaliço Costagulha",
[2955] = "Pinote",
[2956] = "Pinote Adulto",
[2957] = "Pinote Ancião",
[2958] = "Lobo-da-pradaria",
[2959] = "Espreitador-da-pradaria",
[2960] = "Lobo-da-pradaria Alfa",
[2961] = "Puma da Montanha",
[2966] = "Javaliço",
[2969] = "Rapineiro Esguio",
[2970] = "Rapineiro",
[2971] = "Rapineiro de Gadanho",
[3035] = "Puma das Estepes",
[3068] = "Mazzranache",
[3098] = "Mosquetusco",
[3099] = "Mosquetusco Hediondo",
[3100] = "Mosquetusco Ancião",
[3106] = "Surfatisco Pigmeu",
[3107] = "Surfatisco",
[3108] = "Surfatisco Incrustado",
[3110] = "Crocolisco Bocarrão",
[3121] = "Tigre de Durotar",
[3122] = "Açoitacauda Garrassangre",
[3123] = "Bocalfanje Garrassangre",
[3124] = "Escorpídeo Operário",
[3125] = "Escorpídeo Estalador",
[3126] = "Escorpídeo Encouraçado",
[3127] = "Escorpídeo Caudaçonha",
[3225] = "Mosquetusco Corrompido",
[3226] = "Escorpídeo Corrompido",
[3227] = "Bocalfanje Garrassangre Corrompido",
[3228] = "Surfatisco Corrompido",
[3231] = "Crocolisco Bocarrão Corrompido",
[3241] = "Patriarca da Savana",
[3243] = "Jubalta da Savana",
[3244] = "Pinote Grande",
[3245] = "Pinote Turrão",
[3246] = "Pinote Fugaz",
[3247] = "Filhote de Falcotrom",
[3249] = "Grande Falcotrom",
[3250] = "Rastejante Silitídeo",
[3252] = "Enxameador Silitídeo",
[3254] = "Batecauda Helióscamo",
[3255] = "Uivador Helióscamo",
[3256] = "Garrafoice Helióscamo",
[3257] = "Ishamuhale",
[3281] = "Sarkoth",
[3415] = "Caçadora da Savana",
[3416] = "Matriarca da Savana",
[3424] = "Falcotrom Raspa-nuvens",
[3425] = "Predador da Savana",
[3461] = "Mordelisca do Oásis",
[3472] = "Anhan Guera",
[3475] = "Echeyaki",
[3503] = "Protetor Silitídeo",
[3566] = "Predador das Estepes",
[3581] = "Fera do Esgoto",
[3619] = "Sabre Fantasma",
[3630] = "Espiríleo Anormal",
[3631] = "Cravaçoite Anormal",
[3632] = "Rastejante Anormal",
[3633] = "Matador Anormal",
[3634] = "Espreitador Anormal",
[3636] = "Assolador Anormal",
[3637] = "Guardião Anormal",
[3653] = "Cresh",
[3809] = "Urso do Vale Gris",
[3810] = "Urso Ancião do Vale Gris",
[3811] = "Urso Gigante do Vale Gris",
[3812] = "Rastetisco Espocador",
[3814] = "Espetisco",
[3819] = "Espreitadora Cardagreste",
[3820] = "Cospeçonha Cardagreste",
[3821] = "Tocaieira Cardagreste",
[3823] = "Corredor Patalmas",
[3824] = "Patalmas Uivador",
[3825] = "Patalmas Alfa",
[3861] = "Worg Sinistro",
[3862] = "Worg Salivante",
[3866] = "Morcego Torpe",
[3868] = "Busca-sangue",
[4005] = "Rastejante de Fundolimo",
[4006] = "Teceteia de Fundolimo",
[4007] = "Cospeçonha de Fundolimo",
[4040] = "Espreitadora da Caverna",
[4067] = "Corredor do Crepúsculo",
[4117] = "Serpente das Nuvens",
[4118] = "Serpente das Nuvens Venenosa",
[4119] = "Serpente das Nuvens Anciã",
[4124] = "Puma de Mil Agulhas",
[4126] = "Espreitador dos Penhascos",
[4127] = "Hiena Presavaia",
[4128] = "Espreitador Presavaia",
[4129] = "Rosnador Presavaia",
[4139] = "Terror Escorpídeo",
[4140] = "Aniquilador Escorpídeo",
[4142] = "Tartaruga Quelobrilho",
[4143] = "Tartalisca Quelobrilho",
[4144] = "Perfurador Quelobrilho",
[4154] = "Catador da Planície Salgada",
[4158] = "Abutre da Planície Salgada",
[4248] = "Hiena Courirrita",
[4249] = "Rosnadora Courirrita",
[4250] = "Galath Alcateio",
[4263] = "Filhote de Aranha de Fundolimo",
[4264] = "Matriarca de Fundolimo",
[4304] = "Cão Farejador Escarlate",
[4316] = "Kolkar Alcateio",
[4341] = "Crocolísco Secâmoro",
[4342] = "Mandivil Secâmoro",
[4343] = "Abocalisco Secâmoro",
[4344] = "Crocolísco Secâmoro Mosqueado",
[4345] = "Secâmoro Gorjadaga",
[4351] = "Raptor Dinossangue",
[4352] = "Gritador Dinossangue",
[4355] = "Garrafoice Dinossangue",
[4356] = "Rasgaqueixo Dinossangue",
[4357] = "Batecauda Dinossangue",
[4376] = "Aranha Névoa Negra",
[4377] = "Tocaieira Névoa Negra",
[4378] = "Reclusa Névoa Negra",
[4379] = "Tecesseda Névoa Negra",
[4380] = "Viúva Névoa Negra",
[4396] = "Quelônio Pedralama",
[4397] = "Espicasca Pedralama",
[4398] = "Toqueira Pedralama",
[4399] = "Escavadora Pedralama",
[4400] = "Mordelisca Pedralama",
[4411] = "Tocaieira Presanegra",
[4412] = "Rastejante Presanegra",
[4413] = "Aranha Presanegra",
[4414] = "Cospeçonha Presanegra",
[4415] = "Aranha Presanegra Gigante",
[4425] = "Caçador Cego",
[4511] = "Agam'ar",
[4512] = "Agam'ar Pútrido",
[4514] = "Agam'ar Furioso",
[4538] = "Morcego do Urzal",
[4539] = "Grande Morcego do Urzal",
[4548] = "Estalaço",
[4660] = "Pataóssea Maraudino",
[4662] = "Pataóssea Magram",
[4688] = "Hiena Pataóssea",
[4689] = "Pataóssea Esfomeada",
[4690] = "Pataóssea Raivosa",
[4692] = "Pavor Rapineiro",
[4693] = "Pavor Alado",
[4694] = "Pavor Estripante",
[4695] = "Carniceiro Horrendo",
[4696] = "Escorpachi Estalante",
[4697] = "Escorpachi Açoitador",
[4699] = "Escorpachi Venelátego",
[4821] = "Crustáceo Deslizante",
[4822] = "Crustáceo Mordedor",
[4823] = "Crustáceo Farpado",
[4824] = "Aku'mai Pescadora",
[4825] = "Mordelisca Aku'mai",
[4841] = "Mortocharco",
[4861] = "Morcego Corvoide",
[4887] = "Ghamoo-ra",
[4950] = "Manchinha",
[5048] = "Áspide Anormal",
[5053] = "Crocolisco Anormal",
[5056] = "Presátera Anormal",
[5224] = "Coleante do Lodo",
[5225] = "Cospelodo",
[5260] = "Gorila Groddoc",
[5262] = "Trovejante Groddoc",
[5268] = "Urso Veloférreo",
[5272] = "Urso Veloférreo Cinzento",
[5274] = "Patriarca Veloférreo",
[5286] = "Corredor Longodente",
[5287] = "Uivador Longodente",
[5288] = "Longodente Raivoso",
[5291] = "Asa Gélida Hakkari",
[5307] = "Guinchador do Vale",
[5308] = "Guinchador Errante do Vale",
[5349] = "Arash-ethis",
[5352] = "Velho Pançagris",
[5356] = "Rosnador",
[5422] = "Caçador Escorpídeo",
[5423] = "Caudaçoite Escorpídeo",
[5424] = "Espretareia Escorpídeo",
[5425] = "Patapústula Faminta",
[5426] = "Hiena Patapústula",
[5427] = "Patapústula Raivoso",
[5428] = "Roca",
[5429] = "Roca de Fogo",
[5430] = "Roca Flamejante",
[5431] = "Tartaruga Ondesliza",
[5432] = "Tartaruga Ondesliza Gigante",
[5708] = "Rebento de Hakkar",
[5755] = "Víbora Anormal",
[5756] = "Peçonhasa Anormal",
[5762] = "Caninana Anormal",
[5766] = "Filhote da Savana",
[5807] = "O Estraçalhador",
[5823] = "Açoita-morte",
[5828] = "Humar, o Senhor dos Leões",
[5829] = "Roncão, o Importuno",
[5834] = "Azzere, o Cortacéu",
[5842] = "Takk, o Saltador",
[5856] = "Aranha Teia-de-vidro",
[5857] = "Aranha de Lava Causticante",
[5858] = "Grande Aranha de Lava",
[5865] = "Dishu",
[5937] = "Torpicada",
[5982] = "Matador Negro",
[5984] = "Rasgarrindo Faminta",
[5985] = "Hiena Rasgarrindo",
[5988] = "Aguilhante Escorpóde",
[5992] = "Javali Jubacinza",
[6013] = "Urubu Errante",
[6352] = "Tocaieiro Cascoral",
[6369] = "Tartaruga Cascoral",
[6505] = "Ravassauro",
[6506] = "Ravassauro Corredor",
[6507] = "Ravassauro Caçador",
[6508] = "Ravassauro Pelenoso",
[6513] = "Pisoteador de Un'Goro",
[6514] = "Gorila de Un'Goro",
[6516] = "Trovejador de Un'Goro",
[6581] = "Matriarca Ravassauro",
[6585] = "Uhk'loc",
[6788] = "Matriarca do Covil",
[6789] = "Ursocardinho",
[7022] = "Escorpídeo Açoitador",
[7055] = "Worg Rocha Negra",
[7078] = "Escorpídeo da Fenda",
[7097] = "Coruja Bico-de-ferro",
[7098] = "Guinchador Bico-de-ferro",
[7099] = "Caçador Bico-de-ferro",
[7268] = "Guardião Zangareia",
[7319] = "Lady Sathrah",
[7405] = "Escorpídeo Mortal da Fenda",
[7430] = "Filhote de Sabre-de-gelo",
[7431] = "Sabre-de-gelo",
[7432] = "Espreitador Sabre-de-gelo",
[7433] = "Caçadora Sabre-de-gelo",
[7434] = "Vigia Sabre-de-gelo",
[7443] = "Espancador Dentilhaço",
[7444] = "Urso Dentilhaço",
[7445] = "Ancião Dentilhaço",
[7446] = "Dentilhaço Raivoso",
[7455] = "Coruja de Hibérnia",
[7456] = "Guinchadora de Hibérnia",
[7803] = "Entocador Escorpídeo",
[8207] = "Ave Flamejante Maior",
[8208] = "Patapústula Matadora",
[8211] = "Velho Pula-penhasco",
[8213] = "Cascaférrea",
[8277] = "Rekk'tilac",
[8299] = "Láquila",
[8300] = "Rasgarga",
[8301] = "Clack, o Aniquilador",
[8303] = "Grunhido",
[8336] = "Sapador Hakkari",
[8600] = "Quiróprago",
[8601] = "Quiróprago Nóxio",
[8602] = "Quiróprago Monstruoso",
[8762] = "Reclusa Xilaracna",
[8926] = "Aguilhão Profundo",
[8927] = "Uivador Sombrio",
[8933] = "Rastejante da Caverna",
[8956] = "Urso Garraivoso",
[8958] = "Espancador Garraivoso",
[8959] = "Lobo Patavil",
[8960] = "Catador Patavil",
[8961] = "Assolador Patavil",
[9416] = "Worg do Escudo Marcado",
[9622] = "U'cha",
[9683] = "Lar'korwi Fêmea",
[9684] = "Lar'korwi",
[9690] = "Worg Incandescente",
[9691] = "Escorpídeo Furimata",
[9694] = "Worg Incandescente Salivante",
[9695] = "Escorpídeo Letalátego",
[9696] = "Worg Machado Sangrento",
[9697] = "Worg Incandescente Gigante",
[9698] = "Escorpídeo Cauda-de-fogo",
[10077] = "Goela da Morte",
[10200] = "Rak'shiri",
[10221] = "Filhote de Worg Machado Sangrento",
[10356] = "Bayne",
[10357] = "Ressan, o Agulheiro",
[10359] = "Tok'aya",
[10375] = "Filhote de Aranha do Pináculo",
[10644] = "Uivador da Névoa",
[10737] = "Shy-Rotam",
[10741] = "Sian-Rotam",
[10806] = "Úrsius",
[10882] = "Arikara",
[10981] = "Lobo do Gelo",
[11357] = "Filho de Hakkar",
[11360] = "Cria Zulian",
[11361] = "Tigre Zulian",
[11365] = "Pantera Zulian",
[11368] = "Morcego Sanguinário",
[11370] = "Proleviúva Razzashi",
[11371] = "Serpente Razzashi",
[11372] = "Áspide Razzashi",
[11735] = "Escorpídeo Petraçoite",
[11736] = "Tenaz Petraçoite",
[11737] = "Esfolador Petraçoite",
[11738] = "Rastejante da Areia",
[11739] = "Espreitadora de Rocha",
[11921] = "Besseleth",
[12037] = "Ursol'lok",
[12431] = "Dilaceros",
[12432] = "Velho Tenaz",
[12433] = "Krethis Umbrateia",
[13599] = "Mordelisca Estólida",
[14123] = "Tartalisca Maxilaço",
[14222] = "Araga",
[14223] = "Benji Rabugento",
[14228] = "Risadinha",
[14232] = "Dardo",
[14233] = "Rancascame",
[14234] = "Hayoc",
[14266] = "Shanda, a Tecelã",
[14268] = "Lorde Condar",
[14279] = "Rastejatriz",
[14280] = "Zé Comilão",
[14283] = "Coruja de Lançatroz",
[14339] = "Uivo Mortífero",
[14343] = "Olm, o Sábio",
[14344] = "Mestiça",
[14472] = "Gretheer",
[14476] = "Krellack",
[14491] = "Kurmokk",
[14532] = "Veneracnídea Razzashi",
[14821] = "Raptor Razzashi",
[14965] = "Morcego Sanguinário Frenético",
[15041] = "Prole de Mar'li",
[15043] = "Crocolisco Zulian",
[15101] = "Predador Zulian",
[16117] = "Suíno Pestilento",
[36507] = "Manchinha",
[36514] = "Filhote de Sabre-de-gelo",
[37007] = "Filhote de Viúva Negra",
[40000] = "Raposa-vermelha",
[50624] = "Enxameador Silitídeo",
[50627] = "Enxameador Silitídeo",
[50630] = "Enxameador Silitídeo",
[60494] = "Pesagarra",
[60697] = "Cão de Caça",
[60848] = "Javali Costagulha",
[61074] = "Gorila do Altovale",
[61075] = "Rastreador Pedraconha",
[61076] = "Aretisco Conchareia",
[61077] = "Chimpanzé do Altovale",
[61078] = "Macaco do Altovale",
[61080] = "Gorila Ancião do Altovale",
[61082] = "Trovejante do Altovale",
[61090] = "Cobra Rabo-de-escova",
[61091] = "Áspide de Cauda de Escova",
[61095] = "Ginchador Esfolavêneno",
[61096] = "Serpente Esfolavêneno",
[61098] = "Rei Morogo Pé de Trovão",
[61206] = "Rastejante Tremeteia",
[61218] = "Filhote de Espiríleo Anormal",
[61227] = "Predador Crespupele",
[61228] = "Espreitador Crespupele",
[61229] = "Pele do Crepúsculo Faminto",
[61230] = "Morceguinho Asa Vil",
[61231] = "Morcego Asa Vil",
[61232] = "Aranha Teia Oca",
[61233] = "Veneno de Teia Oca",
[61336] = "Corujão Grande",
[61337] = "Caçador de Chifres Grandes",
[61401] = "Morcego Asatorpe Maior",
[61488] = "Azurebeak",
[61500] = "Highvale Silverback",
[61552] = "Crespulizo",
[61554] = "Dawnhowl",
[61599] = "Sabre Negro",
[61656] = "Urubu Penagris",
[61657] = "Caçador Penagris",
[61658] = "Hiena Patacinza",
[61659] = "Caçador Patacinza",
[61660] = "Escorpídeo Cauda-de-pedra",
[61661] = "Açoitador Cauda-de-pedra",
[61662] = "Escorpídeo Peçonha-negra",
[61680] = "Rastejante Coralodo",
[61681] = "Tiscoral Sujo Jovem",
[61686] = "Catador Penagris",
[61689] = "Javali Thalassiano Jovem ",
[61690] = "Lince-carmesim Jovem ",
[61691] = "Falcostruz da Floresta",
[61692] = "Javali Thalassiano",
[61693] = "Lince-carmesim",
[61695] = "Falcostruz Marfim",
[61696] = "Javali Thalassiano Ancião",
[61697] = "Lince-lume",
[61698] = "Matriarca Lince-lume",
[61699] = "Shar'lan",
[61700] = "Lince-carmesim Ancião",
[61704] = "Rastejante dos Andarilhos",
[61716] = "Falcostruz Carmesim",
[61717] = "Raposa Thalassiana",
[61774] = "Moreia de Mana Brilhante",
[61775] = "Moreia de Mana Esmeralda",
[61776] = "Moreia de Mana Lavanda",
[61789] = "Lunapluma",
[61975] = "Javali Presa Alta",
[62066] = "Prolemadre Espeleoteia",
[62073] = "Aranha Espeleoteia",
[62074] = "Rastejante Espeleoteia",
[62075] = "Cospeçonha Espeleoteia",
[62121] = "Javali de Cerdas Douradas",
[62122] = "Javali Corpulento de Cerdas Douradas",
[62123] = "Urso Dourado",
[62124] = "Urso-cardo Dourado",
[62125] = "Lobo Silvestre Ancião",
[62126] = "Lobo Silvestre Alfa",
[62223] = "Raptor Escamatroz",
[62224] = "Uivador Escamatroz",
[62225] = "Espancador Escamatroz",
[62226] = "Javali-couropétreo",
[62227] = "Javali-couropétreo Ancião",
[62247] = "Recluso Castanho",
[62248] = "Grande Recluso Marrom",
[62256] = "Mordelisca de Águas Claras",
[62257] = "Mordelisca de Águas Claras Doente",
[62258] = "Crocolisco Dentefino",
[62259] = "Crocolisco Gigante Dente-de-navalha",
[62260] = "Javali da Floresta",
[62261] = "Javali Ancião da Floresta",
[62262] = "Javali da Chapada",
[62271] = "Jovem Javali Cerdouro",
[62272] = "Jovem Lobo Silvestre",
[62338] = "Urubu Asatempéria",
[62339] = "Abrute Asatempéria",
[62340] = "Ragged Crag Coyote",
[62341] = "Coiote Penhascoscravo",
[62342] = "Aranha Mistbark",
[62343] = "Conjurador de teias Mistbark",
[62344] = "Mãe Mistbark",
[62345] = "Crocolisco Sorrowmore",
[62642] = "Filocéfalo",
[80250] = "Lince-carmesim",
[80252] = "Filhote de Raposa-do-ártico",
[80254] = "Filhote de Raposa-do-campo ",
[80256] = "Raposa-prateada",
[80257] = "Raposa-vermelha",
[80258] = "Filhote de Raposa-da-névoa",
[80259] = "Raposa-da-névoa",
[80260] = "Raposa Espiritual",
[80466] = "Urso Pestilento de Tirisfal",
[80815] = "Águia Amani",
[80816] = "Águia das Terras Agrestes",
[80920] = "Águia Amani",
[90980] = "Pantera Zulian",
[90981] = "Pantera Zulian",
[91819] = "Tigre Hazzuri",
[91825] = "Tigre-de-bengala Jovem",
[91826] = "Tigre de Bengala Matriarca",
[91827] = "Tigre de Bengala",
[91828] = "Tigre de Bengala Alfa",
[91829] = "Pisador da Selva",
[91830] = "Debulhador da Selva",
[91831] = "Rastreador Brilhante",
[91832] = "Tenaz Insular",
[91833] = "Rastejante de Rochas",
[91838] = "Quebrador Conchafunda",
[91960] = "Pantera Pataselva",
[91961] = "Pantera das Sombras Pataselva",
[91962] = "Crocolisco Arapuca",
[91966] = "Serpente da Selva Venenosa",
[91984] = "Urso Tirisgarra",
[91985] = "Filhote Tirisgarra",
[91987] = "Javali Presanhasco",
[91989] = "Lobo Pata Cinzenta",
[91990] = "Pata Cinzenta Alfa",
[92115] = "Garrafiada Enfurecido",
[92146] = "Rastejante da Praia",
[92147] = "Rastreador da Costa de Prata",
}
+573
View File
@@ -0,0 +1,573 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
MTH_LocaleData.data.beasts.ruRU = {
[30] = "Лесной паук",
[43] = "Рудниковый паук",
[69] = "Лесной волк",
[113] = "Вепрь-камнеклык",
[118] = "Лесной хищник",
[119] = "Длиннорыл",
[154] = "Большой шкуродер",
[157] = "Жутеклык",
[199] = "Молодой шкуродер",
[213] = "Голодный лютый волк",
[217] = "Ядовитый кругопряд",
[299] = "Молодой волк",
[330] = "Принцесса",
[345] = "Грубобрюх",
[390] = "Кабаний эскорт",
[428] = "Ужасающий кондор",
[442] = "Тарантул",
[454] = "Молодой жутевепрь",
[462] = "Сарыч",
[471] = "Мать Клык",
[505] = "Крупный тарантул",
[521] = "Волкус",
[524] = "Твердошкурый вепрь",
[525] = "Облезлый волк",
[539] = "Карликовый ядовитый кругопряд",
[547] = "Большой жутевепрь",
[565] = "Бешеный лютый волк",
[569] = "Зеленый паук-отшельник",
[574] = "Нараксис",
[616] = "Трещунья",
[628] = "Черный опустошитель",
[681] = "Молодой тигр Тернистой долины",
[682] = "Тигр Тернистой долины",
[683] = "Молодая пантера",
[684] = "Тенебрюхая пантера",
[685] = "Ящер Тернистой долины",
[686] = "Ящер-кнутохвост",
[687] = "Тропический ловец",
[704] = "Косматый лесной волк",
[705] = "Косматый молодой волк",
[708] = "Малый скальный вепрь",
[728] = "Баг'тира",
[729] = "Син'Далл",
[730] = "Тетис",
[731] = "Король Бангалаш",
[736] = "Пантера",
[767] = "Болотный ягуар",
[768] = "Пантера Тени",
[769] = "Смертоносный тарантул",
[772] = "Тигрица Тернистой долины",
[822] = "Молодой лесной медведь",
[830] = "Песчаный краб",
[831] = "Морской краб",
[833] = "Вожак стаи койотов",
[834] = "Койот",
[854] = "Молодой тропический ловец",
[855] = "Молодой ящер Тернистой долины",
[856] = "Молодой ящер-кнутохвост",
[858] = "Ткач скорби",
[922] = "Иловый краб",
[923] = "Молодой черный опустошитель",
[930] = "Детеныш черной вдовы",
[949] = "Падальщик-отшельник",
[976] = "Боевой тигр Курцена",
[977] = "Боевая пантера Курцена",
[1015] = "Ящер нагорья",
[1016] = "Кнутохвост нагорья",
[1017] = "Смертехват нагорья",
[1018] = "Острозуб Нагорья",
[1019] = "Старый острозуб",
[1020] = "Крапчатый ящер",
[1021] = "Крапчатый крикун",
[1022] = "Крапчатый смертехват",
[1023] = "Крапчатый острозуб",
[1082] = "Острозубый кроколиск",
[1084] = "Молодой острозубый кроколиск",
[1087] = "Острозубый крепкохват",
[1088] = "Чудовищный краб",
[1108] = "Горилла Туманной Долины",
[1109] = "Шкуродер",
[1111] = "Ловец-кровопийца",
[1112] = "Кровавая Вдова",
[1114] = "Джунглевый рокотун",
[1125] = "Скальный вепрь",
[1126] = "Большой скальный вепрь",
[1127] = "Старый скальный вепрь",
[1128] = "Молодой черный медведь",
[1129] = "Черный медведь",
[1130] = "Бьярн",
[1131] = "Снежный волк",
[1132] = "Серый",
[1133] = "Голодный снежный волк",
[1138] = "Снежный гончий волк",
[1140] = "Острозуб-матриарх",
[1150] = "Речной кроколиск",
[1152] = "Кроколиск-хрустогрыз",
[1184] = "Скальный скрытень",
[1185] = "Древесный воронковый паук",
[1186] = "Старый черный медведь",
[1188] = "Седой черный медведь",
[1189] = "Черный медведь-патриарх",
[1190] = "Горный вепрь",
[1191] = "Облезлый горный вепрь",
[1192] = "Старый горный вепрь",
[1194] = "Горный канюк",
[1195] = "Лесной паук-скрытень",
[1196] = "Медведь-ледолап",
[1199] = "Молодой снежный леопард",
[1201] = "Снежный леопард",
[1216] = "Береговой краб",
[1225] = "Старина Черношкур",
[1258] = "Черный мастиф-опустошитель",
[1400] = "Болотный кроколиск",
[1417] = "Молодой болотный кроколиск",
[1504] = "Молодой ночной кругопряд",
[1505] = "Ночной кругопряд",
[1508] = "Молодой падальщик",
[1509] = "Косматый падальщик",
[1511] = "Разъяренная седоспиная горилла",
[1512] = "Сумеречница",
[1513] = "Облезлая сумеречница",
[1516] = "Конда",
[1547] = "Дряхлый пес Тьмы",
[1548] = "Проклятый пес тьмы",
[1549] = "Прожорливый пес Тьмы",
[1553] = "Большая сумеречница",
[1554] = "Сумеречница-вампир",
[1555] = "Злобный ночной кругопряд",
[1557] = "Старая горилла Мглистой долины",
[1558] = "Среброспин-патриарх",
[1688] = "Ночной кругопряд-матриарх",
[1689] = "Покрытый шрамами скальный вепрь",
[1693] = "Озерный кроколиск",
[1713] = "Старая тенебрюхая пантера",
[1765] = "Ворг",
[1766] = "Крапчатый ворг",
[1778] = "Лютый седой медведь",
[1780] = "Мшистый паук-ловец",
[1781] = "Мглистый ползун",
[1797] = "Гигантский седой медведь",
[1809] = "Падальщик",
[1815] = "Больной черный медведь",
[1816] = "Болезненный гризли",
[1817] = "Больной волк",
[1822] = "Воронковый паук Ядовитого Тумана",
[1824] = "Чумной воронковый паук",
[1922] = "Серый лесной волк",
[1923] = "Кровожадный ворг",
[1961] = "Паршивый Коготь",
[1984] = "Молодой щетинистый вепрь",
[1985] = "Щетинистый вепрь",
[1986] = "Чащобный тенетник",
[1994] = "Гитьис Зловещая",
[1995] = "Сова",
[1996] = "Сова-крикун",
[1997] = "Сова-охотник",
[1998] = "Чащобный тенетник",
[1999] = "Чащобный ядозуб",
[2000] = "Чащобный паук-балдахинник",
[2001] = "Гигантский чащобный тенетник",
[2031] = "Молодой ночной саблезуб",
[2032] = "Облезлый ночной саблезуб",
[2033] = "Старый ночной саблезуб",
[2034] = "Яростный ночной саблезуб",
[2042] = "Ночной саблезуб",
[2043] = "Ночной саблезуб-охотник",
[2069] = "Лунопард",
[2070] = "Малорослый лунопард",
[2071] = "Лунопард-матриарх",
[2089] = "Огромный болотный кроколиск",
[2163] = "Колючешерстный медведь",
[2165] = "Седой колючешерстный медведь",
[2172] = "Долгоног-несушка",
[2175] = "Тенекоготь",
[2231] = "Карликовый прибрежный краб",
[2232] = "Прибрежный краб",
[2233] = "Покрытый илом краб",
[2234] = "Молодой рифовый краб",
[2235] = "Рифовый краб",
[2236] = "Гневный рифовый краб",
[2237] = "Взрослый лунопард",
[2275] = "Разъяренный",
[2321] = "Птенец лесного долгохода",
[2322] = "Лесной долгоход",
[2323] = "Гигантский лесной долгоног",
[2348] = "Старый моховой ползун",
[2349] = "Гигантский моховой ползун",
[2350] = "Лесной моховой ползун",
[2351] = "Серый медведь",
[2354] = "Злобный серый медведь",
[2356] = "Старый серый медведь",
[2384] = "Голодный горный лев",
[2385] = "Яростный горный лев",
[2406] = "Горный лев",
[2407] = "Крупный горный лев",
[2408] = "Хрустогрыз",
[2476] = "Большой озерный кроколиск",
[2505] = "Морской хрустогрыз",
[2521] = "Небогривая горилла",
[2522] = "Жагуар",
[2544] = "Южный песчаный краб",
[2559] = "Долгоног нагорья",
[2560] = "Твердозуб нагорья",
[2561] = "Плотоглот нагорья",
[2563] = "Равнинный ползун",
[2565] = "Гигантский равнинный ползун",
[2578] = "Молодой равнинный канюк",
[2579] = "Равнинный канюк",
[2580] = "Старый равнинный канюк",
[2635] = "Старый солоноводный кроколиск",
[2680] = "Волчонок Порочной Ветви",
[2681] = "Ездовой волк Порочной Ветви",
[2686] = "Паук-нянька племени Сухокожих",
[2727] = "Скальный койот",
[2728] = "Яростный скальный койот",
[2729] = "Старый скальный койот",
[2730] = "Бешеный скальный койот",
[2731] = "Горный охотник",
[2732] = "Горная охотница",
[2734] = "Патриарх горных охотинков",
[2753] = "Барнабус",
[2829] = "Голодный канюк",
[2830] = "Канюк",
[2831] = "Гигантский канюк",
[2850] = "Сломанный Клык",
[2923] = "Облезлый среброгрив",
[2924] = "Среброгривый волк",
[2925] = "Среброгривый ревун",
[2926] = "Среброгривый бродяга",
[2931] = "Зарикотль",
[2954] = "Боевой вепрь-дыбогрив",
[2955] = "Равнинный долгоног",
[2956] = "Взрослый равнинный долгоног",
[2957] = "Старый полевой долгоног",
[2958] = "Волк прерий",
[2959] = "Охотник прерий",
[2960] = "Могучий волк прерий",
[2961] = "Горная пума",
[2966] = "Боевой вепрь",
[2969] = "Тощий перепелятник",
[2970] = "Перепелятник",
[2971] = "Когтистый перепелятник",
[3035] = "Пума плоскогорья",
[3068] = "Маззранач",
[3098] = "Пятнистый вепрь",
[3099] = "Лютый пятнистый вепрь",
[3100] = "Старый крапчатый вепрь",
[3106] = "Карликовый приливный краб",
[3107] = "Приливный краб",
[3108] = "Поросший водорослями краб",
[3110] = "Крупнозубый кроколиск",
[3121] = "Дуротарский тигр",
[3122] = "Кровопалый кнутохвост",
[3123] = "Лезвезуб Кровавого Когтя",
[3124] = "Рабочий скорпид",
[3125] = "Гремучий скорпид",
[3126] = "Бронескорп",
[3127] = "Ядохвостый скорпид",
[3225] = "Оскверненный крапчатый вепрь",
[3226] = "Оскверненный скорпид",
[3227] = "Оскверненный лезвезуб Кровавого Когтя",
[3228] = "Порочный приливный краб",
[3231] = "Оскверненный крупнозубый кроколиск",
[3241] = "Патриарх саванны",
[3243] = "Высокогрив саванны",
[3244] = "Большой равнинный долгоног",
[3245] = "Злобный равнинный долгоног",
[3246] = "Проворный равнинный долгоног",
[3247] = "Птенец грозового змея",
[3249] = "Большой грозовой змей",
[3250] = "Ползучий силитид",
[3252] = "Членистоног Силитида",
[3254] = "Яркочешуйчатый кнутохвост",
[3255] = "Яркочешуйчатый крикун",
[3256] = "Яркочешуйчатый смертехват",
[3257] = "Ишамухал",
[3281] = "Саркот",
[3415] = "Охотница саванны",
[3416] = "Матриарх саванны",
[3424] = "Грозовой змей-облачник",
[3425] = "Хищник саванны",
[3461] = "Оазисный хрустогрыз",
[3472] = "Ваште Пауни",
[3475] = "Ичияки",
[3503] = "Заступник-силитид",
[3566] = "Хищник плоскогорья",
[3581] = "Тварь из Клоак",
[3619] = "Саблезубый призрак",
[3630] = "Загадочный крылозмей",
[3631] = "Загадочный жалохлест",
[3632] = "Загадочный ползун",
[3633] = "Загадочный душегуб",
[3634] = "Загадочный ловец",
[3636] = "Загадочный опустошитель",
[3637] = "Загадочный страж",
[3653] = "Криг",
[3809] = "Медведь Ясеневого леса",
[3810] = "Старый медведь Ясеневого леса",
[3811] = "Гигантский медведь Ясеневого леса",
[3812] = "Краб-щелкун",
[3814] = "Шипастый краб",
[3819] = "Паук-скакун Дикого Терна",
[3820] = "Ядоплюй Дикого Терна",
[3821] = "Воронковый паук Дикого Терна",
[3823] = "Светлолапый бегун",
[3824] = "Светлолапый ревун",
[3825] = "Светлолапый вожак",
[3861] = "Бесцветный ворг",
[3862] = "Слюнявый ворг",
[3866] = "Злобный нетопырь",
[3868] = "Кровожад",
[4005] = "Ползун из густого мха",
[4006] = "Моховой паук-вязальщик",
[4007] = "Моховой ядоплюй",
[4040] = "Пещерный ловец",
[4067] = "Сумеречный бегун",
[4117] = "Облачный змей",
[4118] = "Ядовитый облачный змей",
[4119] = "Старый облачный змей",
[4124] = "Игольчатая пума",
[4126] = "Скальный ловец",
[4127] = "Зубастая гиена",
[4128] = "Многозубый ловец",
[4129] = "Многозубый ворчун",
[4139] = "Скорпид-убийца",
[4140] = "Скорпид-разоритель",
[4142] = "Блестопанцирная черепаха",
[4143] = "Блестопанцирный крепкохват",
[4144] = "Блестопанцирный бурильщик",
[4154] = "Солончаковый падальщик",
[4158] = "Стервятник соляных равнин",
[4248] = "Паршивая гиена",
[4249] = "Паршивый рыкун",
[4250] = "Гиена племени Галак",
[4263] = "Детеныш густого мха",
[4264] = "Моховая паучиха",
[4304] = "Ищейка из Алого ордена",
[4316] = "Гиена племени Колкар",
[4341] = "Кроколиск-грязекуп",
[4342] = "Грязекуп-злобокус",
[4343] = "Грязекуп-крепкохват",
[4344] = "Крапчатый кроколиск-грязекуп",
[4345] = "Грязекуп-острозуб",
[4351] = "Ящер Кровавой Топи",
[4352] = "Крикун Кровавой Топи",
[4355] = "Смертехват Кровавой Топи",
[4356] = "Острозуб Кровавой Топи",
[4357] = "Кнутохвост Кровавой Топи",
[4376] = "Паук Мглистой пещеры",
[4377] = "Паучонок Мглистой пещеры",
[4378] = "Паук-отшельник Мглистой пещеры",
[4379] = "Паук-шелкопряд Мглистой пещеры",
[4380] = "Черная вдова Мглистой пещеры",
[4396] = "Глинистая черепаха",
[4397] = "Глинистая колючая черепаха",
[4398] = "Глинистый землеглот",
[4399] = "Глинистый бурильщик",
[4400] = "Глинистый хрустогрыз",
[4411] = "Скрытень-темножвал",
[4412] = "Ползун-темножвал",
[4413] = "Паук-темножвал",
[4414] = "Ядоплюй-темножвал",
[4415] = "Гигантский паук-темножвал",
[4425] = "Слепой охотник",
[4511] = "Агам'ар",
[4512] = "Гниющий вурдалак",
[4514] = "Разъяренный Агам'ар",
[4538] = "Лабиринтовый нетопырь",
[4539] = "Большой лабиринтовый нетопырь",
[4548] = "Сталезуб",
[4660] = "Костелап клана Мародин",
[4662] = "Костелап племени Маграм",
[4688] = "Костелапая гиена",
[4689] = "Голодный костелап",
[4690] = "Бешеный костелап",
[4692] = "Жуткий перепелятник",
[4693] = "Жуткий летун",
[4694] = "Жуткий потрошитель",
[4695] = "Ужасный падальщик",
[4696] = "Крепкохват cкорпаши",
[4697] = "Плеточник cкорпаши",
[4699] = "Ядохлыст cкорпаши",
[4821] = "Стремительное ракообразное",
[4822] = "Ракообразный клешнехват",
[4823] = "Колючий членистоног",
[4824] = "Рыбоед Аку'май",
[4825] = "Хрустогрыз Аку'май",
[4841] = "Зыбун",
[4861] = "Крылан-охотник",
[4887] = "Гхаму-ра",
[4950] = "Спот",
[5048] = "Загадочный аспид",
[5053] = "Загадочный кроколиск",
[5056] = "Загадочный страхозуб",
[5224] = "Мрачный ползун",
[5225] = "Мракоплюй",
[5260] = "Гроддокская обезьяна",
[5262] = "Гроддокский рокотун",
[5268] = "Медведь-сталемех",
[5272] = "Седой медведь-сталемех",
[5274] = "Сталемех-патриарх",
[5286] = "Длиннозуб-охотник",
[5287] = "Длиннозубый ревун",
[5288] = "Бешеный длиннозуб",
[5291] = "Ледокрыл из племени Хаккари",
[5307] = "Дольный крикун",
[5308] = "Норовистый дольный крикун",
[5349] = "Араш-етис",
[5352] = "Старый Серобрюх",
[5356] = "Рыкун",
[5422] = "Скорпид-охотник",
[5423] = "Плетохвостый скорпид",
[5424] = "Песчаный скорпид-охотник",
[5425] = "Голодный хромоног",
[5426] = "Хромоногая гиена",
[5427] = "Бешеный стертолап",
[5428] = "Рух",
[5429] = "Огненный рух",
[5430] = "Опаляющий рух",
[5431] = "Береговая черепаха",
[5432] = "Гигантская береговая черепаха",
[5708] = "Порождение Хаккара",
[5755] = "Загадочная гадюка",
[5756] = "Загадочный крылояд",
[5762] = "Загадочная болотная гадюка",
[5766] = "Детеныш зищника саванны",
[5807] = "Цап-царап",
[5823] = "Смертоносный живодер",
[5828] = "Вожак стаи Хумар",
[5829] = "Фырк Дразнила",
[5834] = "Аззира Клинок Небес",
[5842] = "Такк Прыгун",
[5856] = "Хрустальный паук",
[5857] = "Опаляющий лавовый паук",
[5858] = "Большой лавовый паук",
[5865] = "Дишу",
[5937] = "Коварное Жало",
[5982] = "Черный душегуб",
[5984] = "Голодный хохотун",
[5985] = "Хохочущая гиена",
[5988] = "Скорпок-острожал",
[5992] = "Пеплогривый кабан",
[6013] = "Своенравный канюк",
[6352] = "Кораллопанцирный скрытень",
[6369] = "Кораллопанцирная черепаха",
[6505] = "Равазавр",
[6506] = "Равазавр-бегун",
[6507] = "Равазавр-охотник",
[6508] = "Ядовитый равазавр",
[6513] = "Ун'Горский топотун",
[6514] = "Ун'горская горилла",
[6516] = "Ун'Горский рокотун",
[6581] = "Равазавр-матриарх",
[6585] = "Ак'лок",
[6788] = "Мать-медведица",
[6789] = "Медвежонок-осотник",
[7022] = "Ядоносный скорпид",
[7055] = "Ворг из клана Черной Горы",
[7078] = "Пещерный скорпид",
[7097] = "Железноклюв",
[7098] = "Железноклюв-крикун",
[7099] = "Железноклюв-охотник",
[7268] = "Страж из племени Песчаной Бури",
[7319] = "Леди Сатра",
[7405] = "Смертоносный пещерный скорпид",
[7430] = "Детеныш ледопарда",
[7431] = "Ледопард",
[7432] = "Ловчий ледопард",
[7433] = "Ледопард-охотница",
[7434] = "Дозорный прайда ледопардов",
[7443] = "Могучий щербозуб",
[7444] = "Медведь-щербозуб",
[7445] = "Старый щербозуб",
[7446] = "Бешеный щербозуб",
[7455] = "Сова Зимних Ключей",
[7456] = "Крикун Зимних Ключей",
[7803] = "Песчаный скорпид",
[8207] = "Большой огнекрыл",
[8208] = "Безжалостный хромоног",
[8211] = "Старый утесный прыгун",
[8213] = "Сталеспин",
[8277] = "Рекк'тилак",
[8299] = "Злобоклюй",
[8300] = "Разор",
[8301] = "Щелкун Разоритель",
[8303] = "Хрюггер",
[8336] = "Сапер из племени Хаккари",
[8600] = "Чумной нетопырь",
[8601] = "Пагубный нетопырь",
[8602] = "Чудовищный чумной нетопырь",
[8762] = "Древесный отшельник",
[8926] = "Глубинный острожал",
[8927] = "Черный крикун",
[8933] = "Пещерный ползун",
[8956] = "Медведь злобных когтей",
[8958] = "Злобнопалый изверг",
[8959] = "Волк-сквернолап",
[8960] = "Падальщик-сквернолап",
[8961] = "Опустошитель-сквернолап",
[9416] = "Ворг легиона Изрубленного Щита",
[9622] = "У'ча",
[9683] = "Самка Лар'корви",
[9684] = "Лар'корви",
[9690] = "Пепельный ворг",
[9691] = "Ядожалый скорпид",
[9694] = "Слюнявый пепельный ворг",
[9695] = "Скорпид-смертехлест",
[9696] = "Ворг легиона Кровавого Топора",
[9697] = "Огромный пепельный ворг",
[9698] = "Огнехвостый скорпид",
[10077] = "Гиблопасть",
[10200] = "Рак'шири",
[10221] = "Щенок ворга легиона Кровавого Топора",
[10356] = "Зверр",
[10357] = "Куссан Жалящий",
[10359] = "Шри'скалк",
[10375] = "Скальный паучонок",
[10644] = "Ревун из тумана",
[10737] = "Ши-Ротам",
[10741] = "Сиан-Ротам",
[10806] = "Урсиус",
[10882] = "Арикара",
[10981] = "Северный волк",
[11357] = "Сын Хаккара",
[11360] = "Зулианский тигренок",
[11361] = "Зулианский тигр",
[11365] = "Зулианская пантера",
[11368] = "Кровососущий нетопырь",
[11370] = "Черная вдова Раззаши",
[11371] = "Змей Раззаши",
[11372] = "Аспид Раззаши",
[11735] = "Камнехвостый скорпид",
[11736] = "Камнехвостый клешневик",
[11737] = "Камнехвостый живодер",
[11738] = "Песчаный паук-быстроног",
[11739] = "Скальный паук-скакун",
[11921] = "Бесселет",
[12037] = "Урсол'лок",
[12431] = "Жуткоклык",
[12432] = "Старый Губач",
[12433] = "Кретис Тенеткач",
[13599] = "Вялый хрустогрыз",
[14123] = "Стальноклювый крепкохват",
[14222] = "Арага",
[14223] = "Злобный Бенджи",
[14228] = "Хохотунья",
[14232] = "Дарт",
[14233] = "Чешуекус",
[14234] = "Хайок",
[14266] = "Шанда Прядильщица",
[14268] = "Лорд Кондар",
[14279] = "Ползух",
[14280] = "Большой Самрас",
[14283] = "Сова клана Грозовой Вершины",
[14339] = "Смертный вой",
[14343] = "Олм Мудрый",
[14344] = "Полукров",
[14472] = "Гретир",
[14476] = "Креллак",
[14491] = "Курмокк",
[14532] = "Ядокус Раззаши",
[14821] = "Ящер Раззаши",
[14965] = "Бесноватый кровососущий нетопырь",
[15041] = "Порождение Мар'ли",
[15043] = "Зулианский кроколиск",
[15101] = "Зулианский хищник",
[16117] = "Чумной кабан",
}
+713
View File
@@ -0,0 +1,713 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.beasts = MTH_LocaleData.data.beasts or {}
MTH_LocaleData.data.beasts.zhCN = {
[30] = "森林蜘蛛",
[43] = "矿坑蜘蛛",
[69] = "森林狼",
[113] = "石牙野猪",
[118] = "觅食的灰狼",
[119] = "长鼻野猪",
[154] = "大碎尸鸟",
[157] = "血牙野猪",
[199] = "小碎尸鸟",
[213] = "饥饿的恐狼",
[217] = "结网毒蜘蛛",
[299] = "幼狼",
[330] = "公主",
[345] = "贝利格拉布",
[390] = "公主的随从",
[428] = "恐鹫",
[442] = "狼蛛",
[454] = "幼年血牙野猪",
[462] = "乌尔图斯",
[471] = "母蜘蛛",
[505] = "巨型狼蛛",
[521] = "鲁伯斯",
[524] = "石皮野猪",
[525] = "癞皮狼",
[539] = "小型结网毒蜘蛛",
[547] = "巨型血牙野猪",
[565] = "疯狂的恐狼",
[569] = "绿色独行蛛",
[574] = "纳拉克西斯",
[616] = "查特",
[628] = "黑色破坏者",
[681] = "小荆棘谷猛虎",
[682] = "荆棘谷猛虎",
[683] = "小猎豹",
[684] = "深喉猎豹",
[685] = "荆棘谷迅猛龙",
[686] = "鞭尾迅猛龙",
[687] = "丛林捕猎者",
[704] = "蓬毛森林狼",
[705] = "蓬毛幼狼",
[708] = "小型峭壁野猪",
[728] = "巴尔瑟拉",
[729] = "辛达尔",
[730] = "泰希斯",
[731] = "虎王邦加拉西",
[736] = "黑豹",
[767] = "沼泽虎",
[768] = "暗影黑豹",
[769] = "死亡狼蛛",
[772] = "荆棘谷雌虎",
[822] = "小森林熊",
[830] = "沙行蟹",
[831] = "海行蟹",
[833] = "山狗首领",
[834] = "山狗",
[854] = "幼年丛林捕猎者",
[855] = "幼年荆棘谷迅猛龙",
[856] = "幼年鞭尾迅猛龙",
[858] = "沼泽纺丝蛛",
[922] = "淤泥蟹",
[923] = "小黑色破坏者",
[930] = "小型黑寡妇蜘蛛",
[949] = "食腐独行蛛",
[976] = "库尔森战虎",
[977] = "库尔森战豹",
[1015] = "高地迅猛龙",
[1016] = "高地鞭尾龙",
[1017] = "高地镰爪龙",
[1018] = "高地刺喉龙",
[1019] = "老刺喉龙",
[1020] = "杂斑迅猛龙",
[1021] = "杂斑尖啸龙",
[1022] = "杂斑镰爪龙",
[1023] = "杂斑刺喉龙",
[1082] = "盐齿鳄鱼",
[1084] = "小盐齿鳄鱼",
[1087] = "盐齿钳嘴鳄",
[1088] = "巨型淤泥蟹",
[1108] = "迷雾谷猩猩",
[1109] = "碎尸鸟",
[1111] = "吸血捕猎者",
[1112] = "吸血寡妇",
[1114] = "丛林大猩猩",
[1125] = "峭壁野猪",
[1126] = "大峭壁野猪",
[1127] = "老峭壁野猪",
[1128] = "小黑熊",
[1129] = "黑熊",
[1130] = "游荡的冰爪熊",
[1131] = "冬狼",
[1132] = "狂暴的冬狼",
[1133] = "饥饿的冬狼",
[1138] = "雪狼",
[1140] = "刺喉雌龙",
[1150] = "淡水鳄",
[1152] = "钳嘴鳄鱼",
[1184] = "峭壁潜伏者",
[1185] = "林木潜伏者",
[1186] = "老黑熊",
[1188] = "灰斑黑熊",
[1189] = "黑熊首领",
[1190] = "山猪",
[1191] = "癞皮山猪",
[1192] = "老山猪",
[1194] = "山鹫",
[1195] = "森林潜伏者",
[1196] = "冰爪熊",
[1199] = "雪豹幼崽",
[1201] = "雪豹",
[1216] = "滩行蟹",
[1225] = "老煤灰",
[1258] = "巨型黑色破坏者",
[1400] = "湿地鳄鱼",
[1417] = "小湿地鳄鱼",
[1504] = "小夜行蜘蛛",
[1505] = "夜行蜘蛛",
[1508] = "小食腐狼",
[1509] = "蓬毛食腐狼",
[1511] = "暴怒的银背猩猩",
[1512] = "夜行蝙蝠",
[1513] = "癞皮夜行蝙蝠",
[1516] = "康达",
[1547] = "衰老的黑暗犬",
[1548] = "被诅咒的黑暗犬",
[1549] = "饥饿的黑暗犬",
[1553] = "巨型夜行蝙蝠",
[1554] = "吸血夜行蝙蝠",
[1555] = "邪恶的夜行蜘蛛",
[1557] = "老迈的迷雾谷猩猩",
[1558] = "银背雌猩猩",
[1688] = "夜行雌蜘蛛",
[1689] = "有伤疤的峭壁野猪",
[1693] = "洛克鳄",
[1713] = "老年深喉猎豹",
[1765] = "座狼",
[1766] = "杂斑座狼",
[1778] = "凶猛的灰斑熊",
[1780] = "苔藓阔步者",
[1781] = "迷雾爬行者",
[1797] = "巨型灰斑熊",
[1809] = "食腐秃鹫",
[1815] = "生病的黑熊",
[1816] = "生病的灰熊",
[1817] = "生病的狼",
[1822] = "毒雾潜伏者",
[1824] = "瘟疫潜伏者",
[1922] = "森林灰狼",
[1923] = "血牙座狼",
[1961] = "癞爪",
[1984] = "小草刺野猪",
[1985] = "草刺野猪",
[1986] = "树林蜘蛛",
[1994] = "邪恶的基塞伊斯",
[1995] = "巨翼枭",
[1996] = "巨翼恶枭",
[1997] = "巨翼猎枭",
[1998] = "树林潜伏者",
[1999] = "树林毒蜘蛛",
[2000] = "树林结网蛛",
[2001] = "巨型树林蜘蛛",
[2031] = "夜刃豹幼崽",
[2032] = "癞皮夜刃豹",
[2033] = "老夜刃豹",
[2034] = "野生夜刃豹",
[2042] = "夜刃豹",
[2043] = "夜刃捕食者",
[2069] = "月夜猛虎",
[2070] = "月夜猛虎幼崽",
[2071] = "月夜雌虎",
[2089] = "巨型湿地鳄鱼",
[2163] = "蓟熊",
[2165] = "灰斑蓟熊",
[2172] = "雌性森林陆行鸟",
[2175] = "影爪",
[2231] = "小潮行蟹",
[2232] = "潮行蟹",
[2233] = "硬壳潮行蟹",
[2234] = "小暗礁蟹",
[2235] = "暗礁蟹",
[2236] = "狂暴暗礁蟹",
[2237] = "月夜雄虎",
[2275] = "暴怒的斯坦利",
[2321] = "森林陆行鸟雏鸟",
[2322] = "森林陆行鸟",
[2323] = "凶猛的森林陆行鸟",
[2348] = "老食苔蛛",
[2349] = "巨型食苔蛛",
[2350] = "森林食苔蛛",
[2351] = "灰熊",
[2354] = "邪恶的灰熊",
[2356] = "老灰熊",
[2384] = "饥饿的山地狮",
[2385] = "野生山地狮",
[2406] = "山地狮",
[2407] = "巨型山地狮",
[2408] = "钳嘴龟",
[2476] = "大型洛克鳄",
[2505] = "海水钳嘴龟",
[2521] = "蓝鬃猩猩",
[2522] = "丛林猎豹",
[2544] = "南部沙蟹",
[2559] = "高地阔步龙",
[2560] = "高地长尾龙",
[2561] = "高地猎兽龙",
[2563] = "平原狼蛛",
[2565] = "巨型平原狼蛛",
[2578] = "小山地秃鹰",
[2579] = "山地秃鹰",
[2580] = "老山地秃鹰",
[2635] = "老海鳄",
[2680] = "邪枝幼狼",
[2681] = "邪枝巨狼",
[2686] = "枯木巢穴守卫",
[2727] = "峭壁山狗",
[2728] = "野生峭壁山狗",
[2729] = "老峭壁山狗",
[2730] = "疯狂的峭壁山狗",
[2731] = "山脊巡行者",
[2732] = "山脊雌豹",
[2734] = "山脊雄豹",
[2753] = "巴纳布斯",
[2829] = "饥饿的秃鹫",
[2830] = "秃鹫",
[2831] = "巨型秃鹫",
[2850] = "断牙",
[2923] = "癞皮银鬃狼",
[2924] = "银鬃狼",
[2925] = "银鬃嗥狼",
[2926] = "银鬃捕猎者",
[2931] = "札里科特",
[2954] = "刺背斗猪",
[2955] = "平原陆行鸟",
[2956] = "成年平原陆行鸟",
[2957] = "老平原陆行鸟",
[2958] = "草原狼",
[2959] = "草原捕食者",
[2960] = "草原狼前锋",
[2961] = "山狮",
[2966] = "斗猪",
[2969] = "消瘦的猛鹫",
[2970] = "猛鹫",
[2971] = "长爪猛鹫",
[3035] = "平原狮",
[3068] = "马兹拉纳其",
[3098] = "杂斑野猪",
[3099] = "可怕的杂斑野猪",
[3100] = "老杂斑野猪",
[3106] = "小海浪蟹",
[3107] = "海浪蟹",
[3108] = "硬壳海浪蟹",
[3110] = "巨齿鳄鱼",
[3121] = "杜隆塔尔猛虎",
[3122] = "血爪鞭尾龙",
[3123] = "血爪锐齿龙",
[3124] = "蝎子",
[3125] = "巨钳蝎",
[3126] = "硬甲蝎",
[3127] = "毒尾蝎",
[3225] = "堕落的杂斑野猪",
[3226] = "堕落蝎",
[3227] = "堕落的血爪锐齿龙",
[3228] = "堕落海浪蟹",
[3231] = "堕落的巨齿鳄鱼",
[3241] = "草原狮王",
[3243] = "长鬃草原狮",
[3244] = "巨型平原陆行鸟",
[3245] = "暴躁的平原陆行鸟",
[3246] = "敏捷的平原陆行鸟",
[3247] = "雷鹰雏鸟",
[3249] = "巨型雷鹰",
[3250] = "异种爬行者",
[3252] = "异种群居蝎",
[3254] = "赤鳞鞭尾龙",
[3255] = "赤鳞尖啸龙",
[3256] = "赤鳞镰爪龙",
[3257] = "伊沙姆哈尔",
[3281] = "萨科斯",
[3415] = "雌性草原狮",
[3416] = "草原狮后",
[3424] = "雷鹰破云者",
[3425] = "草原徘徊者",
[3461] = "绿洲钳嘴龟",
[3472] = "瓦希塔帕恩",
[3475] = "埃其亚基",
[3503] = "异种护卫者",
[3566] = "平原徘徊者",
[3581] = "下水道鳄鱼",
[3619] = "幽灵豹",
[3630] = "变异曲蛇",
[3631] = "变异刺鞭蛇",
[3632] = "变异爬行者",
[3633] = "变异屠戮者",
[3634] = "变异捕猎者",
[3636] = "变异破坏者",
[3637] = "变异守护者",
[3653] = "克雷什",
[3809] = "灰谷熊",
[3810] = "老灰谷熊",
[3811] = "灰谷巨熊",
[3812] = "巨钳蟹",
[3814] = "刺壳蟹",
[3819] = "野棘捕猎者",
[3820] = "野棘毒蜘蛛",
[3821] = "野棘潜伏者",
[3823] = "幽爪奔跑者",
[3824] = "幽爪嗥叫者",
[3825] = "幽爪前锋",
[3861] = "灰色座狼",
[3862] = "流涎的座狼",
[3866] = "邪蝠",
[3868] = "觅血者",
[4005] = "深苔爬行者",
[4006] = "深苔结网蛛",
[4007] = "深苔毒蜘蛛",
[4040] = "洞穴捕猎者",
[4067] = "夜行虎",
[4117] = "风蛇",
[4118] = "毒性风蛇",
[4119] = "老风蛇",
[4124] = "千针石林山狮",
[4126] = "峭壁捕猎者",
[4127] = "乱齿土狼",
[4128] = "乱齿捕猎者",
[4129] = "乱齿狂吠者",
[4139] = "恐蝎",
[4140] = "恐蝎劫掠者",
[4142] = "盐壳龟",
[4143] = "盐壳钳嘴龟",
[4144] = "盐壳掘地龟",
[4154] = "盐湖食腐鹫",
[4158] = "盐湖秃鹫",
[4248] = "杂毛土狼",
[4249] = "杂毛嚎叫者",
[4250] = "加拉克猎犬",
[4263] = "深苔幼蛛",
[4264] = "深苔雌蜘蛛",
[4304] = "血色捕猎犬",
[4316] = "科卡尔猎犬",
[4341] = "尘泥鳄鱼",
[4342] = "尘泥锐爪鳄鱼",
[4343] = "尘泥钳嘴鳄鱼",
[4344] = "尘泥杂斑鳄鱼",
[4345] = "尘泥利齿鳄鱼",
[4351] = "血沼迅猛龙",
[4352] = "血沼尖啸龙",
[4355] = "血沼镰爪龙",
[4356] = "血沼刺喉龙",
[4357] = "血沼鞭尾龙",
[4376] = "黑雾蜘蛛",
[4377] = "黑雾潜伏者",
[4378] = "黑雾独行蛛",
[4379] = "黑雾纺丝者",
[4380] = "黑雾寡妇蛛",
[4396] = "泥石海龟",
[4397] = "泥石刺壳龟",
[4398] = "泥石穴居龟",
[4399] = "泥石掘洞龟",
[4400] = "泥石钳嘴龟",
[4411] = "暗牙潜伏者",
[4412] = "暗牙爬行者",
[4413] = "暗牙蜘蛛",
[4414] = "暗牙毒蜘蛛",
[4415] = "巨型暗牙蜘蛛",
[4425] = "盲眼猎手",
[4511] = "阿迦玛",
[4512] = "腐烂的阿迦玛",
[4514] = "暴怒的阿迦玛",
[4538] = "沼泽蝙蝠",
[4539] = "巨型沼泽蝙蝠",
[4548] = "钢齿土狼",
[4660] = "玛洛迪骨爪土狼",
[4662] = "玛格拉姆骨爪土狼",
[4688] = "骨爪土狼",
[4689] = "饥饿的骨爪土狼",
[4690] = "疯狂的骨爪土狼",
[4692] = "恐怖飞扑者",
[4693] = "恐怖飞鸟",
[4694] = "恐怖撕裂者",
[4695] = "恐怖腐化鸟",
[4696] = "荒土巨钳蝎",
[4697] = "荒土鞭尾蝎",
[4699] = "荒土毒尾蝎",
[4821] = "滑腻的甲壳蟹",
[4822] = "巨钳甲壳蟹",
[4823] = "刺毛甲壳蟹",
[4824] = "阿库麦尔食鱼龟",
[4825] = "阿库麦尔钳嘴龟",
[4841] = "死沼巨鳄",
[4861] = "利齿蝙蝠",
[4887] = "加摩拉",
[4950] = "斑斑",
[5048] = "无毒飞蛇",
[5053] = "变异鳄鱼",
[5056] = "变异尖牙风蛇",
[5224] = "黑暗滑行虫",
[5225] = "黑暗粘液虫",
[5260] = "格罗多克猿人",
[5262] = "格罗多克大猩猩",
[5268] = "铁鬃熊",
[5272] = "铁鬃灰熊",
[5274] = "铁鬃熊王",
[5286] = "长牙奔跑者",
[5287] = "长牙嚎叫者",
[5288] = "疯狂的长牙狼",
[5291] = "哈卡莱霜翼飞蛇",
[5307] = "山谷尖啸者",
[5308] = "游荡的山谷尖啸者",
[5349] = "阿拉瑟希斯",
[5352] = "灰腹老熊",
[5356] = "咆哮者",
[5422] = "沙漠猎食蝎",
[5423] = "沙漠鞭尾蝎",
[5424] = "沙漠疾行蝎",
[5425] = "饥饿的疱爪土狼",
[5426] = "疱爪土狼",
[5427] = "疯狂的疱爪土狼",
[5428] = "大鹏",
[5429] = "火鹏",
[5430] = "炎鹏",
[5431] = "海浪龟",
[5432] = "巨型滑浪龟",
[5708] = "哈卡的后代",
[5755] = "剧毒飞蛇",
[5756] = "变异剧毒风蛇",
[5762] = "弱毒飞蛇",
[5766] = "草原幼狮",
[5807] = "扫荡者",
[5823] = "死亡毒蝎",
[5828] = "狮王休玛",
[5829] = "土狼斯诺特",
[5834] = "天空之刃艾泽里",
[5842] = "跳跃者塔克",
[5856] = "晶网蜘蛛",
[5857] = "灼热熔岩蜘蛛",
[5858] = "巨型熔岩蜘蛛",
[5865] = "迪舒",
[5937] = "邪刺恐蝎",
[5982] = "黑色屠戮者",
[5984] = "饥饿的弯牙土狼",
[5985] = "弯牙土狼",
[5988] = "厚甲毒刺蝎",
[5992] = "灰鬃野猪",
[6013] = "游荡的秃鹫",
[6352] = "珊瑚潜伏者",
[6369] = "珊瑚海龟",
[6505] = "暴掠龙",
[6506] = "疾奔暴掠龙",
[6507] = "狩猎暴掠龙",
[6508] = "毒皮暴掠龙",
[6513] = "安戈洛巨猩猩",
[6514] = "安戈洛猩猩",
[6516] = "安戈洛大猩猩",
[6581] = "暴掠龙女王",
[6585] = "乌卡洛克",
[6788] = "雌蓟熊",
[6789] = "小蓟熊",
[7022] = "毒鞭蝎",
[7055] = "黑石座狼",
[7078] = "裂隙沙漠蝎",
[7097] = "铁喙猫头鹰",
[7098] = "铁喙尖啸者",
[7099] = "铁喙狩猎者",
[7268] = "沙怒守护者",
[7319] = "萨丝拉",
[7405] = "致命的裂隙沙漠蝎",
[7430] = "小霜刃豹",
[7431] = "霜刃豹",
[7432] = "霜刃捕食者",
[7433] = "霜刃雌豹",
[7434] = "霜刃守卫者",
[7443] = "碎齿暴熊",
[7444] = "碎齿熊",
[7445] = "老碎齿熊",
[7446] = "疯狂的碎齿熊",
[7455] = "冬泉巨枭",
[7456] = "冬泉鸣枭",
[7803] = "沙漠掘洞蝎",
[8207] = "巨型火鸟",
[8208] = "残忍的疱爪土狼",
[8211] = "海崖奔跳者",
[8213] = "铁背龟",
[8277] = "雷克提拉克",
[8299] = "斯比弗雷尔",
[8300] = "毁灭",
[8301] = "掠夺者科拉克",
[8303] = "格朗特",
[8336] = "哈卡莱挖掘者",
[8600] = "瘟疫蝙蝠",
[8601] = "毒性瘟疫蝙蝠",
[8602] = "巨型瘟疫蝙蝠",
[8762] = "林木隐匿者",
[8926] = "深渊钉刺者",
[8927] = "黑暗尖啸者",
[8933] = "洞穴爬行者",
[8956] = "怒爪熊",
[8958] = "怒爪巨熊",
[8959] = "魔爪狼",
[8960] = "魔爪食腐狼",
[8961] = "魔爪掠夺者",
[9416] = "裂盾座狼",
[9622] = "尤尔查",
[9683] = "拉克维的配偶",
[9684] = "拉克维",
[9690] = "灰烬座狼",
[9691] = "毒尖蝎",
[9694] = "流涎的灰烬座狼",
[9695] = "死鞭蝎",
[9696] = "血斧座狼",
[9697] = "巨型灰烬座狼",
[9698] = "火尾蝎",
[10077] = "死亡之喉",
[10200] = "拉克西里",
[10221] = "血斧座狼幼崽",
[10356] = "贝恩",
[10357] = "毒针雷萨恩",
[10359] = "瑟斯库克",
[10375] = "尖塔小蜘蛛",
[10644] = "迷雾嚎叫者",
[10737] = "希洛塔姆",
[10741] = "赛洛塔姆",
[10806] = "尤西乌斯",
[10882] = "阿利卡拉",
[10981] = "霜狼",
[11357] = "哈卡之子",
[11360] = "祖利安幼虎",
[11361] = "祖利安猛虎",
[11365] = "祖利安雌猎虎",
[11368] = "觅血蝙蝠",
[11370] = "拉札什寡妇蜘蛛",
[11371] = "拉扎什毒蛇",
[11372] = "拉札什奎蛇",
[11735] = "石鞭蝎",
[11736] = "石鞭巨钳蝎",
[11737] = "石鞭掠夺者",
[11738] = "掠沙蜘蛛",
[11739] = "石行蜘蛛",
[11921] = "贝瑟莱斯",
[12037] = "乌索洛克",
[12431] = "血牙狼人",
[12432] = "维斯迦尔",
[12433] = "克雷希斯",
[13599] = "迟钝的钳嘴龟",
[14123] = "钢腭钳嘴龟",
[14222] = "阿拉加",
[14223] = "暴躁的本希",
[14228] = "怪笑者",
[14232] = "飞镖",
[14233] = "裂鳞",
[14234] = "哈尤克",
[14266] = "纺织者杉达",
[14268] = "康达尔老爷",
[14279] = "爬行的塞斯",
[14280] = "大个子萨姆拉斯",
[14283] = "雷矛猫头鹰",
[14339] = "死亡之嚎",
[14343] = "智者奥尔姆",
[14344] = "莫戈雷斯",
[14472] = "格雷瑟尔",
[14476] = "克里拉克",
[14491] = "库尔莫克",
[14532] = "拉札什毒液蜘蛛",
[14821] = "拉札什迅猛龙",
[14965] = "疯狂的觅血蝠",
[15041] = "玛尔里的爪牙",
[15043] = "祖利安鳄鱼",
[15101] = "祖利安徘徊者",
[16117] = "瘟疫野猪",
[36507] = "斯巴特",
[36514] = "霜刃豹幼崽",
[37007] = "黑寡妇幼蛛",
[40000] = "红色狐狸",
[50624] = "异种群居蝎",
[50627] = "异种群居蝎",
[50630] = "异种群居蝎",
[60494] = "悲爪",
[60697] = "抚慰犬",
[60848] = "刺背野猪",
[61074] = "高原大猩猩",
[61075] = "岩壳爬行者",
[61076] = "沙壳爬行者",
[61077] = "高原黑猩猩",
[61078] = "高原猴子",
[61080] = "年迈的高原大猩猩",
[61082] = "高原雷霆猩猩",
[61090] = "刷尾眼镜蛇",
[61091] = "刷尾蝰蛇",
[61095] = "毒液掠夺尖啸者",
[61096] = "毒液掠夺毒蛇",
[61098] = "莫罗戈·雷足国王",
[61206] = "掠网爬行者",
[61218] = "变异弯曲幼蛇",
[61227] = "暮毛徘徊者",
[61228] = "暮毛追猎者",
[61229] = "饥饿的暮毛",
[61230] = "邪翼蝙蝠宝宝",
[61231] = "邪翼蝙蝠",
[61232] = "空网蜘蛛",
[61233] = "空网喷毒者",
[61336] = "巨角猫头鹰",
[61337] = "巨角猎人",
[61401] = "巨型邪翼蝙蝠",
[61488] = "蔚蓝喙",
[61500] = "高原银背兽",
[61552] = "暮掠者",
[61554] = "黎明嚎叫",
[61599] = "暗豹",
[61656] = "灰羽秃鹰",
[61657] = "灰羽猎食者",
[61658] = "灰爪土狼",
[61659] = "灰爪猎手",
[61660] = "石尾蝎",
[61661] = "石尾鞭笞者",
[61662] = "黑毒蝎",
[61680] = "泥沼爬行者",
[61681] = "幼年泥沼爬行者",
[61686] = "灰羽食腐者",
[61689] = "幼年萨拉斯野猪",
[61690] = "幼年血色山猫",
[61691] = "森林陆行鸟",
[61692] = "萨拉斯野猪",
[61693] = "血色山猫",
[61695] = "白色陆行鸟",
[61696] = "年迈的萨拉斯野猪",
[61697] = "明亮山猫",
[61698] = "明亮山猫雌兽",
[61699] = "夏尔兰",
[61700] = "年迈的血色山猫",
[61704] = "远行爬行者",
[61716] = "赤红陆行鸟",
[61717] = "萨拉斯狐狸",
[61774] = "辉煌法力雏龙",
[61775] = "翡翠法力雏龙",
[61776] = "淡紫法力雏龙",
[61789] = "月羽",
[61975] = "巨牙野猪",
[62066] = "穴织女王",
[62073] = "穴织蜘蛛",
[62074] = "穴织爬行者",
[62075] = "穴织毒蜘蛛",
[62121] = "金鬃野猪",
[62122] = "雄壮的金鬃野猪",
[62123] = "金皮熊",
[62124] = "金皮灰熊",
[62125] = "年迈的森林狼",
[62126] = "森林狼前锋",
[62223] = "酷鳞迅猛龙",
[62224] = "酷鳞尖啸龙",
[62225] = "酷鳞长尾龙",
[62226] = "石皮野猪",
[62227] = "年迈的石皮野猪",
[62247] = "棕色隐匿者",
[62248] = "巨型棕色隐匿者",
[62256] = "清水钳嘴龟",
[62257] = "生病的清水钳嘴龟",
[62258] = "剃齿鳄鱼",
[62259] = "巨型剃齿鳄鱼",
[62260] = "森林野猪",
[62261] = "老森林野猪",
[62262] = "山地野猪",
[62271] = "幼年金鬃野猪",
[62272] = "幼年森林狼",
[62338] = "雷翼秃鹰",
[62339] = "雷翼秃鹫",
[62340] = "蓬毛峭壁山狗",
[62341] = "流涎的峭壁山狗",
[62342] = "雾木蜘蛛",
[62343] = "雾木结网蜘蛛",
[62344] = "雾木蛛母",
[62345] = "悲痛湖鳄鱼",
[62642] = "锋鳞",
[80250] = "血色山猫",
[80252] = "极地狐幼崽",
[80254] = "棕狐幼崽",
[80256] = "银狐",
[80257] = "红狐",
[80258] = "雾狐幼崽",
[80259] = "雾狐",
[80260] = "灵狐",
[80466] = "提瑞斯法瘟疫熊",
[80815] = "阿曼尼雄鹰",
[80816] = "辛特兰雄鹰",
[80920] = "阿曼尼雄鹰",
[90980] = "祖利安黑豹",
[90981] = "祖利安黑豹",
[91819] = "海祖瑞猛虎",
[91825] = "丛林虎幼崽",
[91826] = "丛林母虎",
[91827] = "丛林虎",
[91828] = "丛林前锋虎",
[91829] = "林背践踏猿",
[91830] = "林背迅击猿",
[91831] = "锐钳蟹",
[91832] = "海岛龙虾人",
[91833] = "岩石蟹",
[91838] = "厚壳钳嘴龟",
[91960] = "林爪黑豹",
[91961] = "林爪暗影黑豹",
[91962] = "盐钳鳄鱼",
[91966] = "毒性林蛇",
[91984] = "提瑞斯熊",
[91985] = "提瑞斯利爪幼熊",
[91987] = "峭壁牙野猪",
[91989] = "灰爪狼",
[91990] = "灰爪阿尔法",
[92115] = "被激怒的利爪",
[92146] = "沙滩蟹",
[92147] = "银岸蟹",
}
+331
View File
@@ -0,0 +1,331 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.deDE = {
[2098] = "Doppelläufige Schrotflinte",
[2099] = "Zwergische Handkanone",
[2100] = "Präzise kalibriertes Schießeisen",
[2504] = "Abgenutzter Kurzbogen",
[2505] = "Polierter Kurzbogen",
[2506] = "Hornholzdoppelbogen",
[2507] = "Laminierter Doppelbogen",
[2508] = "Alte Donnerbüchse",
[2509] = "Verschnörkelte Donnerbüchse",
[2510] = "Robuste Donnerbüchse",
[2511] = "Jägerschießeisen",
[2512] = "Rauer Pfeil",
[2515] = "Scharfer Pfeil",
[2516] = "Leichtes Geschoss",
[2519] = "Schweres Geschoss",
[2550] = "Monster - Bow, Short",
[2551] = "Monster - Crossbow",
[2552] = "Monster - Gun",
[2773] = "Gesprungener Kurzbogen",
[2774] = "Rostbedeckte Donnerbüchse",
[2777] = "Schwächlicher Kurzbogen",
[2778] = "Billige Donnerbüchse",
[2780] = "Leichter Jagdbogen",
[2781] = "Schmutzige Donnerbüchse",
[2782] = "Verschlissener Doppelbogen",
[2783] = "Schäbige Donnerbüchse",
[2785] = "Steifer Doppelbogen",
[2786] = "Geölte Donnerbüchse",
[2824] = "Hurrikan",
[2825] = "Bogen der Sengpfeile",
[2903] = "Daryls Jagdbogen",
[2904] = "Daryls Jagdgewehr",
[3021] = "Waldläuferbogen",
[3023] = "Großkalibrige Donnerbüchse",
[3024] = "BKP 2700 \"Vollstrecker\"",
[3025] = "BKP 42 \"Ultra\"",
[3026] = "Verstärkter Bogen",
[3027] = "Schwerer Doppelbogen",
[3028] = "Longbow",
[3030] = "Schneidenpfeil",
[3033] = "Robustes Geschoss",
[3034] = "Glyphed Breastplate",
[3036] = "Schwerer Kurzbogen",
[3037] = "Peitschenholzdoppelbogen",
[3039] = "Kurzer Eschenbogen",
[3040] = "Vorderlader des Jägers",
[3041] = "Donnerbüchse \"Magierauge\"",
[3042] = "BKP \"Spatz\" Kleinkaliber",
[3078] = "Nagaherzbohrer",
[3079] = "Skorns Gewehr",
[3430] = "Heckenschützengewehr",
[3464] = "Gefiederter Pfeil",
[3465] = "Explosivgeschoss",
[3493] = "Raptor-Ex",
[3567] = "Zwergische Angelrute",
[3742] = "Bogen des Plünderns",
[3778] = "Gespannter Kompositbogen",
[3780] = "Langläufige Muskete",
[4025] = "Ausbalancierter Langbogen",
[4026] = "Schildwachenmuskete",
[4086] = "Blitzgewehr",
[4087] = "Volltrefferbogen",
[4089] = "Querschlägerbüchse",
[4110] = "Meisterjägerbogen",
[4111] = "Gewehr des Meisterjägers",
[4127] = "Schrapnellblaster",
[4362] = "Raues Schießeisen",
[4369] = "Tödliche Donnerbüchse",
[4372] = "Liebevoll hergestelltes Schießeisen",
[4379] = "Versilberte Schrotflinte",
[4383] = "Mondsichtgewehr",
[4474] = "Rabenholzbogen",
[4576] = "Leichter Bogen",
[4577] = "Kompakte Schrotflinte",
[4763] = "Blackwood Recurve Bow",
[4931] = "Hickorykurzbogen",
[4960] = "Blitzkügelchen",
[5258] = "Monster - Bow, Black",
[5259] = "Monster - Bow, Red",
[5260] = "Monster - Bow, Brown",
[5261] = "Monster - Bow, Gray",
[5262] = "Monster - Bow, Dark Brown",
[5309] = "Freibeutermuskete",
[5346] = "Orcischer Kampfbogen",
[5568] = "Glatter Kiesel",
[5596] = "Eschenholzbogen",
[5748] = "Centaur Longbow",
[5817] = "Lunarisbogen",
[6315] = "Stahlpfeilarmbrust",
[6469] = "Giftschlag",
[6696] = "Nachtpirscherbogen",
[6739] = "Klippenläufers Ziel",
[6798] = "Schmetterprügel",
[7729] = "Chesterfallmuskete",
[8067] = "Gefertigtes leichtes Geschoss",
[8068] = "Gefertigtes schweres Geschoss",
[8069] = "Gefertigtes robustes Geschoss",
[8179] = "Kadettenbogen",
[8180] = "Jagdbogen",
[8181] = "Jagdgewehr",
[8182] = "Schrotgewehr",
[8183] = "Präzisionsbogen",
[8188] = "Explosive Schrotflinte",
[9399] = "Präzisionspfeil",
[9400] = "Baelogs Kurzbogen",
[9412] = "Galganns Feuerblaster",
[9422] = "Buschmeister der Schattenschmiede",
[9426] = "Monolithbogen",
[9456] = "Glasschießprügel",
[9487] = "Hightech-Superschusswaffe",
[10508] = "Mithrildonnerbüchse",
[10510] = "Schwerkalibriges Mithrilgewehr",
[10512] = "Stark einschlagende Mithrilpatronen",
[10513] = "Gyromithrilgeschoss",
[10567] = "Stachelschießer",
[10579] = "Explosive Arrow",
[10624] = "Stechbogen",
[11021] = "Monster - Big Sniper Gun",
[11284] = "Genaue Patronen",
[11285] = "Gezackter Pfeil",
[11303] = "Feiner Kurzbogen",
[11304] = "Feiner Langbogen",
[11305] = "Handfester Kurzbogen",
[11306] = "Stabiler Doppelbogen",
[11307] = "Massiver Langbogen",
[11308] = "Sylvankurzbogen",
[11628] = "Hundemeisterbogen",
[11629] = "Hundemeisterflinte",
[11630] = "Felssplitterkügelchen",
[12446] = "Ambossarmuskete",
[12447] = "Distelholzbogen",
[12448] = "Leichtes Jagdgewehr",
[12449] = "Primitiver Bogen",
[12523] = "Monster - Gun, Silver Musket",
[12651] = "Schwarzkrähe",
[12653] = "Zerfetzhaken",
[12654] = "Verdammnisgeschoss",
[13019] = "Harpyienklauenkurzbogen",
[13020] = "Bogen des Himmelsstürmers",
[13021] = "Einfädler",
[13022] = "Greifenflügellangbogen",
[13023] = "Adlerhornlangbogen",
[13037] = "Kristallfichtenstecher",
[13038] = "Windhauch",
[13039] = "Schädelspalterarmbrust",
[13040] = "Herzsuchende Armbrust",
[13136] = "Klein Timmys Blasrohr",
[13137] = "Eisenwirker",
[13138] = "Der Verstummer",
[13139] = "Bauchripper",
[13146] = "Kugelspeiende Schrotflinte",
[13147] = "Monster - Bow, White",
[13175] = "Voones Zitterbogen",
[13248] = "Explosionsschuss-Arkebuse",
[13377] = "Miniaturkanonenkugeln",
[13380] = "Willeys tragbare Haubitze",
[13474] = "Bauer Dalsons Schrotflinte",
[13824] = "Doppellangbogen",
[13825] = "Scharfe Muskete",
[13923] = "Monster - Gun, Tauren Blade Silver",
[13924] = "Monster - Gun, Tauren Scope Blade Feathered Silver Deluxe",
[14105] = "Monster - Bow, C01/B02 White",
[14118] = "Monster - Bow, C02/B02 Black",
[14394] = "Durability Bow",
[14642] = "Monster - Gun, Tauren Feathers Silver",
[15205] = "Gewehr der Eulensicht",
[15284] = "Langer Kampfbogen",
[15285] = "Langbogen des Bogenschützen",
[15286] = "Rotholzlangbogen",
[15287] = "Kreuzzüglerbogen",
[15288] = "Durchschlagkräftiger Hornbogen",
[15289] = "Erzschlagbogen",
[15291] = "Harpyienstachler",
[15294] = "Belagerungsbogen",
[15295] = "Feuerfederbogen",
[15296] = "Falkenauges Bogen",
[15322] = "Glattlaufschusswaffe",
[15323] = "Zündschrotflinte",
[15324] = "Uferbachgewehr",
[15325] = "Scharfschützenarkebuse",
[15460] = "Monster - Gun, Shotgun",
[15691] = "Minischrotflinte",
[15807] = "Leichte Armbrust",
[15808] = "Feine leichte Armbrust",
[15809] = "Schwere Armbrust",
[15995] = "Thoriumgewehr",
[15997] = "Thoriumpatronen",
[16004] = "Dunkeleisengewehr",
[16007] = "Fehlerloses Arkanitgewehr",
[16622] = "Dornenwerfer",
[16992] = "Smokeys Sprengstoffschleuder",
[16996] = "Blutholzbogen",
[17042] = "Nagelspeier",
[17069] = "Mal des Schlägers",
[17072] = "Blasterwerfer",
[17686] = "Meisterjägerbogen",
[17687] = "Gewehr des Meisterjägers",
[17717] = "Megaschussgewehr",
[17753] = "Ziel des tiefgrünen Bewahrers",
[18042] = "Thoriumpfeile",
[18282] = "Kernscharfschützengewehr",
[18323] = "Satyrbogen",
[18388] = "Steinzertrümmerer",
[18460] = "Unausgereifte Handkanone",
[18482] = "Ogerzahnstocherschießer",
[18680] = "Uralter Knochenbogen",
[18713] = "Rhok'delar, Langbogen der uralten Bewahrer",
[18729] = "Kreischender Bogen",
[18738] = "Panzerrückgratarmbrust",
[18755] = "Xorothianischer Feuerstab",
[18833] = "Volltreffer des Großmarschalls",
[18835] = "Doppelbogen des Obersten Kriegsfürsten",
[18836] = "Repetierarmbrust des Großmarschalls",
[18837] = "Armbrust des Obersten Kriegsfürsten",
[18855] = "Handkanone des Großmarschalls",
[18860] = "Der Straßenfeger des Obersten Kriegsfürsten",
[19082] = "Monster - Fire Arrow",
[19107] = "Blutsucher",
[19114] = "Hochlandbogen",
[19316] = "Eisgewirkter Pfeil",
[19317] = "Eisgewirkte Kugel",
[19350] = "Herzensbrecher",
[19361] = "Ashjre'thul, Armbrust der Pein",
[19368] = "Drachenodemhandkanone",
[19558] = "Bogen der Vorhut",
[19559] = "Bogen der Vorhut",
[19560] = "Bogen der Vorhut",
[19561] = "Bogen der Vorhut",
[19562] = "Bogen des Kundschafters",
[19563] = "Bogen des Kundschafters",
[19564] = "Bogen des Kundschafters",
[19565] = "Bogen des Kundschafters",
[19853] = "Zwergenzerstörer der Gurubashi",
[19993] = "Hoodoojagdbogen",
[20038] = "Mandokirs Stachel",
[20245] = "90 Green Warrior Gun",
[20285] = "63 Green Warrior Gun",
[20299] = "90 Green Rogue Bow",
[20313] = "63 Green Rogue Bow",
[20368] = "Bland Bow of Steadiness",
[20437] = "Bogen der Vorhut",
[20438] = "Bogen des Kundschafters",
[20488] = "Rhok'delar, Langbogen der uralten Bewahrer DEP",
[20599] = "Polierte Eisenholzarmbrust",
[20646] = "Sandschreitermal",
[20663] = "Durchschlagskräftiger Bogen",
[20722] = "Kristallprojektilwerfer",
[21272] = "Gesegnete Qirajimuskete",
[21459] = "Armbrust der bevorstehenden Verdammnis",
[21478] = "Bogen der straffen Sehne",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Monster - Gun, PvP Horde",
[21564] = "Monster - Gun, Kaldorei PVP Alliance",
[21616] = "Huhurans Stachel",
[21800] = "Silithidhülsenzünder",
[22318] = "Malgens Langbogen",
[22347] = "Fahrads selbstladende Repetierarmbrust",
[22656] = "Der Läuterer",
[22810] = "Toxindüse",
[22811] = "Seelenstrang",
[22812] = "Nerubischer Sklavenjäger",
[23557] = "Larve des großen Wurms",
[41023] = "Water-logged Musket",
[41190] = "Bow of Alah'Thalas",
[41725] = "Drachenmal Kampfbogen",
[51746] = "Shadowblaster",
[51759] = "Siege Bomber",
[51768] = "Bow of Quel'Danil",
[51780] = "Ghoulslayer Shotgun",
[51794] = "Otherworldly Rifle",
[51828] = "Hawkwind Rifle",
[51844] = "Stunning Crossbow",
[51862] = "Brave's Rifle",
[55028] = "Kavdan's Patient Watch",
[55068] = "Zan's Leperification Blaster",
[55096] = "Phase-shifting Crossbow",
[55346] = "Rain of Spiders",
[55379] = "Slag Slugger",
[58016] = "Ashwood Bow",
[58083] = "Nippsy's Precision Rifle",
[58086] = "Standard Grade Rifle",
[58193] = "Demon Hair Bow",
[58284] = "Waterlogged Blunderbuss",
[60165] = "Wobblefree Fizz-rifle",
[60309] = "'Jadewood' Longbow",
[60338] = "Lordaeron Rusty Crossbow",
[60339] = "High Elven Rotten Bow",
[60440] = "Bloodscalp Longbow",
[60506] = "Vigilance",
[60545] = "Techrifle X-TREME 5200",
[60624] = "Goldplated Royal Crossbow",
[60782] = "Shieldbreaker Arbalest",
[60821] = "Theramore Armbrust",
[60882] = "Magram Windstriker",
[60953] = "Brackenwall Longbow",
[61011] = "Flintlocke's Hand Cannon",
[61068] = "Dark Iron Desecrator",
[61165] = "Bow of the Night Huntress",
[61248] = "Beasthunter's Blunderbuss",
[61307] = "Worgen Hunter Musket",
[61383] = "Intricate Gnomish Blunderbuss",
[61472] = "Brigade Rifle",
[61525] = "Nature's Call",
[61569] = "Time Frozen Bow",
[61629] = "Farmer's Musket",
[61683] = "Battered Arbalest",
[70049] = "Worn Crossbow",
[80106] = "Miscalibrated Rifle",
[80127] = "Polished Boomstick",
[80207] = "Worn Wooden Bow",
[80223] = "Weltenwanderer Jagdbogen",
[80503] = "Well-balanced Short Bow",
[80546] = "Quel'dorei Ranger's Longbow",
[80603] = "Sturdy Short Bow",
[80646] = "Revantusk Shadow Hunter's Longbow",
[80745] = "Abomination Crossbow",
[80795] = "Burstshot Harquebus",
[80820] = "Quilflinger",
[80825] = "Flamestring Bow",
[80876] = "Silvermoon Bow",
[83094] = "Monster - Rifle2H, Mechagnome",
[83225] = "Bow of the Grove",
[83257] = "Caer Darrow Reserve Rifle",
[83452] = "Windbreaker",
[83517] = "Balanced Light Crossbow",
}
+331
View File
@@ -0,0 +1,331 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.enUS = {
[2098] = "Double-barreled Shotgun",
[2099] = "Dwarven Hand Cannon",
[2100] = "Precisely Calibrated Boomstick",
[2504] = "Worn Shortbow",
[2505] = "Polished Shortbow",
[2506] = "Hornwood Recurve Bow",
[2507] = "Laminated Recurve Bow",
[2508] = "Old Blunderbuss",
[2509] = "Ornate Blunderbuss",
[2510] = "Solid Blunderbuss",
[2511] = "Hunter's Boomstick",
[2512] = "Rough Arrow",
[2515] = "Sharp Arrow",
[2516] = "Light Shot",
[2519] = "Heavy Shot",
[2550] = "Monster - Bow, Short",
[2551] = "Monster - Crossbow",
[2552] = "Monster - Gun",
[2773] = "Cracked Shortbow",
[2774] = "Rust-covered Blunderbuss",
[2777] = "Feeble Shortbow",
[2778] = "Cheap Blunderbuss",
[2780] = "Light Hunting Bow",
[2781] = "Dirty Blunderbuss",
[2782] = "Mishandled Recurve Bow",
[2783] = "Shoddy Blunderbuss",
[2785] = "Stiff Recurve Bow",
[2786] = "Oiled Blunderbuss",
[2824] = "Hurricane",
[2825] = "Bow of Searing Arrows",
[2903] = "Daryl's Hunting Bow",
[2904] = "Daryl's Hunting Rifle",
[3021] = "Ranger Bow",
[3023] = "Large Bore Blunderbuss",
[3024] = "BKP 2700 \"Enforcer\"",
[3025] = "BKP 42 \"Ultra\"",
[3026] = "Reinforced Bow",
[3027] = "Heavy Recurve Bow",
[3028] = "Longbow",
[3030] = "Razor Arrow",
[3033] = "Solid Shot",
[3034] = "BKP \\",
[3036] = "Heavy Shortbow",
[3037] = "Whipwood Recurve Bow",
[3039] = "Short Ash Bow",
[3040] = "Hunter's Muzzle Loader",
[3041] = "\"Mage-Eye\" Blunderbuss",
[3042] = "BKP \"Sparrow\" Smallbore",
[3078] = "Naga Heartpiercer",
[3079] = "Skorn's Rifle",
[3430] = "Sniper Rifle",
[3464] = "Feathered Arrow",
[3465] = "Exploding Shot",
[3493] = "Raptor's End",
[3567] = "Dwarven Fishing Pole",
[3742] = "Bow of Plunder",
[3778] = "Taut Compound Bow",
[3780] = "Long-barreled Musket",
[4025] = "Balanced Long Bow",
[4026] = "Sentinel Musket",
[4086] = "Flash Rifle",
[4087] = "Trueshot Bow",
[4089] = "Ricochet Blunderbuss",
[4110] = "Master Hunter's Bow",
[4111] = "Master Hunter's Rifle",
[4127] = "Shrapnel Blaster",
[4362] = "Rough Boomstick",
[4369] = "Deadly Blunderbuss",
[4372] = "Lovingly Crafted Boomstick",
[4379] = "Silver-plated Shotgun",
[4383] = "Moonsight Rifle",
[4474] = "Ravenwood Bow",
[4576] = "Light Bow",
[4577] = "Compact Shotgun",
[4763] = "Blackwood Recurve Bow",
[4931] = "Hickory Shortbow",
[4960] = "Flash Pellet",
[5258] = "Monster - Bow, Black",
[5259] = "Monster - Bow, Red",
[5260] = "Monster - Bow, Brown",
[5261] = "Monster - Bow, Gray",
[5262] = "Monster - Bow, Dark Brown",
[5309] = "Privateer Musket",
[5346] = "Orcish Battle Bow",
[5568] = "Smooth Pebble",
[5596] = "Ashwood Bow",
[5748] = "Centaur Longbow",
[5817] = "Lunaris Bow",
[6315] = "Steelarrow Crossbow",
[6469] = "Venomstrike",
[6696] = "Nightstalker Bow",
[6739] = "Cliffrunner's Aim",
[6798] = "Blasting Hackbut",
[7729] = "Chesterfall Musket",
[8067] = "Crafted Light Shot",
[8068] = "Crafted Heavy Shot",
[8069] = "Crafted Solid Shot",
[8179] = "Cadet's Bow",
[8180] = "Hunting Bow",
[8181] = "Hunting Rifle",
[8182] = "Pellet Rifle",
[8183] = "Precision Bow",
[8188] = "Explosive Shotgun",
[9399] = "Precision Arrow",
[9400] = "Baelog's Shortbow",
[9412] = "Galgann's Fireblaster",
[9422] = "Shadowforge Bushmaster",
[9426] = "Monolithic Bow",
[9456] = "Glass Shooter",
[9487] = "Hi-tech Supergun",
[10508] = "Mithril Blunderbuss",
[10510] = "Mithril Heavy-bore Rifle",
[10512] = "Hi-Impact Mithril Slugs",
[10513] = "Mithril Gyro-Shot",
[10567] = "Quillshooter",
[10579] = "Explosive Arrow",
[10624] = "Stinging Bow",
[11021] = "Monster - Big Sniper Gun",
[11284] = "Accurate Slugs",
[11285] = "Jagged Arrow",
[11303] = "Fine Shortbow",
[11304] = "Fine Longbow",
[11305] = "Dense Shortbow",
[11306] = "Sturdy Recurve",
[11307] = "Massive Longbow",
[11308] = "Sylvan Shortbow",
[11628] = "Houndmaster's Bow",
[11629] = "Houndmaster's Rifle",
[11630] = "Rockshard Pellets",
[12446] = "Anvilmar Musket",
[12447] = "Thistlewood Bow",
[12448] = "Light Hunting Rifle",
[12449] = "Primitive Bow",
[12523] = "Monster - Gun, Silver Musket",
[12651] = "Blackcrow",
[12653] = "Riphook",
[12654] = "Doomshot",
[13019] = "Harpyclaw Short Bow",
[13020] = "Skystriker Bow",
[13021] = "Needle Threader",
[13022] = "Gryphonwing Long Bow",
[13023] = "Eaglehorn Long Bow",
[13037] = "Crystalpine Stinger",
[13038] = "Swiftwind",
[13039] = "Skull Splitting Crossbow",
[13040] = "Heartseeking Crossbow",
[13136] = "Lil Timmy's Peashooter",
[13137] = "Ironweaver",
[13138] = "The Silencer",
[13139] = "Guttbuster",
[13146] = "Shell Launcher Shotgun",
[13147] = "Monster - Bow, White",
[13175] = "Voone's Twitchbow",
[13248] = "Burstshot Harquebus",
[13377] = "Miniature Cannon Balls",
[13380] = "Willey's Portable Howitzer",
[13474] = "Farmer Dalson's Shotgun",
[13824] = "Recurve Long Bow",
[13825] = "Primed Musket",
[13923] = "Monster - Gun, Tauren Blade Silver",
[13924] = "Monster - Gun, Tauren Scope Blade Feathered Silver Deluxe",
[14105] = "Monster - Bow, C01/B02 White",
[14118] = "Monster - Bow, C02/B02 Black",
[14394] = "Durability Bow",
[14642] = "Monster - Gun, Tauren Feathers Silver",
[15205] = "Owlsight Rifle",
[15284] = "Long Battle Bow",
[15285] = "Archer's Longbow",
[15286] = "Long Redwood Bow",
[15287] = "Crusader Bow",
[15288] = "Blasthorn Bow",
[15289] = "Archstrike Bow",
[15291] = "Harpy Needler",
[15294] = "Siege Bow",
[15295] = "Quillfire Bow",
[15296] = "Hawkeye Bow",
[15322] = "Smoothbore Gun",
[15323] = "Percussion Shotgun",
[15324] = "Burnside Rifle",
[15325] = "Sharpshooter Harquebus",
[15460] = "Monster - Gun, Shotgun",
[15691] = "Sidegunner Shottie",
[15807] = "Light Crossbow",
[15808] = "Fine Light Crossbow",
[15809] = "Heavy Crossbow",
[15995] = "Thorium Rifle",
[15997] = "Thorium Shells",
[16004] = "Dark Iron Rifle",
[16007] = "Flawless Arcanite Rifle",
[16622] = "Thornflinger",
[16992] = "Smokey's Explosive Launcher",
[16996] = "Gorewood Bow",
[17042] = "Nail Spitter",
[17069] = "Striker's Mark",
[17072] = "Blastershot Launcher",
[17686] = "Master Hunter's Bow",
[17687] = "Master Hunter's Rifle",
[17717] = "Megashot Rifle",
[17753] = "Verdant Keeper's Aim",
[18042] = "Thorium Headed Arrow",
[18282] = "Core Marksman Rifle",
[18323] = "Satyr's Bow",
[18388] = "Stoneshatter",
[18460] = "Unsophisticated Hand Cannon",
[18482] = "Ogre Toothpick Shooter",
[18680] = "Ancient Bone Bow",
[18713] = "Rhok'delar, Longbow of the Ancient Keepers",
[18729] = "Screeching Bow",
[18738] = "Carapace Spine Crossbow",
[18755] = "Xorothian Firestick",
[18833] = "Grand Marshal's Bullseye",
[18835] = "High Warlord's Recurve",
[18836] = "Grand Marshal's Repeater",
[18837] = "High Warlord's Crossbow",
[18855] = "Grand Marshal's Hand Cannon",
[18860] = "High Warlord's Street Sweeper",
[19082] = "Monster - Fire Arrow",
[19107] = "Bloodseeker",
[19114] = "Highland Bow",
[19316] = "Ice Threaded Arrow",
[19317] = "Ice Threaded Bullet",
[19350] = "Heartstriker",
[19361] = "Ashjre'thul, Crossbow of Smiting",
[19368] = "Dragonbreath Hand Cannon",
[19558] = "Outrider's Bow",
[19559] = "Outrider's Bow",
[19560] = "Outrider's Bow",
[19561] = "Outrider's Bow",
[19562] = "Outrunner's Bow",
[19563] = "Outrunner's Bow",
[19564] = "Outrunner's Bow",
[19565] = "Outrunner's Bow",
[19853] = "Gurubashi Dwarf Destroyer",
[19993] = "Hoodoo Hunting Bow",
[20038] = "Mandokir's Sting",
[20245] = "90 Green Warrior Gun",
[20285] = "63 Green Warrior Gun",
[20299] = "90 Green Rogue Bow",
[20313] = "63 Green Rogue Bow",
[20368] = "Bland Bow of Steadiness",
[20437] = "Outrider's Bow",
[20438] = "Outrunner's Bow",
[20488] = "Rhok'delar, Longbow of the Ancient Keepers DEP",
[20599] = "Polished Ironwood Crossbow",
[20646] = "Sandstrider's Mark",
[20663] = "Deep Strike Bow",
[20722] = "Crystal Slugthrower",
[21272] = "Blessed Qiraji Musket",
[21459] = "Crossbow of Imminent Doom",
[21478] = "Bow of Taut Sinew",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Monster - Gun, PvP Horde",
[21564] = "Monster - Gun, Kaldorei PVP Alliance",
[21616] = "Huhuran's Stinger",
[21800] = "Silithid Husked Launcher",
[22318] = "Malgen's Long Bow",
[22347] = "Fahrad's Reloading Repeater",
[22656] = "The Purifier",
[22810] = "Toxin Injector",
[22811] = "Soulstring",
[22812] = "Nerubian Slavemaker",
[23557] = "Larvae of the Great Worm",
[41023] = "Water-logged Musket",
[41190] = "Bow of Alah'Thalas",
[41725] = "Dragonmaw Battle Bow",
[51746] = "Shadowblaster",
[51759] = "Siege Bomber",
[51768] = "Bow of Quel'Danil",
[51780] = "Ghoulslayer Shotgun",
[51794] = "Otherworldly Rifle",
[51828] = "Hawkwind Rifle",
[51844] = "Stunning Crossbow",
[51862] = "Brave's Rifle",
[55028] = "Kavdan's Patient Watch",
[55068] = "Zan's Leperification Blaster",
[55096] = "Phase-shifting Crossbow",
[55346] = "Rain of Spiders",
[55379] = "Slag Slugger",
[58016] = "Ashwood Bow",
[58083] = "Nippsy's Precision Rifle",
[58086] = "Standard Grade Rifle",
[58193] = "Demon Hair Bow",
[58284] = "Waterlogged Blunderbuss",
[60165] = "Wobblefree Fizz-rifle",
[60309] = "'Jadewood' Longbow",
[60338] = "Lordaeron Rusty Crossbow",
[60339] = "High Elven Rotten Bow",
[60440] = "Bloodscalp Longbow",
[60506] = "Vigilance",
[60545] = "Techrifle X-TREME 5200",
[60624] = "Goldplated Royal Crossbow",
[60782] = "Shieldbreaker Arbalest",
[60821] = "Theramore Arbalest",
[60882] = "Magram Windstriker",
[60953] = "Brackenwall Longbow",
[61011] = "Flintlocke's Hand Cannon",
[61068] = "Dark Iron Desecrator",
[61165] = "Bow of the Night Huntress",
[61248] = "Beasthunter's Blunderbuss",
[61307] = "Worgen Hunter Musket",
[61383] = "Intricate Gnomish Blunderbuss",
[61472] = "Brigade Rifle",
[61525] = "Nature's Call",
[61569] = "Time Frozen Bow",
[61629] = "Farmer's Musket",
[61683] = "Battered Arbalest",
[70049] = "Worn Crossbow",
[80106] = "Miscalibrated Rifle",
[80127] = "Polished Boomstick",
[80207] = "Worn Wooden Bow",
[80223] = "Farstrider Lodge Protector's Bow",
[80503] = "Well-balanced Short Bow",
[80546] = "Quel'dorei Ranger's Longbow",
[80603] = "Sturdy Short Bow",
[80646] = "Revantusk Shadow Hunter's Longbow",
[80745] = "Abomination Crossbow",
[80795] = "Burstshot Harquebus",
[80820] = "Quilflinger",
[80825] = "Flamestring Bow",
[80876] = "Silvermoon Bow",
[83094] = "Monster - Rifle2H, Mechagnome",
[83225] = "Bow of the Grove",
[83257] = "Caer Darrow Reserve Rifle",
[83452] = "Windbreaker",
[83517] = "Balanced Light Crossbow",
}
+331
View File
@@ -0,0 +1,331 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.esES = {
[2098] = "Escopeta de Doble Cañón",
[2099] = "Cañón de Mano Enano",
[2100] = "Escopeta de Precisión Calibrada",
[2504] = "Arco Corto Desgastado",
[2505] = "Arco Corto Pulido",
[2506] = "Arco Recurvo de Madera de Cuerno",
[2507] = "Arco Recurvo Laminado",
[2508] = "Trabuco Viejo",
[2509] = "Trabuco Ornamentado",
[2510] = "Trabuco Sólido",
[2511] = "Escopeta de Cazador",
[2512] = "Flecha Áspera",
[2515] = "Flecha Afilada",
[2516] = "Disparo Ligero",
[2519] = "Disparo Pesado",
[2550] = "Monster - Bow, Short",
[2551] = "Monster - Crossbow",
[2552] = "Monster - Gun",
[2773] = "Arco Corto Roto",
[2774] = "Trabuco Cubierto de Óxido",
[2777] = "Arco Corto Débil",
[2778] = "Blunderbuss Barato",
[2780] = "Arco de Caza Ligero",
[2781] = "Trabuco Sucio",
[2782] = "Arco Recurvo Mal Manejado",
[2783] = "Trabuco de Mala Calidad",
[2785] = "Arco Recurvo Rígido",
[2786] = "Trabuco Aceitado",
[2824] = "Huracán",
[2825] = "Arco de Flechas Ardientes",
[2903] = "Arco de Caza de Daryl",
[2904] = "Rifle de Caza de Daryl",
[3021] = "Arco de Guardabosques",
[3023] = "Trabuco de Gran Calibre",
[3024] = "BKP 2700 \"Déspota\"",
[3025] = "BKP 42 \"Ultra\"",
[3026] = "Arco Reforzado",
[3027] = "Arco Recurvo Pesado",
[3028] = "Arco Largo",
[3030] = "Flecha de Navaja",
[3033] = "Disparo Sólido",
[3034] = "Disparo \"Impacto\" BKP",
[3036] = "Arco Corto Pesado",
[3037] = "Arco Recurvo de Madera de Látigo",
[3039] = "Arco de Fresno Corto",
[3040] = "Cargador de Bozal de Cazador",
[3041] = "Trabuco \"Ojo de Mago\"",
[3042] = "Pequeño Calibre \"Gorrión\" BKP",
[3078] = "Traspasa Corazones Naga",
[3079] = "Rifle de Skorn",
[3430] = "Rifle de Francotirador",
[3464] = "Flecha Emplumada",
[3465] = "Disparo Explosivo",
[3493] = "Fin del Raptor",
[3567] = "Caña de Pescar Enana",
[3742] = "Arco del Saqueo",
[3778] = "Arco Compuesto Tenso",
[3780] = "Mosquete de Cañón Largo",
[4025] = "Arco Largo Equilibrado",
[4026] = "Mosquete de Centinela",
[4086] = "Rifle de Destello",
[4087] = "Arco de Tiro Certero",
[4089] = "Trabuco de Rebote",
[4110] = "Arco de Maestro Cazador",
[4111] = "Rifle de Maestro Cazador",
[4127] = "Lanzador de Metralla",
[4362] = "Escopeta Rugosa",
[4369] = "Pistola de Perdigones Mortal",
[4372] = "Escopeta Elaborada con Amor",
[4379] = "Escopeta Plateada",
[4383] = "Rifle de Vista Lunar",
[4474] = "Arco de Bosque Cuervo",
[4576] = "Arco Ligero",
[4577] = "Escopeta Compacta",
[4763] = "Arco Recurvado Blackwood",
[4931] = "Arco Corto de Nogal Americano",
[4960] = "Perdigón de Destello",
[5258] = "Monster - Bow, Black",
[5259] = "Monster - Bow, Red",
[5260] = "Monster - Bow, Brown",
[5261] = "Monster - Bow, Gray",
[5262] = "Monster - Bow, Dark Brown",
[5309] = "Mosquete de Corsario",
[5346] = "Arco de Batalla Orco",
[5568] = "Guijarro Suave",
[5596] = "Arco de Madera de Fresno",
[5748] = "Arco Largo Centauro",
[5817] = "Arco Lunaris",
[6315] = "Ballesta de Flecha de Acero",
[6469] = "Golpe de Veneno",
[6696] = "Arco de Acechador Nocturno",
[6739] = "Objetivo de Abiscorredor",
[6798] = "Arcabuz Explosivo",
[7729] = "Mosquete Chesterfall",
[8067] = "Munición Ligera Fabricada",
[8068] = "Munición Pesada Fabricada",
[8069] = "Munición Sólida Fabricada",
[8179] = "Arco de Cadete",
[8180] = "Arco de Caza",
[8181] = "Rifle de Caza",
[8182] = "Rifle de Perdigones",
[8183] = "Arco de Precisión",
[8188] = "Escopeta Explosiva",
[9399] = "Flecha de Precisión",
[9400] = "Arco corto de Baelog",
[9412] = "Lanzador de Fuego de Galgann",
[9422] = "Maestro de Arbustos de Forjatiniebla",
[9426] = "Arco Monolítico",
[9456] = "Lanzador de Vidrio",
[9487] = "Súper Pistola de Alta Tecnología",
[10508] = "Trabuco de Mithril",
[10510] = "Rifle de Gran Calibre de Mithril",
[10512] = "Balas de Mithril de Alto Impacto",
[10513] = "Girodisparo de Mithril",
[10567] = "Lanzador de Plumas",
[10579] = "Flecha Explosiva",
[10624] = "Arco Punzante",
[11021] = "Monster - Big Sniper Gun",
[11284] = "Balas Precisas",
[11285] = "Flecha Dentada",
[11303] = "Arco Corto Fino",
[11304] = "Arco Largo Fino",
[11305] = "Arco Corto Denso",
[11306] = "Recurvo Robusto",
[11307] = "Arco Largo Masivo",
[11308] = "Arco Corto Silvano",
[11628] = "Arco del Amo de los Perros",
[11629] = "Rifle de Maestro de Sabuesos",
[11630] = "Perdigones de Fragmento de Roca",
[12446] = "Mosquete Yunquemar",
[12447] = "Arco de Madera de Cardo",
[12448] = "Rifle de Caza Ligero",
[12449] = "Arco Primitivo",
[12523] = "Monster - Gun, Silver Musket",
[12651] = "Cuervo Negro",
[12653] = "Gancho Desgarrador",
[12654] = "Disparo Mortal",
[13019] = "Arco Corto de Garra de Arpía",
[13020] = "Arco de Golpe Celestial",
[13021] = "Enhebrador de Agujas",
[13022] = "Arco Largo Ala de Grifo",
[13023] = "Arco Largo Cuerno de Águila",
[13037] = "Aguijón Cristalpine",
[13038] = "Viento Rápido",
[13039] = "Ballesta Trituracráneos",
[13040] = "Ballesta Buscacorazones",
[13136] = "Lanzador de Guisantes de Lil Timmy",
[13137] = "Tejedor de Hierro",
[13138] = "El Silenciador",
[13139] = "Destripador de Tripas",
[13146] = "Escopeta Lanzadora de Proyectiles",
[13147] = "Monster - Bow, White",
[13175] = "Arco Espasmódico de Voone",
[13248] = "Arquería Burstshot",
[13377] = "Balas de Cañón en Miniatura",
[13380] = "Obús Portátil de Willey",
[13474] = "Escopeta del Granjero Dalson",
[13824] = "Arco Largo Recurvo",
[13825] = "Mosquete Cebado",
[13923] = "Monster - Gun, Tauren Blade Silver",
[13924] = "Monster - Gun, Tauren Scope Blade Feathered Silver Deluxe",
[14105] = "Monster - Bow, C01/B02 White",
[14118] = "Monster - Bow, C02/B02 Black",
[14394] = "Arco de Durabilidad",
[14642] = "Monster - Gun, Tauren Feathers Silver",
[15205] = "Rifle de Vista de Búho",
[15284] = "Arco de Batalla Largo",
[15285] = "Arco Largo de Arquero",
[15286] = "Arco Largo de Secoya",
[15287] = "Arco de Cruzado",
[15288] = "Arco de Espina Explosiva",
[15289] = "Arco de Golpe de Arco",
[15291] = "Lanzador de Arpías",
[15294] = "Arco de Asedio",
[15295] = "Arco de Fuego de Púa",
[15296] = "Arco de Ojo de Halcón",
[15322] = "Pistola de Ánima Lisa",
[15323] = "Escopeta de Percusión",
[15324] = "Rifle Burnside",
[15325] = "Arcabuz de Tirador",
[15460] = "Monster - Gun, Shotgun",
[15691] = "Escopeta de Artillero Lateral",
[15807] = "Ballesta Ligera",
[15808] = "Ballesta Ligera Fina",
[15809] = "Ballesta Pesada",
[15995] = "Rifle de Torio",
[15997] = "Proyectiles de Torio",
[16004] = "Rifle Hierro Negro",
[16007] = "Rifle de Arcanita Impecable",
[16622] = "Lanzador de Espinas",
[16992] = "Lanzador Explosivo de Smokey",
[16996] = "Arco de Madera de Sangre",
[17042] = "Escupidor de Clavos",
[17069] = "Marca de Atacante",
[17072] = "Lanzador de Disparo Explosivo",
[17686] = "Arco de Maestro Cazador",
[17687] = "Rifle de Maestro Cazador",
[17717] = "Rifle de Megadisparo",
[17753] = "Puntería del Guardián Verde",
[18042] = "Flecha con Cabeza de Torio",
[18282] = "Rifle del Tirador de Núcleo",
[18323] = "Arco de Sátiro",
[18388] = "Rompepiedras",
[18460] = "Cañón de Mano Poco Sofisticado",
[18482] = "Lanzador de Palillos de Dientes de Ogro",
[18680] = "Arco de Hueso Antiguo",
[18713] = "Rhok'delar, Arco Largo de los Guardianes Ancestrales",
[18729] = "Arco Chillón",
[18738] = "Ballesta Carapacho Espinal",
[18755] = "Palo de Fuego Xorothiano",
[18833] = "Tiro al Blanco de Gran Mariscal",
[18835] = "Arco Recurvo del Gran Señor de la Guerra",
[18836] = "Repetidor del Gran Mariscal",
[18837] = "Ballesta del Gran Señor de la Guerra",
[18855] = "Cañón de Mano de Gran Mariscal",
[18860] = "Barredora de Calles del Gran Señor de la Guerra",
[19082] = "Monster - Fire Arrow",
[19107] = "Buscasangre",
[19114] = "Arco de las Tierras Altas",
[19316] = "Flecha de Hilo de Hielo",
[19317] = "Bala con Hilo de Hielo",
[19350] = "Golpe al Corazón",
[19361] = "Ashjre'thul, Ballesta de paliza",
[19368] = "Cañón de Mano Aliento de Dragón",
[19558] = "Arco de Corredor",
[19559] = "Arco de Corredor",
[19560] = "Arco de Corredor",
[19561] = "Arco de Corredor",
[19562] = "Arco de Corredor",
[19563] = "Arco de Corredor",
[19564] = "Arco de Corredor",
[19565] = "Arco de Corredor",
[19853] = "Destructor Enano Gurubashi",
[19993] = "Arco de Caza Vudú",
[20038] = "Aguijón de Mandokir",
[20245] = "90 Pistola del Guerrero Verde",
[20285] = "63 Pistola del Guerrero Verde",
[20299] = "90 Arco del Pícaro Verde",
[20313] = "63 Arco del Pícaro Verde",
[20368] = "Arco Insípido de Estabilidad",
[20437] = "Arco de Corredor",
[20438] = "Arco de Corredor",
[20488] = "Rhok'delar, Arco Largo de los Guardianes Ancestrales DEP",
[20599] = "Ballesta de Madera de Hierro Pulida",
[20646] = "Marca de Zancudo de Arena",
[20663] = "Arco de Golpe Profundo",
[20722] = "Lanzador de Lodo Cristalino",
[21272] = "Mosquete Qiraji Bendito",
[21459] = "Ballesta de Doom Inminente",
[21478] = "Arco de Tendones Tensos",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Monster - Gun, PvP Horde",
[21564] = "Monster - Gun, Kaldorei PVP Alliance",
[21616] = "Aguijón de Huhuran",
[21800] = "Lanzador de Cáscara de Silítido",
[22318] = "Arco Largo de Malgen",
[22347] = "Repetidor de Recarga de Fahrad",
[22656] = "El Purificador",
[22810] = "Inyector de Toxinas",
[22811] = "Hilo de Cuerda de Alma",
[22812] = "Creador de Esclavos Nerubiano",
[23557] = "Larvas del Gran Gusano",
[41023] = "Mosquete Empapado de Agua",
[41190] = "Arco de Alah'Thalas",
[41725] = "Arco de Batalla Mandíbula de Dragón",
[51746] = "Destructor de Sombras",
[51759] = "Pantalones de Bombardero de Asedio",
[51768] = "Arco de Quel'Danil",
[51780] = "Escopeta Matagules",
[51794] = "Rifle de Otro Mundo",
[51828] = "Rifle de Viento de Halcón",
[51844] = "Ballesta Aturdidora",
[51862] = "Rifle del Valiente",
[55028] = "Vigilancia Paciente de Kavdan",
[55068] = "Lanzador de Leprificación de Zan",
[55096] = "Ballesta de Cambio de Fase",
[55346] = "Lluvia de Arañas",
[55379] = "Golpeador de Babosas de Escoria",
[58016] = "Arco de Madera de Fresno",
[58083] = "Rifle de Precisión de Nippsy",
[58086] = "Rifle de Grado Estándar",
[58193] = "Arco de Cabello Demoníaco",
[58284] = "Trabuco Empapado",
[60165] = "Rifle de Fizz Sin Tambaleo",
[60309] = "Arco Largo de Madera de Jade",
[60338] = "Ballesta Oxidada de Lordaeron",
[60339] = "Arco Podrido Alto Elfo",
[60440] = "Arco Largo de Bloodscalp",
[60506] = "Vigilancia",
[60545] = "Tecnorifle X-TREME 5200",
[60624] = "Ballesta Real Chapada en Oro",
[60782] = "Arbalesta Rompeescudos",
[60821] = "Arbalesta de Theramore",
[60882] = "Viento de Magram",
[60953] = "Arco Largo de Brackenwall",
[61011] = "Cañón de Mano de Flintlocke",
[61068] = "Desacreditador de Hierro Oscuro",
[61165] = "Arco de la Cazadora Nocturna",
[61248] = "Trabuco de Cazabestias",
[61307] = "Mosquete de Cazador Huargo",
[61383] = "Trabuco Gnómico Intrincado",
[61472] = "Rifle de Brigada",
[61525] = "Llamada de la Naturaleza",
[61569] = "Arco de Tiempo Congelado",
[61629] = "Mosquete de Granjero",
[61683] = "Ballesta Deteriorada",
[70049] = "Ballesta Desgastada",
[80106] = "Rifle Descalibrado",
[80127] = "Escopeta Pulida",
[80207] = "Arco de Madera Desgastado",
[80223] = "Arco del Protector de la Logia de los Exploradores Lejanos",
[80503] = "Arco Corto Bien Equilibrado",
[80546] = "Arco Largo del Guardabosques Quel'dorei",
[80603] = "Arco Corto Robusto",
[80646] = "Arco Largo del Cazador de Sombras Revantusk",
[80745] = "Ballesta de Abominación",
[80795] = "Harquebus de Disparo Rápido",
[80820] = "Lanzapúas",
[80825] = "Arco de Cuerda de Llama",
[80876] = "Arco de Lunargenta",
[83094] = "Monstruo - Rifle 2H, Mecagnomo",
[83225] = "Arco del Bosque",
[83257] = "Rifle de Reserva de Caer Darrow",
[83452] = "Cortavientos",
[83517] = "Ballesta Ligera Equilibrada",
}
+331
View File
@@ -0,0 +1,331 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.ptBR = {
[2098] = "Espingarda de Dois Canos",
[2099] = "Canhão de Mão Anão",
[2100] = "Boomstick Precisamente Calibrado",
[2504] = "Arco Curto Usado",
[2505] = "Arco Curto Polido",
[2506] = "Arco Recurvo de Hornwood",
[2507] = "Arco Recurvado Laminado",
[2508] = "Blunderbuss Antigo",
[2509] = "Mosquete Ornamentado",
[2510] = "Blunderbuss Sólido",
[2511] = "Boomstick do Caçador",
[2512] = "Flecha Bruta",
[2515] = "Flecha Afiada",
[2516] = "Tiro Leve",
[2519] = "Munição Pesada",
[2550] = "Monster - Bow, Short",
[2551] = "Monster - Crossbow",
[2552] = "Monster - Gun",
[2773] = "Arco Curto Rachado",
[2774] = "Blunderbuss Coberto de Ferrugem",
[2777] = "Arco Fraco",
[2778] = "Espingarda Barata",
[2780] = "Arco de Caça Leve",
[2781] = "Bate-bucha Sujo",
[2782] = "Arco Recurvo Mal Manipulado",
[2783] = "Blunderbuss de Qualidade Inferior",
[2785] = "Arco Recurvado Rígido",
[2786] = "Blunderbuss Oiled",
[2824] = "Furacão",
[2825] = "Arco de Flechas Incendiárias",
[2903] = "Arco de Caça de Daryl",
[2904] = "Rifle de Caça de Daryl",
[3021] = "Arco de Ranger",
[3023] = "Blunderbuss Grande",
[3024] = "\"Executor\" BKP 2700",
[3025] = "\"Ultra\" BKP 42",
[3026] = "Arco Reforçado",
[3027] = "Arco Recurvo Pesado",
[3028] = "Arco Longo",
[3030] = "Flecha Lâmina",
[3033] = "Tiro Sólido",
[3034] = "Projétil \"Impacto\" BKP",
[3036] = "Arco Curto Pesado",
[3037] = "Arco Recurvo de Madeira de Chicote",
[3039] = "Arco Curto de Cinzas",
[3040] = "Muzzle Loader do Caçador",
[3041] = "Bacamarte Olho de Mago",
[3042] = "Pequeno Canhão \"Sparrow\" BKP",
[3078] = "Coração Naga",
[3079] = "Rifle de Skorn",
[3430] = "Rifle de Atirador",
[3464] = "Flecha com Pena",
[3465] = "Tiro Explosivo",
[3493] = "Fim do Raptor",
[3567] = "Bastão de Pesca Anão",
[3742] = "Arco do Saque",
[3778] = "Arco de Composto Tenso",
[3780] = "Mosquete de Cano Longo",
[4025] = "Arco Longo Balanceado",
[4026] = "Mosquete Sentinel",
[4086] = "Rifle Flash",
[4087] = "Arco de Tiro Verdadeiro",
[4089] = "Blunderbuss Ricochete",
[4110] = "Arco do Mestre Caçador",
[4111] = "Rifle do Mestre Caçador",
[4127] = "Blaster de Estilhaços",
[4362] = "Boomstick Bruto",
[4369] = "Bacamarte Mortal",
[4372] = "Boomstick Feito Com Carinho",
[4379] = "Espingarda Revestida de Prata",
[4383] = "Rifle Moonsight",
[4474] = "Arco de Ravenwood",
[4576] = "Arco Leve",
[4577] = "Espingarda Compacta",
[4763] = "Arco Recurvo de Blackwood",
[4931] = "Arco Curto de Nogueira",
[4960] = "Pellet Flash",
[5258] = "Monster - Bow, Black",
[5259] = "Monster - Bow, Red",
[5260] = "Monster - Bow, Brown",
[5261] = "Monster - Bow, Gray",
[5262] = "Monster - Bow, Dark Brown",
[5309] = "Mosquete do Privateer",
[5346] = "Arco de Batalha Orc",
[5568] = "Pedra Suave",
[5596] = "Arco de Freixo",
[5748] = "Arco Longo de Centauro",
[5817] = "Arco Lunaris",
[6315] = "Bestas de Aço",
[6469] = "Golpe Venenoso",
[6696] = "Arco do Caçador Noturno",
[6739] = "Mira do Corredor de Penhasco",
[6798] = "Arcabuz Explosivo",
[7729] = "Mosquete de Chesterfall",
[8067] = "Tiros Leves Artesanais",
[8068] = "Tiros Pesados Artesanais",
[8069] = "Tiros Sólidos Artesanais",
[8179] = "Arco do Cadete",
[8180] = "Arco de Caça",
[8181] = "Rifle de Caçador",
[8182] = "Rifle de Pelotões",
[8183] = "Arco de Precisão",
[8188] = "Espingarda Explosiva",
[9399] = "Flecha de Precisão",
[9400] = "Arco Curto de Baelog",
[9412] = "Explosor de Fogo de Galgann",
[9422] = "Bushmaster Shadowforge",
[9426] = "Arco Monolítico",
[9456] = "Atirador de Vidro",
[9487] = "Supergun de Alta Tecnologia",
[10508] = "Blunderbuss de Mithril",
[10510] = "Rifle de Alta Potência de Mithril",
[10512] = "Balas de Mithril de Alto Impacto",
[10513] = "Gyro-Shot de Mithril",
[10567] = "Atirador Quilboar",
[10579] = "Flecha Explosiva",
[10624] = "Arco Picante",
[11021] = "Monster - Big Sniper Gun",
[11284] = "Projéteis Precisos",
[11285] = "Espeto de Jadestone",
[11303] = "Arco Curto Fino",
[11304] = "Arco Longo Fino",
[11305] = "Arco Curto Denso",
[11306] = "Arco Recurvo Sólido",
[11307] = "Arco Longo Massivo",
[11308] = "Arco Curto Silvano",
[11628] = "Arco do Mestre dos Cães",
[11629] = "Rifle do Mestre dos Cães",
[11630] = "Pellets Rockshard",
[12446] = "Mosquete de Anvilmar",
[12447] = "Arco de Thistlewood",
[12448] = "Rifle de Caça Leve",
[12449] = "Arco Primitivo",
[12523] = "Monster - Gun, Silver Musket",
[12651] = "Corvo Negro",
[12653] = "Ganchos de Riphook",
[12654] = "Tiro da Perdição",
[13019] = "Arco Curto Garras de Harpia",
[13020] = "Arco do Atirador dos Céus",
[13021] = "Agulha Enchedora de Linha",
[13022] = "Arco Longo das Asas de Grifo",
[13023] = "Arco Longo de Águia",
[13037] = "Ferrão de Crystalpine",
[13038] = "Vento Ágil",
[13039] = "Besta de Fissura do Crânio",
[13040] = "Besta Caçadora de Corações",
[13136] = "Espingarda de Timmy",
[13137] = "Cinto de Ironweave",
[13138] = "O Silenciador",
[13139] = "Quebra-guts",
[13146] = "Espingarda Lançadora de Conchas",
[13147] = "Monster - Bow, White",
[13175] = "Arco de Reflexo de Voone",
[13248] = "Espingarda de Estouro",
[13377] = "Bolas de Canhão Miniatura",
[13380] = "Howitzer Portátil de Willey",
[13474] = "Espingarda do Fazendeiro Dalson",
[13824] = "Arco Longo Recurvo",
[13825] = "Mosquete Comprimido",
[13923] = "Monster - Gun, Tauren Blade Silver",
[13924] = "Monster - Gun, Tauren Scope Blade Feathered Silver Deluxe",
[14105] = "Monster - Bow, C01/B02 White",
[14118] = "Monster - Bow, C02/B02 Black",
[14394] = "Arco de Durabilidade",
[14642] = "Monster - Gun, Tauren Feathers Silver",
[15205] = "Rifle Visão de Coruja",
[15284] = "Arco Longo de Batalha",
[15285] = "Arco Longo do Arqueiro",
[15286] = "Arco de Redwood Longo",
[15287] = "Arco do Cruzado",
[15288] = "Arco de Espinhos Explosivo",
[15289] = "Arco Arcataque",
[15291] = "Agulha de Harpia",
[15294] = "Arco de Cerco",
[15295] = "Arco Quilfire",
[15296] = "Arco de Falcógeno",
[15322] = "Arma de Cano Liso",
[15323] = "Espingarda de Percussão",
[15324] = "Rifle Burnside",
[15325] = "Harquebus do Atirador",
[15460] = "Monster - Gun, Shotgun",
[15691] = "Espingarda Sidegunner",
[15807] = "Besta Leve",
[15808] = "Balestra Leve Fina",
[15809] = "Besta Pesada",
[15995] = "Rifle de Torium",
[15997] = "Casca de Torium",
[16004] = "Rifle de Ferro Sombrio",
[16007] = "Rifle Arcanite Impecável",
[16622] = "Lançador de Espinhos",
[16992] = "Lançador Explosivo de Smokey",
[16996] = "Arco Gorewood",
[17042] = "Disparador de Preço",
[17069] = "Marca do Atacante",
[17072] = "Lançador de Disparo Explosivo",
[17686] = "Arco do Mestre Caçador",
[17687] = "Rifle do Mestre Caçador",
[17717] = "Rifle Megashot",
[17753] = "Mira do Guardião Verdejante",
[18042] = "Flecha com Ponta de Torium",
[18282] = "Rifle de Atirador de Elite do Núcleo",
[18323] = "Arco de Sátiro",
[18388] = "Quebra-pedras",
[18460] = "Canhão de Mão Simples",
[18482] = "Atirador de Palito de Ogre",
[18680] = "Arco de Osso Antigo",
[18713] = "Rhok'delar, Arco Longo dos Guardiões Antigos",
[18729] = "Arco Gritante",
[18738] = "Besta de Carapaça Espinhosa",
[18755] = "Cajado de Fogo Xorothiano",
[18833] = "Claymore do Grande Marechal",
[18835] = "Arco Recurvo do Alto Senhor da Guerra",
[18836] = "Espada da Mão Direita do Grande Marechal",
[18837] = "Besta do Alto Senhor da Guerra",
[18855] = "Machado de Mão do Grande Marechal",
[18860] = "Vassourão do Alto Senhor da Guerra",
[19082] = "Monster - Fire Arrow",
[19107] = "Busca-sangue",
[19114] = "Arco Highlander",
[19316] = "Flecha com Fio de Gelo",
[19317] = "Bala com Fio de Gelo",
[19350] = "Golpe de Coração",
[19361] = "Ashjre'thul, Besta da Punição",
[19368] = "Canhão de Mão Sopro de Dragão",
[19558] = "Arco do Outrider",
[19559] = "Arco do Outrider",
[19560] = "Arco do Outrider",
[19561] = "Arco do Outrider",
[19562] = "Arco do Corredor",
[19563] = "Arco do Corredor",
[19564] = "Arco do Corredor",
[19565] = "Arco do Corredor",
[19853] = "Destruidor Anão Gurubashi",
[19993] = "Arco de Caça do Hoodoo",
[20038] = "Picada de Mandokir",
[20245] = "90 Arma de Fogo Verde de Guerreiro",
[20285] = "63 Arma de Fogo Verde de Guerreiro",
[20299] = "90 Arco Verde de Ladino",
[20313] = "63 Arco Verde de Ladino",
[20368] = "Arco Sem Graça da Estabilidade",
[20437] = "Arco do Outrider",
[20438] = "Arco do Corredor",
[20488] = "Rhok'delar, Arco Longo dos Guardiões Antigos DEP",
[20599] = "Best Crossbow Polida",
[20646] = "Marca do Andarilho de Areia",
[20663] = "Arco do Golpe Profundo",
[20722] = "Atirador de Lesmas de Cristal",
[21272] = "Mosquete Qiraji Abençoado",
[21459] = "Balestra da Ruína Imminente",
[21478] = "Arco de Tendão Tensionado",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Monster - Gun, PvP Horde",
[21564] = "Monster - Gun, Kaldorei PVP Alliance",
[21616] = "Aguilhão de Huhuran",
[21800] = "Lançador Casca de Silithid",
[22318] = "Arco Longo de Malgen",
[22347] = "Repetidor de Recarregamento de Fahrad",
[22656] = "O Purificador",
[22810] = "Injetor de Toxinas",
[22811] = "Cordas da Alma",
[22812] = "Escravizador Nerubiano",
[23557] = "Larvas do Grande Verme",
[41023] = "Mosquete Encharcado",
[41190] = "Arco de Alah'Thalas",
[41725] = "Arco de Batalha Presa do Dragão",
[51746] = "Blaster das Sombras",
[51759] = "Bombardeiro de Cerco",
[51768] = "Arco de Quel'Danil",
[51780] = "Espingarda Ghoulslayer",
[51794] = "Rifle de Outro Mundo",
[51828] = "Rifle de Hawkwind",
[51844] = "Besta Atordoante",
[51862] = "Rifle do Bravo",
[55028] = "Relógio de Paciência de Kavdan",
[55068] = "Blaster de Leproso de Zan",
[55096] = "Crossbow Fase-Deslocando",
[55346] = "Chuva de Aranhas",
[55379] = "Golpeador de Escória",
[58016] = "Arco de Freixo",
[58083] = "Rifle de Precisão de Nippsy",
[58086] = "Rifle de Grau Padrão",
[58193] = "Arco de Cabelo Demoníaco",
[58284] = "Trabuco Encharcado",
[60165] = "Rifle de Fizz-rifle Sem Balanço",
[60309] = "Arco Longo de Madeira de Jade",
[60338] = "Bestunho de Lordaeron",
[60339] = "Arco Podre de Elfo Alto",
[60440] = "Arco Longo dos Scalpos Sangrentos",
[60506] = "Braçadeiras de Vigor Aço",
[60545] = "Rifle X-TREME 5200",
[60624] = "Cruzado Real Dourado Revestido de Ouro",
[60782] = "Arbalesta do Quebra-escudos",
[60821] = "Arbalest de Theramore",
[60882] = "Ventos de Magram",
[60953] = "Arco Longo de Brackenwall",
[61011] = "Canhão de Mão de Flintlocke",
[61068] = "Profanador de Ferro Sombrio",
[61165] = "Arco da Caçadora Noturna",
[61248] = "Bacamarte do Caçador de Feras",
[61307] = "Mosquete do Caçador de Worgen",
[61383] = "Blunderbuss Gnômico Intricado",
[61472] = "Rifle da Brigada",
[61525] = "Chamada da Natureza",
[61569] = "Arco Congelado do Tempo",
[61629] = "Mosquete do Fazendeiro",
[61683] = "Besta Grande Maltratada",
[70049] = "Bestunto Usado",
[80106] = "Rifle Descalibrado",
[80127] = "Boomstick Polido",
[80207] = "Arco de Madeira Usado",
[80223] = "Arco de Protetor da Lodge Farstrider",
[80503] = "Arco Curto Bem Equilibrado",
[80546] = "Arco Longo do Ranger Quel'dorei",
[80603] = "Arco Curto Sólido",
[80646] = "Arco Longo do Caçador de Sombras Revantusk",
[80745] = "Besta de Abominação",
[80795] = "Espingarda de Estouro",
[80820] = "Quilflinger",
[80825] = "Arco Flamestring",
[80876] = "Arco de Silvermoon",
[83094] = "Rifle 2H, Mechagnome",
[83225] = "Arco do Bosque",
[83257] = "Rifle da Reserva de Caer Darrow",
[83452] = "Corta-vento",
[83517] = "Besta Leve Balanceada",
}
+268
View File
@@ -0,0 +1,268 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.ruRU = {
[2098] = "Двуствольный дробовик",
[2099] = "Дворфийская пищаль",
[2100] = "Пристрелянный громобой",
[2504] = "Иссеченный короткий лук",
[2505] = "Полированный короткий лук",
[2506] = "Изогнутый лук Рогатого леса",
[2507] = "Многослойный изогнутый лук",
[2508] = "Старинный мушкетон",
[2509] = "Изысканный мушкетон",
[2510] = "Крепкий мушкетон",
[2511] = "Охотничий громобой",
[2512] = "Грубая стрела",
[2515] = "Острая стрела",
[2516] = "Легкий патрон",
[2519] = "Тяжелый патрон",
[2550] = "Монстр - лук, короткий",
[2551] = "Монстр - арбалет",
[2552] = "Монстр - ружье",
[2773] = "Треснувший короткий лук",
[2774] = "Заржавевший мушкетон",
[2777] = "Непрочный лук",
[2778] = "Дешевый мушкетон",
[2780] = "Легкий охотничий лук",
[2781] = "Грязный мушкетон",
[2782] = "Неудобный изогнутый лук",
[2783] = "Дешевый мушкетон",
[2785] = "Испорченный изогнутый лук",
[2786] = "Смазанный мушкетон",
[2824] = "Ураган",
[2825] = "Лук Жгучих Стрел",
[2903] = "Охотничий лук Дерила",
[2904] = "Охотничья винтовка Дерила",
[3021] = "Лук следопыта",
[3023] = "Крупнокалиберный мушкетон",
[3024] = "BKP 2700 \"Принуждение\"",
[3025] = "BKP 42 \"Ультра\"",
[3026] = "Усиленный лук",
[3027] = "Тяжелый изогнутый лук",
[3028] = "Длинный лук",
[3030] = "Стрела-бритва",
[3033] = "Твердый патрон",
[3034] = "Испорченный BKP патрон \"Импульс\"",
[3036] = "Тяжелый короткий лук",
[3037] = "Изогнутый лук Стонущего леса",
[3039] = "Короткий ясеневый лук",
[3040] = "Охотничья фузея",
[3041] = "Мушкетон \"Глаз мага\"",
[3042] = "BKP \"Воробей\" малого калибра",
[3078] = "Нагский сердцекол",
[3079] = "Винтовка Скорна",
[3430] = "Снайперская винтовка",
[3464] = "Оперенная стрела",
[3465] = "Разрывной патрон",
[3493] = "Погибель ящеров",
[3567] = "Дворфийская удочка",
[3742] = "Лук Ограбления",
[3778] = "Тугой композитный лук",
[3780] = "Длинноствольный мушкет",
[4025] = "Сбалансированный длинный лук",
[4026] = "Мушкет часового",
[4086] = "Световая винтовка",
[4087] = "Лук Верного прицела",
[4089] = "Рикошетный мушкетон",
[4110] = "Лук предводителя охотников",
[4111] = "Винтовка опытного охотника",
[4127] = "Шрапнельный самострел",
[4362] = "Грубый громобой",
[4369] = "Смертоносный мушкетон",
[4372] = "Искусно сделанный громобой",
[4379] = "Посеребренный дробовик",
[4383] = "Лунная винтовка",
[4474] = "Лук Вороньего леса",
[4576] = "Легкий лук",
[4577] = "Компактный дробовик",
[4763] = "Изогнутый лук Чернолесья",
[4931] = "Короткий лук из гикори",
[4960] = "Мелкая пулька",
[5258] = "Монстр - лук, черный",
[5259] = "Монстр - лук, красный",
[5260] = "Монстр - лук, коричневый",
[5261] = "Монстр - лук, серый",
[5262] = "Монстр - лук, темно-коричневый",
[5309] = "Мушкет капера",
[5346] = "Оркский боевой лук",
[5568] = "Шлифованный метательный камень",
[5596] = "Ясеневый лук",
[5748] = "Длинный лук кентавра",
[5817] = "Лук Лунариса",
[6315] = "Арбалет со стальными стрелами",
[6469] = "Ядовитый удар",
[6696] = "Лук ночного ловца",
[6739] = "Лук меткости Скального Бегуна",
[6798] = "Разрывной аркебуз",
[7729] = "Мушкет Честерфолла",
[8067] = "Легкий искусно изготовленный патрон",
[8068] = "Тяжелый искусно изготовленный патрон",
[8069] = "Твердый искусно изготовленный патрон",
[8179] = "Лук оруженосца",
[8180] = "Охотничий лук",
[8181] = "Охотничья винтовка",
[8182] = "Шариковая винтовка",
[8183] = "Точный лук",
[8188] = "Дробовик взрывного действия",
[9399] = "Точная стрела",
[9400] = "Короткий лук Бейлога",
[9412] = "Самострел Галганна",
[9422] = "Тенекованный бушмейстер",
[9426] = "Монолитный лук",
[9456] = "Стеклянный пистолет",
[9487] = "Высокотехничное сверхружье",
[10508] = "Мифриловый мушкетон",
[10510] = "Мифриловая крупнокалиберная винтовка",
[10512] = "Бронебойные мифриловые пули",
[10513] = "Мифриловый гиро-патрон",
[10567] = "Перострел",
[10579] = "Взрывная стрела",
[10624] = "Жалящий лук",
[11021] = "Монстр - большое снайперское ружье",
[11284] = "Точные пули",
[11285] = "Зазубренная стрела",
[11303] = "Тонкий короткий лук",
[11304] = "Тонкий длинный лук",
[11305] = "Массивный короткий лук",
[11306] = "Прочный изгиб",
[11307] = "Массивный длинный лук",
[11308] = "Сильванский короткий лук",
[11628] = "Лук псаря",
[11629] = "Винтовка псаря",
[11630] = "Каменноосколочная беспатронная пуля",
[12446] = "Мушкет Старой Наковальни",
[12447] = "Лук Чертополоха",
[12448] = "Легкая охотничья винтовка",
[12449] = "Простой лук",
[12523] = "Монстр - ружье, серебряный мушкет",
[12651] = "Черный ворон",
[12653] = "Обдирочный крюк",
[12654] = "Роковой патрон",
[13019] = "Короткий лук из когтя гарпии",
[13020] = "Лук небесного бойца",
[13021] = "Продеватель игл",
[13022] = "Длинный лук Грифоньего крыла",
[13023] = "Длинный лук Орлиного рога",
[13037] = "Оса Хрустальных сосен",
[13038] = "Быстроветр",
[13039] = "Арбалет раскалывающий череп",
[13040] = "Арбалет Ищущий Сердце",
[13136] = "Пугач маленького Тимми",
[13137] = "Железноткач",
[13138] = "Глушитель",
[13139] = "Выдавливатель внутренностей",
[13146] = "Крупнокалиберный дробовик",
[13147] = "Монстр - лук, белый",
[13175] = "Натянутый лук Вуна",
[13248] = "Залповая аркебуза",
[13377] = "Ядра для мини-пушки",
[13380] = "Переносная пушка Виллей",
[13474] = "Дробовик фермера Далсона",
[13824] = "Изогнутый длинный лук",
[13825] = "Заряженный мушкет",
[13923] = "Монстр - ружье, серебряный кринок таурена",
[13924] = "Монстр - ружье, таурен, прицел, клинок, оперенный, серебряный, высокопробный",
[14105] = "Монстр - лук, C01/B02 белый",
[14118] = "Монстр - лук, C02/B02 черный",
[14394] = "Лук выносливости",
[14642] = "Монстр - ружье, серебряные перья таурена",
[15205] = "Совиная винтовка",
[15284] = "Длинный боевой лук",
[15285] = "Длинный лук лучника",
[15286] = "Длинный лук из красного дерева",
[15287] = "Лук Рыцаря",
[15288] = "Взрывороговый лук",
[15289] = "Лук архиудара",
[15291] = "Игольщик гарпии",
[15294] = "Осадный лук",
[15295] = "Огненноперый лук",
[15296] = "Лук Соколиного глаза",
[15322] = "Гладкоствольное ружье",
[15323] = "Дробовик ударного действия",
[15324] = "Винтовка Бернсайда",
[15325] = "Стрелковая аркебуза",
[15460] = "Монстр - ружье, дробовик",
[15691] = "Саперная лопата",
[15807] = "Легкий арбалет",
[15808] = "Тонкий легкий арбалет",
[15809] = "Тяжелый арбалет",
[15995] = "Ториевая винтовка",
[15997] = "Ториевые гильзы",
[16004] = "Винтовка из черного железа",
[16007] = "Отличная арканитовая винтовка",
[16622] = "Метатель Шипов",
[16992] = "Гремучее ружье Смоки",
[16996] = "Клинолесский лук",
[17042] = "Гвоздомет",
[17069] = "Знак нападающего",
[17072] = "Взрывострел",
[17686] = "Лук предводителя охотников",
[17687] = "Винтовка опытного охотника",
[17717] = "Убойная винтовка",
[17753] = "Цель Зеленого хранителя",
[18042] = "Стрела с ториевым наконечником",
[18282] = "Снайперская винтовка Центра",
[18323] = "Лук сатира",
[18388] = "Камнелом",
[18460] = "Примитивная пищаль",
[18482] = "Огрский зубочисткострел",
[18680] = "Древний костяной лук",
[18713] = "Рок-Делар, длинный лук Древних хранителей",
[18729] = "Визжащий лук",
[18738] = "Панцирный шипастый лук",
[18755] = "Ксоротианский огнепал",
[18833] = "Бычий глаз главнокомандующего",
[18835] = "Изгиб верховного вождя",
[18836] = "Скорострельный арбалет главнокомандующего",
[18837] = "Арбалет верховного вождя",
[18855] = "Пищаль главнокомандующего",
[18860] = "Дворник верховного вождя",
[19082] = "Монстр - огненная стрела",
[19107] = "Кровоискатель",
[19114] = "Лук горца",
[19316] = "Пронизанная льдом стрела",
[19317] = "Пронизанная льдом пуля",
[19350] = "Выдиратель сердец",
[19361] = "Аширетул, разящий арбалет",
[19368] = "Пищаль Дыхания Дракона",
[19558] = "Лук лазутчика",
[19559] = "Лук лазутчика",
[19560] = "Лук лазутчика",
[19561] = "Лук лазутчика",
[19562] = "Лук гонца",
[19563] = "Лук гонца",
[19564] = "Лук гонца",
[19565] = "Лук гонца",
[19853] = "Разрушитель дворфов Гурубаши",
[19993] = "Охотничий лук худу",
[20038] = "Жало Мэндокира",
[20245] = "90 Зеленое воинское ружье",
[20285] = "63 Зеленое воинское ружье",
[20299] = "90 Зеленый лук разбойника",
[20313] = "63 Зеленый лук разбойника",
[20368] = "Легкий лук Постоянства",
[20437] = "Лук лазутчика",
[20438] = "Лук гонца",
[20488] = "Рок-Делар, длинный лук Древних хранителей DEP",
[20599] = "Полированный арбалет из железного дерева",
[20646] = "Знак Песчаного странника",
[20663] = "Прошивающий насквозь лук",
[20722] = "Хрустальный пулемет",
[21272] = "Благословленный киражский мушкет",
[21459] = "Арбалет Неотвратимого Рока",
[21478] = "Лук Тугие Жилы",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Монстр - ружье, PvP Орда",
[21564] = "Монстр - ружье, Кальдорай PvP Альянс",
[21616] = "Хабуранская оса",
[21800] = "Силитидское хитиновое ружье",
[22318] = "Длинный лук Мальдена",
[22347] = "Многозарядный перезаряжаемый арбалет Фахрада",
[22656] = "Очиститель",
[22810] = "Впрыскиватель яда",
[22811] = "Душевервие",
[22812] = "Нерубийский поработитель",
[23557] = "Личинка Большого Червя",
}
+331
View File
@@ -0,0 +1,331 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.items = MTH_LocaleData.data.items or {}
MTH_LocaleData.data.items.zhCN = {
[2098] = "双管猎枪",
[2099] = "矮人手持火炮",
[2100] = "精确校准过的火枪",
[2504] = "用旧的短弓",
[2505] = "精制短弓",
[2506] = "角木弯弓",
[2507] = "多层弯弓",
[2508] = "老式短枪",
[2509] = "精制短枪",
[2510] = "结实的短枪",
[2511] = "猎人火枪",
[2512] = "劣质箭",
[2515] = "锋利的箭",
[2516] = "轻弹丸",
[2519] = "重弹丸",
[2550] = "Monster - Bow, Short",
[2551] = "Monster - Crossbow",
[2552] = "Monster - Gun",
[2773] = "破损的短弓",
[2774] = "生锈的短枪",
[2777] = "无力的短弓",
[2778] = "廉价火枪",
[2780] = "轻型猎弓",
[2781] = "肮脏的短枪",
[2782] = "粗劣的弯弓",
[2783] = "廉价火枪",
[2785] = "僵硬的弯弓",
[2786] = "油腻的火枪",
[2824] = "飓风",
[2825] = "灼热弓",
[2903] = "达瑞尔的猎弓",
[2904] = "达瑞尔的猎枪",
[3021] = "游侠之弓",
[3023] = "大口径短枪",
[3024] = "“执行者”BKP 2700",
[3025] = "“偏激者”BKP 42",
[3026] = "强化弓",
[3027] = "重型弯弓",
[3028] = "长弓",
[3030] = "锐锋箭",
[3033] = "实心子弹",
[3034] = "秘文胸甲",
[3036] = "硬短弓",
[3037] = "柳木弯弓",
[3039] = "灰木短弓",
[3040] = "猎人火枪",
[3041] = "“法师之眼”大口径火枪",
[3042] = "“麻雀”短枪BKP",
[3078] = "纳迦穿心者",
[3079] = "斯考恩的火枪",
[3430] = "狙击步枪",
[3464] = "火焰之箭",
[3465] = "爆破弹药",
[3493] = "迅猛龙终结者",
[3567] = "矮人钓鱼竿",
[3742] = "劫掠之弓",
[3778] = "紧绷的复合弓",
[3780] = "长筒步枪",
[4025] = "平衡长弓",
[4026] = "卫戍火枪",
[4086] = "闪光步枪",
[4087] = "强击之弓",
[4089] = "弹子火枪",
[4110] = "狩猎高手的猎弓",
[4111] = "狩猎高手的火枪",
[4127] = "榴弹爆破枪",
[4362] = "劣质火枪",
[4369] = "致命的短枪",
[4372] = "精致手工火枪",
[4379] = "镀银猎枪",
[4383] = "夜视步枪",
[4474] = "黑木之弓",
[4576] = "轻型弓",
[4577] = "紧凑火枪",
[4763] = "布莱克伍德弯弓",
[4931] = "桃木短弓",
[4960] = "闪光球",
[5258] = "Monster - Bow, Black",
[5259] = "Monster - Bow, Red",
[5260] = "Monster - Bow, Brown",
[5261] = "Monster - Bow, Gray",
[5262] = "Monster - Bow, Dark Brown",
[5309] = "海盗步枪",
[5346] = "兽人战弓",
[5568] = "光滑的鹅卵石",
[5596] = "灰木弓",
[5748] = "半人马长弓",
[5817] = "月神之弓",
[6315] = "钢矢硬弩",
[6469] = "毒蛇",
[6696] = "夜行者之弓",
[6739] = "峭壁行者之弓",
[6798] = "爆破火枪",
[7729] = "穿胸步枪",
[8067] = "精制轻弹丸",
[8068] = "精制重弹丸",
[8069] = "精制实心弹丸",
[8179] = "学员之弓",
[8180] = "狩猎强弓",
[8181] = "狩猎步枪",
[8182] = "圆弹步枪",
[8183] = "精准之弓",
[8188] = "爆破猎枪",
[9399] = "精准之箭",
[9400] = "巴尔洛戈的短弓",
[9412] = "加加恩的火枪",
[9422] = "暗炉火枪",
[9426] = "浑石弓",
[9456] = "玻璃枪",
[9487] = "高科技步枪",
[10508] = "秘银火枪",
[10510] = "大口径秘银步枪",
[10512] = "高速秘银弹头",
[10513] = "秘银螺旋弹",
[10567] = "硬刺之弓",
[10579] = "爆炸箭",
[10624] = "钉刺猎弓",
[11021] = "Monster - Big Sniper Gun",
[11284] = "精准弹丸",
[11285] = "锯齿箭",
[11303] = "精良的短弓",
[11304] = "精良的长弓",
[11305] = "笨重的短弓",
[11306] = "强韧的弯弓",
[11307] = "大型长弓",
[11308] = "森林短弓",
[11628] = "驯犬者长弓",
[11629] = "驯犬者步枪",
[11630] = "石片弹丸",
[12446] = "安威玛火枪",
[12447] = "棘木弓",
[12448] = "轻型猎枪",
[12449] = "粗制弓",
[12523] = "Monster - Gun, Silver Musket",
[12651] = "黑鸦",
[12653] = "撕裂之钩",
[12654] = "末日之击",
[13019] = "鹰身人之爪短弓",
[13020] = "击天之弓",
[13021] = "射针弓",
[13022] = "狮鹫之翼长弓",
[13023] = "鹰角长弓",
[13037] = "水晶之刺",
[13038] = "迅捷之风",
[13039] = "碎颅强弩",
[13040] = "觅心弩",
[13136] = "提米的玩具枪",
[13137] = "织铁者",
[13138] = "沉默者",
[13139] = "轰击火枪",
[13146] = "散弹发射器",
[13147] = "Monster - Bow, White",
[13175] = "沃恩的迅捷弓",
[13248] = "爆击火枪",
[13377] = "迷你炮弹",
[13380] = "威利的便携式榴弹炮",
[13474] = "农夫达尔松的猎枪",
[13824] = "弯曲的长弓",
[13825] = "基础步枪",
[13923] = "Monster - Gun, Tauren Blade Silver",
[13924] = "Monster - Gun, Tauren Scope Blade Feathered Silver Deluxe",
[14105] = "Monster - Bow, C01/B02 White",
[14118] = "Monster - Bow, C02/B02 Black",
[14394] = "耐久性弓",
[14642] = "Monster - Gun, Tauren Feathers Silver",
[15205] = "鹰眼步枪",
[15284] = "长战弓",
[15285] = "射手长弓",
[15286] = "红木长弓",
[15287] = "十字军长弓",
[15288] = "犄角长弓",
[15289] = "曲线长弓",
[15291] = "鹰身人缝衣针",
[15294] = "攻城长弓",
[15295] = "羽毛弓",
[15296] = "鹰眼长弓",
[15322] = "滑膛枪",
[15323] = "震击猎枪",
[15324] = "伯恩赛德步枪",
[15325] = "神射手火绳枪",
[15460] = "Monster - Gun, Shotgun",
[15691] = "射手火枪",
[15807] = "轻弩",
[15808] = "优质轻弩",
[15809] = "重弩",
[15995] = "瑟银火枪",
[15997] = "瑟银弹",
[16004] = "黑铁步枪",
[16007] = "完美的奥金步枪",
[16622] = "荆棘投掷者",
[16992] = "烟鬼的炸药发射器",
[16996] = "血木猎弓",
[17042] = "钉枪",
[17069] = "速射强弓",
[17072] = "爆击猎枪",
[17686] = "狩猎高手的猎弓",
[17687] = "狩猎高手的火枪",
[17717] = "超射程精密步枪",
[17753] = "绿色守护者之弓",
[18042] = "瑟银之箭",
[18282] = "火核狙击步枪",
[18323] = "萨特强弓",
[18388] = "破石者",
[18460] = "简易手持火炮",
[18482] = "食人魔牙签发射器",
[18680] = "上古骨弓",
[18713] = "伦鲁迪洛尔,上古守护者的长弓",
[18729] = "尖啸之弓",
[18738] = "虫壳强弩",
[18755] = "克索诺斯火棍",
[18833] = "大元帅的硬弓",
[18835] = "高阶督军的弯弓",
[18836] = "大元帅的强弩",
[18837] = "高阶督军的弩",
[18855] = "大元帅的手持火炮",
[18860] = "高阶督军的火枪",
[19082] = "Monster - Fire Arrow",
[19107] = "觅血者",
[19114] = "高地长弓",
[19316] = "冰线箭矢",
[19317] = "冰线枪弹",
[19350] = "击心者",
[19361] = "埃瑟利苏尔,惩戒之弩",
[19368] = "龙息手持火炮",
[19558] = "护卫之弓",
[19559] = "护卫之弓",
[19560] = "护卫之弓",
[19561] = "护卫之弓",
[19562] = "侍从之弓",
[19563] = "侍从之弓",
[19564] = "侍从之弓",
[19565] = "侍从之弓",
[19853] = "古拉巴什矮人摧毁者",
[19993] = "噩运猎弓",
[20038] = "曼多基尔之刺",
[20245] = "90绿色战士猎枪",
[20285] = "63绿色战士猎枪",
[20299] = "90绿色盗贼之弓",
[20313] = "65绿色盗贼之弓",
[20368] = "稳固弯弓",
[20437] = "护卫之弓",
[20438] = "侍从之弓",
[20488] = "伦鲁迪洛尔,上古守护者的长弓",
[20599] = "抛光铁木强弩",
[20646] = "沙行者印记",
[20663] = "深击之弓",
[20722] = "水晶掷弹器",
[21272] = "神圣其拉火枪",
[21459] = "迫近末日之弩",
[21478] = "紧绷肌腱之弓",
[21550] = "Monster - Bow, Kaldorei",
[21554] = "Monster - Gun, PvP Horde",
[21564] = "Monster - Gun, Kaldorei PVP Alliance",
[21616] = "哈霍兰之刺",
[21800] = "异种獠牙发射器",
[22318] = "玛尔根的长弓",
[22347] = "法拉德的装填器",
[22656] = "清洁者",
[22810] = "毒液注射器",
[22811] = "灵魂之弦",
[22812] = "蛛魔制奴者",
[23557] = "巨虫的幼体",
[41023] = "浸水的火铳",
[41190] = "阿尔萨拉斯之弓",
[41725] = "龙喉战弓",
[51746] = "暗影射手",
[51759] = "攻城爆破枪",
[51768] = "奎尔丹尼之弓",
[51780] = "食尸鬼猎枪",
[51794] = "异界步枪",
[51828] = "鹰风步枪",
[51844] = "震耳欲聋的十字弓",
[51862] = "勇士的步枪",
[55028] = "卡夫丹的坏手表",
[55068] = "麻风能量扩散器",
[55096] = "相位十字弩",
[55346] = "蜘蛛之雨",
[55379] = "熔渣猛击者",
[58016] = "白蜡木弓",
[58083] = "尼普西的精密步枪",
[58086] = "标准制式步枪",
[58193] = "恶魔毛发长弓",
[58284] = "浸水的火枪",
[60165] = "稳定冷却步枪",
[60309] = "“翡翠木”长弓",
[60338] = "洛丹伦生锈步兵弩",
[60339] = "高等精灵腐烂弓",
[60440] = "血顶长弓",
[60506] = "警戒",
[60545] = "超科技步枪X-TREME 5200",
[60624] = "镀金皇家十字弩",
[60782] = "破盾之弩",
[60821] = "塞拉摩弩",
[60882] = "玛格拉姆击风者",
[60953] = "蕨墙村长弓",
[61011] = "弗林特洛克手持加农炮",
[61068] = "黑铁亵渎者",
[61165] = "暗夜女猎手之弓",
[61248] = "兽猎者步枪",
[61307] = "狼人猎手猎枪",
[61383] = "精致侏儒步枪",
[61472] = "步兵来复枪",
[61525] = "自然的呼唤",
[61569] = "时光冻结之弓",
[61629] = "农夫猎枪",
[61683] = "损坏之弩",
[70049] = "破旧十字弓",
[80106] = "未调整的步枪",
[80127] = "抛光爆炸棒",
[80207] = "破旧木弓",
[80223] = "远行者小屋守卫之弓",
[80503] = "平衡短弓",
[80546] = "奎尔多雷游侠长弓",
[80603] = "结实短弓",
[80646] = "恶齿暗影猎手长弓",
[80745] = "憎恶之弩",
[80795] = "爆射手铳",
[80820] = "针刺",
[80825] = "火焰弓",
[80876] = "银月之弓",
[83094] = "怪物 - 双手步枪, 机械侏儒",
[83225] = "林地长弓",
[83257] = "凯尔达隆储备步枪",
[83452] = "碎风者",
[83517] = "平衡轻弩",
}
+327
View File
@@ -0,0 +1,327 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.deDE = {
[7] = "*",
[151] = "Brog Grobschlacht",
[152] = "Bruder Danil",
[227] = "Mabel Solaj",
[228] = "Avette Teufelswald",
[491] = "Rüstmeister Lewis",
[543] = "Nalesette Wildbringer",
[734] = "Korporal Bluth",
[789] = "Kimberly Hiett",
[791] = "Lindsay Aschenlocke",
[829] = "Adlin Stolzmut",
[895] = "Thorgas Grimson",
[987] = "Ogromm",
[1149] = "Uthok",
[1198] = "Rallic Finn",
[1231] = "Grif Wildherz",
[1243] = "Hegnar Schlingerschuss",
[1250] = "Drake Lindgren",
[1285] = "Thurman Mullby",
[1287] = "Marda Weller",
[1297] = "Lina Ofner",
[1298] = "Frederick Ofner",
[1404] = "Kragg",
[1448] = "Neal Allen",
[1452] = "Gruham Rumdnul",
[1459] = "Naela Trance",
[1461] = "Murndan Derth",
[1462] = "Edwina Monzor",
[1469] = "Vrok Büchsenschuss",
[1668] = "William MacGregor",
[1682] = "Yanni Wagemut",
[1685] = "Xandar Gutbart",
[1686] = "Irene Immertreff",
[1687] = "Cliff Hadin",
[1691] = "Kreg Bilmn",
[2084] = "Natheril Regenrufer",
[2115] = "Joshua Kien",
[2134] = "Frau Winters",
[2140] = "Edwin Harly",
[2401] = "Kayren Rußgrub",
[2685] = "Mazk Zielschuss",
[2803] = "Malygen",
[2806] = "Bale",
[2808] = "Vikki Lonsav",
[2820] = "Graud",
[2839] = "Haren Kanmae",
[2878] = "Peria Lamenur",
[2879] = "Karrina Mekenda",
[2908] = "Grawl",
[2997] = "Jyn Steinhuf",
[3015] = "Kuna Donnerhorn",
[3018] = "Hogor Donnerhuf",
[3038] = "Kary Donnerhorn",
[3039] = "Holt Donnerhorn",
[3040] = "Urek Donnerhorn",
[3053] = "Flämmer",
[3061] = "Lanka Weitschuss",
[3065] = "Yaw Scharfmähne",
[3072] = "Kawnie Sanfthauch",
[3076] = "Moorat Langschreiter",
[3078] = "Kennah Falkenauge",
[3088] = "Henry Chapal",
[3154] = "Jen'shan",
[3158] = "Duokna",
[3164] = "Jark",
[3165] = "Ghrawt",
[3171] = "Thotar",
[3186] = "K'waii",
[3306] = "Keldas",
[3313] = "Trak'gen",
[3322] = "Kaja",
[3350] = "Asoran",
[3352] = "Ormak Grimmschlag",
[3406] = "Xor'juul",
[3407] = "Sian'dur",
[3409] = "Zendo'jian",
[3410] = "Jin'sora",
[3481] = "Barg",
[3488] = "Uthrok",
[3498] = "Jazzik",
[3534] = "Wallace der Blinde",
[3541] = "Sarah Lichthof",
[3545] = "Claude Erksine",
[3587] = "Lyrai",
[3589] = "Keina",
[3596] = "Ayanna Immerlauf",
[3601] = "Dazalar",
[3608] = "Aldia",
[3610] = "Jeena Federbogen",
[3620] = "Harruk",
[3622] = "Grokor",
[3624] = "Zudd",
[3625] = "Rarck",
[3688] = "Reban Freiläufer",
[3698] = "Bolyun",
[3951] = "Bhaldaran Rabenschwarz",
[3962] = "Haljan Eichenherz",
[3963] = "Danlaar Nachtwandler",
[4082] = "Grawnal",
[4084] = "Chylina",
[4138] = "Jeen'ra Nachtläufer",
[4146] = "Jocaste",
[4170] = "Ellandrieth",
[4173] = "Landria",
[4182] = "Dalmond",
[4203] = "Ariyell Himmelsschatten",
[4205] = "Dorion",
[4241] = "Mydrannul",
[4320] = "Caelyb",
[4555] = "Eleanor Altbrot",
[4602] = "Benijah Fenner",
[4603] = "Nicholas Imwald",
[4604] = "Abigail Sägner",
[4876] = "Jawn Hochfeld",
[4889] = "Torq Sprengeisen",
[4892] = "Jensen Farran",
[4896] = "Charity Mipsy",
[5101] = "Bryllia Eisenmal",
[5115] = "Daera Prunkspeer",
[5116] = "Olmin Feuerbart",
[5117] = "Regnus Donnerstein",
[5122] = "Skolmin Goldrausch",
[5123] = "Bretta Goldrausch",
[5134] = "Jonivera Bergweh",
[5501] = "Kaerbrus",
[5510] = "Thulman Kieselbruch",
[5515] = "Einris Prunkspeer",
[5516] = "Ulfir Eisenbart",
[5517] = "Thorfin Steinschild",
[5814] = "Gastwirt Thulbek",
[6028] = "Burkrum",
[6749] = "Erma",
[7942] = "Faralorn",
[7976] = "Thalgus Donnerfaust",
[8131] = "Blizrik Bockschuss",
[8139] = "Stupser",
[8308] = "Alenndaar Lapidaar",
[8362] = "Kuruk",
[9320] = "Pipoca die Meerläuferin",
[9548] = "Cawind Blattschuss",
[9549] = "Borand",
[9551] = "Starn",
[9552] = "Zanara",
[9553] = "Nadia Vernon",
[9555] = "Mu'uta",
[9976] = "Tharlidun",
[9977] = "Sylista",
[9978] = "Wesley",
[9979] = "Sarah Goode",
[9980] = "Shelby Steinsplint",
[9981] = "Sikwa",
[9982] = "Penny",
[9983] = "Kelsuwa",
[9984] = "Ulbrek Feuerhand",
[9985] = "Laziphus",
[9986] = "Shyrka Wolfsläufer",
[9987] = "Shoja'my",
[9988] = "Xon'cha",
[9989] = "Lina Ofenglut",
[10045] = "Kirk Maxwell",
[10046] = "Bethaine Flinthammer",
[10047] = "Michael",
[10048] = "Gereck",
[10049] = "Hekkru",
[10050] = "Seikwa",
[10051] = "Seriadne",
[10052] = "Maluressier",
[10053] = "Anya Maulray",
[10054] = "Bulrug",
[10055] = "Morganus",
[10056] = "Alassin",
[10057] = "Theodore Mont Claire",
[10058] = "Greth",
[10059] = "Antarius",
[10060] = "Rußhuf",
[10061] = "Killium Geröllzeh",
[10062] = "Steven Black",
[10063] = "Reggifuz",
[10085] = "Jaelysia",
[10086] = "Hesuwa Donnerhorn",
[10088] = "Xao'tsu",
[10089] = "Silvaria",
[10090] = "Belia Donnerstein",
[10369] = "Trayexir",
[10930] = "Dargh Blattschuss",
[11038] = "Verwalter Alen",
[11069] = "Jenova Steinschild",
[11104] = "Shelgrayn",
[11105] = "Aboda",
[11117] = "Awenasa",
[11119] = "Azzelby",
[11184] = "Wixxrak",
[11555] = "Gorn Einauge",
[12021] = "Daeolyn Sommerblatt",
[12027] = "Tukk",
[12029] = "Narianna",
[12246] = "Superverkaufomat 680",
[12782] = "Hauptmann O'Neal",
[12959] = "Nergal",
[12960] = "Christi Galvanis",
[13216] = "Gaelden Hammerschmied",
[13217] = "Thanthaldis Schneeglanz",
[13218] = "Grunnda Wolfsherz",
[13219] = "Jorek Eisenflanke",
[13616] = "Stallmeister der Frostwölfe",
[13617] = "Stallmeister der Sturmlanzen",
[14301] = "Brinna Valanaar",
[14581] = "Unteroffizier Donnerhorn",
[14624] = "Meisterschmied Burninate",
[14741] = "Jäger Markhor",
[14753] = "Illiyana Mondflamm",
[14754] = "Kelm Hargunth",
[14846] = "Lhara",
[15131] = "Qeeju",
[15174] = "Calandrath",
[15722] = "Knappe Leoren Mal'derath",
[16094] = "Durik",
[16156] = "Dunkelgeplagter Krieger",
[17598] = "Renn'az",
[21002] = "Knappe Bolzenschleuder",
[51656] = "Rug",
[60456] = "Belgrush Dolchfaust",
[60483] = "Morpheus Rippenkäfig",
[60484] = "Liott Mähnenhaut",
[60485] = "Noel Bärenfinger",
[60486] = "Vaya Spinnenbiss",
[60487] = "Valdos Tollhund",
[60488] = "Diane Weidenfeld",
[60641] = "Goma",
[60646] = "Evatax",
[60653] = "Skelettschmied",
[60659] = "Cydas Mondschatten",
[60663] = "Grin Harold",
[60740] = "Bald'aan der Stille",
[60766] = "Golsh",
[60768] = "Herekk",
[60790] = "Mathilda Beckett",
[60803] = "Tyrion Bouden",
[60813] = "Ahnja Sommerwind",
[60966] = "Tanzig Wexlicht",
[60989] = "Borrin Staubschulter",
[61058] = "Tazo Drahtlicht",
[61115] = "Wezzy Kupfersäge",
[61140] = "Azmela Schattenkamm",
[61266] = "Alexandra",
[61272] = "Samantha Verwalter",
[61288] = "Savenna Mooskäfig",
[61369] = "Anati Spaltgang",
[61440] = "Gnidabern Spulenwirbler",
[61443] = "Dimbil Sturmstoß",
[61445] = "Krilee Sturmstoß",
[61478] = "Talavana Andalorah",
[61523] = "Naytha Trüblicht",
[61563] = "Arayna Weichwind",
[61624] = "AJ Frühbeere",
[61625] = "Daisy Windhelm",
[61626] = "Diane Kleefeld",
[61627] = "Alter Jonah",
[61628] = "Willhelm Felsschleifer",
[61629] = "Marven",
[61640] = "Schütze Rembrandt Olar",
[61651] = "Vi'cha Geisterheuler",
[61722] = "Sazzlix",
[61742] = "Mazin Forkblast",
[61743] = "Hazlor Torksicherung",
[61751] = "Kango Bolzenknall",
[61812] = "Celia Tagesflügel",
[62086] = "Meldor Schnelllanze",
[62088] = "Laithor Morgenblatt",
[62096] = "Aira Sterneneid",
[62098] = "Gozzlek",
[62099] = "Guzhek",
[62148] = "Wisteria Gallagher",
[62161] = "Leander Hering",
[62307] = "Barbara Lee",
[62401] = "Farwyn Gerstnacht",
[62402] = "Kargun Kraftfall",
[62403] = "Vohand Poltertor",
[62404] = "Kazand Poltertor",
[62409] = "Gazla Schwarzschmied",
[62436] = "Hagrekk",
[62437] = "Maktha",
[62462] = "Elindra Flinkglück",
[62469] = "Navigator Weebletax",
[62628] = "Nyxma Flickenfein",
[62739] = "Orthol the Tracker",
[65002] = "Ethernos",
[65003] = "Chradarmu",
[80008] = "Aubrey Merton",
[80102] = "Ohgi Cardya",
[80105] = "Mayten Knallgewehr",
[80214] = "Malanius Silberschein",
[80219] = "Waldläufer Rubinah Sonneneid",
[80245] = "Damilara Sonnensorge",
[80266] = "Soalara Morgenstern",
[80267] = "Torial Morgendämmerung",
[80457] = "Andrelas Thas'danil",
[80458] = "Waldläuferin Canarah Kim'Alah",
[80807] = "Reolis Reißhauer",
[80808] = "Ranor Reißhauer",
[80810] = "Rinja Duftstoß",
[80855] = "Klee Drehscharf",
[80856] = "Twinkie Bummstock",
[80903] = "Viz Fizbeast",
[80915] = "Tan'Pogo",
[80941] = "Erdruferin Jalyssa",
[80942] = "Todesruferin Aisha",
[80943] = "Dronormu",
[81035] = "Jake Booker",
[81050] = "Dunkelläuferin Lanissa",
[91246] = "Valkar",
[91248] = "Wixx",
[91403] = "Kintello",
[91725] = "Darren Nebelwall",
[91868] = "Primalist Gojo",
[91956] = "Denia Hale",
[91977] = "Olfan Goldbraue",
[92169] = "Kryillos",
[92177] = "Garto'ogg",
[92200] = "Bhatra",
[92217] = "Ticas Wirrflausch",
}
+334
View File
@@ -0,0 +1,334 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.enUS = {
[7] = "*",
[150] = "[UNUSED] Brother Milius",
[151] = "Brog Hamfist",
[152] = "Brother Danil",
[227] = "Mabel Solaj",
[228] = "Avette Fellwood",
[491] = "Quartermaster Lewis",
[543] = "Nalesette Wildbringer",
[734] = "Corporal Bluth",
[789] = "Kimberly Hiett",
[791] = "Lindsay Ashlock",
[829] = "Adlin Pridedrift",
[895] = "Thorgas Grimson",
[904] = "[UNUSED] Regna Khurn",
[987] = "Ogromm",
[1149] = "Uthok",
[1198] = "Rallic Finn",
[1231] = "Grif Wildheart",
[1243] = "Hegnar Rumbleshot",
[1250] = "Drake Lindgren",
[1285] = "Thurman Mullby",
[1287] = "Marda Weller",
[1297] = "Lina Stover",
[1298] = "Frederick Stover",
[1404] = "Kragg",
[1448] = "Neal Allen",
[1452] = "Gruham Rumdnul",
[1455] = "[UNUSED] Grummar Thunk",
[1459] = "Naela Trance",
[1461] = "Murndan Derth",
[1462] = "Edwina Monzor",
[1469] = "Vrok Blunderblast",
[1668] = "William MacGregor",
[1682] = "Yanni Stoutheart",
[1685] = "Xandar Goodbeard",
[1686] = "Irene Sureshot",
[1687] = "Cliff Hadin",
[1691] = "Kreg Bilmn",
[1859] = "[UNUSED] Nyein Longwind",
[2084] = "Natheril Raincaller",
[2115] = "Joshua Kien",
[2134] = "Mrs. Winters",
[2140] = "Edwin Harly",
[2286] = "Bow Guy",
[2401] = "Kayren Soothallow",
[2685] = "Mazk Snipeshot",
[2803] = "Malygen",
[2806] = "Bale",
[2808] = "Vikki Lonsav",
[2820] = "Graud",
[2839] = "Haren Kanmae",
[2878] = "Peria Lamenur",
[2879] = "Karrina Mekenda",
[2908] = "Grawl",
[2997] = "Jyn Stonehoof",
[3015] = "Kuna Thunderhorn",
[3018] = "Hogor Thunderhoof",
[3038] = "Kary Thunderhorn",
[3039] = "Holt Thunderhorn",
[3040] = "Urek Thunderhorn",
[3053] = "Synge",
[3061] = "Lanka Farshot",
[3065] = "Yaw Sharpmane",
[3072] = "Kawnie Softbreeze",
[3076] = "Moorat Longstride",
[3078] = "Kennah Hawkseye",
[3088] = "Henry Chapal",
[3154] = "Jen'shan",
[3158] = "Duokna",
[3164] = "Jark",
[3165] = "Ghrawt",
[3171] = "Thotar",
[3186] = "K'waii",
[3306] = "Keldas",
[3313] = "Trak'gen",
[3322] = "Kaja",
[3350] = "Asoran",
[3352] = "Ormak Grimshot",
[3406] = "Xor'juul",
[3407] = "Sian'dur",
[3409] = "Zendo'jian",
[3410] = "Jin'sora",
[3481] = "Barg",
[3488] = "Uthrok",
[3498] = "Jazzik",
[3534] = "Wallace the Blind",
[3541] = "Sarah Raycroft",
[3545] = "Claude Erksine",
[3587] = "Lyrai",
[3589] = "Keina",
[3596] = "Ayanna Everstride",
[3601] = "Dazalar",
[3608] = "Aldia",
[3610] = "Jeena Featherbow",
[3620] = "Harruk",
[3622] = "Grokor",
[3624] = "Zudd",
[3625] = "Rarck",
[3688] = "Reban Freerunner",
[3698] = "Bolyun",
[3951] = "Bhaldaran Ravenshade",
[3962] = "Haljan Oakheart",
[3963] = "Danlaar Nightstride",
[4082] = "Grawnal",
[4084] = "Chylina",
[4138] = "Jeen'ra Nightrunner",
[4146] = "Jocaste",
[4170] = "Ellandrieth",
[4173] = "Landria",
[4182] = "Dalmond",
[4203] = "Ariyell Skyshadow",
[4205] = "Dorion",
[4241] = "Mydrannul",
[4320] = "Caelyb",
[4555] = "Eleanor Rusk",
[4602] = "Benijah Fenner",
[4603] = "Nicholas Atwood",
[4604] = "Abigail Sawyer",
[4876] = "Jawn Highmesa",
[4889] = "Torq Ironblast",
[4892] = "Jensen Farran",
[4896] = "Charity Mipsy",
[5101] = "Bryllia Ironbrand",
[5115] = "Daera Brightspear",
[5116] = "Olmin Burningbeard",
[5117] = "Regnus Thundergranite",
[5122] = "Skolmin Goldfury",
[5123] = "Bretta Goldfury",
[5134] = "Jonivera Farmountain",
[5501] = "Kaerbrus",
[5510] = "Thulman Flintcrag",
[5515] = "Einris Brightspear",
[5516] = "Ulfir Ironbeard",
[5517] = "Thorfin Stoneshield",
[5814] = "Innkeeper Thulbek",
[6028] = "Burkrum",
[6749] = "Erma",
[7942] = "Faralorn",
[7976] = "Thalgus Thunderfist",
[8131] = "Blizrik Buckshot",
[8139] = "Jabbey",
[8308] = "Alenndaar Lapidaar",
[8362] = "Kuruk",
[9320] = "Pipoca the Searunner",
[9548] = "Cawind Trueaim",
[9549] = "Borand",
[9551] = "Starn",
[9552] = "Zanara",
[9553] = "Nadia Vernon",
[9555] = "Mu'uta",
[9976] = "Tharlidun",
[9977] = "Sylista",
[9978] = "Wesley",
[9979] = "Sarah Goode",
[9980] = "Shelby Stoneflint",
[9981] = "Sikwa",
[9982] = "Penny",
[9983] = "Kelsuwa",
[9984] = "Ulbrek Firehand",
[9985] = "Laziphus",
[9986] = "Shyrka Wolfrunner",
[9987] = "Shoja'my",
[9988] = "Xon'cha",
[9989] = "Lina Hearthstove",
[10045] = "Kirk Maxwell",
[10046] = "Bethaine Flinthammer",
[10047] = "Michael",
[10048] = "Gereck",
[10049] = "Hekkru",
[10050] = "Seikwa",
[10051] = "Seriadne",
[10052] = "Maluressian",
[10053] = "Anya Maulray",
[10054] = "Bulrug",
[10055] = "Morganus",
[10056] = "Alassin",
[10057] = "Theodore Mont Claire",
[10058] = "Greth",
[10059] = "Antarius",
[10060] = "Grimestack",
[10061] = "Killium Bouldertoe",
[10062] = "Steven Black",
[10063] = "Reggifuz",
[10085] = "Jaelysia",
[10086] = "Hesuwa Thunderhorn",
[10088] = "Xao'tsu",
[10089] = "Silvaria",
[10090] = "Belia Thundergranite",
[10369] = "Trayexir",
[10930] = "Dargh Trueaim",
[11038] = "Caretaker Alen",
[11069] = "Jenova Stoneshield",
[11104] = "Shelgrayn",
[11105] = "Aboda",
[11117] = "Awenasa",
[11119] = "Azzleby",
[11184] = "Wixxrak",
[11555] = "Gorn One Eye",
[12021] = "Daeolyn Summerleaf",
[12027] = "Tukk",
[12029] = "Narianna",
[12036] = "Aerie Peak General Goods",
[12246] = "Super-Seller 680",
[12782] = "Captain O'Neal",
[12959] = "Nergal",
[12960] = "Christi Galvanis",
[13216] = "Gaelden Hammersmith",
[13217] = "Thanthaldis Snowgleam",
[13218] = "Grunnda Wolfheart",
[13219] = "Jekyll Flandring",
[13616] = "Frostwolf Stable Master",
[13617] = "Stormpike Stable Master",
[14301] = "Brinna Valanaar",
[14581] = "Sergeant Thunderhorn",
[14624] = "Master Smith Burninate",
[14741] = "Huntsman Markhor",
[14753] = "Illiyana Moonblaze",
[14754] = "Kelm Hargunth",
[14846] = "Lhara",
[15131] = "Qeeju",
[15174] = "Calandrath",
[15722] = "Squire Leoren Mal'derath",
[16094] = "Durik",
[16156] = "Dark Touched Warrior",
[17078] = "Jimmy McWeaksauce",
[17598] = "Renn'az",
[21002] = "Squire Boltfling",
[51656] = "Rug",
[60456] = "Belgrush Daggerfist",
[60483] = "Morpheus Ribcage",
[60484] = "Liott Maneskin",
[60485] = "Noel Bearfinger",
[60486] = "Vaya Spidersbite",
[60487] = "Valdos Madhound",
[60488] = "Diane Willowfield",
[60641] = "Goma",
[60646] = "Evatax",
[60653] = "Skeletal Blacksmith",
[60659] = "Cydas Moonshadow",
[60663] = "Grin Harold",
[60740] = "Bald'aan The Quiet",
[60766] = "Golsh",
[60768] = "Herekk",
[60790] = "Mathilda Beckett",
[60803] = "Tyrion Bouden",
[60813] = "Ahnja Summerwind",
[60966] = "Tanzig Wexlight",
[60989] = "Borrin Dustshoulder",
[61058] = "Tazo Wirelight",
[61115] = "Wezzy Coppersaw",
[61140] = "Azmela Shadowcrest",
[61266] = "Alexandra",
[61272] = "Samantha Stewards",
[61288] = "Savenna Mosscage",
[61369] = "Anati Gapper",
[61440] = "Gnidabern Coilspinner",
[61443] = "Dimbil Stormshot",
[61445] = "Krilee Stormshot",
[61478] = "Talavana Andalorah",
[61523] = "Naytha Grovelight",
[61563] = "Arayna Softwind",
[61624] = "AJ Springberry",
[61625] = "Daisy Windhelm",
[61626] = "Diane Cloverfield",
[61627] = "Old Jonah",
[61628] = "Willhelm Rockdust",
[61629] = "Marven",
[61640] = "Marksman Rembrandt Olar",
[61651] = "Vi'cha Spirithowler",
[61722] = "Sazzlix",
[61742] = "Mazin Forkblast",
[61743] = "Hazlor Torkfuse",
[61751] = "Kango Boltblast",
[61812] = "Celia Daywing",
[62086] = "Meldor Swiftlance",
[62088] = "Laithor Morningleaf",
[62096] = "Aira Starsworn",
[62098] = "Gozzlek",
[62099] = "Guzhek",
[62148] = "Wisteria Gallagher",
[62161] = "Leander Hering",
[62307] = "Barbara Lee",
[62401] = "Farwyn Barleynight",
[62402] = "Kargun Mightfall",
[62403] = "Vohand Blundergate",
[62404] = "Kazand Blundergate",
[62409] = "Gazla Blackforge",
[62436] = "Hagrekk",
[62437] = "Maktha",
[62462] = "Elindra Swiftluck",
[62469] = "Navigator Weebletax",
[62628] = "Nyxma Niftpatch",
[62739] = "Orthol the Tracker",
[65002] = "Ethernos",
[65003] = "Chradarmu",
[80008] = "Aubrey Merton",
[80102] = "Ohgi Cardya",
[80105] = "Mayten Boomrifle",
[80214] = "Malanius Silvershine",
[80219] = "Ranger Rubinah Sunsworn",
[80245] = "Damilara Sunsorrow",
[80266] = "Soalara Dawnstar",
[80267] = "Torial Dawnrise",
[80457] = "Andrelas Thas'danil",
[80458] = "Ranger Canarah Kim'Alah",
[80807] = "Reolis Riptusk",
[80808] = "Ranor Riptusk",
[80810] = "Rinja Scenttusk",
[80855] = "Clover Spinpistol",
[80856] = "Twinkie Boomstick",
[80903] = "Viz Fizbeast",
[80915] = "Tan'Pogo",
[80941] = "Earthcaller Jalyssa",
[80942] = "Deathcaller Aisha",
[80943] = "Dronormu",
[81035] = "Jake Booker",
[81050] = "Dark Ranger Lanissa",
[91246] = "Valkar",
[91248] = "Wixx",
[91403] = "Kintello",
[91725] = "Darren Mistwall",
[91868] = "Primalist Gojo",
[91956] = "Denia Hale",
[91977] = "Olfan Goldenbrow",
[92169] = "Kryillos",
[92177] = "Garto'ogg",
[92200] = "Bhatra",
[92217] = "Ticas Quirkfuzz",
}
+327
View File
@@ -0,0 +1,327 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.esES = {
[7] = "*",
[151] = "Brog Patosar",
[152] = "Hermano Danil",
[227] = "Mabel Solaj",
[228] = "Avette Bosquevil",
[491] = "Intendente Lewis",
[543] = "Nalesette Asilvestra",
[734] = "Cabo Bluth",
[789] = "Kimberly Hiett",
[791] = "Lindsay Cierreniza",
[829] = "Adlin Rumborgullo",
[895] = "Thorgas Grimson",
[987] = "Ogromm",
[1149] = "Uthok",
[1198] = "Rallic Finn",
[1231] = "Grif Corazón Salvaje",
[1243] = "Hegnar Disparatrueno",
[1250] = "Draco Lindgren",
[1285] = "Thurman Mullby",
[1287] = "Marda Weller",
[1297] = "Lina Paladare",
[1298] = "Frederick Hornillos",
[1404] = "Kragg",
[1448] = "Neal Allen",
[1452] = "Gruham Rumdnul",
[1459] = "Naela Trance",
[1461] = "Murndan Carestía",
[1462] = "Edwina Monzor",
[1469] = "Vrok Rayobestial",
[1668] = "William MacGregor",
[1682] = "Yanni Cuoreforte",
[1685] = "Xandar Bonbarba",
[1686] = "Irene Tiroseguro",
[1687] = "Cliff Hadin",
[1691] = "Kreg Bilmn",
[2084] = "Natheril Clamalluvia",
[2115] = "Joshua Kien",
[2134] = "Sra. Winters",
[2140] = "Edwin Harly",
[2401] = "Kayren Sombrollín",
[2685] = "Mazk Tirocertero",
[2803] = "Malygen",
[2806] = "Fardo",
[2808] = "Vikki Lonsav",
[2820] = "Graud",
[2839] = "Haren Kanmae",
[2878] = "Peria Lamenur",
[2879] = "Karrina Mekenda",
[2908] = "Graul",
[2997] = "Jyn Pezuñapétrea",
[3015] = "Kuna Tronacuerno",
[3018] = "Hogor Pezuñatrueno",
[3038] = "Kary Tronacuerno",
[3039] = "Holt Tronacuerno",
[3040] = "Urek Tronacuerno",
[3053] = "Synge",
[3061] = "Lanka Tirolargo",
[3065] = "Yaw Crinafilada",
[3072] = "Kawnie Brisaleve",
[3076] = "Moorat Zancada Larga",
[3078] = "Kennah Ojo de Halcón",
[3088] = "Henry Chapal",
[3154] = "Jen'shan",
[3158] = "Duokna",
[3164] = "Jark",
[3165] = "Ghrawt",
[3171] = "Thotar",
[3186] = "K'waii",
[3306] = "Keldas",
[3313] = "Trak'gen",
[3322] = "Kaja",
[3350] = "Asoran",
[3352] = "Ormak Tirosiniestro",
[3406] = "Xor'juul",
[3407] = "Sian'dur",
[3409] = "Zendo'jian",
[3410] = "Jin'sora",
[3481] = "Barg",
[3488] = "Uthrok",
[3498] = "Jazzik",
[3534] = "Wallace el Ciego",
[3541] = "Sarah Raycroft",
[3545] = "Claude Erksine",
[3587] = "Lyrai",
[3589] = "Keina",
[3596] = "Ayanna Semprerguida",
[3601] = "Dazalar",
[3608] = "Aldia",
[3610] = "Jeena Plumarco",
[3620] = "Harruk",
[3622] = "Grokor",
[3624] = "Zudd",
[3625] = "Rarck",
[3688] = "Reban Corredor",
[3698] = "Bolyun",
[3951] = "Bhaldaran Sombracuervo",
[3962] = "Haljan Roblezón",
[3963] = "Danlaar Zancanoche",
[4082] = "Grawnal",
[4084] = "Chylina",
[4138] = "Jeen'ra Noctámbulus",
[4146] = "Jocaste",
[4170] = "Ellandrieth",
[4173] = "Landria",
[4182] = "Dalmond",
[4203] = "Ariyell Cielosombra",
[4205] = "Dorion",
[4241] = "Mydrannul",
[4320] = "Caelyb",
[4555] = "Eleanor Rusk",
[4602] = "Benijah Fenner",
[4603] = "Nicholas Emadera",
[4604] = "Abigail Sierra",
[4876] = "Jawn Mesalta",
[4889] = "Torq Balacero",
[4892] = "Jensen Farran",
[4896] = "Caridad Mipsy",
[5101] = "Bryllia Ferracha",
[5115] = "Daera Lanza Reluciente",
[5116] = "Olmin Barbanllamas",
[5117] = "Regnus Tronagranito",
[5122] = "Skolmin Furiadorada",
[5123] = "Bretta Furiadorada",
[5134] = "Jonivera Montelejano",
[5501] = "Kaerbrus",
[5510] = "Thulman Riscosílex",
[5515] = "Einris Lanza Reluciente",
[5516] = "Ulfir Barbaférrea",
[5517] = "Thorfin Petrescudo",
[5814] = "Tabernero Thulbek",
[6028] = "Burkrum",
[6749] = "Erma",
[7942] = "Faralorn",
[7976] = "Thalgus Puñotrueno",
[8131] = "Blizrik Machobala",
[8139] = "Jabbey",
[8308] = "Alenndaar Lapidaar",
[8362] = "Kuruk",
[9320] = "Pipoca Corredora del Mar",
[9548] = "Cawind Endiana",
[9549] = "Borand",
[9551] = "Starn",
[9552] = "Zanara",
[9553] = "Nadia Vernon",
[9555] = "Mu'uta",
[9976] = "Tharlidun",
[9977] = "Sylista",
[9978] = "Wesley",
[9979] = "Sarah Goode",
[9980] = "Shelby Petrepiedra",
[9981] = "Sikwa",
[9982] = "Penny",
[9983] = "Kelsuwa",
[9984] = "Ulbrek Manofuego",
[9985] = "Laziphus",
[9986] = "Shyrka Correlobo",
[9987] = "Shoja'my",
[9988] = "Xon'cha",
[9989] = "Lina Hogarstufa",
[10045] = "Kirk Maxwell",
[10046] = "Bethaine Hachílex",
[10047] = "Michael",
[10048] = "Gereck",
[10049] = "Hekkru",
[10050] = "Seikwa",
[10051] = "Seriadne",
[10052] = "Maluressian",
[10053] = "Anya Maulray",
[10054] = "Bulrug",
[10055] = "Morganus",
[10056] = "Alassin",
[10057] = "Theodore Mont Claire",
[10058] = "Greth",
[10059] = "Antarius",
[10060] = "Mugrín",
[10061] = "Killium Dedorroca",
[10062] = "Steven Black",
[10063] = "Reggifuz",
[10085] = "Jaelysia",
[10086] = "Hesuwa Tronacuerno",
[10088] = "Xao'tsu",
[10089] = "Silvaria",
[10090] = "Belia Tronagranito",
[10369] = "Trayexir",
[10930] = "Dargh Tirojusto",
[11038] = "Custodio Alen",
[11069] = "Jenova Petrescudo",
[11104] = "Shelgrayn",
[11105] = "Aboda",
[11117] = "Awenasa",
[11119] = "Azzleby",
[11184] = "Wixxrak",
[11555] = "Gorn el Tuerto",
[12021] = "Daeolyn Hoja Estival",
[12027] = "Tukk",
[12029] = "Narianna",
[12246] = "Supervendedor 680",
[12782] = "Capitán O'Neal",
[12959] = "Nergal",
[12960] = "Christi Galvanis",
[13216] = "Gaelden Martillero",
[13217] = "Thanthaldis Brillaneve",
[13218] = "Grunnda Corazón de Lobo",
[13219] = "Jekyll Flandring",
[13616] = "Maestra de Establos Lobo Gélido",
[13617] = "Maestra de Establos Pico Tormenta",
[14301] = "Brinna Valanaar",
[14581] = "Sargento Tronacuerno",
[14624] = "Maestro Herrero Cremación",
[14741] = "Cazador Markhor",
[14753] = "Illiyana Lunardiente",
[14754] = "Kelm Hargunth",
[14846] = "Lhara",
[15131] = "Qeeju",
[15174] = "Calandrath",
[15722] = "Escudero Leoren Mal'derath",
[16094] = "Durik",
[16156] = "Guerrero del Toque Oscuro",
[17598] = "Renn'az",
[21002] = "Escudero Lanzarayos",
[51656] = "Rug",
[60456] = "Belgrush Puñaldaga",
[60483] = "Morpheus Cajacostilla",
[60484] = "Liott Piel de Melena",
[60485] = "Noel Dedoso",
[60486] = "Vaya Mordisquepinchos",
[60487] = "Valdos Sabuesoloco",
[60488] = "Diane Camposalvaje",
[60641] = "Goma",
[60646] = "Evatax",
[60653] = "Herrero Esquelético",
[60659] = "Cydas Sombra Lunar",
[60663] = "Grin Harold",
[60740] = "Bald'aan el Silencioso",
[60766] = "Golsh",
[60768] = "Herekk",
[60790] = "Mathilda Beckett",
[60803] = "Tyrion Bouden",
[60813] = "Ahnja Viento de Verano",
[60966] = "Tanzig Luzligera",
[60989] = "Borrin Espalda de Polvo",
[61058] = "Tazo Luzalambre",
[61115] = "Wezzy Sierra de Cobre",
[61140] = "Azmela Crestoscuro",
[61266] = "Alexandra",
[61272] = "Samantha Stewards",
[61288] = "Savenna Musgoceniza",
[61369] = "Anati Gapper",
[61440] = "Gnidabern Giraperno",
[61443] = "Dimbil Disparotormenta",
[61445] = "Krinkle Buenacero",
[61478] = "Talavana Andalorah",
[61523] = "Naytha Luz de la Humildad",
[61563] = "Arayna Vientosuave",
[61624] = "AJ Springberry",
[61625] = "Daisy Vientovela",
[61626] = "Diane Campotrebol",
[61627] = "Viejo Jonah",
[61628] = "Willhelm Polvo de Roca",
[61629] = "Marven",
[61640] = "Tirador Rembrandt Olar",
[61651] = "Vi'cha Aullido Espiritual",
[61722] = "Sazzlix",
[61742] = "Mazin Explosión de Tenedor",
[61743] = "Hazlor Torkfuse",
[61751] = "Kango Explosión de Pernos",
[61812] = "Celia Aladía",
[62086] = "Meldor Lanzaveloz",
[62088] = "Reptador del Lago",
[62096] = "Aira Juracielos",
[62098] = "Gozzlek",
[62099] = "Guzhek",
[62148] = "Wisteria Gallagher",
[62161] = "Leander Hering",
[62307] = "Barbara Lee",
[62401] = "Farwyn Nochecebada",
[62402] = "Kargun Caída Poderosa",
[62403] = "Vohand Portatruenos",
[62404] = "Kazand Blundergate",
[62409] = "Gazla Forjanegra",
[62436] = "Hagrekk",
[62437] = "Maktha",
[62462] = "Elindra Suerteluz",
[62469] = "Navegante Weebletax",
[62628] = "Nyxma Remiendolisto",
[62739] = "Orthol el Rastreador",
[65002] = "Ethernos",
[65003] = "Chradarmu",
[80008] = "Aubrey Merton",
[80102] = "Ohgi Cardya",
[80105] = "Mayten Riflebum",
[80214] = "Malanius Brillo Plateado",
[80219] = "Forestal Rubinah Jurasol",
[80245] = "Damilara Tristealba",
[80266] = "Soalara Estrella del Alba",
[80267] = "Torial Alzaluz",
[80457] = "Andrelas Thas'danil",
[80458] = "Forestal Canarah Kim'Alah",
[80807] = "Reolis Colmillo de Marea",
[80808] = "Ranor Colmillo de Marea",
[80810] = "Rinja Colmillolento",
[80855] = "Trébol Girapistola",
[80856] = "Twinkie Boomstick",
[80903] = "Viz Bestiotrón",
[80915] = "Tan'Pogo",
[80941] = "Invocatierra Jalyssa",
[80942] = "Clamamuerte Aisha",
[80943] = "Dronormu",
[81035] = "Jake Booker",
[81050] = "Exploradora Nocturna Lanissa",
[91246] = "Valkar",
[91248] = "Wixx",
[91403] = "Kintello",
[91725] = "Darren Murmurobruma",
[91868] = "Primalista Gojo",
[91956] = "Denia Hale",
[91977] = "Olfan Ceja Dorada",
[92169] = "Kryillos",
[92177] = "Garto'ogg",
[92200] = "Bhatra",
[92217] = "Ticas Pelorretorcido",
}
+327
View File
@@ -0,0 +1,327 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.ptBR = {
[7] = "*",
[151] = "Brog Hamfist",
[152] = "Irmão Daniel",
[227] = "Mabel Solaj",
[228] = "Avette Fellwood",
[491] = "Intendente Lewis",
[543] = "Nalesette Frenesias ",
[734] = "Cabo Bluth",
[789] = "Kimberly Hiett",
[791] = "Lindsay Ashlock",
[829] = "Adlin Pridedrift",
[895] = "Thorgas Grimson",
[987] = "Ogromm",
[1149] = "Uthok",
[1198] = "Ricardo Fino",
[1231] = "Grif Selvacuore",
[1243] = "Hegnar Estremetiro",
[1250] = "Draco Lindgren",
[1285] = "Túlio Malheiros",
[1287] = "Marcia Weller",
[1297] = "Lina Fornalha",
[1298] = "Frederico Fornalha",
[1404] = "Kragg",
[1448] = "Nélio Allen",
[1452] = "Gruham Patego",
[1459] = "Naela Trance",
[1461] = "Murndan Derth",
[1462] = "Eduína Monzor",
[1469] = "Vrok Soltagafe",
[1668] = "Guilherme Gregorsohn",
[1682] = "Yanni Cuoreforte",
[1685] = "Xandar Boabarba",
[1686] = "Irene Tirocerto",
[1687] = "Cliff Filoneiro",
[1691] = "Kreg Bilmn",
[2084] = "Natheril Clamachuva",
[2115] = "Josué Fontenelle",
[2134] = "Sra. Hibérnias",
[2140] = "Eduíno Harly",
[2401] = "Keila Fuligissacra",
[2685] = "Mazk Tirolongo",
[2803] = "Malygen",
[2806] = "Fardo",
[2808] = "Vikki Lonsav",
[2820] = "Graud",
[2839] = "Haren Kanmae",
[2878] = "Peria Lamenur",
[2879] = "Karrina Mekenda",
[2908] = "Grawl",
[2997] = "Jyn Casco de Pedra",
[3015] = "Kina Chifre Troante",
[3018] = "Hogor Casco de Trovão",
[3038] = "Kari Chifre Troante",
[3039] = "Holto Chifre Troante",
[3040] = "Urek Chifre Troante",
[3053] = "Synge",
[3061] = "Lanka Tiro Distante",
[3065] = "Yaw Crina Cortante",
[3072] = "Kaunie Brisa Suave",
[3076] = "Moorat Passo Longo",
[3078] = "Kenna Olho de Falcão",
[3088] = "Henry Chapal",
[3154] = "Jen'shan",
[3158] = "Duokna",
[3164] = "Jark",
[3165] = "Ghrawt",
[3171] = "Thotar",
[3186] = "K'waii",
[3306] = "Keldas",
[3313] = "Trak'gen",
[3322] = "Jaka",
[3350] = "Asoran",
[3352] = "Ormak Tiroatroz",
[3406] = "Xor'juul",
[3407] = "Sian'dur",
[3409] = "Zendo'jian",
[3410] = "Jin'sora",
[3481] = "Barg",
[3488] = "Uthrok",
[3498] = "Bossanovik",
[3534] = "Wallace, o Cego",
[3541] = "Sara Croft",
[3545] = "Claude Senotorto",
[3587] = "Lyrai",
[3589] = "Keina",
[3596] = "Ayanna Perenanda",
[3601] = "Dazalar",
[3608] = "Áldia",
[3610] = "Jiyna Penarco",
[3620] = "Harruk",
[3622] = "Grokor",
[3624] = "Zudd",
[3625] = "Rarck",
[3688] = "Reban Caminho Liberto",
[3698] = "Bolyun",
[3951] = "Bhaldaran Corvulto",
[3962] = "Haljan Ruboralma",
[3963] = "Danlaar Noctandas",
[4082] = "Grawnal",
[4084] = "Chylina",
[4138] = "Jeen'ra Velonyx",
[4146] = "Jocasta",
[4170] = "Ellandrieth",
[4173] = "Landria",
[4182] = "Dalmond",
[4203] = "Ariyell Caelumbra",
[4205] = "Dorion",
[4241] = "Mydrannul",
[4320] = "Caelyb",
[4555] = "Eleanor Rusga",
[4602] = "Breno Pugna",
[4603] = "Nicolau Madeira",
[4604] = "Abigail Arqueda",
[4876] = "Jawn Chapadalta",
[4889] = "Torq Estouraferro",
[4892] = "Jesse Fanfarrão",
[4896] = "Caritas Lindin",
[5101] = "Bryllia Marcaferro",
[5115] = "Daera Setalume",
[5116] = "Olmin Barbardente",
[5117] = "Regnus Granitrondo",
[5122] = "Skolmin Furiouro",
[5123] = "Bretta Furiouro",
[5134] = "Jonivera Montalgures",
[5501] = "Kaerbrus",
[5510] = "Thulman Rochassílex",
[5515] = "Einris Setalume",
[5516] = "Ulfir Barbaférrea",
[5517] = "Thorfin Escudopétreo",
[5814] = "Estalajadeiro Thulbek",
[6028] = "Burkrum",
[6749] = "Erma",
[7942] = "Faralorn",
[7976] = "Thalgus Punhostrondo",
[8131] = "Blizricco Sciumbigno",
[8139] = "Jebbs",
[8308] = "Alenndaar Lapidus",
[8362] = "Kuruk",
[9320] = "Pipoca, o Corredor do Mar",
[9548] = "Cavento Mira Certa",
[9549] = "Borand",
[9551] = "Starn",
[9552] = "Zanara",
[9553] = "Nádia Vernon",
[9555] = "Mu'uta",
[9976] = "Tharlidun",
[9977] = "Sylista",
[9978] = "Uóxton",
[9979] = "Sara Goode",
[9980] = "Shelby Pedrerneira",
[9981] = "Sikwa",
[9982] = "Magali",
[9983] = "Kelsuwa",
[9984] = "Ulbrek Flamão",
[9985] = "Laziphus",
[9986] = "Shairka Corre com Lobos",
[9987] = "Shoja'my",
[9988] = "Zon'cha",
[9989] = "Lina Fornalenha",
[10045] = "Ciro Magno",
[10046] = "Betânia Pedertelo",
[10047] = "Miguel",
[10048] = "Gereck",
[10049] = "Hekkru",
[10050] = "Seikwa",
[10051] = "Seriadne",
[10052] = "Maluressian",
[10053] = "Anita Malho",
[10054] = "Bulrug",
[10055] = "Morganus",
[10056] = "Alassin",
[10057] = "Teodoro Mont Claire",
[10058] = "Greth",
[10059] = "Antárius",
[10060] = "Fenujeira",
[10061] = "Killium Digisseixo",
[10062] = "Estevão Treva",
[10063] = "Maçaroca",
[10085] = "Jaelysia",
[10086] = "Hesuwa Chifre Troante",
[10088] = "Xao'tsu",
[10089] = "Silvaria",
[10090] = "Bélia Granitrondo",
[10369] = "Trayexir",
[10930] = "Dargh Miracerta",
[11038] = "Zelador Alen",
[11069] = "Jenova Escudopétreo",
[11104] = "Shelgrayn",
[11105] = "Aboda",
[11117] = "Awenasa",
[11119] = "Zenóbio",
[11184] = "Wixxrak",
[11555] = "Gorn Caolho",
[12021] = "Daeolyn Foliéstia",
[12027] = "Tukkão",
[12029] = "Narianna",
[12246] = "Super-Loja 680",
[12782] = "Capitão O'Neal",
[12959] = "Nergal",
[12960] = "Christi Galvanis",
[13216] = "Gaelden Marteleiro",
[13217] = "Tantaldis Cintilaneve",
[13218] = "Gruunda Coração de Lobo",
[13219] = "Jekyll Fâmulo",
[13616] = "Mestre de Estábulo dos Lobo do Gelo",
[13617] = "Mestre de Estábulo de Lançatroz",
[14301] = "Brinna Valanaar",
[14581] = "Sargento Chifre Troante",
[14624] = "Mestre Ferreiro Queimatar",
[14741] = "Guarda-caça Markhor",
[14753] = "Iliana Fulgiluna",
[14754] = "Kelm Hargunth",
[14846] = "Lhara",
[15131] = "Quoiju",
[15174] = "Calandrath",
[15722] = "Escudeiro Leoren Mal'derath",
[16094] = "Durik",
[16156] = "Guerreiro Tocado pelas Trevas",
[17598] = "Renn'az",
[21002] = "Escudeiro Boltfling",
[51656] = "Rug",
[60456] = "Belgrush Punhadaga",
[60483] = "Morfeu Toráxio",
[60484] = "Liott Maneskin",
[60485] = "Noel Bearfinger",
[60486] = "Vaya Noxiteia",
[60487] = "Valdos Cão Louco",
[60488] = "Diane Willowfield",
[60641] = "Panco",
[60646] = "Taxa de Evatação",
[60653] = "Ferreiro Descarnado",
[60659] = "Cydas Umbraluna",
[60663] = "Grin Harold",
[60740] = "Bald'aan, o Silencioso",
[60766] = "Golsh",
[60768] = "Herekk",
[60790] = "Mathilda Beckett",
[60803] = "Tyrion Bouden",
[60813] = "Ahnja Summerwind",
[60966] = "Tanzig Ceraluz",
[60989] = "Borrin Ombro de Poeira",
[61058] = "Tazo Fiolume",
[61115] = "Wezzy Serra-cobre",
[61140] = "Azmela Shadowcrest",
[61266] = "Alexandra",
[61272] = "Samantha Stewards",
[61288] = "Savenna Mosscage",
[61369] = "Anati Gapper",
[61440] = "Gnidabern Coilspinner",
[61443] = "Dimbil Tempestiro",
[61445] = "Krilee Tempestiro",
[61478] = "Talavana Andalorah",
[61523] = "Naytha Grovelight",
[61563] = "Arayna Softwind",
[61624] = "AJ Springberry",
[61625] = "Daisy Windhelm",
[61626] = "Diana Cloverfield",
[61627] = "Velho Jonas",
[61628] = "Willhelm Rochapó",
[61629] = "Marven",
[61640] = "Atirador Rembrandt Olar",
[61651] = "Vi'cha, o Espírito Uivador",
[61722] = "Sazzlix",
[61742] = "Mazin Forquilha",
[61743] = "Fusível Hazlor",
[61751] = "Kango Esxploderraio",
[61812] = "Célia Daywing",
[62086] = "Meldor Swiftlance",
[62088] = "Laithor Folhaurora",
[62096] = "Aira Jurestrela",
[62098] = "Gozzlek",
[62099] = "Guzhek",
[62148] = "Wisteria Gallagher",
[62161] = "Leandro Hering",
[62307] = "Barbara Lee",
[62401] = "Farwyn Cevada Noite",
[62402] = "Kargun Mightfall",
[62403] = "Vohand Blundergate",
[62404] = "Kazand Blundergate",
[62409] = "Gazla Forja Negra",
[62436] = "Hagrekk",
[62437] = "Maktha",
[62462] = "Elindra Swiftluck",
[62469] = "Navegador Weebletax",
[62628] = "Nyxma Retalhazero",
[62739] = "Orthol, o Rastreador",
[65002] = "Ethernos",
[65003] = "Chradarmu",
[80008] = "Aubrey Merton",
[80102] = "Ohgi Cardya",
[80105] = "Mayten Trovarma",
[80214] = "Malanius Brilhaprata",
[80219] = "Patrulheira Rubinah Jurassolar",
[80245] = "Damilara Sunsorrow",
[80266] = "Soalara Dawnstar",
[80267] = "Torial Alvorada",
[80457] = "Andrelas Thas'danil",
[80458] = "Patrulheira Canarah Kim'alah",
[80807] = "Reolis Riptusk",
[80808] = "Ranor Presa Riptosa",
[80810] = "Rinja Presafume",
[80855] = "Clover Spinpistol",
[80856] = "Twinkie Explosivara",
[80903] = "Viz Fizbeast",
[80915] = "Tan'Pogo",
[80941] = "Arauto da Terra Jalyssa",
[80942] = "Bradamorte Aisha",
[80943] = "Dronormu",
[81035] = "Jake Booker",
[81050] = "Patrulheira Sombia Lanissa",
[91246] = "Valkar",
[91248] = "Wixx",
[91403] = "Kintello",
[91725] = "Darren Mistwall",
[91868] = "Primalista Gojo",
[91956] = "Dénia Hale",
[91977] = "Olfan Goldenbrow",
[92169] = "Kryillos",
[92177] = "Garto'ogg",
[92200] = "Bhatra",
[92217] = "Ticas Quirkfuzz",
}
+230
View File
@@ -0,0 +1,230 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.ruRU = {
[150] = "[UNUSED] Brother Milius",
[151] = "Брог Мясорук",
[152] = "Брат Даниль",
[227] = "Мейбл Солаж",
[228] = "Аветта Хвористинка",
[491] = "Интендант Льюис",
[543] = "Налезетта Буйный Нрав",
[734] = "Капрал Блуф",
[789] = "Кимберли Хайетт",
[791] = "Линдски Ашлок",
[829] = "Одлин Гордоступ",
[895] = "Торгас Мрачнон",
[904] = "[UNUSED] Regna Khurn",
[987] = "Огромм",
[1149] = "Утхок",
[1198] = "Раллик Финн",
[1231] = "Гриф Дикое Сердце",
[1243] = "Хегнар Громострел",
[1250] = "Дрейк Линдгрен",
[1285] = "Турман Милби",
[1287] = "Марда Веллер",
[1297] = "Лина Стовер",
[1298] = "Фредерик Стовер",
[1404] = "Крагг",
[1448] = "Нил Аллен",
[1452] = "Грухам Румднул",
[1455] = "[UNUSED] Grummar Thunk",
[1459] = "Наела Транс",
[1461] = "Мурден Дерт",
[1462] = "Эдвина Монзор",
[1469] = "Врок Мимострел",
[1668] = "Вильям Макгрегор",
[1682] = "Янни Твердое Сердце",
[1685] = "Ксаварик",
[1686] = "Ирен Меткострел",
[1687] = "Клифф Кадин",
[1691] = "Крег Бильмн",
[1859] = "[UNUSED] Nyein Longwind",
[2084] = "Натериль Заклинатель Дождя",
[2115] = "Джошуа Кин",
[2134] = "Миссис Винтерс",
[2140] = "Эдвин Харли",
[2286] = "Лучник",
[2401] = "Кайрен Священный Прах",
[2685] = "Мазк Карабинс",
[2803] = "Малиген",
[2806] = "Тюкн",
[2808] = "Викки Лонсав",
[2820] = "Грауд",
[2839] = "Харен Канмай",
[2878] = "Перия Ламенур",
[2879] = "Каррина Мекенда",
[2908] = "Граул",
[2997] = "Джин Каменное Копыто",
[3015] = "Куна Громовой Рог",
[3018] = "Хогор Громовое Копыто",
[3038] = "Кари Громовой Рог",
[3039] = "Хольт Громовой Рог",
[3040] = "Урек Громовой Рог",
[3053] = "Синг",
[3061] = "Ланко Дальний Выстрел",
[3065] = "Йо Колкая Грива",
[3072] = "Кауни Нежный Ветерок",
[3076] = "Морат Дальний Путь",
[3078] = "Кеннах Соколиный Глаз",
[3088] = "Генри Чапал",
[3154] = "Джен'шан",
[3158] = "Дуокна",
[3164] = "Джарк",
[3165] = "Грахт",
[3171] = "Тотар",
[3186] = "К'вайа",
[3306] = "Кельдас",
[3313] = "Трак'ген",
[3322] = "Каджа",
[3350] = "Азоран",
[3352] = "Ормак Лютострел",
[3406] = "Ксор'джуул",
[3407] = "Шиан'дара",
[3409] = "Зендо'джиан",
[3410] = "Джин'сора",
[3481] = "Барг",
[3488] = "Утрок",
[3498] = "Джаззик",
[3534] = "Уоллес Слепой",
[3541] = "Сара Рэйкрофт",
[3545] = "Клод Эрксин",
[3587] = "Лирай",
[3589] = "Кейна",
[3596] = "Аянна Вечнобродка",
[3601] = "Дазалар",
[3608] = "Альдия",
[3610] = "Джиена Оперенная Стрела",
[3620] = "Харрук",
[3622] = "Грокор",
[3624] = "Зюдд",
[3625] = "Рерк",
[3688] = "Ребан Вольный Странник",
[3698] = "Больюн",
[3951] = "Балдаран Тень Ворона",
[3962] = "Хальян Сердце Дуба",
[3963] = "Данлаар Ночной странник",
[4082] = "Граунал",
[4084] = "Чилина",
[4138] = "Джин'ра Ночная Вестница",
[4146] = "Иокаста",
[4170] = "Элландриет",
[4173] = "Ландрия",
[4182] = "Дальмонд",
[4203] = "Ариэль Тень Небес",
[4205] = "Дорион",
[4241] = "Мидраннул",
[4320] = "Калиб",
[4555] = "Элинор Руск",
[4602] = "Бенидж Феннер",
[4603] = "Николас Этвуд",
[4604] = "Эбигейл Сойер",
[4876] = "Джаун Высокий Холм",
[4889] = "Торк Стальное Зарево",
[4892] = "Дженсен Фарран",
[4896] = "Милла Сердия",
[5101] = "Бриллия Железное Клеймо",
[5115] = "Дайра Яркое Копье",
[5116] = "Олмин Пламебород",
[5117] = "Регнус Громовой Гранит",
[5122] = "Сколомин Златопуля",
[5123] = "Бретта Златопуля",
[5134] = "Джонивера Дальногор",
[5501] = "Карбус",
[5510] = "Тулман Кремневый Утес",
[5515] = "Эйнриса Яркошип",
[5516] = "Ульфир Железнобород",
[5517] = "Торфин Камнещит",
[5814] = "Хозяин таверны Тулбек",
[6028] = "Буркрум",
[6749] = "Ирма",
[7942] = "Фаралорн",
[7976] = "Талгус Громодлань",
[8131] = "Близрик Шрапнельс",
[8139] = "Джабби",
[8308] = "Алендаар Лаподаар",
[8362] = "Курук",
[9548] = "Кавинд Верный Прицел",
[9549] = "Боранд",
[9551] = "Старн",
[9552] = "Занара",
[9553] = "Надя Вернон",
[9555] = "Му'ута",
[9976] = "Тарлидун",
[9977] = "Силиста",
[9978] = "Весли",
[9979] = "Сара Гуди",
[9980] = "Шелби Щебенка",
[9981] = "Сиква",
[9982] = "Пенни",
[9983] = "Кельсува",
[9984] = "Ульбрек Огненная Длань",
[9985] = "Лазиф",
[9986] = "Ширка Волкопас",
[9987] = "Шоя'май",
[9988] = "Ксон'ча",
[9989] = "Лина Жаркий Очаг",
[10045] = "Кирк Максвелл",
[10046] = "Бетайна Кремнемолот",
[10047] = "Мишель",
[10048] = "Герек",
[10049] = "Хеккру",
[10050] = "Сейква",
[10051] = "Сериадна",
[10052] = "Малурессиан",
[10053] = "Аня Молрэ",
[10054] = "Балруг",
[10055] = "Морганус",
[10056] = "Алассин",
[10057] = "Теодор Монт-Клэр",
[10058] = "Грет",
[10059] = "Антарий",
[10060] = "Трубадым",
[10061] = "Киллиум Твердопал",
[10062] = "Стивен Блэк",
[10063] = "Реггифуз",
[10085] = "Джеласия",
[10086] = "Хесува Громовой Рог",
[10088] = "Ксао'цу",
[10089] = "Сильвария",
[10090] = "Белия Громовой Гранит",
[10369] = "Трайексир",
[10930] = "Дарг Верный Прицел",
[11038] = "Управляющий Ален",
[11069] = "Дженова Камнещит",
[11104] = "Шельграйн",
[11105] = "Абода",
[11117] = "Авенаса",
[11119] = "Аззлеби",
[11184] = "Виззрак",
[11555] = "Горн Одноглаз",
[12021] = "Даолин Летний Лист",
[12027] = "Тукк",
[12029] = "Нарианна",
[12036] = "Торговка с Заоблачного пика",
[12246] = "Робо-торговец 680",
[12782] = "Капитан О'Нил",
[12959] = "Нергал",
[12960] = "Кристи Гальванис",
[13216] = "Гаелден Кузнечный Молот",
[13217] = "Тантальдис Снегоблеск",
[13218] = "Грюнда Волчье Сердце",
[13219] = "Джекилл Флендринг",
[13616] = "Смотритель стойл из клана Северного Волка",
[13617] = "Смотритель стойл из клана Грозовой Вершины",
[14301] = "Бринна Валанаар",
[14581] = "Сержант Громовой Рог",
[14624] = "Мастер-кузнец Гориврат",
[14741] = "Охотник Мархор",
[14753] = "Иллиана Лунное Сияние",
[14754] = "Кельм Харгюнт",
[14846] = "Лара",
[15131] = "Киджу",
[15174] = "Каландрата",
[15722] = "Оруженосец Леорен Мал'дерат",
[16094] = "Дарик",
[16156] = "Помеченный Тьмой воин",
[17078] = "Джимми Максоус",
[17598] = "Ренн'аз",
}
+327
View File
@@ -0,0 +1,327 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
MTH_LocaleData.data.vendors = MTH_LocaleData.data.vendors or {}
MTH_LocaleData.data.vendors.zhCN = {
[7] = "*",
[151] = "布洛葛·哈姆菲斯特",
[152] = "丹尼尔修士",
[227] = "玛贝尔·索拉什",
[228] = "艾瓦特·菲尔伍德",
[491] = "军需官刘易斯",
[543] = "纳雷塞特",
[734] = "布鲁斯下士",
[789] = "金伯利·海特",
[791] = "林塞·阿什洛克",
[829] = "艾德林·怒流",
[895] = "索加斯·格瑞姆森",
[987] = "欧格鲁姆",
[1149] = "尤索克",
[1198] = "拉里克·费恩",
[1231] = "格瑞夫·蛮心",
[1243] = "海格纳·重枪",
[1250] = "德拉克·林格雷",
[1285] = "萨尔曼·穆比",
[1287] = "玛尔达·维勒",
[1297] = "黎娜·斯图瓦",
[1298] = "弗德瑞克·斯图瓦",
[1404] = "克拉格",
[1448] = "尼尔·奥雷",
[1452] = "格鲁哈姆·拉姆杜恩",
[1459] = "奈拉·特兰斯",
[1461] = "穆恩达·德斯",
[1462] = "艾德温娜·蒙佐尔",
[1469] = "维罗克·乱枪",
[1668] = "威廉·马克葛瑞格",
[1682] = "雅尼·铁心",
[1685] = "山达·细须",
[1686] = "埃伦",
[1687] = "克里夫·哈丁",
[1691] = "克雷格·比尔姆",
[2084] = "纳瑟瑞尔·祈雨",
[2115] = "乔舒·基恩",
[2134] = "温特斯夫人",
[2140] = "艾德温·哈里",
[2401] = "凯伦·苏萨隆",
[2685] = "玛兹克·斯奈普沙特",
[2803] = "玛里甘",
[2806] = "拜尔",
[2808] = "维基·隆萨夫",
[2820] = "格劳德",
[2839] = "哈伦·坎麦尔",
[2878] = "派瑞亚·拉密诺尔",
[2879] = "卡瑞娜·麦肯达",
[2908] = "格劳尔",
[2997] = "吉恩·石蹄",
[3015] = "库纳·雷角",
[3018] = "霍高尔·雷角",
[3038] = "卡瑞·雷角",
[3039] = "浩特·雷角",
[3040] = "乌瑞克·雷角",
[3053] = "赛恩格",
[3061] = "兰卡·远箭",
[3065] = "雅文·刺鬃",
[3072] = "卡文尼·柔风",
[3076] = "姆拉特·远行",
[3078] = "肯纳·鹰眼",
[3088] = "亨利·查培尔",
[3154] = "基沙",
[3158] = "多克纳",
[3164] = "加尔克",
[3165] = "格劳特",
[3171] = "索塔尔",
[3186] = "克瓦埃",
[3306] = "凯尔达斯",
[3313] = "特拉克根",
[3322] = "卡加",
[3350] = "阿索兰",
[3352] = "奥玛克·酷射",
[3406] = "科索祖尔",
[3407] = "萨杜尔",
[3409] = "森度吉安",
[3410] = "金索拉",
[3481] = "巴尔格",
[3488] = "阿瑟罗克",
[3498] = "加吉克",
[3534] = "盲眼瓦拉斯",
[3541] = "莎拉·雷克劳夫特",
[3545] = "克劳德·艾尔克辛",
[3587] = "琳莱尔",
[3589] = "奇娜",
[3596] = "阿亚娜·远途",
[3601] = "达扎拉",
[3608] = "奥蒂亚",
[3610] = "吉娜·羽弓",
[3620] = "哈鲁克",
[3622] = "格罗科尔",
[3624] = "祖德",
[3625] = "拉尔克",
[3688] = "瑞班",
[3698] = "波尔温",
[3951] = "巴尔达兰·鸦影",
[3962] = "哈尔詹·橡木之心",
[3963] = "丹拉尔·夜路",
[4082] = "格劳纳尔",
[4084] = "莎琳娜",
[4138] = "吉恩拉",
[4146] = "祖卡斯特",
[4170] = "艾兰蒂斯",
[4173] = "兰德瑞亚",
[4182] = "达蒙德",
[4203] = "阿瑞耶尔·天影",
[4205] = "多利安",
[4241] = "迈德兰努尔",
[4320] = "凯尔林布",
[4555] = "艾林诺尔·拉斯克",
[4602] = "本尼亚·芬奈尔",
[4603] = "尼古拉斯·阿特伍德",
[4604] = "阿比盖恩·萨叶尔",
[4876] = "加恩·高塔",
[4889] = "托克·铁火",
[4892] = "杰森·法兰",
[4896] = "查瑞迪·米普斯",
[5101] = "布莱利亚·铁印",
[5115] = "戴拉·锐矛",
[5116] = "奥尔明·燃须",
[5117] = "雷格努斯·雷石",
[5122] = "斯克米·金怒",
[5123] = "布雷塔·金怒",
[5134] = "约尼维拉·远山",
[5501] = "凯尔布鲁斯",
[5510] = "苏尔曼·火崖",
[5515] = "恩瑞斯·锐矛",
[5516] = "奥菲尔·铁须",
[5517] = "索尔芬·石盾",
[5814] = "旅店老板苏贝克",
[6028] = "布克拉姆",
[6749] = "艾玛",
[7942] = "法拉罗恩",
[7976] = "萨古斯·雷拳",
[8131] = "布雷兹里克·巴克舒特",
[8139] = "加贝",
[8308] = "奥林达尔·石鹿",
[8362] = "库鲁克",
[9320] = "海行者皮波卡",
[9548] = "卡温德",
[9549] = "伯兰德",
[9551] = "斯塔恩",
[9552] = "萨纳拉",
[9553] = "纳迪亚·沃农",
[9555] = "穆塔",
[9976] = "萨里顿",
[9977] = "塞丽斯塔",
[9978] = "维斯雷",
[9979] = "萨拉·古迪",
[9980] = "谢尔比·石火",
[9981] = "希克瓦",
[9982] = "本尼",
[9983] = "克尔苏瓦",
[9984] = "乌布雷克·火拳",
[9985] = "拉兹弗斯",
[9986] = "谢尔卡·狼行者",
[9987] = "苏亚米",
[9988] = "克苏卡",
[9989] = "丽娜·壁炉",
[10045] = "科尔克·麦克斯韦尔",
[10046] = "贝塞尼·火锤",
[10047] = "麦克尔",
[10048] = "格雷克",
[10049] = "哈克鲁",
[10050] = "希克瓦",
[10051] = "瑟里亚迪",
[10052] = "玛鲁希亚",
[10053] = "安雅·玛尔雷",
[10054] = "布尔鲁格",
[10055] = "莫加努斯",
[10056] = "阿拉辛",
[10057] = "塞多蒙·克莱尔",
[10058] = "格雷斯",
[10059] = "安塔留斯",
[10060] = "格雷米斯塔克",
[10061] = "基利姆·石趾",
[10062] = "斯蒂文·布莱克",
[10063] = "雷格菲兹",
[10085] = "贾琳希亚",
[10086] = "赫苏瓦·雷角",
[10088] = "肖祖",
[10089] = "西尔瓦莉雅",
[10090] = "贝莉亚·雷岩",
[10369] = "特莱耶克",
[10930] = "达恩·准星",
[11038] = "护理者奥林",
[11069] = "耶诺瓦·石盾",
[11104] = "舍尔戈莱恩",
[11105] = "安伯达",
[11117] = "阿文纳萨",
[11119] = "阿兹雷比",
[11184] = "维撒克",
[11555] = "独眼高恩",
[12021] = "黛欧琳·夏叶",
[12027] = "图克",
[12029] = "娜利安",
[12246] = "超级商人680型",
[12782] = "奥尼尔上尉",
[12959] = "奈尔加",
[12960] = "克里斯蒂·加瓦尼斯",
[13216] = "盖尔丁",
[13217] = "塔萨迪斯·雪光",
[13218] = "格伦达·狼心",
[13219] = "耶克里·弗兰迪",
[13616] = "霜狼兽栏管理员",
[13617] = "雷矛兽栏管理员",
[14301] = "布琳娜·瓦兰达尔",
[14581] = "军士霍斯·雷角",
[14624] = "大铁匠博恩奈特",
[14741] = "猎户马克霍尔",
[14753] = "艾蒂尔·月火",
[14754] = "凯尔姆·哈古斯",
[14846] = "兰拉",
[15131] = "基苏",
[15174] = "卡兰德拉斯",
[15722] = "莱欧伦·玛尔迪拉斯",
[16094] = "杜雷克",
[16156] = "黑暗战士",
[17598] = "瑞安兹",
[21002] = "侍从博尔特弗林",
[51656] = "拉格",
[60456] = "贝格鲁什·匕拳",
[60483] = "墨菲斯·肋骨",
[60484] = "利奥特·鬃皮",
[60485] = "诺埃尔·熊指",
[60486] = "瓦雅·蛛刺",
[60487] = "沃尔多斯·疯狗",
[60488] = "戴安·柳田",
[60641] = "戈马",
[60646] = "伊维泰克斯",
[60653] = "骸骨铁匠",
[60659] = "赛达斯·月影",
[60663] = "格林·哈罗德",
[60740] = "安静的巴尔达安",
[60766] = "戈尔什",
[60768] = "赫里克",
[60790] = "玛蒂尔达·贝克特",
[60803] = "提利昂·布登",
[60813] = "安贾夏风",
[60966] = "坦齐格·韦光",
[60989] = "博林·沙肩",
[61058] = "塔佐·线灯",
[61115] = "韦兹·铜锯",
[61140] = "阿兹梅拉·影冠",
[61266] = "亚历山德拉",
[61272] = "萨曼莎·斯图尔兹",
[61288] = "萨维纳·莫斯凯奇",
[61369] = "阿纳蒂·加珀",
[61440] = "格尼达伯恩·绕圈",
[61443] = "丁比尔·风弹",
[61445] = "克里利·风弹",
[61478] = "塔拉瓦纳·安达洛拉",
[61523] = "内萨·格罗夫莱特",
[61563] = "艾瑞娜·微风",
[61624] = "AJ·春莓",
[61625] = "黛西·风盔",
[61626] = "黛安·科洛弗",
[61627] = "老约拿",
[61628] = "威廉·石灰",
[61629] = "马文",
[61640] = "神射手伦勃朗·奥拉尔",
[61651] = "灵魂狩猎者维恰",
[61722] = "萨兹利克斯",
[61742] = "玛津·火叉",
[61743] = "哈兹洛·托克福丝",
[61751] = "坎戈·螺栓爆破",
[61812] = "塞莉娅·黎明之翼",
[62086] = "梅尔多·迅矛",
[62088] = "莱索·晨叶",
[62096] = "艾拉·星誓",
[62098] = "戈兹克",
[62099] = "加兹克",
[62148] = "威斯特里亚·加拉格尔",
[62161] = "利安德·赫林",
[62307] = "芭芭拉·李",
[62401] = "法温·夜麦",
[62402] = "卡尔贡·力陨",
[62403] = "沃哈丹·枪门",
[62404] = "喀桑德·枪门",
[62409] = "加兹拉·黑炉",
[62436] = "哈格雷克",
[62437] = "马克塔",
[62462] = "埃琳德拉·鸿运",
[62469] = "领航员威宝泰克斯",
[62628] = "尼克斯玛·尼夫帕奇",
[62739] = "追踪者奥索尔",
[65002] = "埃特诺斯",
[65003] = "恰达穆",
[80008] = "奥布雷·莫顿",
[80102] = "奥吉·卡地亚",
[80105] = "梅坦·炸枪",
[80214] = "玛拉尼斯·月光",
[80219] = "游侠卢比纳·誓日",
[80245] = "达米拉拉·炎伤",
[80266] = "索拉拉·晨星",
[80267] = "图瑞奥·晨光",
[80457] = "安卓拉斯·萨斯达尼尔",
[80458] = "游侠科纳罗·吉姆阿拉",
[80807] = "瑞欧里斯·裂牙",
[80808] = "雷诺·裂牙",
[80810] = "瑞加·森特塔斯克",
[80855] = "克洛弗·旋枪",
[80856] = "特温奇·火枪",
[80903] = "维兹·菲泽比斯特",
[80915] = "塔岸坡格奥",
[80941] = "唤地者嘉丽莎",
[80942] = "唤亡者艾莎",
[80943] = "卓诺姆",
[81035] = "杰克·布克尔",
[81050] = "黑暗游侠拉里萨",
[91246] = "沃卡",
[91248] = "威克斯",
[91403] = "金泰洛",
[91725] = "达伦·米斯特沃",
[91868] = "高卓祭司",
[91956] = "德尼亚·黑尔",
[91977] = "奥梵·金眉",
[92169] = "克瑞伊洛斯",
[92177] = "伽图奥格",
[92200] = "巴特拉",
[92217] = "提卡斯·怪毛",
}
+4
View File
@@ -0,0 +1,4 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.data = MTH_LocaleData.data or {}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.deDE = {
["Banish"] = "Verbannen",
["Bestial Wrath"] = "Zorn des Wildtiers",
["Concussive Shot"] = "Erschütternder Schuss",
["Counterattack"] = "Gegenangriff",
["Critical Mass"] = "Kritische Masse",
["Clever Traps"] = "Falleneffizienz",
["Deterrence"] = "Abschreckung",
["Explosive Trap"] = "Sprengfalle",
["Explosive Trap Effect"] = "Sprengfalle'-Effekt",
["Feed Pet"] = "Tier füttern",
["Flare"] = "Leuchtfeuer",
["Freezing Trap"] = "Eiskältefalle",
["Freezing Trap Effect"] = "Eisk?tefalle",
["Frost Trap"] = "Frostfalle",
["Frost Trap Aura"] = "Frost Trap Aura",
["Hunter's Mark"] = "Mal des Jägers",
["Holy Strength"] = "Heilige Stärke",
["Immolation Trap"] = "Feuerbrandfalle",
["Immolation Trap Effect"] = "Feuerbrandfalle",
["Improved Concussive Shot"] = "Verbesserter Erschütternder Schuss",
["Improved Wing Clip"] = "Verbessertes Zurechtstutzen",
["Perception"] = "Wachsamkeit",
["Piercing Shot"] = "Stichschuss",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "Schnellfeuer",
["Scare Beast"] = "Wildtier ängstigen",
["Scatter Shot"] = "Streuschuss",
["Scorpid Poison"] = "Skorpidgift",
["Scorpid Sting"] = "Skorpidstich",
["Serpent Sting"] = "Schlangenbiss",
["Stoneform"] = "Steingestalt",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "Vipernbiss",
["War Stomp"] = "Kriegsdonner",
["Will of the Forsaken"] = "Wille der Verlassenen",
["Wing Clip"] = "Zurechtstutzen",
["Wyvern Sting"] = "Stich des Flügeldrachen",
["Blood Fury"] = "Kochendes Blut",
["Berserking"] = "Berserker",
}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.enUS = {
["Banish"] = "Banish",
["Bestial Wrath"] = "Bestial Wrath",
["Concussive Shot"] = "Concussive Shot",
["Counterattack"] = "Counterattack",
["Critical Mass"] = "Critical Mass",
["Clever Traps"] = "Clever Traps",
["Deterrence"] = "Deterrence",
["Explosive Trap"] = "Explosive Trap",
["Explosive Trap Effect"] = "Explosive Trap Effect",
["Feed Pet"] = "Feed Pet",
["Flare"] = "Flare",
["Freezing Trap"] = "Freezing Trap",
["Freezing Trap Effect"] = "Freezing Trap Effect",
["Frost Trap"] = "Frost Trap",
["Frost Trap Aura"] = "Frost Trap Aura",
["Hunter's Mark"] = "Hunter's Mark",
["Holy Strength"] = "Holy Strength",
["Immolation Trap"] = "Immolation Trap",
["Immolation Trap Effect"] = "Immolation Trap Effect",
["Improved Concussive Shot"] = "Improved Concussive Shot",
["Improved Wing Clip"] = "Improved Wing Clip",
["Perception"] = "Perception",
["Piercing Shot"] = "Piercing Shot",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "Rapid Fire",
["Scare Beast"] = "Scare Beast",
["Scatter Shot"] = "Scatter Shot",
["Scorpid Poison"] = "Scorpid Poison",
["Scorpid Sting"] = "Scorpid Sting",
["Serpent Sting"] = "Serpent Sting",
["Stoneform"] = "Stoneform",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "Viper Sting",
["War Stomp"] = "War Stomp",
["Will of the Forsaken"] = "Will of the Forsaken",
["Wing Clip"] = "Wing Clip",
["Wyvern Sting"] = "Wyvern Sting",
["Blood Fury"] = "Blood Fury",
["Berserking"] = "Berserking",
}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.esES = {
["Banish"] = "Banish",
["Bestial Wrath"] = "Bestial Wrath",
["Concussive Shot"] = "Concussive Shot",
["Counterattack"] = "Counterattack",
["Critical Mass"] = "Critical Mass",
["Clever Traps"] = "Clever Traps",
["Deterrence"] = "Deterrence",
["Explosive Trap"] = "Explosive Trap",
["Explosive Trap Effect"] = "Explosive Trap Effect",
["Feed Pet"] = "Feed Pet",
["Flare"] = "Flare",
["Freezing Trap"] = "Freezing Trap",
["Freezing Trap Effect"] = "Freezing Trap Effect",
["Frost Trap"] = "Frost Trap",
["Frost Trap Aura"] = "Frost Trap Aura",
["Hunter's Mark"] = "Hunter's Mark",
["Holy Strength"] = "Holy Strength",
["Immolation Trap"] = "Immolation Trap",
["Immolation Trap Effect"] = "Immolation Trap Effect",
["Improved Concussive Shot"] = "Improved Concussive Shot",
["Improved Wing Clip"] = "Improved Wing Clip",
["Perception"] = "Perception",
["Piercing Shot"] = "Piercing Shot",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "Rapid Fire",
["Scare Beast"] = "Scare Beast",
["Scatter Shot"] = "Scatter Shot",
["Scorpid Poison"] = "Scorpid Poison",
["Scorpid Sting"] = "Scorpid Sting",
["Serpent Sting"] = "Serpent Sting",
["Stoneform"] = "Stoneform",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "Viper Sting",
["War Stomp"] = "War Stomp",
["Will of the Forsaken"] = "Will of the Forsaken",
["Wing Clip"] = "Wing Clip",
["Wyvern Sting"] = "Wyvern Sting",
["Blood Fury"] = "Blood Fury",
["Berserking"] = "Berserking",
}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.ptBR = {
["Banish"] = "Banish",
["Bestial Wrath"] = "Bestial Wrath",
["Concussive Shot"] = "Concussive Shot",
["Counterattack"] = "Counterattack",
["Critical Mass"] = "Critical Mass",
["Clever Traps"] = "Clever Traps",
["Deterrence"] = "Deterrence",
["Explosive Trap"] = "Explosive Trap",
["Explosive Trap Effect"] = "Explosive Trap Effect",
["Feed Pet"] = "Feed Pet",
["Flare"] = "Flare",
["Freezing Trap"] = "Freezing Trap",
["Freezing Trap Effect"] = "Freezing Trap Effect",
["Frost Trap"] = "Frost Trap",
["Frost Trap Aura"] = "Frost Trap Aura",
["Hunter's Mark"] = "Hunter's Mark",
["Holy Strength"] = "Holy Strength",
["Immolation Trap"] = "Immolation Trap",
["Immolation Trap Effect"] = "Immolation Trap Effect",
["Improved Concussive Shot"] = "Improved Concussive Shot",
["Improved Wing Clip"] = "Improved Wing Clip",
["Perception"] = "Perception",
["Piercing Shot"] = "Piercing Shot",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "Rapid Fire",
["Scare Beast"] = "Scare Beast",
["Scatter Shot"] = "Scatter Shot",
["Scorpid Poison"] = "Scorpid Poison",
["Scorpid Sting"] = "Scorpid Sting",
["Serpent Sting"] = "Serpent Sting",
["Stoneform"] = "Stoneform",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "Viper Sting",
["War Stomp"] = "War Stomp",
["Will of the Forsaken"] = "Will of the Forsaken",
["Wing Clip"] = "Wing Clip",
["Wyvern Sting"] = "Wyvern Sting",
["Blood Fury"] = "Blood Fury",
["Berserking"] = "Berserking",
}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.ruRU = {
["Banish"] = "Изгнание",
["Bestial Wrath"] = "Звериный гнев",
["Concussive Shot"] = "Контузящий выстрел",
["Counterattack"] = "Контратака",
["Critical Mass"] = "Критическая масса",
["Clever Traps"] = "Хитрые ловушки",
["Deterrence"] = "Сдерживание",
["Explosive Trap"] = "Взрывная ловушка",
["Explosive Trap Effect"] = "Эффект взрывной ловушки",
["Feed Pet"] = "Кормление питомца",
["Flare"] = "Осветительная ракета",
["Freezing Trap"] = "Замораживающая ловушка",
["Freezing Trap Effect"] = "Эффект замораживающей ловушки",
["Frost Trap"] = "Ледяная ловушка",
["Frost Trap Aura"] = "Аура ледяной ловушки",
["Hunter's Mark"] = "Метка охотника",
["Holy Strength"] = "Священная сила",
["Immolation Trap"] = "Обжигающая ловушка",
["Immolation Trap Effect"] = "Эффект обжигающей ловушки",
["Improved Concussive Shot"] = "Улучшенный контузящий выстрел",
["Improved Wing Clip"] = "Безжалостно подрезать крылья",
["Perception"] = "Внимательность",
["Piercing Shot"] = "Пронзающий выстрел",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Скорострельность",
["Rapid Fire"] = "Быстрая стрельба",
["Scare Beast"] = "Отпугивание зверя",
["Scatter Shot"] = "Дезориентирующий выстрел",
["Scorpid Poison"] = "Яд скорпида",
["Scorpid Sting"] = "Укус скорпида",
["Serpent Sting"] = "Укус змеи",
["Stoneform"] = "Каменная форма",
["Unstable Power"] = "Изменчивая сила",
["Ephemeral Power"] = "Эфемерная Власть",
["Viper Sting"] = "Укус гадюки",
["War Stomp"] = "Громовая поступь",
["Will of the Forsaken"] = "Воля Отрекшихся",
["Wing Clip"] = "Подрезать крылья",
["Wyvern Sting"] = "Укус виверны",
["Blood Fury"] = "Кровавое неистовство",
["Berserking"] = "Берсерк",
}
+46
View File
@@ -0,0 +1,46 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.spells = MTH_LocaleData.spells or {}
MTH_LocaleData.spells.zhCN = {
["Banish"] = "放逐术",
["Bestial Wrath"] = "狂野怒火",
["Concussive Shot"] = "震荡射击",
["Counterattack"] = "反击",
["Critical Mass"] = "火焰重击",
["Clever Traps"] = "灵巧陷阱",
["Deterrence"] = "威慑",
["Explosive Trap"] = "爆炸陷阱",
["Explosive Trap Effect"] = "爆炸陷阱效果",
["Feed Pet"] = "喂养宠物",
["Flare"] = "照明弹",
["Freezing Trap"] = "冰冻陷阱",
["Freezing Trap Effect"] = "冰冻陷阱效果",
["Frost Trap"] = "冰霜陷阱",
["Frost Trap Aura"] = "冰霜陷阱光环",
["Hunter's Mark"] = "猎人印记",
["Holy Strength"] = "Holy Strength",
["Immolation Trap"] = "献祭陷阱",
["Immolation Trap Effect"] = "献祭陷阱效果",
["Improved Concussive Shot"] = "强化震荡射击",
["Improved Wing Clip"] = "强化摔绊",
["Perception"] = "感知",
["Piercing Shot"] = "Piercing Shot",
["Piercing Shots"] = "Piercing Shots",
["Quick Shots"] = "Quick Shots",
["Rapid Fire"] = "急速射击",
["Scare Beast"] = "恐吓野兽",
["Scatter Shot"] = "驱散射击",
["Scorpid Poison"] = "蝎毒",
["Scorpid Sting"] = "毒蝎钉刺",
["Serpent Sting"] = "毒蛇钉刺",
["Stoneform"] = "石像形态",
["Unstable Power"] = "Unstable Power",
["Ephemeral Power"] = "Ephemeral Power",
["Viper Sting"] = "蝰蛇钉刺",
["War Stomp"] = "战争践踏",
["Will of the Forsaken"] = "亡灵意志",
["Wing Clip"] = "摔绊",
["Wyvern Sting"] = "翼龙钉刺",
["Blood Fury"] = "血性狂暴",
["Berserking"] = "狂暴",
}
+6
View File
@@ -0,0 +1,6 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.deDE = {
FEEDOMATIC_NAME = "Futter-O-Mat",
}
+131
View File
@@ -0,0 +1,131 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.enUS = {
BINDING_HEADER_FEEDOMATIC = "[MetaHunt] Feed-O-Matic",
BINDING_HEADER_ZAspectHeader = "[MetaHunt] ZAspect Buttons",
BINDING_HEADER_ZTrackHeader = "[MetaHunt] ZTrack Buttons",
BINDING_HEADER_ZTrapHeader = "[MetaHunt] ZTrap Buttons",
BINDING_HEADER_ZPetHeader = "[MetaHunt] ZPet Buttons",
BINDING_HEADER_ZAmmoHeader = "[MetaHunt] ZAmmo Buttons",
FEEDOMATIC_NAME = "Feed-O-Matic",
FEEDOMATIC_DESC = "Helps a Hunter keep his pets well fed",
ZHUNTER_NAME = "zhunter",
ZHUNTER_DESC = "Various features to make a hunter's life easier",
TOOLTIPS_OPTION_FOOD = "Add tooltips on food",
TOOLTIPS_OPTION_FOOD_HELP = "Show your current pet's food preference directly in item tooltips.",
TOOLTIPS_OPTION_OWNPET = "Activate on my pet",
TOOLTIPS_OPTION_OWNPET_HELP = "Show your own pet status details in tooltip when hovering your pet context.",
TOOLTIPS_FOOD_QUALITY_UNKNOWN = "%s can eat this, but hasn't tried it yet.",
TOOLTIPS_FOOD_QUALITY_UNDER = "%s doesn't like this anymore.",
TOOLTIPS_FOOD_QUALITY_MIGHT = "%s might eat this.",
TOOLTIPS_FOOD_QUALITY_WILL = "%s will eat this.",
TOOLTIPS_FOOD_QUALITY_LIKE = "%s likes to eat this.",
TOOLTIPS_FOOD_QUALITY_LOVE = "%s loves to eat this.",
TOOLTIPS_FOOD_MARKER_UNKNOWN = "can eat this, but hasn't tried it yet.",
TOOLTIPS_FOOD_MARKER_UNDER = "doesn't like this anymore.",
TOOLTIPS_FOOD_MARKER_MIGHT = "might eat this.",
TOOLTIPS_FOOD_MARKER_WILL = "will eat this.",
TOOLTIPS_FOOD_MARKER_LIKE = "likes to eat this.",
TOOLTIPS_FOOD_MARKER_LOVE = "loves to eat this.",
FOM_BIND_UNAVAILABLE = "Unavailable",
FOM_BIND_UNBOUND = "Unbound",
FOM_BIND_STATUS_PROMPT = "Feed key: press a key... (ESC to clear)",
FOM_BIND_STATUS_VALUE = "Feed key: %s",
FOM_BIND_SET_KEY = "Set Key",
FOM_BIND_PRESS_KEY = "Press key...",
FOM_BIND_CLEAR = "Clear",
FOM_ERROR_KEYBIND_API_UNAVAILABLE = "Keybinding APIs unavailable.",
FOM_ERROR_KEYBIND_COMBAT_LOCKED = "Cannot change keybindings during combat.",
FOM_ERROR_TOGGLE_FAILED = "Failed to change FeedOMatic state: %s",
FOM_TITLE = "Feed-O-Matic",
FOM_STATUS_NOTICE = "Feed-O-Matic, created by the great Fizzwidget, is not yet entirely ready for TurtleWoW because I am missing \na reliable list of all foods, mostly impossible to fetch from the DB.\n It still works much better in this version, but all stuff related to Food buff and Cooking isnt fully functional.",
FOM_ENABLE_MODULE = "Enable FeedOMatic module",
FOM_HEADER_GENERAL = "General",
FOM_BIND_HINT = "You should assign a key bind for feed-o-matic,\nin order to feed your pet automatically.\nThe key \"P\" is an excellent candidate !",
FOM_KEEP_OPEN_BAG_SLOTS = "Keep open bag slots:",
FOM_HEADER_NOTIFY_WHEN_FEEDING = "Notify when feeding",
FOM_HEADER_WARN_WHEN_PET_NEEDS_FEEDING = "Warn when pet needs feeding",
FOM_HEADER_AVOID_FOODS_USED_IN_COOKING = "Avoid foods used in cooking",
FOM_LABEL_AVOID_QUEST_FOODS = "Avoid quest foods",
FOM_LABEL_AVOID_BONUS_FOODS = "Avoid bonus foods",
FOM_LABEL_PREFER_HIGHER_QUALITY_FOOD = "Prefer higher quality food",
FOM_LABEL_FALLBACK_TO_AVOIDED_FOODS = "Fallback to avoided foods",
FOM_LABEL_NOTIFY_VIA_EMOTE = "Via emote",
FOM_LABEL_NOTIFY_IN_CHAT = "In chat",
FOM_LABEL_NOTIFY_NONE = "Don't notify",
FOM_LABEL_WARN_WHEN_CONTENT = "When content",
FOM_LABEL_WARN_WHEN_UNHAPPY = "When unhappy",
FOM_LABEL_DONT_WARN = "Don't warn",
FOM_LABEL_PLAY_SOUND = "Play sound",
FOM_LABEL_USE_BELL_SOUND = "Use bell sound",
FOM_LABEL_SHOW_TEXT = "Show text",
FOM_LABEL_FLASH_ICON = "Flash icon",
FOM_LABEL_ONLY_DIFFICULT_RECIPES = "Only difficult recipes",
FOM_LABEL_MEDIUM_OR_BETTER = "Medium or better",
FOM_LABEL_EASY_OR_BETTER = "Easy or better",
FOM_LABEL_ALL_FOODS = "All foods",
FOM_LABEL_DO_NOT_SAVE_COOKING_FOODS = "Do not save cooking foods",
ZB_ERR_CONFIG_NOT_LOADED = "Configuration not loaded for %s",
ZB_LABEL_ENABLE_FMT = "Enable %s",
ZB_SECTION_PARENT_BUTTON = "Parent Button",
ZB_SECTION_CHILDREN_BUTTONS = "Children Buttons",
ZB_LABEL_BUTTON_SIZE = "Button Size",
ZB_LABEL_NUMBER_OF_ROWS = "Number of Rows",
ZB_LABEL_EXPAND_LEFT = "Expand Left (opposite side)",
ZB_LABEL_HIDE_BUTTONS_ON_CLICK = "Hide Buttons On Click",
ZB_LABEL_SHOW_TOOLTIP = "Show Tooltip",
ZB_LABEL_SHOW_AMMO_NAME = "Show ammo name",
ZB_LABEL_HIDE_BUTTON = "Hide Button",
ZB_LABEL_USE_CIRCLE_BUTTON = "Use Circle Button",
ZB_HEADER_SPELL_ORDER = "Spell Order",
ZB_TEXT_SPELL_DATA_NOT_LOADED = "Spell data not loaded",
COMMON_CLOSE_SHORT = "X",
COMMON_CLEAR = "Clear",
COMMON_SELECT_ALL = "Select All",
DEBUG_TITLE = "MetaHunt Debug - Errors & Messages",
DEBUG_SUMMARY_ERRORS = "=== Errors Captured: %s ===",
DEBUG_SUMMARY_INFO = "=== Info Captured: %s ===",
DEBUG_SUMMARY_QUEUE = "=== Total in queue: %s ===",
DEBUG_CLEARED = "Debug frame cleared",
DEBUG_ALL_SELECTED = "All text selected - press Ctrl+C to copy",
MINIMAP_TITLE = "MetaHunt",
MINIMAP_HINT_LEFT_CLICK = "Left-Click: Open Hunter Book",
MINIMAP_HINT_RIGHT_CLICK = "Right-Click: Open MetaHunt Options",
MINIMAP_HINT_DRAG = "Drag: Move button",
OPT_ERR_CREATE_OPTIONS_FRAME = "[MTH OPTIONS] Failed to create MetaHuntOptions",
OPT_ERR_CHRON_NOT_LOADED = "Chronometer options module not loaded",
CREDITS_TITLE = "Credits",
CREDITS_LINK_INSERTED = "Link inserted in chat: ",
CREDITS_LINK_FALLBACK = "Link: ",
CREDITS_ABOUT_CODE_TITLE = "About the code",
CREDITS_ABOUT_CODE_INTRO = "This addon is, in others, a compilation of old vanilla addons that I loved and played with during years. But most of them had become very buggy with TwoW as new contain was added to the server. \n I fixed, reworked, enhanced, and melted them within a modern modular framework that I created.\nI want to make it crystal clear about what work is mine, and what is not and respectfully credit the original authors for the great stuff I've taken from them:",
CREDITS_ABOUT_ZHUNTER = "- zBars, Antidaze and Autostrip were core functionalities of Vanilla zHunterMod addon. And I kept the \"z\" naming of bars/buttons to always remember it. On top of this I have created myself zAmmo, zCompanions, zMount, zToys.\nAlso the SmartAmmo feature idea is coming from Zhuntermod: there was a file in it with that functionality, but was like a work-in-progress, totally unfunctional and even \"dangerous\" in its current state, and was not active in the addon. Since it was a fucking great idea, I recoded it mostly from scratch and made it work reliably and safely.",
CREDITS_ABOUT_FEEDOMATIC = "- Feed-o-Matic was entirely the work of Fizzwidget. I made it work for Twow, by melting it as a module calling Metahunt core to get pet's state and up-to-date data for new pet families and their diet.",
CREDITS_ABOUT_TOOLTIPS = "- Tooltips module is based on Hunter Helper, another vanilla addon of Fizzwidget. I kept the general idea, but there's not much original code left from it in Metahunt as I refactored everything so it plugs on MetaHunt controlled event handlers, can work with Turtle wow data, and is now usable on other things than Beasts.",
CREDITS_ABOUT_CHRONOMETER = "- Chronometer was an old and very popular vanilla addon working with ACE2 libraries. It has known uncountable iterations by various people over the years, and I can't credit them all of them here. The current version used by Metahunt is based on this Twow conversion made by \"wigan91\". I have reworked it to have it Hunter-focused-only: removed the non-hunter/race stuff, improved the definition for spells/effects config that were not correct, added missing hunter spells (not many), and implemented my own bar color scheme fitting better the hunter spells.",
CREDITS_ABOUT_MAP = "- The Map/Marker system is the one of pfQuest from Master Shagu. Unfortunately he is no more reachable for some months and I could not have some talk with him about this. I mostly let it untouched, I just made slight modifications so it can integrate better within Metahunt, and doesn't conflict with pfQuest.",
CREDITS_ABOUT_ATLAS_LINKS = "- The system allowing to fetch itemlinks in game (In the Weapon tab of the Hunter Book notably) is the one of Atlas Twow.",
CREDITS_ABOUT_DATA_TITLE = "About data sources",
CREDITS_ABOUT_DATA_INTRO = "Metahunt ships with its own Turtle-WoW datastores, limited to hunter stuff only, and most of this data is up-to-date (Feb 2026).\n\nSources used to build the data include:",
CREDITS_DATA_PFQUEST = "- pfQuest for Beasts and Ammo vendors NPCs and their spawn points (and beasts respawn times if any). Thank you again Shagu.",
CREDITS_DATA_SHEET = "- This invaluable and very accurate spreadsheet for beasts having pet abilities. A big thanks to all twow players that crafted this! Now you dont need that sheet anymore, you have Metahunt! And the Great Book of Huntards is awesome and accurate also because of YOU.",
CREDITS_DATA_OTHER = "- Atlas twow for ranged weapon sources\n\n- Twow wiki for pet diet (which was incomplete, missing Serpents and Foxes)",
CREDITS_CLOSING = "With that being said, go back hunting fellas!",
CREDITS_SIGNATURE = "\nMetasploit <Atlantis>, of Nordaanar.",
}
+5
View File
@@ -0,0 +1,5 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.esES = {
}
+5
View File
@@ -0,0 +1,5 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.ptBR = {
}
+5
View File
@@ -0,0 +1,5 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.ruRU = {
}
+5
View File
@@ -0,0 +1,5 @@
MTH_LocaleData = MTH_LocaleData or {}
MTH_LocaleData.ui = MTH_LocaleData.ui or {}
MTH_LocaleData.ui.zhCN = {
}
+176 -98
View File
@@ -9,6 +9,10 @@ local Engine = MTH_AutoBuyEngine
local AB_AMMO_BY_NAME = nil
local AB_FOOD_DIET_BY_ITEM_ID = nil
local function AB_Trace(message)
return
end
local function AB_ParseItemIdFromLink(link)
if type(link) ~= "string" then
return nil
@@ -446,6 +450,120 @@ local function AB_ResolveAmmoByName(name)
return row.itemId, row.subtype
end
local function AB_GetInventoryBagSlotByContainerId(containerId)
local toInv = _G and _G["ContainerIDToInventoryID"] or nil
if type(toInv) == "function" then
local invSlot = tonumber(toInv(containerId))
if invSlot and invSlot > 0 then
return invSlot
end
end
local bag = tonumber(containerId)
if bag and bag >= 1 and bag <= 4 then
return bag + 19
end
return nil
end
local function AB_GetSpecialAmmoBagTargets()
local targets = {
arrow = {},
bullet = {},
}
local getInvLink = _G and _G["GetInventoryItemLink"] or nil
if type(getInvLink) ~= "function" then
return targets
end
for bag = 1, 4 do
local invSlot = AB_GetInventoryBagSlotByContainerId(bag)
if invSlot then
local bagLink = getInvLink("player", invSlot)
local bagItemId = AB_ParseItemIdFromLink(bagLink)
local bagRow = (MTH_DS_BagItems and bagItemId) and MTH_DS_BagItems[tonumber(bagItemId) or bagItemId] or nil
local bagSubtype = bagRow and string.lower(tostring(bagRow.subtype or "")) or ""
if bagSubtype == "quiver" then
table.insert(targets.arrow, { bag = bag, invSlot = invSlot, itemId = bagItemId, subtype = bagSubtype })
elseif bagSubtype == "ammo pouch" then
table.insert(targets.bullet, { bag = bag, invSlot = invSlot, itemId = bagItemId, subtype = bagSubtype })
end
end
end
return targets
end
local function AB_MoveAmmoStacksToSpecialBags(maxMoves)
local getSlots = _G and _G["GetContainerNumSlots"] or nil
local getLink = _G and _G["GetContainerItemLink"] or nil
local pick = _G and _G["PickupContainerItem"] or nil
local putInBag = _G and _G["PutItemInBag"] or nil
local hasCursor = _G and _G["CursorHasItem"] or nil
local clearCursor = _G and _G["ClearCursor"] or nil
if type(getSlots) ~= "function" or type(getLink) ~= "function"
or type(pick) ~= "function" or type(putInBag) ~= "function"
or type(hasCursor) ~= "function" or type(clearCursor) ~= "function" then
return 0
end
local targets = AB_GetSpecialAmmoBagTargets()
local arrowTargets = targets.arrow or {}
local bulletTargets = targets.bullet or {}
if table.getn(arrowTargets) == 0 and table.getn(bulletTargets) == 0 then
return 0
end
local moves = 0
local moveLimit = math.floor(tonumber(maxMoves) or 200)
if moveLimit < 1 then moveLimit = 200 end
local isTargetBag = {}
for i = 1, table.getn(arrowTargets) do
local bagId = tonumber(arrowTargets[i].bag)
if bagId then
isTargetBag[bagId] = true
end
end
for i = 1, table.getn(bulletTargets) do
local bagId = tonumber(bulletTargets[i].bag)
if bagId then
isTargetBag[bagId] = true
end
end
for sourceBag = 0, 4 do
local isSpecialSource = isTargetBag[tonumber(sourceBag)] and true or false
if not isSpecialSource then
local slots = tonumber(getSlots(sourceBag)) or 0
for sourceSlot = 1, slots do
local link = getLink(sourceBag, sourceSlot)
local itemId = AB_ParseItemIdFromLink(link)
local ammoSubtype = itemId and AB_GetAmmoSubtypeByItemId(itemId) or nil
if ammoSubtype then
local destinationTargets = ammoSubtype == "arrow" and arrowTargets or bulletTargets
if table.getn(destinationTargets) > 0 then
pick(sourceBag, sourceSlot)
if hasCursor() then
for i = 1, table.getn(destinationTargets) do
putInBag(destinationTargets[i].invSlot)
if not hasCursor() then
moves = moves + 1
break
end
end
if hasCursor() then
clearCursor()
end
if moves >= moveLimit then
return moves
end
end
end
end
end
end
end
return moves
end
local function AB_DefaultRule()
return {
enabled = false,
@@ -475,34 +593,46 @@ local function AB_EnsureRuleList(bucket)
return bucket
end
local function AB_Log(message, severity)
if type(MTH_Log) == "function" then
MTH_Log("[AutoBuy] " .. tostring(message or ""), severity)
local function AB_DeepCopy(value)
if type(value) ~= "table" then
return value
end
end
local function AB_Trace(message)
return
local copy = {}
for key, entry in pairs(value) do
copy[key] = AB_DeepCopy(entry)
end
return copy
end
function Engine:GetConfigStore()
if MTH and MTH.GetModuleSavedVariables then
local store = MTH:GetModuleSavedVariables("autobuy")
if type(store) == "table" then
return store
if MTH and MTH.GetModuleCharSavedVariables then
local charStore = MTH:GetModuleCharSavedVariables("autobuy")
if type(charStore) == "table" then
if MTH.GetModuleSavedVariables then
local accountStore = MTH:GetModuleSavedVariables("autobuy")
if type(accountStore) == "table" and next(charStore) == nil and next(accountStore) ~= nil then
for key, value in pairs(accountStore) do
charStore[key] = AB_DeepCopy(value)
end
end
end
return charStore
end
end
MTH_AutoBuy_Saved = MTH_AutoBuy_Saved or {}
return MTH_AutoBuy_Saved
if MTH and MTH.GetModuleSavedVariables then
local accountStore = MTH:GetModuleSavedVariables("autobuy")
if type(accountStore) == "table" then
return accountStore
end
end
self._transientStore = self._transientStore or {}
return self._transientStore
end
function Engine:EnsureDefaults()
local store = self:GetConfigStore()
if store.enabled == nil then
store.enabled = true
end
if store.debug == nil then
store.debug = false
store.enabled = false
end
if type(store.food) ~= "table" then
store.food = {}
@@ -517,13 +647,13 @@ function Engine:EnsureDefaults()
store.petFood = {}
end
if store.food.enabled == nil then
store.food.enabled = true
store.food.enabled = false
end
if store.ammo.enabled == nil then
store.ammo.enabled = true
store.ammo.enabled = false
end
if store.projectiles.enabled == nil then
store.projectiles.enabled = true
store.projectiles.enabled = false
end
if store.petFood.enabled == nil then
store.petFood.enabled = false
@@ -607,30 +737,8 @@ function Engine:IsEnabled()
return store.enabled and true or false
end
function Engine:IsDebugEnabled()
local store = self:EnsureDefaults()
return store.debug and true or false
end
function Engine:IsTraceEnabled()
if self:IsDebugEnabled() then
return true
end
if MTH and MTH.debug then
return true
end
return false
end
function Engine:Debug(message)
if self:IsTraceEnabled() then
AB_Log(message, "debug")
end
end
function Engine:Init()
self:EnsureDefaults()
self:Debug("engine initialized")
end
function Engine:ScanMerchant()
@@ -1072,6 +1180,7 @@ end
function Engine:ExecutePlan(plan)
if type(plan) ~= "table" or type(plan.actions) ~= "table" then
AB_Trace("ExecutePlan skipped: invalid plan table")
return 0, 0
end
local executedActions = 0
@@ -1080,6 +1189,10 @@ function Engine:ExecutePlan(plan)
if type(action) == "table" and action.index then
local stacksToBuy = math.floor(tonumber(action.quantityStacks) or 0)
if stacksToBuy > 0 then
AB_Trace("ExecutePlan action index=" .. tostring(action.index)
.. " itemId=" .. tostring(action.itemId)
.. " stacks=" .. tostring(stacksToBuy)
.. " reason=" .. tostring(plan.reason or ""))
for i = 1, stacksToBuy do
BuyMerchantItem(action.index)
end
@@ -1088,6 +1201,7 @@ function Engine:ExecutePlan(plan)
end
end
end
AB_Trace("ExecutePlan done actions=" .. tostring(executedActions) .. " stacks=" .. tostring(requestedStacks) .. " reason=" .. tostring(plan.reason or ""))
return executedActions, requestedStacks
end
@@ -1150,104 +1264,68 @@ local function AB_AnnouncePurchases(actions)
end
function Engine:OnMerchantEvent(eventName)
AB_Trace("OnMerchantEvent start event=" .. tostring(eventName)
.. " sessionExecuted=" .. tostring(self._merchantSessionExecuted and true or false)
.. " engineEnabled=" .. tostring(self:IsEnabled() and true or false))
if eventName == "MERCHANT_SHOW" then
self._merchantSessionExecuted = false
AB_Trace("merchant session reset on MERCHANT_SHOW")
AB_Trace("MERCHANT_SHOW resets session execution flag")
elseif eventName == "MERCHANT_UPDATE" and self._merchantSessionExecuted then
AB_Trace("skip MERCHANT_UPDATE: session already executed")
AB_Trace("MERCHANT_UPDATE ignored: already executed this merchant session")
return
end
self:Debug("OnMerchantEvent enter event=" .. tostring(eventName))
AB_Trace("OnMerchantEvent " .. tostring(eventName))
if not self:IsEnabled() then
self:Debug("OnMerchantEvent abort: engine store disabled")
local store = self:EnsureDefaults()
AB_Trace("abort: store.enabled=" .. tostring(store and store.enabled)
.. " projectiles.enabled=" .. tostring(store and store.projectiles and store.projectiles.enabled))
AB_Trace("event ignored: autobuy module disabled")
return
end
local snapshot = self:ScanMerchant()
self:Debug("snapshot count=" .. tostring(snapshot and snapshot.count or 0))
AB_Trace("merchant item count=" .. tostring(snapshot and snapshot.count or 0))
AB_Trace("snapshot rows=" .. tostring(snapshot and snapshot.count or 0))
local foodPlan = self:BuildFoodPlan(snapshot)
local ammoPlan = self:BuildAmmoPlan(snapshot)
self:Debug(tostring(eventName) .. " merchant items=" .. tostring(snapshot.count)
.. " foodActions=" .. tostring(table.getn(foodPlan.actions or {}))
.. " ammoActions=" .. tostring(table.getn(ammoPlan.actions or {})))
self:Debug("ammoPlan reason=" .. tostring(ammoPlan.reason or ""))
AB_Trace("ammoPlan reason=" .. tostring(ammoPlan.reason or "")
.. " actions=" .. tostring(table.getn(ammoPlan.actions or {})))
AB_Trace("foodPlan reason=" .. tostring(foodPlan.reason or "")
.. " actions=" .. tostring(table.getn(foodPlan.actions or {})))
AB_Trace("foodPlan reason=" .. tostring(foodPlan.reason) .. " actions=" .. tostring(table.getn(foodPlan.actions or {})))
for i = 1, table.getn(foodPlan.debugLines or {}) do
self:Debug("foodPlan " .. tostring(foodPlan.debugLines[i]))
AB_Trace("food#" .. tostring(i) .. " " .. tostring(foodPlan.debugLines[i]))
end
AB_Trace("ammoPlan reason=" .. tostring(ammoPlan.reason) .. " actions=" .. tostring(table.getn(ammoPlan.actions or {})))
for i = 1, table.getn(ammoPlan.debugLines or {}) do
self:Debug("ammoPlan " .. tostring(ammoPlan.debugLines[i]))
AB_Trace("ammo#" .. tostring(i) .. " " .. tostring(ammoPlan.debugLines[i]))
end
local totalRequestedStacks = 0
if table.getn(foodPlan.actions or {}) > 0 then
for i = 1, table.getn(foodPlan.actions or {}) do
local action = foodPlan.actions[i]
self:Debug("food action#" .. tostring(i)
.. " idx=" .. tostring(action.index)
.. " item=" .. tostring(action.itemId)
.. " diet=" .. tostring(action.diet)
.. " qtyStacks=" .. tostring(action.quantityStacks)
.. " targetStacks=" .. tostring(action.targetStacks)
.. " ownedStacks=" .. tostring(action.ownedStacks)
.. " deficit=" .. tostring(action.deficit)
.. " pets=" .. tostring(action.petCount)
.. " families=" .. tostring(action.familyCount))
end
local _, requestedStacks = self:ExecutePlan(foodPlan)
totalRequestedStacks = totalRequestedStacks + requestedStacks
AB_Trace("executed food requestedStacks=" .. tostring(requestedStacks))
AB_Trace("food plan executed requestedStacks=" .. tostring(requestedStacks))
if requestedStacks > 0 then
AB_AnnouncePurchases(foodPlan.actions)
end
else
self:Debug("no food actions to execute")
AB_Trace("no food actions to execute")
end
if table.getn(ammoPlan.actions or {}) > 0 then
for i = 1, table.getn(ammoPlan.actions or {}) do
local action = ammoPlan.actions[i]
self:Debug("action#" .. tostring(i)
.. " idx=" .. tostring(action.index)
.. " item=" .. tostring(action.itemId)
.. " qtyStacks=" .. tostring(action.quantityStacks)
.. " qtyItems=" .. tostring(action.quantityItems)
.. " desiredStacks=" .. tostring(action.desiredStacks)
.. " ownedStacks=" .. tostring(action.ownedStacks)
.. " deficit=" .. tostring(action.deficit)
.. " stackCount=" .. tostring(action.stackCount))
end
local executedActions, requestedStacks = self:ExecutePlan(ammoPlan)
local _, requestedStacks = self:ExecutePlan(ammoPlan)
totalRequestedStacks = totalRequestedStacks + requestedStacks
AB_Trace("executed actions=" .. tostring(executedActions) .. " requestedStacks=" .. tostring(requestedStacks))
AB_Trace("ammo plan executed requestedStacks=" .. tostring(requestedStacks))
if requestedStacks > 0 then
local moved = AB_MoveAmmoStacksToSpecialBags(300)
AB_Trace("ammo restack moved=" .. tostring(moved))
AB_AnnouncePurchases(ammoPlan.actions)
end
self:Debug("executed ammo actions=" .. tostring(table.getn(ammoPlan.actions or {})))
else
self:Debug("no ammo actions to execute")
AB_Trace("no actions to execute")
end
if totalRequestedStacks > 0 then
self._merchantSessionExecuted = true
AB_Trace("session marked executed requestedStacks=" .. tostring(totalRequestedStacks))
else
AB_Trace("no purchases requested in this event")
end
end
function Engine:OnMerchantClosed()
self._merchantSessionExecuted = false
AB_Trace("merchant session reset on MERCHANT_CLOSED")
end
function MTH_AutoBuy_GetMerchantSnapshot()
+35 -19
View File
@@ -6,7 +6,7 @@
local MTH_AutoBuy = {
name = "autobuy",
enabled = false,
version = "1.0.3",
version = "1.3.0",
events = {
"VARIABLES_LOADED",
"MERCHANT_SHOW",
@@ -33,32 +33,23 @@ local function AB_EnsureBridgeFrame(moduleRef)
return MTH_AutoBuy._bridgeFrame
end
local frame = CreateFrame("Frame", "MTH_AutoBuyBridgeFrame")
local frame = CreateFrame("Frame", "MTH_AutoBuyBridge")
if not frame then
AB_Log("failed to create bridge frame", "error")
return nil
end
frame:RegisterEvent("VARIABLES_LOADED")
frame:RegisterEvent("MERCHANT_SHOW")
frame:RegisterEvent("MERCHANT_UPDATE")
frame:RegisterEvent("MERCHANT_CLOSED")
frame:SetScript("OnEvent", function(_, eventName)
eventName = eventName or event
frame:SetScript("OnEvent", function()
local eventName = event
local engine = AB_Engine()
if not engine then
AB_Trace("bridge event=" .. tostring(eventName) .. " engine missing")
return
end
if eventName == "VARIABLES_LOADED" then
engine:Init()
local store = engine:EnsureDefaults()
AB_Trace("bridge VARIABLES_LOADED store.enabled=" .. tostring(store and store.enabled)
.. " projectiles.enabled=" .. tostring(store and store.projectiles and store.projectiles.enabled))
return
end
if eventName == "MERCHANT_SHOW" or eventName == "MERCHANT_UPDATE" then
AB_Trace("bridge " .. tostring(eventName) .. " -> engine")
engine:OnMerchantEvent(eventName)
@@ -75,6 +66,34 @@ local function AB_EnsureBridgeFrame(moduleRef)
return frame
end
local function AB_SetBridgeActive(active)
local frame = MTH_AutoBuy._bridgeFrame
if active then
if not frame then
frame = AB_EnsureBridgeFrame(MTH_AutoBuy)
end
if frame then
frame:RegisterEvent("MERCHANT_SHOW")
frame:RegisterEvent("MERCHANT_UPDATE")
frame:RegisterEvent("MERCHANT_CLOSED")
MTH_AutoBuy._bridgeActive = true
AB_Trace("bridge active=true")
else
MTH_AutoBuy._bridgeActive = false
AB_Trace("bridge active=false (frame missing)")
end
return
end
if frame then
frame:UnregisterEvent("MERCHANT_SHOW")
frame:UnregisterEvent("MERCHANT_UPDATE")
frame:UnregisterEvent("MERCHANT_CLOSED")
end
MTH_AutoBuy._bridgeActive = false
AB_Trace("bridge active=false")
end
AB_Engine = function()
return MTH_AutoBuyEngine
end
@@ -87,8 +106,8 @@ function MTH_AutoBuy:init()
return
end
engine:Init()
AB_EnsureBridgeFrame(self)
self.initialized = true
AB_SetBridgeActive(self.enabled and true or false)
AB_Trace("init done")
if self.enabled then
AB_Log("module initialized", "debug")
@@ -106,7 +125,7 @@ function MTH_AutoBuy:setEnabled(enabled)
end
local store = engine:EnsureDefaults()
store.enabled = enabled and true or false
AB_EnsureBridgeFrame(self)
AB_SetBridgeActive(store.enabled and true or false)
AB_Trace("setEnabled store.enabled=" .. tostring(store.enabled))
end
@@ -121,12 +140,9 @@ function MTH_AutoBuy:onEvent(event)
return
end
AB_Log("onEvent event=" .. tostring(event) .. " module.enabled=" .. tostring(self.enabled), "debug")
if event == "VARIABLES_LOADED" then
engine:Init()
AB_EnsureBridgeFrame(self)
AB_Log("onEvent VARIABLES_LOADED -> engine init", "debug")
AB_SetBridgeActive(self.enabled and true or false)
local store = engine:EnsureDefaults()
AB_Trace("VARIABLES_LOADED module.enabled=" .. tostring(self.enabled)
.. " store.enabled=" .. tostring(store and store.enabled)
+6
View File
@@ -0,0 +1,6 @@
<!--
MetaHunt Auto Quest Module Loader
-->
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Include file="module.lua"/>
</Ui>
+952
View File
@@ -0,0 +1,952 @@
------------------------------------------------------
-- MetaHunt: Quest Automation Module
-- SHIFT-rightclick automation for specific quest flows
------------------------------------------------------
local MTH_AutoQuest = {
name = "autoquest",
enabled = false,
version = "1.3.0",
events = {
"GOSSIP_SHOW",
"QUEST_GREETING",
"QUEST_DETAIL",
"QUEST_PROGRESS",
"QUEST_COMPLETE",
},
initialized = false,
}
local QA_SCORPOK_QUEST_ID = 2586
local QA_SCORPOK_QUEST_TITLE = "Salt of the Scorpok"
local QA_SCORPOK_NPC_ID = 7505
local QA_SCORPOK_NPC_NAME = "Bloodmage Drazial"
local QA_SISSIES_QUEST_ID = 7342
local QA_SISSIES_QUEST_TITLE = "Arrows Are For Sissies"
local QA_SISSIES_NPC_ID = 14183
local QA_SISSIES_NPC_NAME = "Artilleryman Sheldonore"
local QA_ITEM_SCORPOK_PINCER_ID = 8393
local QA_ITEM_BLASTED_BOAR_LUNG_ID = 8392
local QA_ITEM_VULTURE_GIZZARD_ID = 8396
local QA_ITEM_GROUND_SCORPOK_ASSAY_ID = 8412
local QA_ITEM_SCORPOK_PINCER_NAME = "Scorpok Pincer"
local QA_ITEM_BLASTED_BOAR_LUNG_NAME = "Blasted Boar Lung"
local QA_ITEM_VULTURE_GIZZARD_NAME = "Vulture Gizzard"
local QA_ITEM_GROUND_SCORPOK_ASSAY_NAME = "Ground Scorpok Assay"
local QA_TooltipHooked = false
local QA_TooltipPollFrame = nil
local QA_TooltipRefreshFrame = nil
local function QA_Debug(message)
return
end
local function QA_CopyValue(value)
if type(value) ~= "table" then
return value
end
local copy = {}
for key, entry in pairs(value) do
copy[key] = QA_CopyValue(entry)
end
return copy
end
local function QA_GetOptionsStore()
if type(MTH_CharSavedVariables) ~= "table" then
MTH_CharSavedVariables = {}
end
if type(MTH_CharSavedVariables.autoquest) ~= "table" then
MTH_CharSavedVariables.autoquest = {}
end
local store = MTH_CharSavedVariables.autoquest
if store._migrated ~= true then
if type(MTH_CharSavedVariables.questautomation) == "table" then
local legacyStore = MTH_CharSavedVariables.questautomation
if legacyStore.scorpokDrazial ~= nil and store.scorpokDrazial == nil then
store.scorpokDrazial = legacyStore.scorpokDrazial and true or false
end
if legacyStore.scorpokTooltip ~= nil and store.scorpokTooltip == nil then
store.scorpokTooltip = legacyStore.scorpokTooltip and true or false
end
end
local legacyChar = nil
local legacyAccount = nil
if MTH and MTH.GetModuleCharSavedVariables then
legacyChar = MTH:GetModuleCharSavedVariables("autoquest")
if type(legacyChar) ~= "table" then
legacyChar = MTH:GetModuleCharSavedVariables("questautomation")
end
end
if MTH and MTH.GetModuleSavedVariables then
legacyAccount = MTH:GetModuleSavedVariables("autoquest")
if type(legacyAccount) ~= "table" then
legacyAccount = MTH:GetModuleSavedVariables("questautomation")
end
end
if type(legacyChar) == "table" and legacyChar.scorpokDrazial ~= nil and store.scorpokDrazial == nil then
store.scorpokDrazial = legacyChar.scorpokDrazial and true or false
elseif type(legacyAccount) == "table" and legacyAccount.scorpokDrazial ~= nil and store.scorpokDrazial == nil then
store.scorpokDrazial = legacyAccount.scorpokDrazial and true or false
elseif store.scorpokDrazial == nil and MTH and MTH.GetModuleCharSavedVariables then
local autobuyStore = MTH:GetModuleCharSavedVariables("autobuy")
if type(autobuyStore) == "table"
and type(autobuyStore.questAutomation) == "table"
and autobuyStore.questAutomation.scorpokDrazial ~= nil then
store.scorpokDrazial = autobuyStore.questAutomation.scorpokDrazial and true or false
end
end
store._migrated = true
end
if store.scorpokDrazial == nil then
store.scorpokDrazial = false
end
if store.arrowsForSissies == nil then
store.arrowsForSissies = false
end
if store.scorpokTooltip == nil then
store.scorpokTooltip = false
end
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.scorpokDrazial = store.scorpokDrazial and true or false
moduleStore.arrowsForSissies = store.arrowsForSissies and true or false
moduleStore.scorpokTooltip = store.scorpokTooltip and true or false
end
end
return store
end
function MTH_AutoQuest:GetStore()
return QA_GetOptionsStore()
end
function MTH_AutoQuest:SetScorpokDrazialEnabled(enabled)
local store = QA_GetOptionsStore()
store.scorpokDrazial = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.scorpokDrazial = store.scorpokDrazial and true or false
end
end
QA_Debug("option write: scorpokDrazial=" .. tostring(store.scorpokDrazial and true or false))
end
function MTH_AutoQuest:SetArrowsForSissiesEnabled(enabled)
local store = QA_GetOptionsStore()
store.arrowsForSissies = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.arrowsForSissies = store.arrowsForSissies and true or false
end
end
QA_Debug("option write: arrowsForSissies=" .. tostring(store.arrowsForSissies and true or false))
end
function MTH_AutoQuest:SetScorpokTooltipEnabled(enabled)
local store = QA_GetOptionsStore()
store.scorpokTooltip = enabled and true or false
if MTH and MTH.GetModuleCharSavedVariables then
local moduleStore = MTH:GetModuleCharSavedVariables("autoquest")
if type(moduleStore) == "table" then
moduleStore.scorpokTooltip = store.scorpokTooltip and true or false
end
end
QA_Debug("option write: scorpokTooltip=" .. tostring(store.scorpokTooltip and true or false))
end
local function QA_IsScorpokAutomationEnabled()
local store = QA_GetOptionsStore()
return store and store.scorpokDrazial and true or false
end
local function QA_IsArrowsForSissiesAutomationEnabled()
local store = QA_GetOptionsStore()
return store and store.arrowsForSissies and true or false
end
local function QA_IsScorpokTooltipEnabled()
local store = QA_GetOptionsStore()
return store and store.scorpokTooltip and true or false
end
local function QA_NormalizeText(value)
local text = string.lower(tostring(value or ""))
text = string.gsub(text, "[^%a%d]", "")
return text
end
local function QA_IsTitleMatch(title, expectedTitle)
if type(title) ~= "string" or title == "" then
return false
end
return QA_NormalizeText(title) == QA_NormalizeText(expectedTitle)
end
local function QA_IsScorpokTitle(title)
return QA_IsTitleMatch(title, QA_SCORPOK_QUEST_TITLE)
end
local function QA_IsArrowsForSissiesTitle(title)
return QA_IsTitleMatch(title, QA_SISSIES_QUEST_TITLE)
end
local function QA_IsQuestContext(title, expectedQuestId, titleMatcher)
if type(GetQuestID) == "function" then
local questId = tonumber(GetQuestID())
if questId and questId == expectedQuestId then
return true
end
end
if type(titleMatcher) == "function" then
return titleMatcher(title)
end
return false
end
local function QA_IsScorpokQuestContext(title)
return QA_IsQuestContext(title, QA_SCORPOK_QUEST_ID, QA_IsScorpokTitle)
end
local function QA_IsArrowsForSissiesQuestContext(title)
return QA_IsQuestContext(title, QA_SISSIES_QUEST_ID, QA_IsArrowsForSissiesTitle)
end
local function QA_GetNpcIdFromGuid(guid)
if type(guid) ~= "string" or guid == "" then
return nil
end
local _, _, _, _, _, npcId = string.find(guid, "^Creature%-%d+%-%d+%-%d+%-%d+%-(%d+)%-%x+$")
if npcId then
return tonumber(npcId)
end
if string.sub(guid, 1, 2) == "0x" and string.len(guid) >= 12 then
local hex = string.sub(guid, 9, 12)
local parsed = tonumber(hex, 16)
if parsed and parsed > 0 then
return parsed
end
end
return nil
end
local function QA_ColorByThreshold(count, threshold)
local value = math.floor(tonumber(count) or 0)
if value <= 0 then
return "|cffff0000" .. tostring(value) .. "|r"
end
local modFn = nil
if type(rawget) == "function" and type(math) == "table" then
modFn = rawget(math, "mod") or rawget(math, "fmod")
elseif type(math) == "table" then
modFn = math.fmod
end
if threshold > 0 and type(modFn) == "function" and modFn(value, threshold) == 0 then
return "|cff00ff00" .. tostring(value) .. "|r"
end
return "|cffffa500" .. tostring(value) .. "|r"
end
local function QA_ColorAssay(count)
local value = math.floor(tonumber(count) or 0)
if value > 0 then
return "|cff66ccff" .. tostring(value) .. "|r"
end
return tostring(value)
end
local function QA_MatchesItem(itemId, itemName, expectedId, expectedName)
if expectedId and tonumber(itemId) == tonumber(expectedId) then
return true
end
if type(itemName) == "string" and type(expectedName) == "string" and QA_NormalizeText(itemName) == QA_NormalizeText(expectedName) then
return true
end
return false
end
local function QA_CountItemInBags(expectedId, expectedName)
local getContainerNumSlots = _G and _G["GetContainerNumSlots"] or nil
local getContainerItemLink = _G and _G["GetContainerItemLink"] or nil
local getContainerItemInfo = _G and _G["GetContainerItemInfo"] or nil
local getItemInfo = _G and _G["GetItemInfo"] or nil
if type(getContainerNumSlots) ~= "function" or type(getContainerItemLink) ~= "function" then
return 0
end
local total = 0
for bag = 0, 4 do
local slots = math.floor(tonumber(getContainerNumSlots(bag)) or 0)
for slot = 1, slots do
local link = getContainerItemLink(bag, slot)
if type(link) == "string" and link ~= "" then
local _, _, itemIdStr = string.find(link, "item:(%d+)")
local itemId = tonumber(itemIdStr)
local itemName = nil
if type(getItemInfo) == "function" then
itemName = getItemInfo(link)
end
if QA_MatchesItem(itemId, itemName, expectedId, expectedName) then
local texture, stackCount = nil, nil
if type(getContainerItemInfo) == "function" then
texture, stackCount = getContainerItemInfo(bag, slot)
end
total = total + math.floor(tonumber(stackCount) or 1)
end
end
end
end
return total
end
local function QA_TooltipTrace(message, force)
return
end
local function QA_GetTooltipNpc(tooltip)
if not tooltip or type(tooltip.GetUnit) ~= "function" then
return nil, nil, nil, nil
end
local ok, unitA, unitB = pcall(function()
return tooltip:GetUnit()
end)
local unit = nil
if ok then
if type(unitB) == "string" and unitB ~= "" then
unit = unitB
elseif type(unitA) == "string" and unitA ~= "" then
unit = unitA
end
end
if (type(unit) ~= "string" or unit == "") and type(UnitExists) == "function" and UnitExists("mouseover") then
unit = "mouseover"
end
if type(unit) ~= "string" or unit == "" then
local left1 = (type(getglobal) == "function" and getglobal("GameTooltipTextLeft1")) or (_G and _G["GameTooltipTextLeft1"])
local title = left1 and left1.GetText and left1:GetText() or nil
if type(title) == "string" and title ~= "" then
return nil, title, nil, title
end
return nil, nil, nil, nil
end
local guid = UnitGUID and UnitGUID(unit) or nil
local npcId = QA_GetNpcIdFromGuid(guid)
local name = UnitName and UnitName(unit) or nil
local title = nil
if (type(name) ~= "string" or name == "") then
local left1 = (type(getglobal) == "function" and getglobal("GameTooltipTextLeft1")) or (_G and _G["GameTooltipTextLeft1"])
title = left1 and left1.GetText and left1:GetText() or nil
if type(title) == "string" and title ~= "" then
name = title
end
end
return npcId, name, unit, title
end
local function QA_TooltipAlreadyExtended(tooltip)
if not tooltip or type(tooltip.NumLines) ~= "function" then
return false
end
local lines = math.floor(tonumber(tooltip:NumLines()) or 0)
for i = 1, lines do
local line = (type(getglobal) == "function" and getglobal("GameTooltipTextLeft" .. tostring(i))) or (_G and _G["GameTooltipTextLeft" .. tostring(i)])
local text = line and line.GetText and line:GetText() or nil
if type(text) == "string" and QA_NormalizeText(text) == QA_NormalizeText("Quest Automation") then
return true
end
end
return false
end
local function QA_IsTooltipDrazial(tooltip)
local npcId, npcName = QA_GetTooltipNpc(tooltip)
if tonumber(npcId) == QA_SCORPOK_NPC_ID then
return true
end
if type(npcName) == "string" and npcName ~= "" and QA_NormalizeText(npcName) == QA_NormalizeText(QA_SCORPOK_NPC_NAME) then
return true
end
return false
end
local function QA_AppendDrazialTooltip(tooltip, sourceTag)
sourceTag = tostring(sourceTag or "unknown")
if not (MTH_AutoQuest and MTH_AutoQuest.enabled) then
QA_TooltipTrace("skip: module disabled source=" .. sourceTag)
return
end
if not QA_IsScorpokAutomationEnabled() or not QA_IsScorpokTooltipEnabled() then
QA_TooltipTrace("skip: option disabled source=" .. sourceTag)
return
end
local npcId, npcName, unitToken, title = QA_GetTooltipNpc(tooltip)
local isMatch = tonumber(npcId) == QA_SCORPOK_NPC_ID
if not isMatch and type(npcName) == "string" and npcName ~= "" and QA_NormalizeText(npcName) == QA_NormalizeText(QA_SCORPOK_NPC_NAME) then
isMatch = true
end
if not isMatch then
QA_TooltipTrace("skip: npc mismatch source=" .. sourceTag
.. " unit=" .. tostring(unitToken)
.. " id=" .. tostring(npcId)
.. " name='" .. tostring(npcName or "") .. "'"
.. " title='" .. tostring(title or "") .. "'")
return
end
if QA_TooltipAlreadyExtended(tooltip) then
QA_TooltipTrace("skip: already-extended source=" .. sourceTag)
return
end
local pincerCount = QA_CountItemInBags(QA_ITEM_SCORPOK_PINCER_ID, QA_ITEM_SCORPOK_PINCER_NAME)
local gizzardCount = QA_CountItemInBags(QA_ITEM_VULTURE_GIZZARD_ID, QA_ITEM_VULTURE_GIZZARD_NAME)
local lungCount = QA_CountItemInBags(QA_ITEM_BLASTED_BOAR_LUNG_ID, QA_ITEM_BLASTED_BOAR_LUNG_NAME)
local assayCount = QA_CountItemInBags(QA_ITEM_GROUND_SCORPOK_ASSAY_ID, QA_ITEM_GROUND_SCORPOK_ASSAY_NAME)
tooltip:AddLine(" ")
tooltip:AddLine("|cffffff00Quest Automation|r")
tooltip:AddLine("Scorpok Pincer: " .. QA_ColorByThreshold(pincerCount, 3), 1, 1, 1)
tooltip:AddLine("Vulture Gizzard: " .. QA_ColorByThreshold(gizzardCount, 2), 1, 1, 1)
tooltip:AddLine("Blasted Boar Lung: " .. QA_ColorByThreshold(lungCount, 1), 1, 1, 1)
tooltip:AddLine("Ground Scorpok Assay: " .. QA_ColorAssay(assayCount), 1, 1, 1)
tooltip:AddLine("Spam SHIFT-click!", 0.7, 0.9, 1)
tooltip:AddLine("Recipes: 3x Pincer, 2x Gizzard, 1x Lung", 0.7, 0.7, 0.7)
tooltip:Show()
QA_TooltipTrace("added: source=" .. sourceTag
.. " id=" .. tostring(npcId)
.. " name='" .. tostring(npcName or "") .. "'", true)
end
local function QA_EnsureTooltipHook()
if QA_TooltipHooked then
return
end
if not GameTooltip then
return
end
local hasGetScript = type(GameTooltip.GetScript) == "function"
local hasSetScript = type(GameTooltip.SetScript) == "function"
local hasHookScript = type(GameTooltip.HookScript) == "function"
local onTooltipSetUnitExists = false
local onShowExists = false
if hasGetScript then
local okSetUnit, existingSetUnit = pcall(function()
return GameTooltip:GetScript("OnTooltipSetUnit")
end)
onTooltipSetUnitExists = okSetUnit and type(existingSetUnit) == "function"
local okShow, existingShow = pcall(function()
return GameTooltip:GetScript("OnShow")
end)
onShowExists = okShow and type(existingShow) == "function"
end
if hasHookScript and onTooltipSetUnitExists then
pcall(function()
GameTooltip:HookScript("OnTooltipSetUnit", function()
QA_AppendDrazialTooltip(this, "hook:setunit")
end)
end)
elseif hasSetScript and hasGetScript and onTooltipSetUnitExists then
local okGetPrev, previous = pcall(function()
return GameTooltip:GetScript("OnTooltipSetUnit")
end)
if okGetPrev then
pcall(function()
GameTooltip:SetScript("OnTooltipSetUnit", function()
if type(previous) == "function" then
previous()
end
QA_AppendDrazialTooltip(this, "script:setunit")
end)
end)
end
end
if hasHookScript and onShowExists then
pcall(function()
GameTooltip:HookScript("OnShow", function()
QA_AppendDrazialTooltip(this, "hook:show")
end)
end)
elseif hasSetScript and hasGetScript and onShowExists then
local okGetPrevShow, previousShow = pcall(function()
return GameTooltip:GetScript("OnShow")
end)
if okGetPrevShow then
pcall(function()
GameTooltip:SetScript("OnShow", function()
if type(previousShow) == "function" then
previousShow()
end
QA_AppendDrazialTooltip(this, "script:show")
end)
end)
end
end
QA_TooltipHooked = true
end
local function QA_EnsureTooltipPoller()
if QA_TooltipPollFrame then
return
end
local frame = CreateFrame("Frame", "MTH_AQTooltipPoll")
if not frame then
return
end
frame._mthElapsed = 0
frame:SetScript("OnUpdate", function()
this._mthElapsed = (this._mthElapsed or 0) + (arg1 or 0)
if this._mthElapsed < 0.20 then
return
end
this._mthElapsed = 0
if not (MTH_AutoQuest and MTH_AutoQuest.enabled) then
return
end
if GameTooltip and type(GameTooltip.IsVisible) == "function" and GameTooltip:IsVisible() then
QA_AppendDrazialTooltip(GameTooltip, "poll")
end
end)
QA_TooltipPollFrame = frame
end
local function QA_GetInteractedNpcId()
local getGuid = _G and _G["UnitGUID"] or nil
if type(getGuid) ~= "function" then
return nil
end
local npcGuid = getGuid("npc")
local npcId = QA_GetNpcIdFromGuid(npcGuid)
if npcId then
return npcId
end
return QA_GetNpcIdFromGuid(getGuid("target"))
end
local function QA_GetInteractedNpcName()
local getName = _G and _G["UnitName"] or nil
if type(getName) ~= "function" then
return nil
end
local name = getName("npc")
if type(name) == "string" and name ~= "" then
return name
end
name = getName("target")
if type(name) == "string" and name ~= "" then
return name
end
return nil
end
local function QA_IsInteractedNpc(expectedNpcId, expectedNpcName)
local npcId = QA_GetInteractedNpcId()
if tonumber(npcId) == tonumber(expectedNpcId) then
return true
end
local npcName = QA_GetInteractedNpcName()
if type(npcName) == "string" and npcName ~= "" and QA_NormalizeText(npcName) == QA_NormalizeText(expectedNpcName) then
return true
end
return false
end
local function QA_IsScorpokNpc()
return QA_IsInteractedNpc(QA_SCORPOK_NPC_ID, QA_SCORPOK_NPC_NAME)
end
local function QA_IsArrowsForSissiesNpc()
return QA_IsInteractedNpc(QA_SISSIES_NPC_ID, QA_SISSIES_NPC_NAME)
end
local function QA_RefreshMouseoverTooltip()
local tooltip = _G and _G["GameTooltip"] or GameTooltip
if not tooltip then
return
end
if type(UnitExists) == "function" and UnitExists("mouseover") and type(tooltip.SetUnit) == "function" then
tooltip:SetUnit("mouseover")
if type(tooltip.Show) == "function" then
tooltip:Show()
end
end
end
local function QA_RequestTooltipRefresh(delaySeconds)
delaySeconds = tonumber(delaySeconds) or 0.10
if not QA_TooltipRefreshFrame then
QA_TooltipRefreshFrame = CreateFrame("Frame", "MTH_AQTooltipRefresh")
if not QA_TooltipRefreshFrame then
return
end
QA_TooltipRefreshFrame:SetScript("OnUpdate", function()
local frameRef = this or QA_TooltipRefreshFrame
if not frameRef then
return
end
frameRef._elapsed = (frameRef._elapsed or 0) + (arg1 or 0)
if frameRef._elapsed < (frameRef._delay or 0.10) then
return
end
frameRef._elapsed = 0
frameRef._delay = 0
frameRef:SetScript("OnUpdate", nil)
QA_RefreshMouseoverTooltip()
end)
end
QA_TooltipRefreshFrame._delay = delaySeconds
QA_TooltipRefreshFrame._elapsed = 0
QA_TooltipRefreshFrame:SetScript("OnUpdate", QA_TooltipRefreshFrame:GetScript("OnUpdate"))
end
local QA_PROFILE_SCORPOK = {
key = "scorpokDrazial",
label = "Scorpok",
optionCheck = QA_IsScorpokAutomationEnabled,
npcCheck = QA_IsScorpokNpc,
titleCheck = QA_IsScorpokTitle,
questContextCheck = QA_IsScorpokQuestContext,
lastActionField = "_scorpokLastActionAt",
refreshTooltipOnComplete = true,
}
local QA_PROFILE_SISSIES = {
key = "arrowsForSissies",
label = "ArrowsForSissies",
optionCheck = QA_IsArrowsForSissiesAutomationEnabled,
npcCheck = QA_IsArrowsForSissiesNpc,
titleCheck = QA_IsArrowsForSissiesTitle,
questContextCheck = QA_IsArrowsForSissiesQuestContext,
lastActionField = "_sissiesLastActionAt",
refreshTooltipOnComplete = false,
}
local QA_LastActionAt = {}
local function QA_GetLastActionAt(profile)
local key = type(profile) == "table" and tostring(profile.lastActionField or "") or ""
if key == "" then
return 0
end
return tonumber(QA_LastActionAt[key]) or 0
end
local function QA_SetLastActionAt(profile, value)
local key = type(profile) == "table" and tostring(profile.lastActionField or "") or ""
if key == "" then
return
end
QA_LastActionAt[key] = tonumber(value) or 0
end
local function QA_CanRunProfile(profile)
if type(profile) ~= "table" then
return false
end
if type(profile.optionCheck) ~= "function" or not profile.optionCheck() then
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] skip: option disabled")
return false
end
if type(IsShiftKeyDown) ~= "function" or not IsShiftKeyDown() then
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] skip: SHIFT not held")
return false
end
local npcOk = type(profile.npcCheck) == "function" and profile.npcCheck() or false
if not npcOk then
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] skip: NPC mismatch (id=" .. tostring(QA_GetInteractedNpcId()) .. ", name='" .. tostring(QA_GetInteractedNpcName() or "") .. "')")
end
return npcOk
end
local function QA_FindGossipQuestIndex(rawEntries, count, profile)
if type(rawEntries) ~= "table" or tonumber(count) == nil or tonumber(count) <= 0 then
return nil
end
if type(profile) ~= "table" or type(profile.titleCheck) ~= "function" then
return nil
end
local entryCount = math.floor(tonumber(count) or 0)
local tupleSize = math.floor(table.getn(rawEntries) / entryCount)
if tupleSize < 1 then
tupleSize = 1
end
for i = 1, entryCount do
local title = tostring(rawEntries[((i - 1) * tupleSize) + 1] or "")
if profile.titleCheck(title) then
return i
end
end
if entryCount == 1 and type(profile.npcCheck) == "function" and profile.npcCheck() then
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] gossip fallback: single quest entry -> selecting index 1")
return 1
end
return nil
end
local function QA_FindQuestGreetingIndex(isActive, profile)
local getCount = isActive and _G and _G["GetNumActiveQuests"] or _G and _G["GetNumAvailableQuests"]
local getTitle = isActive and _G and _G["GetActiveTitle"] or _G and _G["GetAvailableTitle"]
if type(getCount) ~= "function" or type(getTitle) ~= "function" or type(profile) ~= "table" or type(profile.titleCheck) ~= "function" then
return nil
end
local count = math.floor(tonumber(getCount()) or 0)
if count <= 0 then
return nil
end
for i = 1, count do
local title = tostring(getTitle(i) or "")
if profile.titleCheck(title) then
return i
end
end
if count == 1 and type(profile.npcCheck) == "function" and profile.npcCheck() then
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] quest greeting fallback: single quest entry -> selecting index 1")
return 1
end
return nil
end
local function QA_GetFrameText(frame)
if type(frame) ~= "table" then
return ""
end
if type(frame.GetText) == "function" then
return tostring(frame:GetText() or "")
end
if type(frame.GetName) == "function" then
local name = frame:GetName()
if type(name) == "string" and name ~= "" then
local textRegion = _G and _G[name .. "Text"] or nil
if textRegion and type(textRegion.GetText) == "function" then
return tostring(textRegion:GetText() or "")
end
end
end
return ""
end
local function QA_ClickGossipTitleButtonFallback(profile)
if type(profile) ~= "table" or type(profile.titleCheck) ~= "function" then
return false
end
for i = 1, 40 do
local button = _G and _G["GossipTitleButton" .. tostring(i)] or nil
if button then
local visible = true
if type(button.IsVisible) == "function" then
visible = button:IsVisible() and true or false
end
if visible then
local title = QA_GetFrameText(button)
if profile.titleCheck(title) then
QA_Debug("action: GossipTitleButton" .. tostring(i) .. " click title='" .. tostring(title) .. "'")
if type(button.Click) == "function" then
button:Click()
return true
end
local onClick = type(button.GetScript) == "function" and button:GetScript("OnClick") or nil
if type(onClick) == "function" then
onClick(button)
return true
end
end
end
end
end
return false
end
local function QA_RunProfileAutomation(eventName, profile)
if type(profile) ~= "table" then
return
end
QA_Debug("[" .. tostring(profile.label or "AutoQuest") .. "] event=" .. tostring(eventName))
if not QA_CanRunProfile(profile) then
return
end
local getTimeFn = _G and _G["GetTime"] or nil
if eventName == "GOSSIP_SHOW" and type(getTimeFn) == "function" then
local now = tonumber(getTimeFn()) or 0
local last = QA_GetLastActionAt(profile)
if (now - last) < 0.05 then
QA_Debug("skip: throttled dt=" .. tostring(now - last))
return
end
end
if eventName == "QUEST_GREETING" then
local selectAvailableQuest = _G and _G["SelectAvailableQuest"] or nil
local selectActiveQuest = _G and _G["SelectActiveQuest"] or nil
local availableIndex = QA_FindQuestGreetingIndex(false, profile)
if availableIndex and type(selectAvailableQuest) == "function" then
QA_Debug("action: SelectAvailableQuest (compat) index=" .. tostring(availableIndex))
selectAvailableQuest()
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
local activeIndex = QA_FindQuestGreetingIndex(true, profile)
if activeIndex and type(selectActiveQuest) == "function" then
QA_Debug("action: SelectActiveQuest (compat) index=" .. tostring(activeIndex))
selectActiveQuest()
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
for i = 1, 40 do
local button = _G and _G["QuestTitleButton" .. tostring(i)] or nil
if button and (type(button.IsVisible) ~= "function" or button:IsVisible()) then
local title = QA_GetFrameText(button)
if profile.titleCheck(title) then
QA_Debug("action: QuestTitleButton" .. tostring(i) .. " click title='" .. tostring(title) .. "'")
if type(button.Click) == "function" then
button:Click()
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
end
end
end
QA_Debug("quest greeting: no action taken")
return
end
if eventName == "GOSSIP_SHOW" then
local getNumGossipAvailableQuests = _G and _G["GetNumGossipAvailableQuests"] or nil
local getGossipAvailableQuests = _G and _G["GetGossipAvailableQuests"] or nil
local selectGossipAvailableQuest = _G and _G["SelectGossipAvailableQuest"] or nil
QA_Debug("api available: numAvail=" .. tostring(type(getNumGossipAvailableQuests) == "function")
.. " getAvail=" .. tostring(type(getGossipAvailableQuests) == "function")
.. " selAvail=" .. tostring(type(selectGossipAvailableQuest) == "function"))
if type(getNumGossipAvailableQuests) == "function" and type(getGossipAvailableQuests) == "function" and type(selectGossipAvailableQuest) == "function" then
local availableCount = math.floor(tonumber(getNumGossipAvailableQuests()) or 0)
QA_Debug("gossip available count=" .. tostring(availableCount))
if availableCount > 0 then
local availableIndex = QA_FindGossipQuestIndex({ getGossipAvailableQuests() }, availableCount, profile)
if availableIndex then
QA_Debug("action: SelectGossipAvailableQuest index=" .. tostring(availableIndex))
selectGossipAvailableQuest(availableIndex)
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
QA_Debug("gossip available: no Scorpok match")
end
end
local getNumGossipActiveQuests = _G and _G["GetNumGossipActiveQuests"] or nil
local getGossipActiveQuests = _G and _G["GetGossipActiveQuests"] or nil
local selectGossipActiveQuest = _G and _G["SelectGossipActiveQuest"] or nil
QA_Debug("api active: numActive=" .. tostring(type(getNumGossipActiveQuests) == "function")
.. " getActive=" .. tostring(type(getGossipActiveQuests) == "function")
.. " selActive=" .. tostring(type(selectGossipActiveQuest) == "function"))
if type(getNumGossipActiveQuests) == "function" and type(getGossipActiveQuests) == "function" and type(selectGossipActiveQuest) == "function" then
local activeCount = math.floor(tonumber(getNumGossipActiveQuests()) or 0)
QA_Debug("gossip active count=" .. tostring(activeCount))
if activeCount > 0 then
local activeIndex = QA_FindGossipQuestIndex({ getGossipActiveQuests() }, activeCount, profile)
if activeIndex then
QA_Debug("action: SelectGossipActiveQuest index=" .. tostring(activeIndex))
selectGossipActiveQuest(activeIndex)
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
QA_Debug("gossip active: no Scorpok match")
end
end
if QA_ClickGossipTitleButtonFallback(profile) then
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
return
end
QA_Debug("gossip: no action taken")
return
end
local title = type(GetTitleText) == "function" and tostring(GetTitleText() or "") or ""
QA_Debug("quest frame title='" .. tostring(title) .. "'")
if type(profile.questContextCheck) ~= "function" or not profile.questContextCheck(title) then
QA_Debug("skip: quest context mismatch")
return
end
if eventName == "QUEST_DETAIL" then
if type(AcceptQuest) == "function" then
QA_Debug("action: AcceptQuest")
AcceptQuest()
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
end
elseif eventName == "QUEST_PROGRESS" then
if type(CompleteQuest) == "function" then
if type(IsQuestCompletable) ~= "function" or IsQuestCompletable() then
QA_Debug("action: CompleteQuest")
CompleteQuest()
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
else
QA_Debug("skip: quest not completable yet")
end
end
elseif eventName == "QUEST_COMPLETE" then
if type(GetQuestReward) == "function" then
local choices = type(GetNumQuestChoices) == "function" and math.floor(tonumber(GetNumQuestChoices()) or 0) or 0
if choices <= 1 then
QA_Debug("action: GetQuestReward(1)")
GetQuestReward(1)
QA_SetLastActionAt(profile, type(getTimeFn) == "function" and getTimeFn() or 0)
if profile.refreshTooltipOnComplete then
QA_RequestTooltipRefresh(0.10)
end
else
QA_Debug("skip: multiple reward choices=" .. tostring(choices))
end
end
end
end
-- NOTE: QA_DirectEventFrame removed (Phase 2 fix #22b)
-- The central event router already dispatches GOSSIP_SHOW, QUEST_GREETING,
-- QUEST_DETAIL, QUEST_PROGRESS, QUEST_COMPLETE to MTH_AutoQuest:onEvent().
-- Having a second frame register the same events caused double-dispatch.
function MTH_AutoQuest:init()
local store = QA_GetOptionsStore()
self.initialized = true
QA_Debug("init: module active=" .. tostring(self.enabled and true or false)
.. ", option scorpokDrazial=" .. tostring(store and store.scorpokDrazial and true or false)
.. ", option arrowsForSissies=" .. tostring(store and store.arrowsForSissies and true or false)
.. ", option scorpokTooltip=" .. tostring(store and store.scorpokTooltip and true or false))
end
function MTH_AutoQuest:setEnabled(enabled)
self.enabled = enabled and true or false
end
function MTH_AutoQuest:onEvent(eventName)
if eventName == "GOSSIP_SHOW"
or eventName == "QUEST_GREETING"
or eventName == "QUEST_DETAIL"
or eventName == "QUEST_PROGRESS"
or eventName == "QUEST_COMPLETE" then
QA_Debug("onEvent=" .. tostring(eventName))
QA_RunProfileAutomation(eventName, QA_PROFILE_SCORPOK)
QA_RunProfileAutomation(eventName, QA_PROFILE_SISSIES)
end
end
function MTH_AutoQuest:cleanup()
-- no-op: direct event frame removed in Phase 2
end
MTH:RegisterModule("autoquest", MTH_AutoQuest)

Some files were not shown because too many files have changed in this diff Show More