anUnfruitfulspirit.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/TroubledHaunt/anUnfruitfulspirit.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.23 12:11:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. waypoints(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function waypoints(NPC)
  17. MovementLoopAddLocation(NPC, -9.91, -0.33, 4.52, 2, 0)
  18. MovementLoopAddLocation(NPC, -10.8, -0.33, 2.46, 2, 0)
  19. MovementLoopAddLocation(NPC, -10.47, -0.33, 0.1, 2, 0)
  20. MovementLoopAddLocation(NPC, -9.45, -0.33, -2.77, 2, 6)
  21. MovementLoopAddLocation(NPC, -9.19, -0.33, -2.38, 2, 0)
  22. MovementLoopAddLocation(NPC, -10.26, -0.33, -0.79, 2, 0)
  23. MovementLoopAddLocation(NPC, -10.63, -0.33, 1.67, 2, 0)
  24. MovementLoopAddLocation(NPC, -10.38, -0.33, 2.82, 2, 0)
  25. MovementLoopAddLocation(NPC, -8.85, -0.33, 6.9, 2, 6)
  26. MovementLoopAddLocation(NPC, -8.57, -0.33, 7.73, 2, 0)
  27. MovementLoopAddLocation(NPC, -9.85, -0.33, 7.33, 2, 0)
  28. end
  29. function aggro(NPC,Spawn)
  30. PlayFlavor(NPC, "voiceover/english/optional3/ghost_highelf_base_1/ft/ghost/ghost_highelf_base_1_1_aggro_gm_e15a7031.mp3", "They continue to press. Take them out!", "", 3477800043, 2281180631, Spawn, 0)
  31. end
  32. function death(NPC,Spawn)
  33. PerformCameraShake(Spawn, 0.20000000298023224)
  34. PlayFlavor(NPC, "voiceover/english/optional3/ghost_highelf_base_1/ft/ghost/ghost_highelf_base_1_1_death_gm_3523af72.mp3", "Perhaps now their soul will rest.", "", 2124266274, 395618904, Spawn, 0)
  35. zone = GetZone(NPC)
  36. if not IsAlive(GetSpawnByLocationID(zone,133780857)) and not IsAlive(GetSpawnByLocationID(zone,133780858)) and not IsAlive(GetSpawnByLocationID(zone,133780859)) then
  37. SpawnByLocationID(zone,133780861)
  38. SpawnByLocationID(zone,133780862)
  39. SpawnByLocationID(zone,133780863)
  40. end
  41. end