mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
890 B
890 B
Function: AddQuestSelectableRewardItem(quest, item_id, quantity)
Description:
Adds a selectable reward item for completion of the current Quest. Triggered by calling the LUA Function GiveQuestReward on completion of the Quest.
Parameters:
quest(Quest) - Quest object representingquest.item_id(uint32) - Integer valueitem_id.quantity(int32) - Integer valuequantity.
Returns: None.
Example:
-- Made up example
local MARINER_STITCHED_BRACERS_ID = 164053
local MARINER_STITCHED_SHAWL_ID = 164058
local MARINER_STITCHED_SLIPPERS_ID = 164059
function Init(Quest)
-- allows one item to be selected as an end reward of the quest
AddQuestSelectableRewardItem(Quest, MARINER_STITCHED_BRACERS_ID)
AddQuestSelectableRewardItem(Quest, MARINER_STITCHED_SHAWL_ID)
AddQuestSelectableRewardItem(Quest, MARINER_STITCHED_SLIPPERS_ID)
end