anEnragedspirit.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/TroubledHaunt/anEnragedspirit.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.23 12:11:51
  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, -6.76, 0.67, -6.09, 2, 6)
  18. MovementLoopAddLocation(NPC, -7.17, 0.67, -6.71, 2, 0)
  19. MovementLoopAddLocation(NPC, -7.56, 0.67, -6.45, 2, 0)
  20. MovementLoopAddLocation(NPC, -6.88, 0.67, -5.62, 2, 0)
  21. MovementLoopAddLocation(NPC, -6.2, 0.67, -5.71, 2, 0)
  22. MovementLoopAddLocation(NPC, -1.07, 0.67, -6.83, 2, 6)
  23. MovementLoopAddLocation(NPC, -0.4, 0.67, -6.93, 2, 0)
  24. MovementLoopAddLocation(NPC, -0.88, 0.67, -7.42, 2, 0)
  25. MovementLoopAddLocation(NPC, -2.08, 0.67, -7.29, 2, 0)
  26. end
  27. function death(NPC,Spawn)
  28. PerformCameraShake(Spawn, 0.20000000298023224)
  29. PlayFlavor(NPC, "voiceover/english/optional3/halfling_corrupted/ft/halfling/halfling_corrupted_1_death_gm_4c12cb24.mp3", "Free me!", "", 3881759262, 3266522906, Spawn, 8)
  30. zone = GetZone(NPC)
  31. if not IsAlive(GetSpawnByLocationID(zone,133780857)) and not IsAlive(GetSpawnByLocationID(zone,133780858)) then
  32. SpawnByLocationID(zone,133780861)
  33. SpawnByLocationID(zone,133780862)
  34. SpawnByLocationID(zone,133780863)
  35. end
  36. end
  37. function aggro(NPC,Spawn)
  38. PlayFlavor(NPC, "voiceover/english/ghost_halfling_base_1/ft/ghost/ghost_halfling_base_1_1_aggro_gm_a507a247.mp3", "You'll pay for disturbing me!", "", 4260790933, 1525385880, Spawn, 0)
  39. end