TergonTobokog.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/TergonTobokog.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.23 02:08:05
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function Action(NPC)
  18. local choice = MakeRandomInt(1, 4)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "", "listen", 0, 0, Spawn)
  23. elseif choice == 3 then
  24. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  25. elseif choice == 4 then
  26. PlayFlavor(NPC, "", "", "attention", 0, 0, Spawn)
  27. end
  28. end
  29. function waypoints(NPC)
  30. MovementLoopAddLocation(NPC, 850.99, -18.62, -457.93, 2, 1)
  31. MovementLoopAddLocation(NPC, 850.99, -18.62, -457.93, 2, 25,"Action")
  32. MovementLoopAddLocation(NPC, 851.85, -18.9, -456.38, 2, 0)
  33. MovementLoopAddLocation(NPC, 849.24, -18.29, -458.79, 2, 0)
  34. MovementLoopAddLocation(NPC, 846, -17.64, -462.76, 2, 0)
  35. MovementLoopAddLocation(NPC, 844.11, -17.2, -462.92, 2, 0)
  36. MovementLoopAddLocation(NPC, 837.8, -13.58, -471.05, 2, 0)
  37. MovementLoopAddLocation(NPC, 835.6, -13.87, -473.68, 2, 0)
  38. MovementLoopAddLocation(NPC, 831.31, -13.77, -478.13, 2, 0)
  39. MovementLoopAddLocation(NPC, 828.75, -14.02, -479.27, 2, 0)
  40. MovementLoopAddLocation(NPC, 828.75, -14.02, -479.27, 2, 1)
  41. MovementLoopAddLocation(NPC, 828.75, -14.02, -479.27, 2, 15,"Action")
  42. MovementLoopAddLocation(NPC, 828.46, -14.15, -480.4, 2, 0)
  43. MovementLoopAddLocation(NPC, 830.24, -13.89, -479.03, 2, 0)
  44. MovementLoopAddLocation(NPC, 833.35, -13.83, -476.67, 2, 0)
  45. MovementLoopAddLocation(NPC, 838.22, -13.98, -472.71, 2, 0)
  46. MovementLoopAddLocation(NPC, 841.36, -14.42, -467.37, 2, 0)
  47. MovementLoopAddLocation(NPC, 842.52, -15.7, -466.13, 2, 0)
  48. MovementLoopAddLocation(NPC, 850.51, -18.52, -458.39, 2, 1)
  49. MovementLoopAddLocation(NPC, 850.51, -18.52, -458.39, 2, 25,"Action")
  50. MovementLoopAddLocation(NPC, 851.55, -18.65, -457.15, 2, 0)
  51. MovementLoopAddLocation(NPC, 852.48, -19.04, -456.25, 2, 0)
  52. MovementLoopAddLocation(NPC, 852.93, -18.88, -457.02, 2, 0)
  53. MovementLoopAddLocation(NPC, 852.59, -18.45, -462.1, 2, 0)
  54. MovementLoopAddLocation(NPC, 850.61, -18.23, -464.54, 2, 0)
  55. MovementLoopAddLocation(NPC, 847.25, -18.1, -466.85, 2, 0)
  56. MovementLoopAddLocation(NPC, 844.75, -17.9, -472.04, 2, 0)
  57. MovementLoopAddLocation(NPC, 843.99, -17.93, -474.07, 2, 0)
  58. MovementLoopAddLocation(NPC, 840.22, -17.70, -480.41, 2, 0)
  59. MovementLoopAddLocation(NPC, 835.49, -17.69, -483.7, 2, 0)
  60. MovementLoopAddLocation(NPC, 833.95, -17.86, -488.95, 2, 0)
  61. MovementLoopAddLocation(NPC, 834.42, -18.22, -494.35, 2, 0)
  62. MovementLoopAddLocation(NPC, 834.42, -18.22, -494.35, 2, 1)
  63. MovementLoopAddLocation(NPC, 834.42, -18.22, -494.35, 2, 16,"Action")
  64. MovementLoopAddLocation(NPC, 834.78, -18.36, -495.81, 2, 0)
  65. MovementLoopAddLocation(NPC, 833.75, -17.82, -487.89, 2, 0)
  66. MovementLoopAddLocation(NPC, 835.94, -17.69, -483.59, 2, 0)
  67. MovementLoopAddLocation(NPC, 841.37, -17.79, -480.57, 2, 0)
  68. MovementLoopAddLocation(NPC, 845.6, -17.93, -469.61, 2, 0)
  69. MovementLoopAddLocation(NPC, 851.35, -18.38, -465.13, 2, 0)
  70. MovementLoopAddLocation(NPC, 851.98, -18.53, -460.63, 2, 0)
  71. end