9
3

OverseerScarborough.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. SetInfoStructString(NPC, "action_state", "mood_angry")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local Choice = MakeRandomInt(1,4)
  15. if Choice == 1 then
  16. 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)
  17. elseif Choice == 2 then
  18. 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)
  19. elseif Choice == 3 then
  20. 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)
  21. elseif Choice == 4 then
  22. 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)
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function EmoteLoop(NPC)
  29. local emoteChoice = MakeRandomInt(1,5)
  30. if emoteChoice == 1 then
  31. -- ponder
  32. PlayAnimation(NPC, 12030)
  33. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  34. elseif emoteChoice == 2 then
  35. -- sniff
  36. PlayAnimation(NPC, 12329)
  37. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  38. elseif emoteChoice == 3 then
  39. -- frustrated
  40. PlayAnimation(NPC, 11628)
  41. AddTimer(NPC, MakeRandomInt(8000,12000), "EmoteLoop")
  42. elseif emoteChoice == 4 then
  43. -- frustrated
  44. PlayAnimation(NPC, 13019)
  45. AddTimer(NPC, MakeRandomInt(11000,15000), "EmoteLoop")
  46. else
  47. -- tapfoot
  48. PlayAnimation(NPC, 13056)
  49. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  50. end
  51. end