illervo.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : illervo.lua
  3. Script Purpose : Waypoint Path for illervo.lua
  4. Script Author : Devn00b
  5. Script Date : 04/15/2020 05:24:14 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. waypoints(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if math.random(0, 100) <= 25 then
  18. FaceTarget(NPC, Spawn)
  19. GenericGuardHail(NPC, Spawn)
  20. CheckFaction(NPC, Spawn, "Qeynos")
  21. else
  22. CheckFaction(NPC, Spawn, "Qeynos")
  23. end
  24. end
  25. function LeaveRange(NPC, Spawn)
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. GenericGuardHail(NPC, Spawn)
  30. end
  31. function waypoints(NPC)
  32. MovementLoopAddLocation(NPC, 382.12, -20.93, 124.14, 2, 30)
  33. MovementLoopAddLocation(NPC, 345.84, -21.5, 63.07, 2, 0)
  34. MovementLoopAddLocation(NPC, 299.8, -21.23, 3.77, 2, 0)
  35. MovementLoopAddLocation(NPC, 264.05, -21.48, -18.2, 2, 0)
  36. MovementLoopAddLocation(NPC, 209.12, -21.72, -22.84, 2, 15)
  37. MovementLoopAddLocation(NPC, 264.05, -21.48, -18.2, 2, 0)
  38. MovementLoopAddLocation(NPC, 299.8, -21.23, 3.77, 2, 0)
  39. MovementLoopAddLocation(NPC, 345.84, -21.5, 63.07, 2, 0)
  40. MovementLoopAddLocation(NPC, 382.12, -20.93, 124.14, 2, 30)
  41. end