9
3

acuriouspatron.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/FermentedGrape/acuriouspatron.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.04 03:12:25
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. end
  12. function hailed(NPC, Spawn)
  13. local zone = GetZone(NPC)
  14. local Pirate1 = GetSpawnByLocationID(zone, 133781037) --FIRSTMATE
  15. local Pirate2 = GetSpawnByLocationID(zone, 133781036) --CUTTER
  16. local Pirate3 = GetSpawnByLocationID(zone, 133781038)
  17. local Pirate4 = GetSpawnByLocationID(zone, 133781039)
  18. local Pirate5 = GetSpawnByLocationID(zone, 133781035)
  19. local Pirate6 = GetSpawnByLocationID(zone, 133781034)
  20. local Captain = GetSpawnByLocationID(zone, 133781033)
  21. local Bartender = GetSpawnByLocationID(zone, 133781031)
  22. local Bard = GetSpawnByLocationID(zone, 133781032)
  23. local Bobick = GetSpawnByLocationID(zone, 133781027)
  24. 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
  25. FaceTarget(NPC, Spawn)
  26. local check = MakeRandomInt(1,2)
  27. if check == 1 then
  28. PlayFlavor(NPC, "voiceover/english/halfling_eco_race_good/ft/eco/good/halfling_eco_race_good_hail_gm_34b03729.mp3", "I'm sure we've met some place before. You look so familiar!", "ponder", 1550233671, 4104979611, Spawn)
  29. elseif check == 2 then
  30. PlayFlavor(NPC, "voiceover/english/halfling_eco_race_good/ft/eco/good/halfling_eco_race_good_hail_gm_74b0fd50.mp3", "A good joke deserves a good audiance I always say.", "agree", 95315026, 2602312757, Spawn)
  31. end
  32. else
  33. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_cf902b40.mp3", "Get on now! There is plenty of work to be done. Maybe you should lend a hand if you feel up to it.", "point", 1396062221, 310311489, Spawn)
  34. end
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end