anOakmystpoacher4.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystpoacher4.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.20 05:10:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. human(NPC, Spawn)
  12. waypoints(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 794.23, 12.78, -265.02, 2, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 794.46, 12.86, -275.63, 2, 0)
  23. MovementLoopAddLocation(NPC, 798.07, 12.48, -278.5, 2, 0)
  24. MovementLoopAddLocation(NPC, 803.85, 10.95, -279.4, 2, 0)
  25. MovementLoopAddLocation(NPC, 811.22, 9.54, -283.53, 2, 0)
  26. MovementLoopAddLocation(NPC, 814.05, 9.32, -285.62, 2, 0)
  27. MovementLoopAddLocation(NPC, 815.87, 9.15, -287.89, 2, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 815.87, 9.15, -287.89, 2, 0)
  29. MovementLoopAddLocation(NPC, 814.44, 8.46, -283.16, 2, 0)
  30. MovementLoopAddLocation(NPC, 826.87, 5.62, -267.17, 2, 0)
  31. MovementLoopAddLocation(NPC, 831.13, 4.8, -266.52, 2, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 831.13, 4.8, -266.52, 2, 0)
  33. MovementLoopAddLocation(NPC, 823.92, 5.59, -275.37, 2, 0)
  34. MovementLoopAddLocation(NPC, 815.28, 8.28, -276.65, 2, 0)
  35. MovementLoopAddLocation(NPC, 804.44, 11.5, -269.81, 2, 0)
  36. MovementLoopAddLocation(NPC, 798.9, 12.72, -261.11, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 798.9, 12.72, -261.11, 2, 0)
  38. MovementLoopAddLocation(NPC, 784.22, 13.35, -257.33, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 784.22, 13.35, -257.33, 2, 0)
  40. MovementLoopAddLocation(NPC, 781.47, 13.37, -261.65, 2, 0)
  41. MovementLoopAddLocation(NPC, 781.97, 13.35, -260.11, 2, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 781.97, 13.35, -260.11, 2, 0)
  43. MovementLoopAddLocation(NPC, 788.45, 13.35, -247.19, 2, 0)
  44. MovementLoopAddLocation(NPC, 790.39, 13.34, -245.92, 2, 0)
  45. MovementLoopAddLocation(NPC, 793.7, 13.35, -246.78, 2, 0)
  46. MovementLoopAddLocation(NPC, 797.53, 13.52, -245.14, 2, 0)
  47. MovementLoopAddLocation(NPC, 796.83, 13.37, -245.95, 2, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 796.83, 13.37, -245.95, 2, 0)
  49. MovementLoopAddLocation(NPC, 795.9, 13.35, -248.19, 2, 0)
  50. MovementLoopAddLocation(NPC, 796.46, 13.35, -251.7, 2, 0)
  51. MovementLoopAddLocation(NPC, 807.98, 11.76, -263.6, 2, 0)
  52. MovementLoopAddLocation(NPC, 823.3, 6.4, -269.76, 2, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 823.3, 6.4, -269.76, 2, 0)
  54. MovementLoopAddLocation(NPC, 815.73, 8.52, -266.81, 2, 0)
  55. MovementLoopAddLocation(NPC, 805.13, 11.3, -270.08, 2, 0)
  56. MovementLoopAddLocation(NPC, 794.23, 12.78, -265.02, 2, 4)
  57. end