comparison abbreviations.lua @ 67:c01875b275ca

Do not use UnitName on other people during RAID_ROSTER_UPDATE, as they may be a weed (thank you Calvieri for unknowingly eating a lifegiving seed and exposing this bug). Be more informative to the user about errors during load. Do not try to run other files if a load-time error happens, as it only generates cascading noise.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 08 May 2012 02:41:23 +0000
parents dc3a66688e50
children 940e53dd18c3
comparison
equal deleted inserted replaced
66:43913e02a1ef 67:c01875b275ca
1 --[==[
2 If you want to change these to something else, like in-jokes for your guild,
3 write a small addon like this:
4
5 Interface/AddOns/YourMod/YourMod.toc:
6 =================================
7 ## Interface: xxxxx
8 ## Title: Ouro Loot For My Guild
9 * ## RequiredDeps: Ouro_Loot
10 * ## LoadOnDemand: 1
11 * ## LoadWith: Ouro_Loot
12
13 main.lua
14 =================================
15
16 Lines with * are crucial. Then replace specific entries like this:
17
18 Interface/AddOns/YourMod/main.lua:
19 =================================
20 local ouroloot = LibStub("AceAddon-3.0"):GetAddon("Ouro Loot")
21
22 ouroloot.instance_abbrev["The Bastion of Twilight"] =
23 [[Steve Said He'd /gquit If We Make Him Go Here Ever Again]]
24
25 ouroloot.boss_abbrev["Omnotron Defense System"] =
26 [[Jim Will Facetank The Slimes Now]]
27 =================================
28
29 This lets you update Ouro Loot with a new version (overwriting this file)
30 without losing any of your changes.
31 ]==]
32
1 local addon = select(2,...) 33 local addon = select(2,...)
34 if addon.NOLOAD then return end
2 35
3 addon.instance_abbrev = { 36 addon.instance_abbrev = {
4 -------- Cata 37 -------- Cata
5 ["Baradin Hold"] = "BH", 38 ["Baradin Hold"] = "BH",
6 ["The Bastion of Twilight"] = "BoT", 39 ["The Bastion of Twilight"] = "BoT",