TorrHailstomp.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Graystone/TorrHailstomp.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.08 04:07:03
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericRaceCheckHail(NPC, Spawn)
  16. end
  17. function InRange(NPC, Spawn)
  18. if GetFactionAmount(Spawn,11)<0 then
  19. FactionCheckCallout(NPC,Spawn,faction)
  20. end
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 886.62, -23.27, -162.62, 2, 1)
  24. MovementLoopAddLocation(NPC, 886.62, -23.27, -162.62, 2, 19,"EcologyEmotes")
  25. MovementLoopAddLocation(NPC, 885.69, -23.23, -164.67, 2, 0)
  26. MovementLoopAddLocation(NPC, 881.79, -23.23, -169.15, 2, 0)
  27. MovementLoopAddLocation(NPC, 876.76, -22.56, -177.41, 2, 1)
  28. MovementLoopAddLocation(NPC, 876.76, -22.56, -177.41, 2, 19,"EcologyEmotes")
  29. MovementLoopAddLocation(NPC, 876.4, -22.51, -178.03, 2, 0)
  30. MovementLoopAddLocation(NPC, 871.79, -22.13, -174.11, 2, 0)
  31. MovementLoopAddLocation(NPC, 868.49, -21.83, -172.84, 2, 0)
  32. MovementLoopAddLocation(NPC, 861.78, -21.76, -170.66, 2, 0)
  33. MovementLoopAddLocation(NPC, 862.26, -22.21, -161.92, 2, 1)
  34. MovementLoopAddLocation(NPC, 862.26, -22.21, -161.92, 2, 19,"EcologyEmotes")
  35. MovementLoopAddLocation(NPC, 861.52, -21.9, -164.64, 2, 0)
  36. MovementLoopAddLocation(NPC, 863.14, -21.72, -172.12, 2, 0)
  37. MovementLoopAddLocation(NPC, 868.96, -21.7, -174.41, 2, 0)
  38. MovementLoopAddLocation(NPC, 877.36, -22.63, -175.12, 2, 0)
  39. MovementLoopAddLocation(NPC, 886.12, -23.23, -164.81, 2, 0)
  40. end