No categories assigned

LUA:AddQuestStepHarvest

Revision as of 19:58, 6 November 2013 by Thefoof (talk | contribs) (Created page with "= LUA Functions: AddQuestStepHarvest = Adds a quest step to a quest that updates upon harvesting specified items. ==== Syntax ==== AddQuestStepHarvest(param1, param2, param3, p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: AddQuestStepHarvest

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 this is the quest to add the step to
param2 this is the step ID
param3 this is the quest step text
param4 this is the amount of items required
param5 this is the percent chance of an update upon harvesting the item
param6 this is the taskgroup text
param7 this is the icon ID
param8 this is the item id of the harvested item, you may add as many IDs as needed seperated by commas


Usage

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 an id of one, to harvest items with the id 1337.