VelisarrMorningdew.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/VelisarrMorningdew.lua
  3. Script Purpose : Velisarr Morningdew
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Updated dialogue 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, 605.46, -20.85, -258.55, 2, math.random(0,3))
  25. MovementLoopAddLocation(NPC, 635.95, -19.24, -257.15, 2, math.random(0,3))
  26. MovementLoopAddLocation(NPC, 650.38, -20.6, -283.68, 2, math.random(0,3))
  27. MovementLoopAddLocation(NPC, 651.79, -21.73, -293.48, 2, math.random(0,3))
  28. MovementLoopAddLocation(NPC, 645.56, -13.32, -360.51, 2, math.random(0,3))
  29. MovementLoopAddLocation(NPC, 691.01, -13.83, -373.44, 2, math.random(0,3))
  30. MovementLoopAddLocation(NPC, 684.74, -11.95, -393.07, 2, math.random(0,3))
  31. MovementLoopAddLocation(NPC, 697.74, -14.25, -411.29, 2, math.random(0,3))
  32. MovementLoopAddLocation(NPC, 702.22, -16.71, -426.62, 2, math.random(0,3))
  33. MovementLoopAddLocation(NPC, 711.01, -20.44, -449.76, 2, math.random(0,3))
  34. MovementLoopAddLocation(NPC, 723.23, -21.69, -461.71, 2, math.random(0,3))
  35. MovementLoopAddLocation(NPC, 747.92, -22.31, -474.89, 2, math.random(0,3))
  36. MovementLoopAddLocation(NPC, 778.72, -21.82, -502.99, 2, math.random(0,3))
  37. MovementLoopAddLocation(NPC, 794.88, -22.25, -536.31, 2, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 808.93, -21.16, -532.73, 2, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 794.88, -22.25, -536.31, 2, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 778.72, -21.82, -502.99, 2, math.random(0,3))
  41. MovementLoopAddLocation(NPC, 747.92, -22.31, -474.89, 2, math.random(0,3))
  42. MovementLoopAddLocation(NPC, 723.23, -21.69, -461.71, 2, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 711.01, -20.44, -449.76, 2, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 702.22, -16.71, -426.62, 2, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 697.74, -14.25, -411.29, 2, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 684.74, -11.95, -393.07, 2, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 691.01, -13.83, -373.44, 2, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 645.56, -13.32, -360.51, 2, math.random(0,3))
  49. MovementLoopAddLocation(NPC, 651.79, -21.73, -293.48, 2, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 650.38, -20.6, -283.68, 2, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 635.95, -19.24, -257.15, 2, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 605.46, -20.85, -258.55, 2, math.random(0,3))
  53. end