9
3

SialloHalvion.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : SpawnScripts/Castleview/SialloHalvion.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.29 04:10:30
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "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. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 763.09, -13.76, -103.71, 2, 1)
  22. MovementLoopAddLocation(NPC, 763.09, -13.76, -103.71, 2, 25,"Action2")
  23. MovementLoopAddLocation(NPC, 764, -13.73, -103.97, 2, 0)
  24. MovementLoopAddLocation(NPC, 761.35, -13.74, -96.57, 2, 0)
  25. MovementLoopAddLocation(NPC, 762.02, -13.73, -94.97, 2, 0)
  26. MovementLoopAddLocation(NPC, 763.23, -13.73, -94.83, 2, 0)
  27. MovementLoopAddLocation(NPC, 764.09, -13.7, -96.23, 2, 0)
  28. MovementLoopAddLocation(NPC, 767.92, -18.22, -106.78, 2, 0)
  29. MovementLoopAddLocation(NPC, 768.95, -18.22, -109.93, 2, 0)
  30. MovementLoopAddLocation(NPC, 767.72, -18.22, -112.22, 2, 0)
  31. MovementLoopAddLocation(NPC, 766.79, -18.22, -113.97, 2, 0)
  32. MovementLoopAddLocation(NPC, 762.61, -18.6, -115.67, 2, 0)
  33. MovementLoopAddLocation(NPC, 761.55, -19.43, -116.27, 2, 0)
  34. MovementLoopAddLocation(NPC, 760.24, -19.97, -116.78, 2, 0)
  35. MovementLoopAddLocation(NPC, 757.86, -19.94, -118.1, 2, 0)
  36. MovementLoopAddLocation(NPC, 754.07, -19.98, -118.49, 2, 1)
  37. MovementLoopAddLocation(NPC, 754.07, -19.98, -118.49, 2, 25,"Action2")
  38. MovementLoopAddLocation(NPC, 747.73, -21.3, -123.12, 2, 0)
  39. MovementLoopAddLocation(NPC, 747.45, -21.31, -123.43, 2, 1)
  40. MovementLoopAddLocation(NPC, 747.45, -21.31, -123.43, 2, 25,"Action")
  41. MovementLoopAddLocation(NPC, 746.32, -21.32, -122.02, 2, 0)
  42. MovementLoopAddLocation(NPC, 756.3, -19.99, -119.86, 2, 0)
  43. MovementLoopAddLocation(NPC, 760.65, -19.98, -123.13, 2, 0)
  44. MovementLoopAddLocation(NPC, 764.93, -19.94, -126.49, 2, 0)
  45. MovementLoopAddLocation(NPC, 772.04, -19.99, -127.07, 2, 0)
  46. MovementLoopAddLocation(NPC, 782.25, -19.95, -124.22, 2, 1)
  47. MovementLoopAddLocation(NPC, 782.25, -19.95, -124.22, 2, 25,"Action2")
  48. MovementLoopAddLocation(NPC, 781.39, -19.95, -123.45, 2, 0)
  49. MovementLoopAddLocation(NPC, 784.78, -19.93, -117.29, 2, 0)
  50. MovementLoopAddLocation(NPC, 789.47, -19.97, -119.23, 2, 0)
  51. MovementLoopAddLocation(NPC, 790.23, -18.38, -113.63, 2, 0)
  52. MovementLoopAddLocation(NPC, 789.46, -16.22, -107.16, 2, 0)
  53. MovementLoopAddLocation(NPC, 790.74, -16.22, -105.48, 2, 0)
  54. MovementLoopAddLocation(NPC, 791.64, -16.22, -105.36, 2, 0)
  55. MovementLoopAddLocation(NPC, 793.08, -16.22, -113.13, 2, 0)
  56. MovementLoopAddLocation(NPC, 793.41, -16.22, -120.93, 2, 0)
  57. MovementLoopAddLocation(NPC, 793.5, -16.22, -125.52, 2, 0)
  58. MovementLoopAddLocation(NPC, 795.83, -16.22, -128.22, 2, 0)
  59. MovementLoopAddLocation(NPC, 801.41, -16.22, -131.7, 2, 1)
  60. MovementLoopAddLocation(NPC, 801.41, -16.22, -131.7, 2, 25,"Action2")
  61. MovementLoopAddLocation(NPC, 800.55, -16.22, -132.64, 2, 0)
  62. MovementLoopAddLocation(NPC, 797.46, -16.22, -129.67, 2, 0)
  63. MovementLoopAddLocation(NPC, 793.2, -16.22, -125.07, 2, 0)
  64. MovementLoopAddLocation(NPC, 792.77, -16.22, -108.92, 2, 0)
  65. MovementLoopAddLocation(NPC, 791.69, -16.22, -105.3, 2, 0)
  66. MovementLoopAddLocation(NPC, 789.16, -16.22, -106.5, 2, 0)
  67. MovementLoopAddLocation(NPC, 789.14, -16.22, -107.57, 2, 0)
  68. MovementLoopAddLocation(NPC, 789.74, -17.73, -111.99, 2, 0)
  69. MovementLoopAddLocation(NPC, 788.79, -19.97, -118.05, 2, 0)
  70. MovementLoopAddLocation(NPC, 786.7, -19.93, -117.11, 2, 0)
  71. MovementLoopAddLocation(NPC, 781.89, -19.99, -108.44, 2, 0)
  72. MovementLoopAddLocation(NPC, 779.87, -19.48, -109.5, 2, 0)
  73. MovementLoopAddLocation(NPC, 777.11, -18.22, -110.62, 2, 0)
  74. MovementLoopAddLocation(NPC, 774.1, -18.22, -111.53, 2, 0)
  75. MovementLoopAddLocation(NPC, 770.08, -18.22, -109.24, 2, 0)
  76. MovementLoopAddLocation(NPC, 768.84, -18.22, -105.92, 2, 0)
  77. MovementLoopAddLocation(NPC, 767.17, -16.49, -102.2, 2, 0)
  78. MovementLoopAddLocation(NPC, 764.83, -13.69, -95.95, 2, 0)
  79. MovementLoopAddLocation(NPC, 762.88, -13.77, -94.16, 2, 0)
  80. MovementLoopAddLocation(NPC, 759.9, -13.79, -96.09, 2, 0)
  81. MovementLoopAddLocation(NPC, 760.81, -13.76, -101.31, 2, 0)
  82. end
  83. function Action(NPC,Spawn)
  84. choice = MakeRandomInt(1,3)
  85. if choice ==1 then
  86. PlayFlavor(NPC,"","","cheer",0,0)
  87. elseif choice ==2 then
  88. PlayFlavor(NPC,"","","applaude",0,0)
  89. elseif choice ==2 then
  90. PlayFlavor(NPC,"","","happy",0,0)
  91. end
  92. end
  93. function Action2(NPC)
  94. local choice = MakeRandomInt(1, 4)
  95. if choice == 1 then
  96. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  97. elseif choice == 2 then
  98. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  99. elseif choice == 3 then
  100. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  101. elseif choice == 4 then
  102. PlayFlavor(NPC, "", "", "tap", 0, 0, Spawn)
  103. end
  104. end