9
3

erwin.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : erwin.lua
  3. Script Purpose : Waypoint Path for erwin.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 02:39:02 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if math.random(0, 100) <= 25 then
  15. FaceTarget(NPC, Spawn)
  16. GenericGuardHail(NPC, Spawn)
  17. else
  18. CheckFaction(NPC, Spawn, "Qeynos")
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. GenericGuardHail(NPC, Spawn)
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 0)
  30. MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
  31. MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
  32. MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
  33. MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
  34. MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
  35. MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
  36. MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
  37. MovementLoopAddLocation(NPC, 686.27, -20.49, 267.75, 2, 30)
  38. MovementLoopAddLocation(NPC, 671.72, -19.66, 223.75, 2, 0)
  39. MovementLoopAddLocation(NPC, 679.77, -19.76, 221.54, 2, 0)
  40. MovementLoopAddLocation(NPC, 692.1, -19.52, 195.98, 2, 0)
  41. MovementLoopAddLocation(NPC, 703.89, -19.54, 189.78, 2, 0)
  42. MovementLoopAddLocation(NPC, 704.73, -19.48, 175.59, 2, 0)
  43. MovementLoopAddLocation(NPC, 680.55, -20.76, 155.63, 2, 0)
  44. MovementLoopAddLocation(NPC, 677.48, -21.02, 142.28, 2, 0)
  45. MovementLoopAddLocation(NPC, 698.34, -19.9, 131.15, 2, 30)
  46. end