LibResComm-1.0
From WowAce Wiki
Keeps track of resurrection spells casted in a group. Uses the CTRA protocol for communication. Does not send messages when oRA2 or CTRA is enabled.
Contents |
[edit]
Usage Example
[edit]
Getting a library reference
LibStub, CallbackHandler-1.0 are required dependencies, and must be included by the Addon, before trying to get a reference to LibResComm-1.0.
local ResComm = LibStub:GetLibrary("LibResComm-1.0");
[edit]
Registering a callback
function MyAddon:OnEnable()
ResComm.RegisterCallback(self, "ResComm_ResStart");
end
function MyAddon:ResComm_ResStart(event, resser, endTime, target)
DEFAULT_CHAT_FRAME:AddMessage(resser .. " is ressing "..target);
end
[edit]
API Documentation
[edit]
Events
[edit]
ResComm_ResStart(event, resser, endTime, resser)
Note: Messages comming from oRA2 will not have a reliable endTime.
[edit]
ResComm_ResEnd(event, resser, target)
Fired when a resurrection cast ended. This can either mean it has failed or completed. Use ResComm_Ressed to check if someone actually ressed.
[edit]
ResComm_Ressed(event, name)
Fired when someone actually sees the accept resurrection box.
[edit]
ResComm_CanRes(event, name)
Fired when someone can use a soulstone or ankh.
[edit]
ResComm_ResExpired(event, name)
Fired when the accept resurrection box dissapears/is declined.
[edit]
Library Functions
[edit]
IsUnitBeingRessed(name)
Returns: boolean
[edit]

