eq2emu/docs/lua_functions/SetStepComplete.md

24 lines
541 B
Markdown
Raw Permalink Normal View History

### Function: SetStepComplete(player, quest_id, step)
2025-05-04 14:34:15 -04:00
**Description:**
Set the Quest step as complete.
2025-05-04 14:34:15 -04:00
**Parameters:**
- `player` (Spawn) - Spawn object representing `player`.
- `quest_id` (uint32) - Integer value `quest_id`.
- `step` (int32) - Integer value `step`.
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
-- From ItemScripts/abixieeye.lua
function Step_Complete(Item, Player)
if HasItem(Player,1219,1) then
SetStepComplete(Player, LoreAndLegendBixie, 4)
CloseItemConversation(Item, Player)
RemoveItem(Player, 1219)
end
2025-05-04 14:34:15 -04:00
```