CaptainPercius.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/CaptainPercius.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.08 03:09:39
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 3000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1,4)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2088886924, 3736631596, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 3586563752, 1865874525, Spawn)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3027655540, 4120709915, Spawn)
  20. else
  21. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 739074204, 2925833259, Spawn)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function EmoteLoop(NPC)
  28. local emoteChoice = MakeRandomInt(1,2)
  29. if emoteChoice == 1 then
  30. -- ponder
  31. PlayAnimation(NPC, 12030)
  32. AddTimer(NPC, MakeRandomInt(14000,15000), "EmoteLoop")
  33. else
  34. -- sniff
  35. PlayAnimation(NPC, 12329)
  36. AddTimer(NPC, MakeRandomInt(6000,8000), "EmoteLoop")
  37. end
  38. end