quest_chest.lua 473 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/quest_chest.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.29 08:07:45
  5. Script Purpose :
  6. :
  7. --]]
  8. local aGrubbyBoneKey = 5710
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, aGrubbyBoneKey, 1)
  11. end
  12. function casted_on(NPC, Spawn, Spell)
  13. if Spell == 'use your key' then
  14. SetStepComplete(Spawn, aGrubbyBoneKey, 1)
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end