FrancineTalino.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/FrancineTalino.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.29 02:06:56
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 5, "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. if GetFaction(Spawn,11)<0 then
  19. FactionCheckingCallout(NPC,Spawn,faction)
  20. end
  21. end
  22. function Door(NPC,Spawn)
  23. local door = GetSpawn(NPC, 2340077)
  24. UseWidget(door)
  25. end
  26. function waypoints(NPC)
  27. MovementLoopAddLocation(NPC, 824.68, -20.26, 279.38, 2, 1)
  28. MovementLoopAddLocation(NPC, 824.68, -20.26, 279.38, 2, 45,"Action")
  29. MovementLoopAddLocation(NPC, 823.85, -20.26, 278.28, 2, 0)
  30. MovementLoopAddLocation(NPC, 819.65, -20.29, 275.36, 2, 0)
  31. MovementLoopAddLocation(NPC, 814.67, -20.31, 276.78, 2, 0)
  32. MovementLoopAddLocation(NPC, 813.11, -20.31, 277.67, 2, 0)
  33. MovementLoopAddLocation(NPC, 810.22, -20.31, 284.8, 2, 1)
  34. MovementLoopAddLocation(NPC, 810.22, -20.31, 284.8, 2, 45,"Action")
  35. MovementLoopAddLocation(NPC, 803.96, -20.43, 287.85, 2, 0)
  36. MovementLoopAddLocation(NPC, 802.67, -20.42, 290.98, 2, 2,"Door")
  37. MovementLoopAddLocation(NPC, 808.3, -20.45, 293.68, 2, 0)
  38. MovementLoopAddLocation(NPC, 810.25, -20.45, 292.61, 2, 0)
  39. MovementLoopAddLocation(NPC, 814, -20.45, 292.81, 2, 0)
  40. MovementLoopAddLocation(NPC, 815.94, -20.45, 289.67, 2, 0)
  41. MovementLoopAddLocation(NPC, 821.42, -20.45, 287.7, 2, 0)
  42. MovementLoopAddLocation(NPC, 821.6, -20.45, 287.32, 2, 1)
  43. MovementLoopAddLocation(NPC, 821.6, -20.45, 287.32, 2, 33,"Action")
  44. MovementLoopAddLocation(NPC, 822.03, -20.45, 286.39, 2, 0)
  45. MovementLoopAddLocation(NPC, 820.72, -20.45, 287.62, 2, 0)
  46. MovementLoopAddLocation(NPC, 815.99, -20.45, 291.18, 2, 0)
  47. MovementLoopAddLocation(NPC, 814.36, -20.45, 292.72, 2, 0)
  48. MovementLoopAddLocation(NPC, 809.79, -20.45, 292.87, 2, 0)
  49. MovementLoopAddLocation(NPC, 808.21, -20.45, 293.71, 2, 2,"Door")
  50. MovementLoopAddLocation(NPC, 802.65, -20.41, 291.36, 2, 0)
  51. MovementLoopAddLocation(NPC, 796.46, -20.43, 283.54, 2, 1)
  52. MovementLoopAddLocation(NPC, 796.46, -20.43, 283.54, 2, 33,"Action")
  53. MovementLoopAddLocation(NPC, 795.11, -20.46, 283.91, 2, 0)
  54. MovementLoopAddLocation(NPC, 797.19, -20.48, 286.09, 2, 0)
  55. MovementLoopAddLocation(NPC, 805.72, -20.47, 287.28, 2, 0)
  56. MovementLoopAddLocation(NPC, 807.06, -20.4, 284.17, 2, 0)
  57. MovementLoopAddLocation(NPC, 813.22, -20.34, 273.16, 2, 0)
  58. MovementLoopAddLocation(NPC, 823.32, -20.26, 276.61, 2, 0)
  59. MovementLoopAddLocation(NPC, 825.22, -20.27, 280.49, 2, 0)
  60. end