9
3

ValinaDMizrel.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/ValinaDMizrel.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.14 08:10:24
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. FaceTarget(NPC, Spawn)
  19. GenericEcologyCallout(NPC, Spawn, faction)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function Door1(NPC,Spawn)
  25. local door = GetSpawn(NPC, 1380088)
  26. UseWidget(door)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, -22.3, 0.05, -18.99, 2, 1)
  30. MovementLoopAddLocation(NPC, -22.3, 0.05, -18.99, 2, MakeRandomInt(15,25),"EcologyEmotes")
  31. MovementLoopAddLocation(NPC, -22.3, 0.05, -18.99, 2, 0)
  32. MovementLoopAddLocation(NPC, -26.77, 0.06, -19.34, 2, 0)
  33. MovementLoopAddLocation(NPC, -30.66, -0.03, -21.61, 2, 0)
  34. MovementLoopAddLocation(NPC, -33.14, -0.66, -25.2, 2, 0)
  35. MovementLoopAddLocation(NPC, -33.74, -1.58, -32.93, 2, 0)
  36. MovementLoopAddLocation(NPC, -34.3, -2.67, -37.11, 2, 0)
  37. MovementLoopAddLocation(NPC, -35.99, -3.58, -45.25, 2, 0)
  38. MovementLoopAddLocation(NPC, -40.38, -4.26, -53.42, 2, 0)
  39. MovementLoopAddLocation(NPC, -41.94, -4.5, -54.9, 2, 0)
  40. MovementLoopAddLocation(NPC, -42.99, -4.5, -56.45, 2, 0)
  41. MovementLoopAddLocation(NPC, -45.31, -4.64, -62.81, 2, 0)
  42. MovementLoopAddLocation(NPC, -49.5, -4.67, -63.72, 2, 0)
  43. MovementLoopAddLocation(NPC, -55.4, -4.67, -64.45, 2, 1)
  44. MovementLoopAddLocation(NPC, -55.4, -4.67, -64.45, 2, 1,"FishHead")
  45. MovementLoopAddLocation(NPC, -55.4, -4.67, -64.45, 2, MakeRandomInt(25,35),"EcologyEmotes")
  46. MovementLoopAddLocation(NPC, -55.4, -4.67, -64.45, 2, 0)
  47. MovementLoopAddLocation(NPC, -50.93, -4.67, -65.45, 2, 0)
  48. MovementLoopAddLocation(NPC, -47.61, -4.69, -65, 2, 0)
  49. MovementLoopAddLocation(NPC, -44.13, -4.68, -63.74, 2, 0)
  50. MovementLoopAddLocation(NPC, -41.83, -4.5, -57.19, 2, 0)
  51. MovementLoopAddLocation(NPC, -39.77, -4.2, -54.18, 2, 0)
  52. MovementLoopAddLocation(NPC, -35.18, -4.27, -52.15, 2, 2,"Door1")
  53. MovementLoopAddLocation(NPC, -32.36, -3.96, -54.26, 2, 0,"Door1")
  54. MovementLoopAddLocation(NPC, -29.27, -3.98, -54.85, 2, 0)
  55. MovementLoopAddLocation(NPC, -29.27, -3.98, -54.85, 2, 1)
  56. MovementLoopAddLocation(NPC, -29.27, -3.98, -54.85, 2, MakeRandomInt(25,35),"EcologyEmotes")
  57. MovementLoopAddLocation(NPC, -30.21, -4, -55.79, 2, 0)
  58. MovementLoopAddLocation(NPC, -31.06, -4, -56.07, 2, 1)
  59. MovementLoopAddLocation(NPC, -31.06, -4, -56.07, 2, 35,"EcologyEmotes")
  60. MovementLoopAddLocation(NPC, -31.4, -4, -55.7, 2, 2,"Door1")
  61. MovementLoopAddLocation(NPC, -35.61, -4.33, -51.88, 2, 0,"Door1")
  62. MovementLoopAddLocation(NPC, -34.56, -3.67, -47.97, 2, 0)
  63. MovementLoopAddLocation(NPC, -32.93, -3.07, -40.75, 2, 0)
  64. MovementLoopAddLocation(NPC, -31.16, -1.7, -32.92, 2, 0)
  65. MovementLoopAddLocation(NPC, -31.89, -1.15, -28.64, 2, 0)
  66. MovementLoopAddLocation(NPC, -32.01, -0.6, -25.92, 2, 0)
  67. MovementLoopAddLocation(NPC, -28.24, 0, -21.21, 2, 0)
  68. MovementLoopAddLocation(NPC, -26.01, 0, -19.59, 2, 0)
  69. MovementLoopAddLocation(NPC, -18.45, 0, -11.97, 2, 1)
  70. MovementLoopAddLocation(NPC, -18.45, 0, -11.97, 2, MakeRandomInt(25,35),"EcologyEmotes")
  71. MovementLoopAddLocation(NPC, -18.45, 0, -11.97, 2, 0)
  72. MovementLoopAddLocation(NPC, -21.01, 0.09, -15.92, 2, 0)
  73. MovementLoopAddLocation(NPC, -22.24, 0.07, -17.82, 2, 0)
  74. end
  75. function FishHead(NPC)
  76. SetHeading(NPC,155)
  77. end