LUA:AddQuestStepCraft
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestStepCraft
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds a step in your quest that requires you to craft an item.
Syntax
AddQuestStepCraft(param1, param2, param3, param4, param5, param6, param7, param8)
Parameters
- Required - param1 (Quest), param2 (int32), param3 (string), param4 (int32), param5 (float), param6 (string), param7 (int16), param8 (int32)
- param1 is the quest to add the step to
- param2 is the the step id
- param3 is the the step text
- param4 is the quantity
- param5 is the Percentage
- param6 is the taskgroup description
- param7 is the icon
- param8 is the item id
Example
AddQuestStepCraft(Quest, 1, "I must craft a cowbell.", 5, 100, "I gotta have more cowbell!", 962, 2565)
As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text. The icon Id is set to "962", and the item Id needed is 2565. This quest requires that you craft 5 cowbells and has a 100 percent chance of an update upon successful crafting the item.
Notes
You can require multiple items in the quest step. Make sure you separate each item id with a comma.
2255, 8431, 7566, 1285
When using multiple items be aware any item in that list will update the quantity on a successful craft. This is an OR type requirement. Player crafts water or crafts food, or crafts arrows, etc