TVek.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/TVek.lua
  3. Script Purpose : T`Vek <Guard>
  4. Script Author : John Adams
  5. Script Date : 2008.09.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if GetFactionAmount(Spawn,12)<0 then
  16. else
  17. FaceTarget(NPC, Spawn)
  18. GenericGuardHail(NPC,Spawn)
  19. end
  20. end
  21. function spawn(NPC)
  22. waypoints(NPC)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. choice = math.random(1, 4)
  27. if choice == 1 then
  28. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 3330899926, 205777100, Spawn)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 3071777755, 1811086423, Spawn)
  31. elseif choice == 3 then
  32. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_870ae3cb.mp3", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 3455786340, 1963116786, Spawn)
  33. elseif choice == 4 then
  34. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 3432620709, 3039361332, Spawn)
  35. end
  36. end
  37. --[[function waypoints(NPC)
  38. MovementLoopAddLocation(NPC, 25.19, 3, 64.33, 2, 0)
  39. MovementLoopAddLocation(NPC, 4.37, 3, 70.65, 2, 0)
  40. MovementLoopAddLocation(NPC, 0.1, 3, 58.01, 2, 0)
  41. MovementLoopAddLocation(NPC, 18.83, 3, 51.84, 2, 0)
  42. end]]--
  43. function waypoints(NPC)
  44. MovementLoopAddLocation(NPC, 1.29, 3, 66.65, 2, 0)
  45. MovementLoopAddLocation(NPC, -0.38, 3, 59.16, 2, 0)
  46. MovementLoopAddLocation(NPC, 0.92, 3, 57.72, 2, 0)
  47. MovementLoopAddLocation(NPC, 16.06, 3, 52.88, 2, 0)
  48. MovementLoopAddLocation(NPC, 18.96, 3, 52.06, 2, 0)
  49. MovementLoopAddLocation(NPC, 22.45, 3, 63.83, 2, 0)
  50. MovementLoopAddLocation(NPC, 22.77, 3, 64.92, 2, 0)
  51. MovementLoopAddLocation(NPC, 14.45, 3, 67.2, 2, 1)
  52. MovementLoopAddLocation(NPC, 14.45, 3, 67.2, 2, 8,"Action")
  53. MovementLoopAddLocation(NPC, 14.13, 3, 66.82, 2, 0)
  54. MovementLoopAddLocation(NPC, 5.44, 3, 70.42, 2, 0)
  55. MovementLoopAddLocation(NPC, 1.23, 3, 57.31, 2, 0)
  56. MovementLoopAddLocation(NPC, 8.91, 3, 54.63, 2, 0)
  57. MovementLoopAddLocation(NPC, 8.23, 3, 49.72, 2, 0)
  58. MovementLoopAddLocation(NPC, 3.85, 2.9, 31.53, 2, 1)
  59. MovementLoopAddLocation(NPC, 3.85, 2.9, 31.53, 2, 12,"Action")
  60. MovementLoopAddLocation(NPC, -8.65, 3, 32.61, 2, 0)
  61. MovementLoopAddLocation(NPC, -23.09, 4.23, 27.94, 2, 0)
  62. MovementLoopAddLocation(NPC, -31.58, 4.21, 24.89, 2, 0)
  63. MovementLoopAddLocation(NPC, -50.67, 4.03, 14.59, 2, 0)
  64. MovementLoopAddLocation(NPC, -53.8, 3.54, 12.12, 2, 0)
  65. MovementLoopAddLocation(NPC, -54.69, 2.43, 4.83, 2, 0)
  66. MovementLoopAddLocation(NPC, -48.07, -0.82, -17.21, 2, 1)
  67. MovementLoopAddLocation(NPC, -48.07, -0.82, -17.21, 2, 12,"Action")
  68. MovementLoopAddLocation(NPC, -55.14, 2.4, 3.92, 2, 0)
  69. MovementLoopAddLocation(NPC, -53.15, 3.6, 12.96, 2, 0)
  70. MovementLoopAddLocation(NPC, -50.15, 3.98, 15.59, 2, 0)
  71. MovementLoopAddLocation(NPC, -33.13, 4.29, 23.86, 2, 0)
  72. MovementLoopAddLocation(NPC, -24.18, 4.24, 28.21, 2, 0)
  73. MovementLoopAddLocation(NPC, -13.78, 3.35, 31.61, 2, 0)
  74. MovementLoopAddLocation(NPC, -4.83, 2.99, 32.58, 2, 0)
  75. MovementLoopAddLocation(NPC, 2.5, 2.87, 30.41, 2, 1)
  76. MovementLoopAddLocation(NPC, 2.5, 2.87, 30.41, 2, 12,"Action")
  77. MovementLoopAddLocation(NPC, 13.95, 2.15, 26.28, 2, 0)
  78. MovementLoopAddLocation(NPC, 17.89, 1.86, 24.5, 2, 0)
  79. MovementLoopAddLocation(NPC, 32.81, 0.12, 8.92, 2, 0)
  80. MovementLoopAddLocation(NPC, 37.12, -0.91, 1.94, 2, 0)
  81. MovementLoopAddLocation(NPC, 38.32, -1.48, -4.46, 2, 1)
  82. MovementLoopAddLocation(NPC, 38.32, -1.48, -4.46, 2, 12,"Action")
  83. MovementLoopAddLocation(NPC, 38.32, -1.48, -4.46, 2, 0)
  84. MovementLoopAddLocation(NPC, 36.33, -0.73, 3.53, 2, 0)
  85. MovementLoopAddLocation(NPC, 33.25, 0.07, 8.65, 2, 0)
  86. MovementLoopAddLocation(NPC, 25.22, 1.1, 16.3, 2, 0)
  87. MovementLoopAddLocation(NPC, 18.53, 1.85, 24.14, 2, 0)
  88. MovementLoopAddLocation(NPC, 11.12, 2.33, 27.51, 2, 0)
  89. MovementLoopAddLocation(NPC, 3.96, 2.85, 30.59, 2, 0)
  90. MovementLoopAddLocation(NPC, 7.53, 3, 43.5, 2, 0)
  91. MovementLoopAddLocation(NPC, 8.56, 3, 51.12, 2, 0)
  92. MovementLoopAddLocation(NPC, 8.65, 3, 54.77, 2, 0)
  93. MovementLoopAddLocation(NPC, 1.77, 3, 57.11, 2, 0)
  94. MovementLoopAddLocation(NPC, 1.67, 3, 73.75, 2, 1)
  95. MovementLoopAddLocation(NPC, 1.67, 3, 73.75, 2, 10,"Action")
  96. end
  97. function Action(NPC)
  98. local choice = MakeRandomInt(1, 4)
  99. if choice == 1 then
  100. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn)
  101. elseif choice == 2 then
  102. PlayFlavor(NPC, "", "", "listen", 0, 0, Spawn)
  103. elseif choice == 3 then
  104. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  105. elseif choice == 4 then
  106. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  107. end
  108. end