Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:ShareQuest

From RoR Wiki

UI Lua API · Quest functions
Version: WAR 1.4.8

Asks the server to share a quest.

ShareQuest(questId)

Arguments

questId
number – Id of a quest in the player's quest log.

Returns

Nothing.

Details

  • questId is converted to a 16-bit integer and sent with a share request. The client does not check the quest log first; the server decides who receives the quest.
  • The argument check identifies itself as AbandonQuest: if the argument is missing or not a number, the Invalid Parameters message names AbandonQuest.

Errors

None besides the generic Invalid Parameters message (naming AbandonQuest) when the argument is missing or not a number.

Example

From ea_tomeofknowledge/source/tomewindow_questjournal.lua:

function TomeWindow.ShareQuest()
    ShareQuest (TomeWindow.QuestJournal.currentQuestData.id)
end

See also