DaisyRockanger.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/Graystone/DaisyRockanger.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.07 06:07:02
  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. GenericEcologyHail(NPC, Spawn, faction)
  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, 884.81, -23.6, -176.81, 2, 1)
  24. MovementLoopAddLocation(NPC, 884.81, -23.6, -176.81, 2, 25,"EcologyEmotes")
  25. MovementLoopAddLocation(NPC, 885.38, -23.6, -177.34, 2, 0)
  26. MovementLoopAddLocation(NPC, 883.3, -23.26, -178.17, 2, 0)
  27. MovementLoopAddLocation(NPC, 880.56, -22.9, -178.25, 2, 0)
  28. MovementLoopAddLocation(NPC, 872.09, -22.57, -170.09, 2, 1)
  29. MovementLoopAddLocation(NPC, 872.09, -22.57, -170.09, 2, 25,"EcologyEmotes")
  30. MovementLoopAddLocation(NPC, 871.17, -22.44, -170.79, 2, 0)
  31. MovementLoopAddLocation(NPC, 868.47, -22.38, -170.22, 2, 0)
  32. MovementLoopAddLocation(NPC, 865.5, -22.07, -168.11, 2, 0)
  33. MovementLoopAddLocation(NPC, 863.98, -22.1, -166.73, 2, 0)
  34. MovementLoopAddLocation(NPC, 863.64, -22.27, -164.23, 2, 1)
  35. MovementLoopAddLocation(NPC, 863.64, -22.27, -164.23, 2, 25,"EcologyEmotes")
  36. MovementLoopAddLocation(NPC, 863.2, -22.26, -163.57, 2, 0)
  37. MovementLoopAddLocation(NPC, 864.42, -22.12, -167.11, 2, 0)
  38. MovementLoopAddLocation(NPC, 866.28, -22.09, -168.67, 2, 0)
  39. MovementLoopAddLocation(NPC, 869.86, -22.47, -169.82, 2, 1)
  40. MovementLoopAddLocation(NPC, 869.86, -22.47, -169.82, 2, 16,"EcologyEmotes")
  41. MovementLoopAddLocation(NPC, 874.32, -22.36, -176.51, 2, 0)
  42. MovementLoopAddLocation(NPC, 879.38, -22.92, -176.88, 2, 0)
  43. MovementLoopAddLocation(NPC, 881.53, -23.01, -177.58, 2, 0)
  44. end