Mercurial > wow > ouroloot
view abbreviations.lua @ 151:42dd3076baaf
Initial attempt at tracking bonus rolls and non-loot items.
Add more loot-catching patterns, and generalize them a little more. Bonus
rolls are tracked by default, non-loot stuff is not. Bonus rolls don't seem
to be working, but non-loot definitely is. (It may be that the patterns for
bonus rolls are not actually used by the game client, or rather, that the
game client does not issue those events for bonus rolls which are not your
own. I have yet to win a bonus roll since implementing the code, but one
person in LFR claimed to win a bonus item which simply wasn't visible to me
at all. More data needed.)
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 09 Jan 2015 19:14:56 -0500 |
parents | d7ece3ba6505 |
children | 55018c10f3a5 |
line wrap: on
line source
--[==[ If you want to change these to something else, like in-jokes for your guild, write a small addon like this. Lines with * are crucial and should not be changed from how they're shown here. Interface/AddOns/YourMod/YourMod.toc: ================================= ## Interface: xxxxx ## Title: Ouro Loot For My Guild * ## RequiredDeps: Ouro_Loot * ## LoadOnDemand: 1 * ## LoadWith: Ouro_Loot main.lua ================================= Then replace specific entries like this: Interface/AddOns/YourMod/main.lua: ================================= * local ouroloot = LibStub("AceAddon-3.0"):GetAddon("Ouro Loot") ouroloot.instance_abbrev["The Bastion of Twilight"] = [[Steve Said He Would /gquit If We Make Him Go Here Ever Again]] ouroloot.boss_abbrev["Omnotron Defense System"] = [[Jim Will Facetank The Slimes Now]] ouroloot:Print [[Tweaked stuff for mah guildies!]] ================================= This lets you update Ouro Loot with a new version (which would overwrite this file) without losing any of your changes. ]==] local addon = select(2,...) if addon.NOLOAD then return end --[==[ The index is the universal InstanceMapID value, which can be looked up here: http://wowpedia.org/InstanceMapID You can also use the official English localized name, which was the only available method in the past. Note that those names are case-sensistive. ]==] addon.instance_abbrev = { -------- WoD --[1228] = "HM", -- Highmaul [1205] = "BRF", -- Blackrock Foundry -------- MoP [1008] = "MV", -- Mogu'shan Vaults [1009] = "HoF", -- Heart of Fear [996] = "ToES", -- Terrace of Endless Spring [1098] = "ToT", -- Throne of Thunder [1136] = "SoO", -- Siege of Orgrimmar -------- Cata [757] = "BH", -- Baradin Hold [671] = "BoT", -- The Bastion of Twilight [669] = "BWD", -- Blackwing Descent [754] = "To4W", -- Throne of the Four Winds -- surely these names are short enough already...? --[720] = "F", -- Firelands --[967] = "DS", -- Dragon Soul -------- WotLK [631] = "ICC", -- Icecrown Citadel [650] = "ToC", -- Trial of the Champion (dungeon) [649] = "ToC", -- Trial of the Crusader (raid) [624] = "VoA", -- Vault of Archavon } -- Currently indexed by "boss name" values, as generated by whatever boss mod -- is in use; see specific boss mod handling code to see how they get it. For -- DBM, this is "mod.combatInfo.name" or "mod.id", preferring the first; that -- name defaults to "mod.localization.general.name", which for modern raids -- is from the encounter journal: EJ_GetEncounterInfo or EJ_GetCreatureInfo. -- For -- DBM:NewMod (encid, "...", ..., ..., modifier) -- this means -- EJ_GetEncounterInfo (encid) -- EJ_GetCreatureInfo (modifier, encid) second return -- -- As such, this table really needs to be thrown out and redone with modern -- encounter IDs and sub-IDs. addon.boss_abbrev = { -------- WoD -- HM ["Kargath Bladefist"] = "Kill #100", ["The Butcher"] = "Same Butcher as in Diablo, Honest", --["Brackenspore"] = "", --["Tectus"] = "", ["Twin Ogron"] = "Polyphemos", --["Ko'ragh"] = "", --["Imperator Mar'gok"] = "", -------- MoP -- MV ["Will of the Emperor"] = "Talk to the Open Hand", -------- Cata -- BoT ["Halfus Wyrmbreaker"] = "Halfass Wyrmbreaker", ["Valiona & Theralion"] = "Wonder Twins! Form of: Loot", -- BWD ["Magmaw"] = "Earwig", ["Omnotron Defense System"] = "Nomnomtron Defense System", ["Chimaeron"] = "k'eye-MAIR-on", ["Atramedes"] = "at-ruh-MEE-deez", ["Nefarian's End"] = "Nef II: Electric Boogaloo", -- To4W ["Al'Akir"] = "Big Al", -- Firelands ["Shannox"] = "Shnox", ["Lord Rhyolith"] = "LEFT, LEFT, LEFT RIGHT LEFT", -- left my wife and 49 kids, an old grey mare and a peanut stand ["Alysrazor"] = "Steppin' Razor", -- how many people have read Neuromancer, hmmmm ["Majordomo Staghelm"] = "Mojododo", -- Dragon Soul ["Morchok"] = "Porkchop", ["Warlord Zon'ozz"] = "Warlord Beach Ball", ["Yor'sahj the Unsleeping"] = "Yosimite Sam the Unsleeping", ["Hagara the Stormbinder"] = "Hands Across America", ["Ultraxion"] = "ul-TRAX-ee-on", -------- WotLK -- ToC ["Northrend Beasts"] = "Animal House", ["Lord Jaraxxus"] = "latest DIAF demon", ["Faction Champions"] = "Alliance Clusterfuck", ["Valkyr Twins"] = "Salt'N'Pepa", ["Val'kyr Twins"] = "Salt'N'Pepa", ["Anub'arak"] = "Whack-a-Spider", -- ICC ["Lady Deathwhisper"] = "Lady Won't-Stop-Yammering", ["Gunship"] = "Rocket Shirt Over the Side of the Damn Boat", ["Gunship Battle"] = "Rocket Shirt Over the Side of the Damn Boat", ["Deathbringer Saurfang"] = "Deathbringer Sauerkraut", ["Professor Putricide"] = "Professor Farnsworth", ["Valithria Dreamwalker"] = "Dreeeeaaamweaaaaaverrrr", } addon.FILES_LOADED = addon.FILES_LOADED + 1 -- vim:noet