ArthurWaterway.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/ArthurWaterway.lua
  3. Script Purpose : Arthur Waterway
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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. GenericEcology2Hail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcology2Callout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 802.94, -21.54, -552.06, 2, math.random(0,5))
  24. MovementLoopAddLocation(NPC, 781.61, -22.18, -510.68, 2, math.random(0,5))
  25. MovementLoopAddLocation(NPC, 754.8, -21.82, -481.71, 2, math.random(0,5))
  26. MovementLoopAddLocation(NPC, 713.01, -20.96, -456.39, 2, math.random(0,5))
  27. MovementLoopAddLocation(NPC, 701.91, -16.92, -427.47, 2, math.random(0,5))
  28. MovementLoopAddLocation(NPC, 691.7, -13.19, -403.38, 2, math.random(0,5))
  29. MovementLoopAddLocation(NPC, 678.25, -11.64, -393.92, 2, math.random(0,5))
  30. MovementLoopAddLocation(NPC, 650.19, -11.56, -399.55, 2, math.random(0,5))
  31. MovementLoopAddLocation(NPC, 640.41, -13.1, -371.98, 2, math.random(0,5))
  32. MovementLoopAddLocation(NPC, 609.56, -18.44, -369.61, 2, math.random(0,5))
  33. MovementLoopAddLocation(NPC, 562.49, -20.75, -362.57, 2, math.random(0,5))
  34. MovementLoopAddLocation(NPC, 539.17, -20.64, -292.83, 2, math.random(0,5))
  35. MovementLoopAddLocation(NPC, 562.36, -19.83, -268.2, 2, math.random(0,5))
  36. MovementLoopAddLocation(NPC, 591.98, -21.09, -255.38, 2, math.random(0,5))
  37. MovementLoopAddLocation(NPC, 562.36, -19.83, -268.2, 2, math.random(0,5))
  38. MovementLoopAddLocation(NPC, 539.17, -20.64, -292.83, 2, math.random(0,5))
  39. MovementLoopAddLocation(NPC, 562.49, -20.75, -362.57, 2, math.random(0,5))
  40. MovementLoopAddLocation(NPC, 609.56, -18.44, -369.61, 2, math.random(0,5))
  41. MovementLoopAddLocation(NPC, 640.41, -13.1, -371.98, 2, math.random(0,5))
  42. MovementLoopAddLocation(NPC, 650.19, -11.56, -399.55, 2, math.random(0,5))
  43. MovementLoopAddLocation(NPC, 678.25, -11.64, -393.92, 2, math.random(0,5))
  44. MovementLoopAddLocation(NPC, 691.7, -13.19, -403.38, 2, math.random(0,5))
  45. MovementLoopAddLocation(NPC, 701.91, -16.92, -427.47, 2, math.random(0,5))
  46. MovementLoopAddLocation(NPC, 713.01, -20.96, -456.39, 2, math.random(0,5))
  47. MovementLoopAddLocation(NPC, 754.8, -21.82, -481.71, 2, math.random(0,5))
  48. MovementLoopAddLocation(NPC, 781.61, -22.18, -510.68, 2, math.random(0,5))
  49. MovementLoopAddLocation(NPC, 802.94, -21.54, -552.06, 2, math.random(0,5))
  50. end