9
3

FrancineTalino.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. SetInfoStructString(NPC, "action_state", "mood_angry")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. GenericEcologyHail(NPC, Spawn, faction)
  17. end
  18. function InRange(NPC,Spawn)
  19. if GetFactionAmount(Spawn,11)<0 then
  20. FactionCheckingCallout(NPC,Spawn,faction)
  21. end
  22. end
  23. function Door(NPC,Spawn)
  24. local door = GetSpawn(NPC, 2340077)
  25. UseWidget(door)
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 824.68, -20.26, 279.38, 2, 1)
  29. MovementLoopAddLocation(NPC, 824.68, -20.26, 279.38, 2, 45,"Action")
  30. MovementLoopAddLocation(NPC, 823.85, -20.26, 278.28, 2, 0)
  31. MovementLoopAddLocation(NPC, 819.65, -20.29, 275.36, 2, 0)
  32. MovementLoopAddLocation(NPC, 814.67, -20.31, 276.78, 2, 0)
  33. MovementLoopAddLocation(NPC, 813.11, -20.31, 277.67, 2, 0)
  34. MovementLoopAddLocation(NPC, 810.22, -20.31, 284.8, 2, 1)
  35. MovementLoopAddLocation(NPC, 810.22, -20.31, 284.8, 2, 45,"Action")
  36. MovementLoopAddLocation(NPC, 803.96, -20.43, 287.85, 2, 0)
  37. MovementLoopAddLocation(NPC, 802.67, -20.42, 290.98, 2, 2,"Door")
  38. MovementLoopAddLocation(NPC, 808.3, -20.45, 293.68, 2, 0)
  39. MovementLoopAddLocation(NPC, 810.25, -20.45, 292.61, 2, 0)
  40. MovementLoopAddLocation(NPC, 814, -20.45, 292.81, 2, 0)
  41. MovementLoopAddLocation(NPC, 815.94, -20.45, 289.67, 2, 0)
  42. MovementLoopAddLocation(NPC, 821.42, -20.45, 287.7, 2, 0)
  43. MovementLoopAddLocation(NPC, 821.6, -20.45, 287.32, 2, 1)
  44. MovementLoopAddLocation(NPC, 821.6, -20.45, 287.32, 2, 33,"Action")
  45. MovementLoopAddLocation(NPC, 822.03, -20.45, 286.39, 2, 0)
  46. MovementLoopAddLocation(NPC, 820.72, -20.45, 287.62, 2, 0)
  47. MovementLoopAddLocation(NPC, 815.99, -20.45, 291.18, 2, 0)
  48. MovementLoopAddLocation(NPC, 814.36, -20.45, 292.72, 2, 0)
  49. MovementLoopAddLocation(NPC, 809.79, -20.45, 292.87, 2, 0)
  50. MovementLoopAddLocation(NPC, 808.21, -20.45, 293.71, 2, 2,"Door")
  51. MovementLoopAddLocation(NPC, 802.65, -20.41, 291.36, 2, 0)
  52. MovementLoopAddLocation(NPC, 796.46, -20.43, 283.54, 2, 1)
  53. MovementLoopAddLocation(NPC, 796.46, -20.43, 283.54, 2, 33,"Action")
  54. MovementLoopAddLocation(NPC, 795.11, -20.46, 283.91, 2, 0)
  55. MovementLoopAddLocation(NPC, 797.19, -20.48, 286.09, 2, 0)
  56. MovementLoopAddLocation(NPC, 805.72, -20.47, 287.28, 2, 0)
  57. MovementLoopAddLocation(NPC, 807.06, -20.4, 284.17, 2, 0)
  58. MovementLoopAddLocation(NPC, 813.22, -20.34, 273.16, 2, 0)
  59. MovementLoopAddLocation(NPC, 823.32, -20.26, 276.61, 2, 0)
  60. MovementLoopAddLocation(NPC, 825.22, -20.27, 280.49, 2, 0)
  61. end