9
3

TVek.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. choice = math.random(1, 4)
  14. if choice == 1 then
  15. 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)
  16. elseif choice == 2 then
  17. 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)
  18. elseif choice == 3 then
  19. 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)
  20. elseif choice == 4 then
  21. 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)
  22. end
  23. end
  24. function waypoints(NPC)
  25. MovementLoopAddLocation(NPC, 25.19, 3, 64.33, 2, 0)
  26. MovementLoopAddLocation(NPC, 4.37, 3, 70.65, 2, 0)
  27. MovementLoopAddLocation(NPC, 0.1, 3, 58.01, 2, 0)
  28. MovementLoopAddLocation(NPC, 18.83, 3, 51.84, 2, 0)
  29. end