Getting a library reference
local ResComm = LibStub:GetLibrary("LibResComm-1.0");
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
ResComm_ResStart(event, resser, endTime, resser)
Note: Messages comming from oRA2 will not have a reliable endTime.
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.
ResComm_Ressed(event, name) Fired when someone actually sees the accept resurrection box.
Fired when someone can use a soulstone, ankh, or Twisting Nether.
Fired when the accept resurrection box disappears/is declined.
- Date created
- Sep 21, 2010