varna.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : varna.lua
  3. Script Purpose : Waypoint Path for varna.lua
  4. Script Author : Devn00b
  5. Script Date : 07/31/2020 07:33:58 PM
  6. Script Notes : Dialogue updated 5.1.2022 Dorbin
  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 respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 585.65, -18.22, -411.48, 2, 1)
  25. MovementLoopAddLocation(NPC, 585.65, -18.22, -411.48, 2, 2,"Door")
  26. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, 1)
  27. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, math.random(11,12),"EcologyEmote")
  28. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, 1,"Door")
  29. MovementLoopAddLocation(NPC, 584.56, -18.17, -411.61, 2, math.random(0,8))
  30. MovementLoopAddLocation(NPC, 617.12, -15.75, -407.56, 2, math.random(0,8))
  31. MovementLoopAddLocation(NPC, 650.63, -11.51, -399.8, 2, math.random(0,8))
  32. MovementLoopAddLocation(NPC, 644.41, -12.48, -372.51, 2, math.random(0,8))
  33. MovementLoopAddLocation(NPC, 642.47, -20.05, -313.95, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 644.41, -12.48, -372.51, 2, math.random(0,8))
  35. MovementLoopAddLocation(NPC, 650.63, -11.51, -399.8, 2, math.random(0,8))
  36. MovementLoopAddLocation(NPC, 617.12, -15.75, -407.56, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 584.56, -18.17, -411.61, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, math.random(0,8))
  39. end
  40. function Door(NPC,Spawn)
  41. local widget = GetSpawn(NPC, 2070103)
  42. UseWidget(widget)
  43. end