anAngryspirit.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/TroubledHaunt/anAngryspirit.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.23 12:11:10
  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, 2.91, 0.67, -8.28, 2, 6)
  18. MovementLoopAddLocation(NPC, 4.88, 0.67, -6.94, 2, 0)
  19. MovementLoopAddLocation(NPC, 6.86, 0.67, -6.09, 2, 0)
  20. MovementLoopAddLocation(NPC, 9.26, 0.67, -1.98, 2, 6)
  21. MovementLoopAddLocation(NPC, 7.73, 0.67, -4.55, 2, 0)
  22. MovementLoopAddLocation(NPC, 7.57, 0.67, -6.93, 2, 6)
  23. end
  24. function aggro(NPC,Spawn)
  25. PlayFlavor(NPC, "voiceover/english/optional3/ghost_human_base_1/ft/ghost/ghost_human_base_1_1_aggro_gf_821554e3.mp3", "Must you aggravate me so!", "", 735262000, 1417243472, Spawn, 0)
  26. end
  27. function death(NPC,Spawn)
  28. PerformCameraShake(Spawn, 0.20000000298023224)
  29. PlayFlavor(NPC, "voiceover/english/optional3/ghost_erudite_base_2/ft/ghost/ghost_erudite_base_2_1_death_gf_1bcf352c.mp3", "Death never truly comes for the undead.", "", 3894477950, 3388069625, Spawn, 0)
  30. zone = GetZone(NPC)
  31. if not IsAlive(GetSpawnByLocationID(zone,133780857)) and not IsAlive(GetSpawnByLocationID(zone,133780858)) and not IsAlive(GetSpawnByLocationID(zone,133780859)) then
  32. SpawnByLocationID(zone,133780861)
  33. SpawnByLocationID(zone,133780862)
  34. SpawnByLocationID(zone,133780863)
  35. end
  36. end