Lua functions

AddQuestStepCraft

Registered in this checkout as EQ2Emu_lua_AddQuestStepCraft; implementation found at WorldServer/Lua/LuaFunctions.cpp:4960.

Historical signature: AddQuestStepCraft(quest, step, description, quantity, percentage, str_taskgroup, icon, crafted_item_id)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: AddQuestStepCraft(quest, step, description, quantity, percentage, str_taskgroup, icon, crafted_item_id)

Description: Adds a quest step to the player's journal requiring a craft related action be performed. The result expected item can be specified as a number of last arguments crafted_item_id.

Parameters:

  • quest (Quest) - Quest object representing quest.
  • step (int32) - Integer value step.
  • description (int32) - Integer value description.
  • quantity (int32) - Integer value quantity.
  • percentage (int32) - Integer value percentage.
  • str_taskgroup (string) - String str_taskgroup.
  • icon (int32) - Integer value icon.
  • crafted_item_id (int32) - Integer value crafted_item_id.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

AddQuestStepCraft(Quest, 8, "I need to remake the Stein of Moggok.", 1, 100, "I need to remake the Stein of Moggok using Rumdum's family Recipe.", 11, 54775)

Evidence: server/Quests/CityofFreeport/the_stein_of_moggok_it_can_be_rebuilt.lua:90; binding EQ2Emu_lua_AddQuestStepCraft.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.