API:ClearPQLootData
From RoR Wiki
UI Lua API · PublicQuest functions
Version: WAR 1.4.8
Discards the stored public quest result and resets the GameData.PQData fields.
ClearPQLootData()
Arguments
None.
Returns
Nothing.
Details
- Frees the public quest result the client keeps for GetPQTopContributors and GetPQLootWinners. Both return nothing afterwards, until the server sends a new result.
- Then sets:
GameData.PQData.timeUntilPQResetto0GameData.PQData.pqNametoL""GameData.PQData.idto0GameData.PQData.zoneto0
- Only client-side data is changed. Nothing is sent to the server.
- Arguments are not read.
Errors
None.
Example
From default/easystem_utils/source/publicqueststates.lua:
function PQData.OnObjectiveLeave(objectiveID)
if (objectiveID == GameData.PQData.id)
then
PQData.SynchronizeToClear()
ClearPQLootData()
end
end
