asmugglingcrate.lua 580 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/asmugglingcrate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.31 09:03:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 453 -- Crates on the Nerves Quest
  9. function spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 10 then
  13. if SpellName == 'Investigate Crate' then
  14. SetStepComplete(Spawn, QUEST, 10)
  15. end
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end