9
3

Valerie.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/Valerie.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.21 06:06:41
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/AdvancementGaze.lua")
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. function spawn(NPC)
  11. waypoints(NPC)
  12. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  13. end
  14. function InRange(NPC, Spawn)
  15. if GetFactionAmount(Spawn,11)>=5000 then
  16. if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
  17. ClassCheck(NPC,Spawn)
  18. end
  19. end
  20. CheckFaction(NPC, Spawn, "Qeynos")
  21. if GetFactionAmount(Spawn,11)>0 then
  22. if math.random(1,100)<25 then
  23. GenericGuardHail(NPC, Spawn)
  24. end
  25. end
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. GenericGuardHail(NPC, Spawn)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function FaceStreet1(NPC)
  35. SpawnSet(NPC, "heading", "163")
  36. end
  37. function FaceStreet2(NPC)
  38. SpawnSet(NPC, "heading", "116")
  39. end
  40. function waypoints(NPC)
  41. MovementLoopAddLocation(NPC, 608.57, -20.62, 352.9, 2, 1,"FaceStreet2")
  42. MovementLoopAddLocation(NPC, 608.57, -20.62, 352.9, 2, 45,"Action")
  43. MovementLoopAddLocation(NPC, 608.25, -20.63, 353.2, 2, 0)
  44. MovementLoopAddLocation(NPC, 606.78, -21.17, 360.09, 2, 0)
  45. MovementLoopAddLocation(NPC, 607.06, -22.18, 362.3, 2, 0)
  46. MovementLoopAddLocation(NPC, 608.25, -24.23, 366.77, 2, 0)
  47. MovementLoopAddLocation(NPC, 612.28, -26.38, 371.89, 2, 0)
  48. MovementLoopAddLocation(NPC, 613.61, -26.35, 372.59, 2, 0)
  49. MovementLoopAddLocation(NPC, 624.31, -25.13, 369.21, 2, 0)
  50. MovementLoopAddLocation(NPC, 626.56, -24.95, 368.43, 2, 0)
  51. MovementLoopAddLocation(NPC, 633.77, -22.28, 369.31, 2, 0)
  52. MovementLoopAddLocation(NPC, 635.62, -22.34, 369.35, 2, 0)
  53. MovementLoopAddLocation(NPC, 635.62, -22.34, 369.35, 2, 0)
  54. MovementLoopAddLocation(NPC, 635.97, -22.28, 371.34, 2, 1)
  55. MovementLoopAddLocation(NPC, 635.97, -22.28, 371.34, 2, 35,"Action")
  56. MovementLoopAddLocation(NPC, 636.15, -22.27, 372.36, 2, 0)
  57. MovementLoopAddLocation(NPC, 634.32, -22.33, 367.52, 2, 0)
  58. MovementLoopAddLocation(NPC, 633.08, -22.49, 364.66, 2, 0)
  59. MovementLoopAddLocation(NPC, 632.49, -22.42, 359.82, 2, 0)
  60. MovementLoopAddLocation(NPC, 632.47, -22.35, 355.37, 2, 0)
  61. MovementLoopAddLocation(NPC, 630.4, -22.25, 349.16, 2, 1)
  62. MovementLoopAddLocation(NPC, 630.4, -22.25, 349.16, 2, 45,"Action")
  63. MovementLoopAddLocation(NPC, 631.76, -22.32, 350.03, 2, 0)
  64. MovementLoopAddLocation(NPC, 633.94, -22.32, 348.04, 2, 0)
  65. MovementLoopAddLocation(NPC, 638.98, -22.32, 348.53, 2, 0)
  66. MovementLoopAddLocation(NPC, 641.84, -22.32, 344.59, 2, 0)
  67. MovementLoopAddLocation(NPC, 647.28, -22.32, 337.11, 2, 0)
  68. MovementLoopAddLocation(NPC, 645.68, -22.3, 330.46, 2, 1,"FaceStreet1")
  69. MovementLoopAddLocation(NPC, 645.68, -22.3, 330.46, 2, 15,"Action")
  70. MovementLoopAddLocation(NPC, 645.68, -22.3, 330.46, 2, 0)
  71. MovementLoopAddLocation(NPC, 645.3, -22.31, 334.71, 2, 0)
  72. MovementLoopAddLocation(NPC, 641.93, -22.32, 338.45, 2, 0)
  73. MovementLoopAddLocation(NPC, 635.94, -22.32, 346.94, 2, 0)
  74. MovementLoopAddLocation(NPC, 633.09, -22.35, 354.49, 2, 0)
  75. MovementLoopAddLocation(NPC, 635.81, -22.32, 367.49, 2, 0)
  76. MovementLoopAddLocation(NPC, 636.51, -22.29, 369.92, 2, 0)
  77. MovementLoopAddLocation(NPC, 633.29, -22.35, 370.6, 2, 0)
  78. MovementLoopAddLocation(NPC, 626.8, -25.01, 370.04, 2, 0)
  79. MovementLoopAddLocation(NPC, 624.43, -25.28, 371.59, 2, 0)
  80. MovementLoopAddLocation(NPC, 611.43, -26.42, 373.95, 2, 0)
  81. MovementLoopAddLocation(NPC, 602.69, -25.81, 371.17, 2, 0)
  82. MovementLoopAddLocation(NPC, 603.73, -22.57, 363.64, 2, 0)
  83. MovementLoopAddLocation(NPC, 604.67, -20.77, 358.66, 2, 0)
  84. MovementLoopAddLocation(NPC, 604.15, -20.67, 356.58, 2, 0)
  85. MovementLoopAddLocation(NPC, 608.78, -20.6, 352.6, 2, 0)
  86. end