/trunk/RDX/Raid/RaidUtility
-- RPC:Debug(1, "Got Charsheet check from non-leader " .. sunit.name); |
-- return; |
--end |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if string.lower(who) == myunit.name then |
return MakeCharSheet(); |
else |
win_set:AddName(name); |
local assist_set = RDXDB.GetObjectData("default:assists"); |
table.insert(assist_set.data, name); |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if myunit:IsLeader() then |
RPC_Group:Flash("sync_assist", assist_set.data); |
end |
table.remove(assist_set.data, k); |
end |
end |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if myunit:IsLeader() then |
RPC_Group:Flash("sync_assist", assist_set.data); |
end |
end |
function Logistics.SyncAssists() |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if not myunit:IsLeader() then return; end |
local assist_set = RDXDB.GetObjectData("default:assists"); |
if assist_set then |
assist_set.data = {}; |
local win_set = RDXDB.GetObjectInstance("default:assists"); |
win_set:ClearNames(); |
local myunit = RDXDAL._ReallyFastProject("player"); |
local myunit = RDXDAL.GetMyUnit(); |
if myunit:IsLeader() then |
RPC_Group:Flash("sync_assist", assist_set.data); |
end |