percius.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : percius.lua
  3. Script Purpose : Waypoint Path for percius.lua
  4. Script Author : Devn00b
  5. Script Date : 08/05/2020 02:39:36 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if math.random(0, 100) <= 25 then
  17. FaceTarget(NPC, Spawn)
  18. GenericGuardHail(NPC, Spawn)
  19. CheckFaction(NPC, Spawn, "Qeynos")
  20. else
  21. CheckFaction(NPC, Spawn, "Qeynos")
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. GenericGuardHail(NPC, Spawn)
  27. end
  28. --[[ HE DOESN'T ROAM. Keeping locations because of the work put into his pathing
  29. function waypoints(NPC)
  30. MovementLoopAddLocation(NPC, 558.92, -16.61, -427.07, 2, math.random(0,5))
  31. MovementLoopAddLocation(NPC, 562.75, -17.4, -407.2, 2, math.random(0,5))
  32. MovementLoopAddLocation(NPC, 570.45, -17.77, -402.11, 2, math.random(0,5))
  33. MovementLoopAddLocation(NPC, 584.41, -18.42, -399.5, 2, math.random(0,5))
  34. MovementLoopAddLocation(NPC, 597.07, -18.04, -405.27, 2, math.random(0,5))
  35. MovementLoopAddLocation(NPC, 648.18, -11.73, -395.33, 2, math.random(0,5))
  36. MovementLoopAddLocation(NPC, 594.2, -18.67, -407.75, 2, math.random(0,5))
  37. MovementLoopAddLocation(NPC, 585.32, -18.72, -420.84, 2, math.random(0,5))
  38. MovementLoopAddLocation(NPC, 569.08, -17.86, -422.86, 2, math.random(0,5))
  39. MovementLoopAddLocation(NPC, 561.03, -17.35, -410, 2, math.random(0,5))
  40. MovementLoopAddLocation(NPC, 569.08, -17.86, -422.86, 2, math.random(0,5))
  41. MovementLoopAddLocation(NPC, 585.32, -18.72, -420.84, 2, math.random(0,5))
  42. MovementLoopAddLocation(NPC, 594.2, -18.67, -407.75, 2, math.random(0,5))
  43. MovementLoopAddLocation(NPC, 648.18, -11.73, -395.33, 2, math.random(0,5))
  44. MovementLoopAddLocation(NPC, 597.07, -18.04, -405.27, 2, math.random(0,5))
  45. MovementLoopAddLocation(NPC, 584.41, -18.42, -399.5, 2, math.random(0,5))
  46. MovementLoopAddLocation(NPC, 570.45, -17.77, -402.11, 2, math.random(0,5))
  47. MovementLoopAddLocation(NPC, 562.75, -17.4, -407.2, 2, math.random(0,5))
  48. MovementLoopAddLocation(NPC, 558.92, -16.61, -427.07, 2, math.random(0,5))
  49. end
  50. ]]--