Skip to content

Return of Reckoning

Wiki

RoR Wiki

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.timeUntilPQReset to 0
    • GameData.PQData.pqName to L""
    • GameData.PQData.id to 0
    • GameData.PQData.zone to 0
  • 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

See also