adeadexplorer.lua 681 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/FallenGate/adeadexplorer.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.20 04:05:55
  5. Script Purpose :
  6. :
  7. --]]
  8. local NarinHeirloom = 5227
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if SpellName == 'Search Remains' then
  19. SendMessage(Spawn, "You take the small lockbox from the dead explorer", 20)
  20. end
  21. end
  22. function targeted(NPC, Spawn)
  23. if GetQuestStep(Spawn, NarinHeirloom) == 1 then
  24. SetStepComplete(Spawn, NarinHeirloom, 1)
  25. end
  26. end