9
3

Evanloono.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Evanloono.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.29 02:06:35
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  9. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  10. function spawn(NPC)
  11. waypoints(NPC)
  12. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if not HasLanguage(Spawn,4)then
  17. Garbled(NPC,Spawn)
  18. PlayFlavor(NPC,"","","shrug",0,0,Spawn)
  19. else
  20. GenericEcologyHail(NPC, Spawn, faction)
  21. end
  22. end
  23. function InRange(NPC,Spawn)
  24. if GetFactionAmount(Spawn,11)<0 then
  25. FactionCheckCallout(NPC,Spawn,faction)
  26. else
  27. if not HasLanguage(Spawn,4)then
  28. if math.random(0,100)<40 then
  29. FaceTarget(NPC, Spawn)
  30. Garbled(NPC,Spawn)
  31. PlayFlavor(NPC,"","","",0,0,Spawn)
  32. end
  33. else
  34. GenericEcologyCallout(NPC, Spawn, faction)
  35. end
  36. end
  37. end
  38. function Door(NPC,Spawn)
  39. local door = GetSpawn(NPC, 2340075)
  40. UseWidget(door)
  41. end
  42. function waypoints(NPC)
  43. MovementLoopAddLocation(NPC, 781.62, -25.1, 334.26, 2, 1)
  44. MovementLoopAddLocation(NPC, 781.62, -25.1, 334.26, 2, 45,"Action")
  45. MovementLoopAddLocation(NPC, 782.13, -25.1, 334.71, 2, 0)
  46. MovementLoopAddLocation(NPC, 783.6, -25.17, 332.58, 2, 0)
  47. MovementLoopAddLocation(NPC, 792.65, -25.24, 327.76, 2, 0)
  48. MovementLoopAddLocation(NPC, 794.47, -25.39, 327.75, 2, 1)
  49. MovementLoopAddLocation(NPC, 794.47, -25.39, 327.75, 2, 35,"Action")
  50. MovementLoopAddLocation(NPC, 795.81, -25.52, 328.18, 2, 0)
  51. MovementLoopAddLocation(NPC, 791.72, -25.22, 328.27, 2, 0)
  52. MovementLoopAddLocation(NPC, 786.15, -25.24, 331.21, 2, 0)
  53. MovementLoopAddLocation(NPC, 777.35, -25.04, 333.11, 2, 0)
  54. MovementLoopAddLocation(NPC, 765.24, -25.23, 341.3, 2, 0)
  55. MovementLoopAddLocation(NPC, 750.03, -24.74, 339.1, 2, 0)
  56. MovementLoopAddLocation(NPC, 748.16, -24.74, 335.44, 2, 0)
  57. MovementLoopAddLocation(NPC, 747.39, -24.76, 332.39, 2, 2,"Door")
  58. MovementLoopAddLocation(NPC, 748.88, -24.96, 326.72, 2, 0)
  59. MovementLoopAddLocation(NPC, 750.47, -24.96, 322.38, 2, 0)
  60. MovementLoopAddLocation(NPC, 750.23, -24.96, 321.75, 2, 1)
  61. MovementLoopAddLocation(NPC, 750.23, -24.96, 321.75, 2, 45,"Action")
  62. MovementLoopAddLocation(NPC, 749.62, -24.96, 320.8, 2, 0)
  63. MovementLoopAddLocation(NPC, 750.21, -24.96, 322.96, 2, 0)
  64. MovementLoopAddLocation(NPC, 749.04, -24.96, 327.62, 2, 2,"Door")
  65. MovementLoopAddLocation(NPC, 747.13, -24.77, 331.44, 2, 0)
  66. MovementLoopAddLocation(NPC, 744.58, -24.73, 333.3, 2, 0)
  67. MovementLoopAddLocation(NPC, 736.37, -24.54, 332.96, 2, 0)
  68. MovementLoopAddLocation(NPC, 727.16, -20.42, 324.69, 2, 0)
  69. MovementLoopAddLocation(NPC, 726, -20.42, 323.31, 2, 0)
  70. MovementLoopAddLocation(NPC, 725.81, -20.49, 316.64, 2, 0)
  71. MovementLoopAddLocation(NPC, 732.79, -20.43, 306.64, 2, 0)
  72. MovementLoopAddLocation(NPC, 731.76, -20.43, 302.49, 2, 0)
  73. MovementLoopAddLocation(NPC, 723.72, -20.36, 291.19, 2, 0)
  74. MovementLoopAddLocation(NPC, 715.25, -20.12, 284.99, 2, 1)
  75. MovementLoopAddLocation(NPC, 715.25, -20.12, 284.99, 2, 35,"Action")
  76. MovementLoopAddLocation(NPC, 714.08, -20.05, 284.23, 2, 0)
  77. MovementLoopAddLocation(NPC, 718.63, -20.24, 287.22, 2, 0)
  78. MovementLoopAddLocation(NPC, 726.6, -20.45, 294.54, 2, 0)
  79. MovementLoopAddLocation(NPC, 731.11, -20.43, 301.36, 2, 0)
  80. MovementLoopAddLocation(NPC, 732.95, -20.43, 304.61, 2, 0)
  81. MovementLoopAddLocation(NPC, 732.54, -20.55, 314.8, 2, 0)
  82. MovementLoopAddLocation(NPC, 731.36, -20.53, 318.92, 2, 0)
  83. MovementLoopAddLocation(NPC, 729.79, -20.53, 325.19, 2, 0)
  84. MovementLoopAddLocation(NPC, 734.93, -23.42, 329.61, 2, 0)
  85. MovementLoopAddLocation(NPC, 737.65, -24.6, 332.15, 2, 0)
  86. MovementLoopAddLocation(NPC, 750.46, -24.74, 340.39, 2, 0)
  87. MovementLoopAddLocation(NPC, 760.4, -25.01, 339.69, 2, 0)
  88. MovementLoopAddLocation(NPC, 774.5, -25.03, 334.47, 2, 0)
  89. MovementLoopAddLocation(NPC, 778.75, -25.07, 332.81, 2, 0)
  90. end