9
3

icebear.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : icebear.lua
  3. Script Purpose : Waypoint Path for icebear.lua
  4. Script Author : Devn00b
  5. Script Date : 04/15/2020 02:45:21 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. waypoints(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. NonCitizen(NPC,Spawn)
  19. CheckFaction(NPC, Spawn, "Qeynos")
  20. end
  21. function LeaveRange(NPC, Spawn)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. GenericGuardHail(NPC, Spawn)
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 337.5, -21.62, -17.84, 2, 0)
  29. MovementLoopAddLocation(NPC, 327.95, -21.47, -18.3, 2, 0)
  30. MovementLoopAddLocation(NPC, 301.42, -21.15, 2.22, 2, 0)
  31. MovementLoopAddLocation(NPC, 307.82, -21.28, 12.39, 2, 0)
  32. MovementLoopAddLocation(NPC, 316.31, -21.35, 25.73, 2, 0)
  33. MovementLoopAddLocation(NPC, 328.54, -21.46, 34.69, 2, 0)
  34. MovementLoopAddLocation(NPC, 342.6, -21.08, 47.69, 2, 0)
  35. MovementLoopAddLocation(NPC, 351.56, -21.1, 62.44, 2, 0)
  36. MovementLoopAddLocation(NPC, 356.53, -20.81, 86.48, 2, 0)
  37. MovementLoopAddLocation(NPC, 365.55, -20.84, 100.34, 2, 0)
  38. MovementLoopAddLocation(NPC, 383.27, -20.98, 123.01, 2, 0)
  39. MovementLoopAddLocation(NPC, 391.04, -21.3, 133.4, 2, 0)
  40. MovementLoopAddLocation(NPC, 386.84, -20.7, 119.23, 2, 0)
  41. --MovementLoopAddLocation(NPC, 412.2, -13.89, 65.74, 2, 0)
  42. MovementLoopAddLocation(NPC, 413.51, -13.84, 56.84, 2, 0)
  43. --MovementLoopAddLocation(NPC, 409.82, -13.77, 57.53, 2, 0)
  44. MovementLoopAddLocation(NPC, 400.59, -14.47, 33.02, 2, 0)
  45. MovementLoopAddLocation(NPC, 393.11, -15.81, 12.92, 2, 0)
  46. MovementLoopAddLocation(NPC, 393.69, -17.09, -23.72, 2, 0)
  47. MovementLoopAddLocation(NPC, 369.04, -20.37, -19.09, 2, 0)
  48. MovementLoopAddLocation(NPC, 338.76, -21.66, -18.13, 2, 0)
  49. end