Kethelrune.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/Kethelrune.lua
  3. Script Purpose : Kethelrune
  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, 805.49, -21.7, -551.99, 2, math.random(0,25))
  25. MovementLoopAddLocation(NPC, 786.92, -22.61, -512.9, 2, math.random(0,5))
  26. MovementLoopAddLocation(NPC, 752.87, -21.98, -477.23, 2, math.random(0,5))
  27. MovementLoopAddLocation(NPC, 717.53, -21.25, -459.67, 2, math.random(0,5))
  28. MovementLoopAddLocation(NPC, 709.29, -19.56, -445.07, 2, math.random(0,5))
  29. MovementLoopAddLocation(NPC, 701.44, -16.56, -426.22, 2, math.random(0,5))
  30. MovementLoopAddLocation(NPC, 701.09, -14.85, -412.3, 2, math.random(0,5))
  31. MovementLoopAddLocation(NPC, 683.34, -11.89, -390.41, 2, math.random(0,5))
  32. MovementLoopAddLocation(NPC, 687.32, -13.38, -371.73, 2, math.random(0,5))
  33. MovementLoopAddLocation(NPC, 668.08, -11.74, -363.53, 2, math.random(0,5))
  34. MovementLoopAddLocation(NPC, 648.9, -13.05, -360.14, 2, math.random(0,5))
  35. MovementLoopAddLocation(NPC, 648.55, -14.81, -343.63, 2, math.random(0,5))
  36. MovementLoopAddLocation(NPC, 648.22, -18.15, -328.01, 2, math.random(0,5))
  37. MovementLoopAddLocation(NPC, 651.9, -21.82, -304.38, 2, math.random(0,5))
  38. MovementLoopAddLocation(NPC, 651.91, -19.07, -268.92, 2, math.random(0,5))
  39. MovementLoopAddLocation(NPC, 635.14, -19.34, -256.68, 2, math.random(0,5))
  40. MovementLoopAddLocation(NPC, 613.61, -20.98, -262.87, 2, math.random(0,5))
  41. MovementLoopAddLocation(NPC, 635.14, -19.34, -256.68, 2, math.random(0,5))
  42. MovementLoopAddLocation(NPC, 651.91, -19.07, -268.92, 2, math.random(0,5))
  43. MovementLoopAddLocation(NPC, 651.9, -21.82, -304.38, 2, math.random(0,5))
  44. MovementLoopAddLocation(NPC, 648.22, -18.15, -328.01, 2, math.random(0,5))
  45. MovementLoopAddLocation(NPC, 648.55, -14.81, -343.63, 2, math.random(0,5))
  46. MovementLoopAddLocation(NPC, 648.9, -13.05, -360.14, 2, math.random(0,5))
  47. MovementLoopAddLocation(NPC, 668.08, -11.74, -363.53, 2, math.random(0,5))
  48. MovementLoopAddLocation(NPC, 687.32, -13.38, -371.73, 2, math.random(0,5))
  49. MovementLoopAddLocation(NPC, 683.34, -11.89, -390.41, 2, math.random(0,5))
  50. MovementLoopAddLocation(NPC, 701.09, -14.85, -412.3, 2, math.random(0,5))
  51. MovementLoopAddLocation(NPC, 701.44, -16.56, -426.22, 2, math.random(0,5))
  52. MovementLoopAddLocation(NPC, 709.29, -19.56, -445.07, 2, math.random(0,5))
  53. MovementLoopAddLocation(NPC, 717.53, -21.25, -459.67, 2, math.random(0,5))
  54. MovementLoopAddLocation(NPC, 752.87, -21.98, -477.23, 2, math.random(0,5))
  55. MovementLoopAddLocation(NPC, 786.92, -22.61, -512.9, 2, math.random(0,5))
  56. MovementLoopAddLocation(NPC, 805.49, -21.7, -551.99, 2, 1)
  57. MovementLoopAddLocation(NPC, 805.49, -21.7, -551.99, 2, math.random(8,25),"EcologyEmotes")
  58. MovementLoopAddLocation(NPC, 805.49, -21.7, -551.99, 2, 1)
  59. end