questkeyedchestsilver.lua 519 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/questkeyedchestsilver.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.30 10:07:24
  5. Script Purpose :
  6. :
  7. --]]
  8. local aTarnishedSilverKey = 5709 -- quest ID
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, aTarnishedSilverKey, 1)
  11. end
  12. function casted_on(NPC, Spawn, Spell)
  13. if Spell == 'use brass key' then
  14. SetStepComplete(Spawn, aTarnishedSilverKey, 1)
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end