CaptainRockbelly.lua 930 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/CaptainRockbelly.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 12:09:35
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,5000,"Callout")
  10. AddTimer(NPC,6000,"AliveCheck")
  11. end
  12. function hailed(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function aggro(NPC)
  18. PlayFlavor(NPC, "voiceover/english/captain_rockbelly/tutorial_island02_fvo_ghostshout.mp3", "Get youz away from meez treasures! Dis meez loots!", "", 3040387050, 4243014787)
  19. end
  20. function Callout(NPC)
  21. PlayFlavor(NPC, "voiceover/english/captain_rockbelly/tutorial_island02_fvo_ghostshout.mp3", "Get youz away from meez treasures! Dis meez loots!", "", 3040387050, 4243014787)
  22. end
  23. function AliveCheck(NPC)
  24. if not IsInCombat(NPC) then
  25. Despawn(NPC)
  26. else
  27. AddTimer(NPC,9000,"AliveCheck")
  28. end
  29. end