522 B
522 B
Function: GetQuestStep(player, quest_id)
Description: Gets the current quest step of the quest based on the quest_id.
Parameters:
player
(Spawn) - Spawn object representingplayer
.quest_id
(uint32) - Integer valuequest_id
.
Returns: UInt32 current step the player is on with the quest.
Example:
-- From ItemScripts/ABloodsabermeddlernote.lua
function decipher(Item, Player)
if GetQuestStep(Player, AnIntriguingEye) == 2 then
SetStepComplete(Player, AnIntriguingEye, 2)
end