--[[ Script Name : SpawnScripts/Commonlands/questforgottenstatuelightstone.lua Script Author : Premierio015 Script Date : 2021.05.30 11:05:41 Script Purpose : : --]] local TheReturnOfTheLight = 485 function spawn(NPC) SetRequiredQuest(NPC,TheReturnOfTheLight,3,0,0,1) SetRequiredQuest(NPC,TheReturnOfTheLight,2,0,0,1) --SetPlayerProximityFunction(NPC, 5, "InRange") end function InRange(NPC, Spawn) if GetQuestStep(Spawn, TheReturnOfTheLight) == 3 then SpawnSet(NPC, "display_hand_icon", 1) SpawnSet(NPC, "show_command_icon", 1) end end function casted_on(NPC, Spawn, SpellName) if SpellName == 'Touch burned out lightstone to statue' then if GetQuestStep(Spawn, TheReturnOfTheLight) == 3 then SetStepComplete(Spawn, TheReturnOfTheLight, 3) local con = CreateConversation() AddConversationOption(con, "[Put stone away]") StartDialogConversation(con, 1, NPC, Spawn, "Touching the lightstone to the statue causes the small orb to flicker with light and grow warm in your hand.") end end end