Torsha.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/Torsha.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.28 04:10:51
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericRaceCheckHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericRaceCheckCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 42.33, 3, 83.5, 2, 1)
  25. MovementLoopAddLocation(NPC, 42.33, 3, 83.5, 2, 29,"EcologyEmotes")
  26. MovementLoopAddLocation(NPC, 44.35, 3, 84.45, 2, 0)
  27. MovementLoopAddLocation(NPC, 49.66, 3, 92.49, 2, 0)
  28. MovementLoopAddLocation(NPC, 51.82, 3, 92.96, 2, 1)
  29. MovementLoopAddLocation(NPC, 51.82, 3, 92.96, 2, 24,"EcologyEmotes")
  30. MovementLoopAddLocation(NPC, 48.4, 3, 90.19, 2, 0)
  31. MovementLoopAddLocation(NPC, 48.23, 3, 84.92, 2, 1)
  32. MovementLoopAddLocation(NPC, 48.23, 3, 84.92, 2, 29,"EcologyEmotes")
  33. MovementLoopAddLocation(NPC, 47.86, 3, 85.96, 2, 0)
  34. MovementLoopAddLocation(NPC, 46.17, 3, 86.04, 2, 0)
  35. end