OlakUSom.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/OlakUSom.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.14 07:10:17
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  11. waypoints(NPC)
  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. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, -15.77, 0, -7.45, 2, 1)
  25. MovementLoopAddLocation(NPC, -15.77, 0, -7.45, 2, MakeRandomInt(20,26),"EcologyEmotes")
  26. MovementLoopAddLocation(NPC, -15.77, 0, -7.45, 2, 0)
  27. MovementLoopAddLocation(NPC, -15.96, 0, -4.97, 2, 0)
  28. MovementLoopAddLocation(NPC, -17.96, 0, -5.2, 2, 0)
  29. MovementLoopAddLocation(NPC, -21.07, 0, -5.9, 2, 0)
  30. MovementLoopAddLocation(NPC, -23.78, 0.08, -7.25, 2, 0)
  31. MovementLoopAddLocation(NPC, -31.26, 0, -12.25, 2, 1)
  32. MovementLoopAddLocation(NPC, -31.26, 0, -12.25, 2, MakeRandomInt(15,25),"EcologyEmotes")
  33. MovementLoopAddLocation(NPC, -35.52, 0.05, -12.02, 2, 0)
  34. MovementLoopAddLocation(NPC, -39.33, 0.2, -10.93, 2, 0)
  35. MovementLoopAddLocation(NPC, -44.5, 0, -13.48, 2, 0)
  36. MovementLoopAddLocation(NPC, -46.24, -0.64, -15.85, 2, 0)
  37. MovementLoopAddLocation(NPC, -46.96, -0.93, -20.44, 2, 0)
  38. MovementLoopAddLocation(NPC, -47.48, -0.21, -28.54, 2, 1)
  39. MovementLoopAddLocation(NPC, -47.48, -0.21, -28.54, 2, MakeRandomInt(15,25),"EcologyEmotes")
  40. MovementLoopAddLocation(NPC, -44.14, -0.57, -30.69, 2, 0)
  41. MovementLoopAddLocation(NPC, -39.76, -1.21, -33.11, 2, 0)
  42. MovementLoopAddLocation(NPC, -34.21, -2.07, -34.4, 2, 0)
  43. MovementLoopAddLocation(NPC, -31.17, -3, -42.45, 2, 1)
  44. MovementLoopAddLocation(NPC, -31.17, -3, -42.45, 2, MakeRandomInt(15,25),"EcologyEmotes")
  45. MovementLoopAddLocation(NPC, -32.31, -3, -40.65, 2, 0)
  46. MovementLoopAddLocation(NPC, -33.06, -2.76, -39.24, 2, 0)
  47. MovementLoopAddLocation(NPC, -31.78, -2.14, -35.15, 2, 0)
  48. MovementLoopAddLocation(NPC, -31.96, -1.17, -28.79, 2, 0)
  49. MovementLoopAddLocation(NPC, -31.58, -0.55, -25.58, 2, 0)
  50. MovementLoopAddLocation(NPC, -29.57, -0.05, -23.33, 2, 0)
  51. MovementLoopAddLocation(NPC, -28.34, 0, -21.35, 2, 0)
  52. MovementLoopAddLocation(NPC, -23.8, 0.09, -17.63, 2, 0)
  53. MovementLoopAddLocation(NPC, -19.14, 0.06, -15.57, 2, 0)
  54. MovementLoopAddLocation(NPC, -12.06, 0, -11.36, 2, 0)
  55. MovementLoopAddLocation(NPC, -11.38, 0, -6.1, 2, 0)
  56. MovementLoopAddLocation(NPC, -9.27, 0, 4.63, 2, 1)
  57. MovementLoopAddLocation(NPC, -9.27, 0, 4.63, 2, MakeRandomInt(15,25),"EcologyEmotes")
  58. MovementLoopAddLocation(NPC, -13.31, 0, -1.98, 2, 0)
  59. end