No categories assigned

LUA:AddQuestStepHarvest


LUA:AllFunctions - AddQuestStepHarvest

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds a quest step to a quest that updates upon harvesting specified items.

Syntax

AddQuestStepHarvest(param1, param2, param3, param4, param5, param6, param7, param8)

Parameters

Required - param1 (Quest), param2 (int32), param3 (String), param4 (int32), param5 (int8), param6 (String), param7 (int32), param8 (int32)
param1 is the quest to add the step to
param2 is the the step id
param3 is the quest step text
param4 is the amount of items required
param5 is the percent chance of an update upon harvesting the item
param6 is the taskgroup text
param7 is the icon id
param8 is the item id of the harvested item


Example

function Init(Quest)
    AddQuestStepHarvest(Quest, 1, "Fetch some hot pockets from the freezer.", 54, 100, "Moar hot pockets!", 0, 1337)
end

This will add a quest step to a quest with a step id of one, to harvest items with the id 1337.

Notes

You may add as many IDs as needed separating each one by a comma