Mina.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/Mina.lua
  3. Script Purpose : Mina
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  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, 610.73, -21.11, -232.03, 2, math.random(0,15))
  25. MovementLoopAddLocation(NPC, 634.45, -19.4, -257.15, 2, math.random(0,15))
  26. MovementLoopAddLocation(NPC, 653.33, -19.06, -269.45, 2, math.random(0,15))
  27. MovementLoopAddLocation(NPC, 683.06, -19.57, -277.29, 2, math.random(0,15))
  28. MovementLoopAddLocation(NPC, 699.51, -17.27, -324.09, 2, math.random(0,15))
  29. MovementLoopAddLocation(NPC, 716.17, -17.04, -329.63, 2, math.random(0,15))
  30. MovementLoopAddLocation(NPC, 734.96, -17.92, -326.29, 2, math.random(0,15))
  31. MovementLoopAddLocation(NPC, 743.56, -20.67, -334.42, 2, math.random(0,15))
  32. MovementLoopAddLocation(NPC, 734.96, -17.92, -326.29, 2, math.random(0,15))
  33. MovementLoopAddLocation(NPC, 716.17, -17.04, -329.63, 2, math.random(0,15))
  34. MovementLoopAddLocation(NPC, 699.51, -17.27, -324.09, 2, math.random(0,15))
  35. MovementLoopAddLocation(NPC, 683.06, -19.57, -277.29, 2, math.random(0,15))
  36. MovementLoopAddLocation(NPC, 653.33, -19.06, -269.45, 2, math.random(0,15))
  37. MovementLoopAddLocation(NPC, 634.45, -19.4, -257.15, 2, math.random(0,15))
  38. MovementLoopAddLocation(NPC, 610.73, -21.11, -232.03, 2, math.random(0,15))
  39. end