aperplexedbartender.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/FermentedGrape/aperplexedbartender.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.04 05:12:55
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. end
  12. local greetingsTable = { "voiceover/english/voice_emotes/greetings/greetings_1_1012.mp3",
  13. "voiceover/english/voice_emotes/greetings/greetings_2_1012.mp3",
  14. "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3"};
  15. function hailed(NPC, Spawn)
  16. local zone = GetZone(NPC)
  17. local Pirate1 = GetSpawnByLocationID(zone, 133781037) --FIRSTMATE
  18. local Pirate2 = GetSpawnByLocationID(zone, 133781036) --CUTTER
  19. local Pirate3 = GetSpawnByLocationID(zone, 133781038)
  20. local Pirate4 = GetSpawnByLocationID(zone, 133781039)
  21. local Pirate5 = GetSpawnByLocationID(zone, 133781035)
  22. local Pirate6 = GetSpawnByLocationID(zone, 133781034)
  23. local Captain = GetSpawnByLocationID(zone, 133781033)
  24. local Bartender = GetSpawnByLocationID(zone, 133781031)
  25. local Bard = GetSpawnByLocationID(zone, 133781032)
  26. local Bobick = GetSpawnByLocationID(zone, 133781027)
  27. if not IsAlive(Pirate1) and not IsAlive(Pirate2) and not IsAlive(Pirate3) and not IsAlive(Pirate4) and not IsAlive(Pirate5) and not IsAlive(Pirate6) and not IsAlive(Captain) then
  28. FaceTarget(NPC, Spawn)
  29. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/highelf/highelf_eco_good_1_hail_gm_57b9ce4e.mp3", "I am sorry. I am burdened with my own thoughts, and haven't a moment to converse.", "no", 1692526278, 2332878998, Spawn)
  30. else
  31. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/highelf/highelf_eco_good_1_hail_gm_eb4f8f5d.mp3", "I hope you have been sent by someone of importance. I'm quite busy.", "grumble", 111891212, 1507953677, Spawn)
  32. end
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end