- using GetServerTime() instead of time() to compare when a boss has died across guild members.

- won't sync dps / hps from encounters from old raid tiers.
- won't sync encounters without the .servertime time stamp.
- core version bump up, so details will auto ignore comms from old databases without the .servertime member on the encounter table.
This commit is contained in:
Tercio
2017-06-27 15:36:27 -03:00
parent 482b92418b
commit 15edd25de7
3 changed files with 88 additions and 56 deletions
+5 -5
View File
@@ -286,7 +286,7 @@
return false
end
if (type == "R") then --RoS
if (type == "R") then --RoS - somebody requested IDs of stored encounters
_detalhes.LastGuildSyncDataTime1 = _detalhes.LastGuildSyncDataTime1 or 0
--build our table and send to the player
@@ -305,7 +305,7 @@
_detalhes.LastGuildSyncDataTime1 = GetTime() + 60
return true
elseif (type == "L") then --RoC
elseif (type == "L") then --RoC - the player received the IDs list and send back which IDs he doesn't have
local MissingIDs = _detalhes.storage:CheckMissingIDsToGuildSync (data)
if (MissingIDs [1]) then
@@ -315,7 +315,7 @@
end
return true
elseif (type == "G") then --RoS
elseif (type == "G") then --RoS - the 'server' send the encounter dps table to the player which requested
local EncounterData = _detalhes.storage:BuildEncounterDataToGuildSync (data)
if (EncounterData [1]) then
@@ -343,8 +343,8 @@
end
return true
elseif (type == "A") then --RoC
_detalhes.storage:AddGuildSyncData (data)
elseif (type == "A") then --RoC - the player received the dps table and should now add it to the db
_detalhes.storage:AddGuildSyncData (data, player)
return true
end