9
3

Valerie.lua 3.6 KB

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