/trunk/RDX/Raid/Bossmods
function RDX.Alert.Spam(txt) |
if not RDXU.spam then return; end |
if GetNumRaidMembers() > 0 then |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if myunit:IsLeader() then |
SendChatMessage(txt, "RAID_WARNING"); |
else |
----------------------------------------------- |
--- Synchronize the current encounter |
function RDX.SyncEncounter() |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if myunit:IsLeader() then |
RPC_Group:Flash("enc_set", RDX.GetActiveEncounter()); |
end |
function RDX.StartEncounter(nosync) |
local ename = RDX.GetActiveEncounter(); |
if encTimer:IsRunning() then return; end |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if (not nosync) and (myunit:IsLeader()) then |
RPC_Group:Flash("enc_start", ename); |
end |
function RDX.StopEncounter(nosync) |
local ename = RDX.GetActiveEncounter(); |
PlayBtn_SetPlay(); |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
-- Synchronize encounter stop |
if (not nosync) and (myunit:IsLeader()) then |
RPC_Group:Flash("enc_stop", ename); |