aconcentratingchessplayer.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/FermentedGrape/aconcentratingchessplayer.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.04 03:12:23
  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. PlayFlavor(NPC, "voiceover/english/scribe_ommanoden/qey_village02/100_scribe_ommanoden_multhail1_becd50b2.mp3", "Can't you see I'm busy organizing my collections of wisdom? I've no time for chatting. Leave me alone!", "no", 3010394589, 1905118172, Spawn)
  27. else
  28. SendMessage(Spawn,"The chess player doesn't seem to acknowledge your pressence.")
  29. end
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end