ahoarfrostattacker.lua 683 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/everfrost_frostfell_new01/ahoarfrostattacker.lua
  3. Script Purpose : A Hoarfrost Attacker
  4. Script Author : vo1d
  5. Script Date : 2019.10.29
  6. Script Notes :
  7. --]]
  8. local ADeepiceMystery = 486
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 60, "InRange", "OutRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function InRange(NPC, Spawn)
  19. if HasQuest(Spawn, ADeepiceMystery) and GetQuestStep(Spawn, ADeepiceMystery) == 15 then
  20. SetStepComplete(Spawn, ADeepiceMystery, 15)
  21. end
  22. end
  23. function OutRange(NPC, Spawn)
  24. end