LibFail-2.0

Boss Encounters Login to Add Favorites
  • 2 Likes
  • World of Warcraft
  • 66 Monthly Downloads
  • Supports: 4.3
  • 22,712 Total Downloads
  • Updated 12/13/2011 7:26:13 AM
  • Created 12/2/2010 7:33:11 AM
  • 8 Favorites
  • Project Site
  • Release Type: Release
  • License: MIT License
  • Newest File: 4.302-RELEASE-LFr104
or

About LibFail-2.0

Next version of LibFail updated for Cataclysm. It is still a library that detects failures at certain raid tasks.

In LibFail-2.0 fail detection is completely rewritten which should allow fail events to be added more easier. There are also some new API calls that might come in handy when building your front-end.

You can find a list of supported fails: here

This is an open repository. Feel free to add to it, and make fixes yourself.

API: http://www.wowace.com/projects/libfail-2-0/pages/api/lib-fail-2-0/

Make sure that LibFail-2.0 dependencies are loaded before loading LibFail-2.0

Sample Code

local fail = LibStub("LibFail-2.0")
local failEvents = fail:GetSupportedEvents()
local LF = LibStub("AceLocale-3.0"):GetLocale("LibFail-2.0")

-- ... extra arguments such as spell used to trigger a barrier on Omnotron
local function onFail(failName, playerName, failType, ...)
	-- Get a localized string to be used as a name for the fail event
	local eventName = fail:GetEventName(failName) or ""

	-- Use either your own or one of the commonly used strings to print out the fail
	local faimsg = LF["%s fails at %s (%s)"]

	print( failmsg:format(playerName, failType, eventName) )
end

for _, event in ipairs(failEvents) do
	fail.RegisterCallback("SampleAddon", event, onFail)
end

------------------------------------------------------------------------
r105 | maat | 2011-12-13 13:24:37 +0000 (Tue, 13 Dec 2011) | 1 line
Changed paths:
   A /tags/4.302-RELEASE-LFr104 (from /trunk:104)

Tagging as 4.302-RELEASE-LFr104 for LibFail-2.0 r104
------------------------------------------------------------------------
r104 | Maat | 2011-12-13 13:22:38 +0000 (Tue, 13 Dec 2011) | 1 line
Changed paths:
   M /trunk/LibFail-2.0.lua

add deepCorruptionSpellIdExceptions based on http://goo.gl/yrfD6
------------------------------------------------------------------------
r103 | Maat | 2011-12-13 09:42:13 +0000 (Tue, 13 Dec 2011) | 4 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

add:
  Fading Light spellIds
  Yor'sahj - Deep Corruption (might need exceptions, please report them via the ticket tracker if you find any)
  Hagara - Storm Pillar
------------------------------------------------------------------------
r102 | Maat | 2011-12-11 22:05:22 +0000 (Sun, 11 Dec 2011) | 1 line
Changed paths:
   M /trunk/LibFail-2.0.lua

blade rush 10 heroic spellId
------------------------------------------------------------------------
r101 | oscarucb | 2011-12-08 23:00:14 +0000 (Thu, 08 Dec 2011) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

default to overkill only for Black Blood of the Earth which was very spammy

------------------------------------------------------------------------
r100 | Maat | 2011-12-05 15:58:05 +0000 (Mon, 05 Dec 2011) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

add Blackhorn Shockwave
add some spellIds
------------------------------------------------------------------------
r99 | oscarucb | 2011-12-02 10:18:19 +0000 (Fri, 02 Dec 2011) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

add Ultraxion_Hour of Twilight

------------------------------------------------------------------------
r97 | Maat | 2011-11-29 12:54:23 +0000 (Tue, 29 Nov 2011) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua
   M /trunk/LibFail-2.0.toc

add Dragon Soul fails
bump toc
------------------------------------------------------------------------
r96 | oscarucb | 2011-10-17 09:14:32 +0000 (Mon, 17 Oct 2011) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

add spellids for sinestra 10

------------------------------------------------------------------------

Addon Packs Containing This...

Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Diablo III Giveaway

Enter Now!