CompletePlayerQuest
Finishes a quest for a player.
The HUD announces it unless silent; the quest moves to the journal’s done quests and its objectives stay as they are.
Syntax
Section titled “Syntax”CompletePlayerQuest(pid, id [, silent])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number|string | the quest’s id or key |
silent |
boolean | true = no HUD banner (optional) |
Returns
Section titled “Returns”boolean, string - accepted; the reason when not
Example
Section titled “Example”SetPlayerQuestObjective(pid, ERRAND, 3, "done")CompletePlayerQuest(pid, ERRAND)GivePlayerMoney(pid, 50)See also
Section titled “See also”FailPlayerQuest · RemovePlayerQuest · the Quests group of the index
