9
3

OverseerScarborough.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/OverseerScarborough.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 05:06:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "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/human_eco_farsea_1/ft/service/guard/human_guard_service_farsea_1_hail_gm_2b42c14f.mp3", "After twelve weeks at sea, bashing the head of a nosey landlubber sounds quite appealing.", "threaten", 3327044476, 1239580287, Spawn)
  16. elseif Choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/human_eco_farsea_1/ft/service/guard/human_guard_service_farsea_1_hail_gm_990c7e98.mp3", "What do ya think you're look'n at?", "glare", 2597948053, 2836713373, Spawn)
  18. elseif Choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/human_eco_farsea_1/ft/service/guard/human_guard_service_farsea_1_hail_gm_a837e4f4.mp3", "Once I'm off duty, I'll be heading straight for the tavern.", "sniff", 1930964396, 481007793, Spawn)
  20. elseif Choice == 4 then
  21. PlayFlavor(NPC, "voiceover/english/human_eco_farsea_1/ft/service/guard/human_guard_service_farsea_1_hail_gm_f9615d93.mp3", "This ain't a show, stranger. Buy your goods and shove off!", "no", 1735700364, 1033324383, Spawn)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function EmoteLoop(NPC)
  28. local emoteChoice = MakeRandomInt(1,5)
  29. if emoteChoice == 1 then
  30. -- ponder
  31. PlayAnimation(NPC, 12030)
  32. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  33. elseif emoteChoice == 2 then
  34. -- sniff
  35. PlayAnimation(NPC, 12329)
  36. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  37. elseif emoteChoice == 3 then
  38. -- frustrated
  39. PlayAnimation(NPC, 11628)
  40. AddTimer(NPC, MakeRandomInt(8000,12000), "EmoteLoop")
  41. elseif emoteChoice == 4 then
  42. -- frustrated
  43. PlayAnimation(NPC, 13019)
  44. AddTimer(NPC, MakeRandomInt(11000,15000), "EmoteLoop")
  45. else
  46. -- tapfoot
  47. PlayAnimation(NPC, 13056)
  48. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  49. end
  50. end