9
3

acrustosesporetender.lua 771 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/acrustosesporetender.lua
  3. Script Purpose : handles the mob "a crustose sporetender"
  4. Script Author : theFoof
  5. Script Date : 2013.5.13
  6. Script Notes :
  7. --]]
  8. require"SpawnScripts/Generic/random_pattern_small"
  9. local RepellingCritters = 7
  10. function spawn(NPC)
  11. ChooseMovement(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function casted_on(Target, Caster, SpellName)
  20. if SpellName == "Spray" then
  21. if GetQuestStep(Caster, RepellingCritters) == 1 then
  22. AddStepProgress(Caster, RepellingCritters, 1, 1)
  23. end
  24. SetSpeed(Target, 13)
  25. MoveToLocation(Target, -139.96, 36.90, -811.62)
  26. AddTimer(Target, 5000, "Despawn")
  27. end
  28. end