questkeyedchestbronze.lua 613 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/questkeyedchestbronze.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.29 09:07:41
  5. Script Purpose :
  6. :
  7. --]]
  8. local AFilthybronzekey = 5707 -- quest ID
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, AFilthybronzekey, 1)
  11. end
  12. function casted_on(NPC, Spawn, Spell)
  13. if Spell == 'use your key' then
  14. if HasItem(Spawn, 1655) then
  15. RemoveItem(Spawn, 1655) -- a filthy bronze key item
  16. SetStepComplete(Spawn, AFilthybronzekey, 1)
  17. end
  18. end
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end