API description


Getting a library reference

local ResComm = LibStub:GetLibrary("LibResComm-1.0");

Registering a callback

function MyAddon:OnEnable()
    	ResComm.RegisterCallback(self, "ResComm_ResStart");
	ResComm.RegisterCallback(self, "ResComm_CanRes");

function MyAddon:ResComm_ResStart(event, resser, endTime, target)
    	SendChatMessage(resser .. " is ressing ";

function MyAddon:ResComm_CanRes(event, name, typeToken, typeString)
	if typeToken == "SS" then
		SendChatMessage(name.." has been Soulstoned!");
	elseif typeToken == "TN" then
		SendChatMessage(name.." is the proud owner of the Twisting Nether Darkmoon Faire card");
	elseif typeToken == "RE" then
		SendChatMessage(name.." is a Shaman");
	-- if you don't care how the player can self-res
		SendChatMessage(name.." can res themself");

Note: typeString is "Soulstone", "Twisting Nether", or "Reincarnate", which are all currently in English and need to be localized on LibResComm-1.0's localization page.


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.

ResComm_CanRes(event, name, typeToken, typeString)

Fired when someone can use a Soulstone, Ankh, or Twisting Nether. Note: typeString needs localizing withing the Lib. Returns "Soulstone", "Twisting Nether", or "Reincarnate" translated for locale.

ResComm_ResExpired(event, name)

Fired when the accept resurrection box disappears/is declined.


IsUnitBeingRessed(unit, resser)


Date created
Oct 16, 2010