You are viewing an old version of this page. Return to the latest version.
Version of 19:58, 6 November 2013 by I need to Update My Profile
No categories assigned
LUA:AddQuestStepHarvest
- Last edited 4 years ago by Vlash Nytefall
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.