LiviaDrusilla.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/LiviaDrusilla.lua
  3. Script Purpose : Livia Drusilla
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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 InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 49.97, -5, 31.7, 2, 0)
  25. MovementLoopAddLocation(NPC, 53.41, -5, 35.77, 2, 0)
  26. MovementLoopAddLocation(NPC, 58.2, -5, 37.61, 2, 1)
  27. MovementLoopAddLocation(NPC, 58.2, -5, 37.61, 2, MakeRandomInt(15,25),"EcologyEmotes")
  28. MovementLoopAddLocation(NPC, 55.35, -5.25, 39.88, 2, 0)
  29. MovementLoopAddLocation(NPC, 51.29, -5.75, 45.01, 2, 0)
  30. MovementLoopAddLocation(NPC, 50.52, -6.15, 48.24, 2, 0)
  31. MovementLoopAddLocation(NPC, 48.3, -6.92, 51.49, 2, 0)
  32. MovementLoopAddLocation(NPC, 44.72, -7, 52.68, 2, 0)
  33. MovementLoopAddLocation(NPC, 35.14, -7, 55.1, 2, 0)
  34. MovementLoopAddLocation(NPC, 26.76, -7, 56.1, 2, 0)
  35. MovementLoopAddLocation(NPC, 16.05, -7, 54.99, 2, 0)
  36. MovementLoopAddLocation(NPC, -3.93, -7, 55.81, 2, 0)
  37. MovementLoopAddLocation(NPC, -22.67, -7, 58.57, 2, 1)
  38. MovementLoopAddLocation(NPC, -22.67, -7, 58.57, 2, MakeRandomInt(15,25),"EcologyEmotes")
  39. MovementLoopAddLocation(NPC, -22.67, -7, 58.57, 2, 0)
  40. MovementLoopAddLocation(NPC, -20.59, -7, 57, 2, 0)
  41. MovementLoopAddLocation(NPC, -15.82, -7, 54.67, 2, 0)
  42. MovementLoopAddLocation(NPC, -8.86, -7, 52.55, 2, 0)
  43. MovementLoopAddLocation(NPC, -7.87, -7, 48.21, 2, 0)
  44. MovementLoopAddLocation(NPC, -7.24, -7, 45.44, 2, 0)
  45. MovementLoopAddLocation(NPC, -12.15, -7, 39.27, 2, 0)
  46. MovementLoopAddLocation(NPC, -19.09, -7, 33.77, 2, 0)
  47. MovementLoopAddLocation(NPC, -13.92, -6, 25.93, 2, 0)
  48. MovementLoopAddLocation(NPC, -12.44, -5.5, 20.27, 2, 0)
  49. MovementLoopAddLocation(NPC, -12.62, -5.25, 16.52, 2, 0)
  50. MovementLoopAddLocation(NPC, -15.35, -5, 14.12, 2, 0)
  51. MovementLoopAddLocation(NPC, -18.34, -5.02, 10.48, 2, 0)
  52. MovementLoopAddLocation(NPC, -27.05, -0.75, 6.71, 2, 0)
  53. MovementLoopAddLocation(NPC, -27.89, -0.75, 5.47, 2, 0)
  54. MovementLoopAddLocation(NPC, -27.87, -0.75, 3.66, 2, 0)
  55. MovementLoopAddLocation(NPC, -26.74, -0.76, 1.88, 2, 0)
  56. MovementLoopAddLocation(NPC, -22.25, 1.14, 2.87, 2, 0)
  57. MovementLoopAddLocation(NPC, -20.22, 1.86, 3.52, 2, 0)
  58. MovementLoopAddLocation(NPC, -18.6, 2.07, 1.58, 2, 0)
  59. MovementLoopAddLocation(NPC, -17.77, 2, 0.15, 2, 0)
  60. MovementLoopAddLocation(NPC, -14.73, 2, -4.41, 2, 0)
  61. MovementLoopAddLocation(NPC, -18.08, 2.5, -11.76, 2, 0)
  62. MovementLoopAddLocation(NPC, -26.9, 2.5, -18.46, 2, 1)
  63. MovementLoopAddLocation(NPC, -26.9, 2.5, -18.46, 2, MakeRandomInt(15,25),"EcologyEmotes")
  64. MovementLoopAddLocation(NPC, -24.43, 2.5, -18.37, 2, 0)
  65. MovementLoopAddLocation(NPC, -17.3, 3, -18.7, 2, 0)
  66. MovementLoopAddLocation(NPC, -13.29, 3, -21.7, 2, 0)
  67. MovementLoopAddLocation(NPC, -4.47, 3.5, -20.59, 2, 0)
  68. MovementLoopAddLocation(NPC, 0.11, 3.5, -19.13, 2, 1)
  69. MovementLoopAddLocation(NPC, 0.11, 3.5, -19.13, 2, MakeRandomInt(15,25),"EcologyEmotes")
  70. MovementLoopAddLocation(NPC, 0.19, 3.5, -20.6, 2, 0)
  71. MovementLoopAddLocation(NPC, 2.62, 3.87, -21.13, 2, 0)
  72. MovementLoopAddLocation(NPC, 12.41, 4.75, -22.26, 2, 0)
  73. MovementLoopAddLocation(NPC, 18.6, 5, -23.15, 2, 0)
  74. MovementLoopAddLocation(NPC, 21, 5.25, -21.08, 2, 0)
  75. MovementLoopAddLocation(NPC, 23.9, 5.25, -13.95, 2, 0)
  76. MovementLoopAddLocation(NPC, 30.72, 5.25, -12.03, 2, 0)
  77. MovementLoopAddLocation(NPC, 38.52, 5.25, -15.59, 2, 0)
  78. MovementLoopAddLocation(NPC, 46.22, 5.25, -18.95, 2, 0)
  79. MovementLoopAddLocation(NPC, 47.34, 5.25, -22.59, 2, 0)
  80. MovementLoopAddLocation(NPC, 50.1, 5, -29.25, 2, 2,"Door1")
  81. MovementLoopAddLocation(NPC, 51.57, 5.01, -32.3, 2, 0,"Door1")
  82. MovementLoopAddLocation(NPC, 52.29, 5.01, -35.54, 2, 0)
  83. MovementLoopAddLocation(NPC, 54.11, 5.01, -37.73, 2, 0)
  84. MovementLoopAddLocation(NPC, 62.45, 5.01, -42.53, 2, 1)
  85. MovementLoopAddLocation(NPC, 62.45, 5.01, -42.53, 2, MakeRandomInt(15,25),"EcologyEmotes")
  86. MovementLoopAddLocation(NPC, 58.09, 5.04, -42.59, 2, 0)
  87. MovementLoopAddLocation(NPC, 53.13, 5.01, -40.84, 2, 1)
  88. MovementLoopAddLocation(NPC, 53.13, 5.01, -40.84, 2, MakeRandomInt(15,25),"EcologyEmotes")
  89. MovementLoopAddLocation(NPC, 54.61, 5.01, -40.69, 2, 0)
  90. MovementLoopAddLocation(NPC, 55.25, 5.01, -39.02, 2, 0)
  91. MovementLoopAddLocation(NPC, 51.83, 5.01, -32.73, 2, 2,"Door1")
  92. MovementLoopAddLocation(NPC, 49.42, 5, -28.74, 2, 0,"Door1")
  93. MovementLoopAddLocation(NPC, 51.08, 5, -24.52, 2, 0)
  94. MovementLoopAddLocation(NPC, 51.69, 5, -15.39, 2, 0)
  95. MovementLoopAddLocation(NPC, 51.65, 4.5, -9.56, 2, 0)
  96. MovementLoopAddLocation(NPC, 49.57, 3.75, -3.81, 2, 0)
  97. MovementLoopAddLocation(NPC, 47.58, 3.5, -1.12, 2, 0)
  98. MovementLoopAddLocation(NPC, 44.9, 2.78, 7.3, 2, 0)
  99. MovementLoopAddLocation(NPC, 44.72, 2.25, 12.98, 2, 0)
  100. MovementLoopAddLocation(NPC, 43.82, 2, 20.24, 2, 1)
  101. MovementLoopAddLocation(NPC, 43.82, 2, 20.24, 2, MakeRandomInt(15,25),"EcologyEmotes")
  102. MovementLoopAddLocation(NPC, 45.65, 2, 19.17, 2, 0)
  103. MovementLoopAddLocation(NPC, 49.24, 2, 19.64, 2, 0)
  104. MovementLoopAddLocation(NPC, 50.28, 2, 22.26, 2, 0)
  105. MovementLoopAddLocation(NPC, 50.29, 1.95, 24.96, 2, 0)
  106. MovementLoopAddLocation(NPC, 47, 1.39, 26.64, 2, 0)
  107. MovementLoopAddLocation(NPC, 42.61, -0.8, 25.86, 2, 0)
  108. MovementLoopAddLocation(NPC, 33.77, -5.01, 24.89, 2, 0)
  109. MovementLoopAddLocation(NPC, 33.19, -5, 27.23, 2, 0)
  110. MovementLoopAddLocation(NPC, 40.34, -5, 28.49, 2, 1)
  111. MovementLoopAddLocation(NPC, 40.34, -5, 28.49, 2, MakeRandomInt(15,25),"EcologyEmotes")
  112. MovementLoopAddLocation(NPC, 41.7, -5, 29.76, 2, 0)
  113. MovementLoopAddLocation(NPC, 44.54, -5, 29.97, 2, 0)
  114. end
  115. function Door1(NPC,Spawn)
  116. local door = GetSpawn(NPC, 1370078)
  117. UseWidget(door)
  118. end