Wyrmok.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/Wyrmok.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.27 03:10:12
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  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. if math.random(1, 100) <= 20 and GetFactionAmount(Spawn,11) >20000 then
  21. GenericGuardHail(NPC,Spawn)
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. GenericGuardHail(NPC, Spawn)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, 637.2, -18.82, 235.84, 2, 6)
  30. MovementLoopAddLocation(NPC, 633.62, -18.94, 233.24, 2, 0)
  31. MovementLoopAddLocation(NPC, 613.52, -18.23, 237.62, 2, 0)
  32. MovementLoopAddLocation(NPC, 577.82, -17.94, 242.87, 2, 0)
  33. MovementLoopAddLocation(NPC, 559.85, -17.73, 244.64, 2, 0)
  34. MovementLoopAddLocation(NPC, 537.87, -17.99, 244.49, 2, 0)
  35. MovementLoopAddLocation(NPC, 487.59, -20.37, 241.37, 2, 0)
  36. MovementLoopAddLocation(NPC, 469.96, -21.72, 238, 2, 6)
  37. MovementLoopAddLocation(NPC, 492.71, -20.06, 242.07, 2, 0)
  38. MovementLoopAddLocation(NPC, 529.12, -18.3, 244.77, 2, 0)
  39. MovementLoopAddLocation(NPC, 550.55, -17.72, 245.71, 2, 0)
  40. MovementLoopAddLocation(NPC, 555.61, -17.18, 234.79, 2, 0)
  41. MovementLoopAddLocation(NPC, 557.78, -15.59, 219.44, 2, 6)
  42. MovementLoopAddLocation(NPC, 557.88, -15.28, 217.73, 2, 0)
  43. MovementLoopAddLocation(NPC, 559.12, -17.13, 230.51, 2, 0)
  44. MovementLoopAddLocation(NPC, 565.38, -17.79, 243.1, 2, 0)
  45. MovementLoopAddLocation(NPC, 597.59, -18.13, 238.56, 2, 0)
  46. MovementLoopAddLocation(NPC, 626.8, -18.76, 233.62, 2, 0)
  47. MovementLoopAddLocation(NPC, 632.15, -18.97, 232.47, 2, 0)
  48. end