MadrethalSummerspeak.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/MadrethalSummerspeak.lua
  3. Script Purpose : Madrethal Summerspeak
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Dialogue updated 5.1.2022 Dorbin
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 648.84, -18.91, -234.92, 2, math.random(0,8))
  25. MovementLoopAddLocation(NPC, 646.07, -18.74, -257.91, 2, math.random(0,8))
  26. MovementLoopAddLocation(NPC, 606.34, -20.89, -257.81, 2, math.random(0,8))
  27. MovementLoopAddLocation(NPC, 642.56, -18.86, -258.37, 2, math.random(0,8))
  28. MovementLoopAddLocation(NPC, 650.43, -21.07, -288.05, 2, math.random(0,8))
  29. MovementLoopAddLocation(NPC, 652.37, -21.69, -293.22, 2, math.random(0,8))
  30. MovementLoopAddLocation(NPC, 651.99, -21.73, -305.33, 2, math.random(0,8))
  31. MovementLoopAddLocation(NPC, 647.05, -19.16, -323.38, 2, math.random(0,8))
  32. MovementLoopAddLocation(NPC, 647.29, -11.71, -388.38, 2, math.random(0,8))
  33. MovementLoopAddLocation(NPC, 658.21, -10.61, -396.95, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 680.99, -11.78, -392.94, 2, math.random(0,8))
  35. MovementLoopAddLocation(NPC, 697.53, -14.19, -410.92, 2, math.random(0,8))
  36. MovementLoopAddLocation(NPC, 701.38, -16.57, -426.35, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 709.3, -20.04, -448.29, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 712.45, -20.97, -456.77, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 744.98, -22.31, -472.95, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 768.56, -21.8, -495.14, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 780.53, -21.99, -508.32, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 803.66, -21.61, -551.4, 2, math.random(0,8))
  43. MovementLoopAddLocation(NPC, 780.53, -21.99, -508.32, 2, math.random(0,8))
  44. MovementLoopAddLocation(NPC, 768.56, -21.8, -495.14, 2, math.random(0,8))
  45. MovementLoopAddLocation(NPC, 744.98, -22.31, -472.95, 2, math.random(0,8))
  46. MovementLoopAddLocation(NPC, 712.45, -20.97, -456.77, 2, math.random(0,8))
  47. MovementLoopAddLocation(NPC, 709.3, -20.04, -448.29, 2, math.random(0,8))
  48. MovementLoopAddLocation(NPC, 701.38, -16.57, -426.35, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 697.53, -14.19, -410.92, 2, math.random(0,8))
  50. MovementLoopAddLocation(NPC, 680.99, -11.78, -392.94, 2, math.random(0,8))
  51. MovementLoopAddLocation(NPC, 658.21, -10.61, -396.95, 2, math.random(0,8))
  52. MovementLoopAddLocation(NPC, 647.29, -11.71, -388.38, 2, math.random(0,8))
  53. MovementLoopAddLocation(NPC, 647.05, -19.16, -323.38, 2, math.random(0,8))
  54. MovementLoopAddLocation(NPC, 651.99, -21.73, -305.33, 2, math.random(0,8))
  55. MovementLoopAddLocation(NPC, 652.37, -21.69, -293.22, 2, math.random(0,8))
  56. MovementLoopAddLocation(NPC, 650.43, -21.07, -288.05, 2, math.random(0,8))
  57. MovementLoopAddLocation(NPC, 642.56, -18.86, -258.37, 2, math.random(0,8))
  58. MovementLoopAddLocation(NPC, 606.34, -20.89, -257.81, 2, math.random(0,8))
  59. MovementLoopAddLocation(NPC, 646.07, -18.74, -257.91, 2, math.random(0,8))
  60. MovementLoopAddLocation(NPC, 648.84, -18.91, -234.92, 2, math.random(0,8))
  61. end