aBloodsaberwatcher.lua 924 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/aBloodsaberwatcher.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.27 05:05:41
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseTroll1.lua")
  9. function spawn(NPC)
  10. AddTimer(NPC, 5000, "EmoteLoop")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function EmoteLoop(NPC)
  19. local emoteChoice = MakeRandomInt(1,3)
  20. if emoteChoice == 1 then
  21. PlayFlavor(NPC, "","","peer",0,0)
  22. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  23. elseif emoteChoice == 2 then
  24. PlayFlavor(NPC, "","","doubletake",0,0)
  25. AddTimer(NPC, MakeRandomInt(10000,15000), "EmoteLoop")
  26. else
  27. PlayFlavor(NPC, "","", "sniff",0,0)
  28. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  29. end
  30. end