892 B
892 B
Function: GiveQuestReward(quest, spawn)
Description: Provides the quest rewards previously specified with AddQuestRewardCoin, AddQuestRewardFaction, AddQuestRewardItem and AddQuestSelectableRewardItem or in the database.
Parameters:
quest
(Quest) - Quest object representingquest
.spawn
(Spawn) - Spawn object representingspawn
.
Returns: None.
Example:
-- From Quests/AlphaTest/stowaway_antonica.lua
function QuestCheck1(Quest, QuestGiver, Player)
if QuestStepIsComplete(Player,5858,2) and QuestStepIsComplete(Player,5858,3)and QuestStepIsComplete(Player,5858,4) then
UpdateQuestTaskGroupDescription(Quest, 1, "I have found all I need to Fast-Track to Qeynos.")
UpdateQuestDescription(Quest, "I have all the necessary parts for the Fast-Track passage to Qeynos. The ride was a bit cramped...")
GiveQuestReward(Quest, Player)
end
end