Get an Epic Experience with Premium

LibFail-2.0

Boss Encounters Login to Add Favorites
  • 2 Likes
  • World of Warcraft
  • 30 Monthly Downloads
  • Supports: 4.3.4
  • 25,065 Total Downloads
  • Updated 06/30/2012
  • Created 12/02/2010
  • 8 Favorites
  • Project Site
  • Release Type: Inactive
  • License: MIT License
  • Newest File: 4.31-RELEASE-LFr116
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

------------------------------------------------------------------------
r117 | maat | 2012-06-30 11:51:07 +0000 (Sat, 30 Jun 2012) | 1 line
Changed paths:
   A /tags/4.31-RELEASE-LFr116 (from /trunk:116)

Tagging as 4.31-RELEASE-LFr116
------------------------------------------------------------------------
r116 | oscarucb | 2012-06-30 10:33:08 +0000 (Sat, 30 Jun 2012) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

remove the grip fail, as agreed with Maat

------------------------------------------------------------------------
r115 | oscarucb | 2012-06-20 08:39:30 +0000 (Wed, 20 Jun 2012) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

fix LFR overkill override to not suppress non-damage fails

------------------------------------------------------------------------
r114 | oscarucb | 2012-05-25 10:24:43 +0000 (Fri, 25 May 2012) | 2 lines
Changed paths:
   M /trunk/LibFail-2.0.lua

ticket 12: add an overkill override

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

Addon Packs Containing This...

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 »

ESO Prize Pack Giveaway!