• 0

    posted a message on UNIT_AURA for targettarget
    Quote from Xinhuan
    I thought I told you OnUpdate on IRC too!


    You did ;) Using OnUpdate that way just makes me feel so dirty that I was hoping somebody would have some other idea.
    Posted in: Lua Code Discussion
  • 0

    posted a message on UNIT_AURA for targettarget
    The UNIT_AURA event does not appear to fire for targettarget, focustarget, pettarget, party#target, etc. What's the best equivalent? I'd like to avoid OnUpdate; re-scanning up to 20+ auras on 3+ units every frame seems like a bad idea. NeedToKnow seems to use about 6 sub-events of COMBAT_LOG_EVENT_UNFILTERED, although that fires so much it seems almost as bad as OnUpdate. Are there any better options?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Curse Premium for Addon Authors?
    Quote from Phanx
    the number of people using the Curse Client who have your addon installed


    This is OT but I think the OP's question was answered and others might be curious about this too:

    Is there a way for addon authors to see that number of current installs for each of their addons? I can sort of guess at it based on the number of downloads of each released version, but it'd be cool to actually have a concrete "install base" number (minus, of course, people who installed manually or from another distribution site, if applicable).
    Posted in: General Chat
  • 0

    posted a message on Auracle - Official Thread
    1.2.2-beta-1 has updated preset groups, and should no longer have a warning about that Worgen ability (it'll start working in 4.0.3/Cataclysm though). Let me know if you have any trouble with that release.
    Posted in: General AddOns
  • 0

    posted a message on Using Arguments When Calling Functions
    And just for your curiosity's sake, that construct is called a "jump table" or "branch table". :)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Working with bits
    Quote from Showside
    I've been tinkering around now with bits for almost 3 hours, I think bit.band will be my friend.

    I once learned this at school, alas it has been 10 years :')

    For the "changing" of a bit, I think I might just simply add or substract 4 (in case I want to change the 3rd bit)

    thanks


    You can only add/subtract if you also test it beforehand. Otherwise if you "add 4 to set bit #3" on a value that actually already had bit #3 set, then that value will lose bit #3 and gain bit #4 which is not what you want. Using bit.bor is the easier way to set bits; to clear bits, you'd use bit.band on the inverse of the bit (i.e. "bit.band(var, bit.bnot(4))" to clear bit #3.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Working with bits
    Check out http://www.wowwiki.com/Lua_functions, the section on Bit Functions. The bitwise operators (AND, OR, NOT, etc) are available as functions in the "bit" global library.

    For example, doing AND on a variable and a constant, where the constant has only one bit (so, integer 1, 2, 4, 8, ...), serves as a test: "bit.band(var, 8)" will return 8 if the 4th bit of var is on, and 0 otherwise.

    Doing OR serves as a set: "bit.bor(var, 8)" will return var plus the 4th bit, so 4 becomes 12, but 15 stays 15 (because 15 already has the 4th bit set).

    You can also test or set multiple bits at once: "bit.band(var, 12)" checks the 3rd and 4th bits (the return will be 0 if neither were set, or 4, 8 or 12 for the combinations); "bit.bor(var, 10)" sets the 2nd and 4th bits.
    Posted in: Lua Code Discussion
  • 0

    posted a message on 4.0.1 exclusive buff/debuff categories
    Quote from Stanzilla
    caster haste is not granted by shadowform (and you should not detect it via shadowform cause only the priest has the shadowform buff) but by "Mind Quickening" which is applied when a priest turns on shadowform but somehow does not show up in the combatlog?

    http://db.mmo-champion.com/s/49868/mind-quickening/


    Does the Priest him/her/itself also get Mind Quickening? Or does the priest only see their Shadowform buff?
    Posted in: General Chat
  • 0

    posted a message on 4.0.1 exclusive buff/debuff categories
    Quote from Nevcairiel
    I dunno, this list probably doesn't change much until the next expansion (maybe 4.0.3/Cataclysm adds some minor changes, but you get the point). Once its finished, an addon that needs it can just include it in their addon, and be done with it.

    IMHO, a library should either include some useful functionality, or at least provide data that is useful to more then one addon at any given time.


    It looks like Draake has already created a library along these lines: http://www.wowace.com/addons/libunitcontrol-1-0/
    Posted in: General Chat
  • 0

    posted a message on Bank Slot 7 - Missing inventory
    		for bagNum = 5, 10 do
    
    			bankSlots = GetContainerNumSlots(bagNum);
    
    


    Bank bags are 5 to 11.
    Posted in: Need Help?
  • 0

    posted a message on 4.0.1 exclusive buff/debuff categories
    Quote from Phanx
    Some additions:


    Awesome, thank you Phanx. Did you just know these offhand, or are you consulting some resource I should keep an eye on?

    I'm not worrying about different ranks or varieties of polymorph, because even though I store them as SpellIDs for localization purposes, the actual comparison is by name in the end, and each rank/polymorph has the same name anyway. Same with the druid/pet Roar I suppose, but I'll add both just in case.

    The taunted category is a good idea, I'll add those. I do have categories for various CCs (stun, fear, incapacitate, disorient, root, slow) that I didn't include here, because none of those seem to have changed.
    Posted in: General Chat
  • 0

    posted a message on Auracle - Official Thread
    Yeah, the easiest way for users to configure it is with names rather than SpellIDs, so that's probably going to stay the way it is for now, although it'd be nice to have the option of using SpellIDs to distinguish ambiguous names.

    But that's probably not a trivial change and I'm really just doing bugfix/compatibility updates at this point, since I don't play myself anymore. An overhaul into Auracle 2.0 to add this and other features isn't out of the question, but it's not currently on the radar either.
    Posted in: General AddOns
  • 0

    posted a message on 4.0.1 exclusive buff/debuff categories
    Quote from johtro
    In petopias hunter forums a pretty decent list has been made. Used first to check what pets to use, but has grown to include all buffs/debuffs available in game.

    http://forums.wow-petopia.com/viewtopic.php?f=28&t=4753


    That's actually the list I started with, but when I last grabbed a copy it still seemed more pet-centric and had some inconsistencies (debuffs listed as buffs, some things in groups that they didn't belong in). But it looks like they're been updating it and fixed most of the same things I did. :)
    Posted in: General Chat
  • 0

    posted a message on 4.0.1 exclusive buff/debuff categories
    I couldn't find an authoritative summary of which buffs and debuffs are in each of the new exclusive categories, so I pulled together a few partial overviews from the community and built this list. If anyone has any updates or corrections, I'd be much obliged.

    (edit: thanks to many folks in this thread and also over at wow-petopia for contributions and corrections)

    Buffs
    • Stats
      • +% Stats
        • 79063, -- Blessing of Kings (Paladin)
        • 90363, -- Embrace of the Shale Spider (Hunter: Shale Spider)
        • 79060, -- Mark of the Wild (Druid)
      • + Agi/Str
        • 6673, -- Battle Shout (Warrior)
        • 57330, -- Horn of Winter (Death Knight)
        • 93435, -- Roar of Courage (Hunter: Cat, Spirit Beast)
        • 8076, -- Strength of Earth (Shaman)
      • + Sta
        • 6307, -- Blood Pact (Warlock: Imp)
        • 469, -- Commanding Shout (Warrior)
        • 21562, -- Power Word: Fortitude (Prist)
        • 90364, -- Qiraji Fortitude (Hunter: Silithid)
      • + Mana
        • 79057, -- Arcane Brilliance (Mage)
        • 54424, -- Fel Intelligence (Warlock: Felhunter)
    • General DPS
      • +% Damage
        • 75447, -- Ferocious Inspiration (Hunter)
        • 82930, -- Arcane Tactics (Mage)
        • 465, -- Devotion Aura (Paladin w/ Communion)
        • 7294, -- Retribution Aura (Paladin w/ Communion)
        • 19746, -- Concentration Aura (Paladin w/ Communion)
        • 19891, -- Resistance Aura (Paladin w/ Communion)
        • 32223, -- Crusader Aura (Paladin w/ Communion)
      • + Crit
        • 51470, -- Elemental Oath (Shaman)
        • 24604, -- Furious Howl (Hunter: Wolf)
        • 51698, -- Honor Among Thieves (Rogue)
        • 24932, -- Leader of the Pack (Druid)
        • 29801, -- Rampage (Warrior)
        • 90309, -- Terrifying Roar (Hunter: Devilsaur)
      • ++ Haste
        • 90355, -- Ancient Hysteria (Hunter: Corehound)
        • 2825, -- Bloodlust (Shaman)
        • 32182, -- Heroism (Shaman)
        • 80353, -- Time Warp (Mage)
    • Physical DPS
      • +% Attack Power
        • 53137, -- Abomination's Might (Death Knight)
        • 79102, -- Blessing of Might (Paladin)
        • 19506, -- Trueshot Aura (Hunter)
        • 30802, -- Unleashed Rage (Shaman)
      • + Physical Haste
        • 53290, -- Hunting Party (Hunter)
        • 55610, -- Improved Icy Talons (Death Knight)
        • 8515, -- Windfury Totem (Shaman)
    • Spell DPS
      • +6% Spell Power
        • 79057, -- Arcane Brilliance (Mage)
        • 52109, -- Flametongue Totem (Shaman)
      • +10% Spell Power
        • 47236, -- Demonic Pact (Warlock)
        • 77747, -- Totemic Wrath (Shaman)
      • + Spell Haste
        • 24907, -- Moonkin Aura (Druid)
        • 49868, -- Mind Quickening (Priest Shadowform)
        • 2895, -- Wrath of Air Totem (Shaman)
      • - Spell Pushback
        • 19746, -- Concentration Aura (Paladin)
        • 87717, -- Tranquil Mind (Shaman)
      • ++ Mana Regen (non-exclusive)
        • 54428, -- Divine Plea (Paladin)
        • 12051, -- Evocation (Mage)
        • 64904, -- Hymn of Hope (Priest)
        • 29166, -- Innervate (Druid)
        • 16190, -- Mana Tide (Shaman)
      • + Mana Regen
        • 79102, -- Blessing of Might (Paladin)
        • 54424, -- Fel Intelligence (Warlock: Felhunter)
        • 5677, -- Mana Spring (Shaman)
      • Replenishment
        • 57669, -- Replenishment (all spells/procs below give this same buff)
        • --Vampiric Touch (Priest)
        • --Enduring Winter (Mage)
        • --Communion (Paladin)
        • --Reviatalize (Druid)
        • --Soul Leech (Warlock)
    • Defense
      • + Armor
        • 465, -- Devotion Aura (Paladin)
        • 8072, -- Stoneskin (Shaman)
      • --% Damage Taken (non-exclusive)
        • 65860, -- Barkskin (Druid)
        • 498, -- Divine Protection (Paladin)
        • 33206, -- Pain Suppression (Priest)
      • -% Damage Taken
        • 16177, -- Ancestral Fortitude (Shaman)
        • 14893, -- Inspiration (Priest)
    • Tactical
      • Immune
        • 642, -- Divine Shield (Paladin)
        • 45438, -- Ice Block (Mage)
      • Physical (Near) Immune
        • 5277, -- Evasion (Rogue)
        • 1022, -- Hand of Protection (Paladin)
      • Spell (Near) Immune
        • 31224, -- Cloak of Shadows (Rogue)
        • 23920, -- Spell Reflection (Warrior)
      • Shielded
        • 11426, -- Ice Barrier (Mage)
        • 1463, -- Mana Shield (Mage)
        • 17, -- Power Word: Shield (Priest)
        • 7812, -- Sacrifice (Warlock)
      • Fast
        • 68992, -- Darkflight (Worgen racial)
        • 1850, -- Dash (Druid)
        • 13141, -- Gnomish Rocket Boots (item)
        • 8892, -- Goblin Rocket Boots (item)
        • 2379, -- Speed (Swiftness Potion item)
        • 14530, -- Speed (Nifty Stopwatch item)
        • 2983, -- Sprint (Rogue)

    Debuffs
    • DPS
      • -% Damage
        • 702, -- Curse of Weakness (Warlock)
        • 99, -- Demoralizing Roar (Druid)
        • 50256, -- Demoralizing Roar (Hunter: Bear)
        • 1160, -- Demoralizing Shout (Warrior)
        • 81130, -- Scarlet Fever (Death Knight)
        • 26017, -- Vindication (Paladin)
      • - Melee Haste
        • 54404, -- Dust Cloud (Hunter: Tallstrider)
        • 8042, -- Earth Shock (Shaman)
        • 55095, -- Frost Fever (Death Knight)
        • 58180, -- Infected Wounds (Druid)
        • 68055, -- Judgements of the Just (Paladin)
        • 14251, -- Riposte (Rogue)
        • 90315, -- Tailspin (Hunter: Fox)
        • 6343, -- Thunder Clap (Warrior)
      • - Spell Haste
        • 1714, -- Curse of Tongues (Warlock)
        • 58604, -- Lava Breath (Hunter: Corehound)
        • 5760, -- Mind-numbing Poison (Rogue)
        • 73975, -- Necrotic Strike (Death Knight)
        • 31589, -- Slow (Mage)
        • 50274, -- Spore Cloud (Hunter: Sporebat)
    • Physical Tank
      • -% Armor
        • 35387, -- Corrosive Spit (Hunter: Serpent)
        • 8647, -- Expose Armor (Rogue)
        • 91565, -- Faerie Fire (Druid)
        • 7386, -- Sunder Armor (Warrior)
        • 50498, -- Tear Armor (Hunter: Raptor)
      • +% Physical Damage Taken
        • 55749, -- Acid Spit (Hunter: Worm)
        • 30069, -- Blood Frenzy (Warrior)
        • 81326, -- Brittle Bones (Death Knight)
        • 50518, -- Ravage (Hunter: Ravager)
        • 58684, -- Savage Combat (Rogue)
      • +% Bleed Damage Taken
        • 35290, -- Gore (Hunter: Boar)
        • 16511, -- Hemorrhage (Rogue)
        • 33878, -- Mangle (Bear) (Druid)
        • 33876, -- Mangle (Cat) (Druid)
        • 57386, -- Stampede (Hunter: Rhino)
        • 50271, -- Tendon Rip (Hyena)
        • 46857, -- Trauma (Warrior)
    • Spell Tank
      • +% Spell Damage Taken
        • 1490, -- Curse of the Elements (Warlock)
        • 60433, -- Earth and Moon (Druid)
        • 65142, -- Ebon Plague (Death Knight)
        • 34889, -- Fire Breath (Hunter: Dragonhawk)
        • 85547, -- Jinx: Curse of the Elements (Warlock)
        • 24844, -- Lightning Breath (Hunter: Wind Serpent)
        • 93068, -- Master Poisoner (Rogue)
      • + Spell Crit Taken
        • 11095, -- Critical Mass (Mage)
        • 30288, -- Shadow and Flame (Warlock)
    • Tactical
      • Taunted
        • 5209, -- Challenging Roar (Druid)
        • 1161, -- Challenging Shout (Warrior)
        • 56222, -- Dark Command (Death Knight)
        • 57603, -- Death Grip (Death Knight)
        • 20736, -- Distracting Shot (Hunter)
        • 6795, -- Growl (Druid)
        • 62124, -- Hand of Reckoning (Paladin)
        • 31790, -- Righteous Defense (Paladin)
        • 17735, -- Suffering (Warlock: Voidwalker)
        • 355, -- Taunt (Warrior)
        • 53477, -- Taunt (Hunter: tenacity)
        • 58857, -- Twin Howl (Shaman: Spirit Wolves)
      • -% Healing Taken
        • 56112, -- Furious Attacks (Warrior)
        • 30213, -- Legion Strike (Warlock: Felguard)
        • 48301, -- Mind Trauma (Priest)
        • 54680, -- Monstrous Bite (Hunter: Devilsaur)
        • 12294, -- Mortal Strike (Warrior)
        • 68391, -- Permafrost (Mage)
        • 82654, -- Widow Venom (Hunter)
        • 13218, -- Wound Poison (Rogue)
      • Disarm
        • 50541, -- Clench (Hunter: Scorpid)
        • 676, -- Disarm (Warrior)
        • 51722, -- Dismantle (Rogue)
        • 64058, -- Psychic Horror (Priest)
        • 91644, -- Snatch (Hunter: Bird of Prey)
      • Silence
        • 25046, -- Arcane Torrent (Blood Elf racial)
        • 31935, -- Avenger's Shield (Paladin)
        • 1330, -- Garrote - Silence (Rogue)
        • 50479, -- Nether Shock (Hunter: Nether Ray)
        • 15487, -- Silence (Priest)
        • 18498, -- Silenced - Gag Order (Warrior)
        • 18469, -- Silenced - Improved Counterspell (Mage)
        • 18425, -- Silenced - Improved Kick (Rogue)
        • 34490, -- Silencing Shot (Hunter)
        • 81261, -- Solar Beam (Druid)
        • 24259, -- Spell Lock (Warlock: Fel Hunter)
        • 47476, -- Strangulate (Death Knight)
      • Spell Lockout
        • 2139, -- Counterspell (Mage)
        • 1766, -- Kick (Rogue)
        • 47528, -- Mind Freeze (Death Knight)
        • 6552, -- Pummel (Warrior)
        • 26090, -- Pummel (Hunter: Gorilla)
        • 50318, -- Serenity Dust (Hunter: Moth)
        • 72, -- Shield Bash (Warrior)
        • 80964, -- Skull Bash (Bear) (Druid)
        • 80965, -- Skull Bash (Cat) (Druid)
        • 24259, -- Spell Lock (Warlock: Fel Hunter)
        • 57994, -- Wind Shear (Shaman)
      • Immune
        • 710, -- Banish (Warlock)
        • 33786, -- Cyclone (Druid)
      • Stun
        • 85387, -- Aftermath (Warlock)
        • 89766, -- Axe Toss (Warlock: Felguard)
        • 5211, -- Bash (Druid)
        • 93433, -- Burrow Attack (Hunter: Worm)
        • 7922, -- Charge Stun (Warrior)
        • 1833, -- Cheap Shot (Rogue)
        • 12809, -- Concussion Blow (Warrior)
        • 44572, -- Deep Freeze (Mage)
        • 45334, -- Feral Charge (Bear) (Druid)
        • 91800, -- Gnaw (Death Knight: Ghoul)
        • 853, -- Hammer of Justice (Paladin)
        • 88625, -- Holy Word: Chastise (Priest)
        • 2812, -- Holy Wrath (Paladin)
        • 12355, -- Impact (Mage)
        • 20253, -- Intercept (Warrior)
        • 19577, -- Intimidation (Hunter)
        • 408, -- Kidney Shot (Rogue)
        • 22570, -- Maim (Druid)
        • 9005, -- Pounce (Druid)
        • 82691, -- Ring of Frost (Mage)
        • 30283, -- Shadowfury (Warlock)
        • 46968, -- Shockwave (Warrior)
        • 50519, -- Sonic Blast (Hunter: Bat)
        • 56626, -- Sting (Hunter: Wasp)
        • 85388, -- Throwdown (Warrior)
        • 20549, -- War Stomp (Tauren racial)
      • Fear
        • 6789, -- Death Coil (Warlock)
        • 5782, -- Fear (Warlock)
        • 5484, -- Howl of Terror (Warlock)
        • 5246, -- Intimidating Shout (Warrior)
        • 65545, -- Psychic Horror (Priest)
        • 8122, -- Psychic Scream (Priest)
        • 1513, -- Scare Beast (Hunter)
        • 10326, -- Turn Evil (Paladin)
        • 19725, -- Turn Undead
      • Incapacitate
        • 30217, -- Adamantite Grenade (item)
        • 76780, -- Bind Elemental (Shaman)
        • 30216, -- Fel Iron Bomb (item)
        • 3355, -- Freezing Trap (Hunter)
        • 1776, -- Gouge (Rogue)
        • 2637, -- Hibernate (Druid)
        • 51209, -- Hungering Cold (Death Knight)
        • 13327, -- Reckless Charge (Goblin Rocket Helmet, Horned Viking Helmet items)
        • 20066, -- Repentance (Paladin)
        • 6770, -- Sap (Rogue)
        • 6358, -- Seduction (Warlock: Succubus)
        • 9484, -- Shackle Undead (Priest)
        • 19386, -- Wyvern Sting (Hunter)
      • Disorient
        • 90337, -- Bad Mannger (Hunter: Monkey)
        • 2094, -- Blind (Rogue)
        • 31661, -- Dragon's Breath (Mage)
        • 51514, -- Hex (Shaman)
        • 118, -- Polymorph (Mage)
        • 19503, -- Scatter Shot (Hunter)
      • Root
        • 19306, -- Counterattack (Hunter)
        • 64695, -- Earthgrab (Shaman)
        • 339, -- Entangling Roots (Druid)
        • 19185, -- Entrapment (Hunter)
        • 63685, -- Freeze [Frost Shock] (Shaman)
        • 33395, -- Freeze [Water Elemental] (Mage)
        • 39965, -- Frost Grenade (item)
        • 122, -- Frost Nova (Mage)
        • 55536, -- Frostweave Net (item)
        • 58373, -- Glyph of Hamstring (Warrior)
        • 23694, -- Improved Hamstring (Warrior)
        • 90327, -- Lock Jaw (Hunter: Dog)
        • 13099, -- Net-o-Matic (Gnomish Net-o-Matic Projector item)
        • 94358, -- Overgrowth (Druid)
        • 50245, -- Pin (Hunter: Crab)
        • 55080, -- Shattered Barrier (Mage)
        • 54706, -- Venom Web Spray (Hunter: Silithid)
        • 4167, -- Web (Hunter: Spider)
      • Slow
        • 18118, -- Aftermath (Warlock)
        • 50433, -- Ankle Crack (Hunter: Crocolisk)
        • 31126, -- Blade Twisting (Rogue)
        • 11113, -- Blast Wave (Mage)
        • 45524, -- Chains of Ice (Death Knight)
        • 50434, -- Chilblains (Death Knight)
        • 6136, -- Chilled (Frost Armor) (Mage)
        • 7321, -- Chilled (Ice Armor) (Mage)
        • 20005, -- Chilled (Icy Chill enchantment)
        • 16927, -- Chilled (Frostguard item)
        • 35101, -- Concussive Barrage (Hunter)
        • 5116, -- Concussive Shot (Hunter)
        • 120, -- Cone of Cold (Mage)
        • 3409, -- Crippling Poison (Rogue)
        • 18223, -- Curse of Exhaustion (Warlock)
        • 1604, -- Dazed
        • 50259, -- Dazed (Feral Charge Cat) (Druid)
        • 26679, -- Deadly Throw (Rogue)
        • 68766, -- Desecration (Death Knight)
        • 3600, -- Earthbind (Shaman)
        • 54644, -- Frost Breath (Hunter: Chimaera)
        • 8056, -- Frost Shock (Shaman)
        • 116, -- Frostbolt (Mage)
        • 8034, -- Frostbrand Attack (Shaman)
        • 44614, -- Frostfire Bolt (Mage)
        • 61394, -- Frozen Wake (Glyph of Freezing Trap) (Hunter)
        • 58617, -- Glyph of Heart Strike (Death Knight)
        • 1715, -- Hamstring (Warrior)
        • 13810, -- Ice Trap (Hunter)
        • 58180, -- Infected Wounds (Druid)
        • 15407, -- Mind Flay (Priest)
        • 12323, -- Piercing Howl (Warrior)
        • 31589, -- Slow (Mage)
        • 35346, -- Time Warp (Hunter: Warp Stalker)
        • 51693, -- Waylay (Rogue)
        • 2974, -- Wing Clip (Hunter)
    Posted in: General Chat
  • 0

    posted a message on Ace2 End-Of-Life Discussion
    Although AceOO is seemingly much reviled and many authors prefer to setup inheritance manually (and I fully support doing things however you prefer), I just thought I'd toss this out there, in case someone somewhere is asked about an AceOO replacement: LibOOP
    Posted in: Ace2
  • To post a comment, please or register a new account.