9
3

aGiantslayerbruteHeroic.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/TheSprawl_Classic/aGiantslayerbruteHeroic.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.11.16 09:11:42
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. troll(NPC)
  12. SpawnSet(NPC, "heroic", 1)
  13. AddTimer(NPC,MakeRandomInt(3500,10000),"EmoteLoop")
  14. end
  15. function EmoteLoop(NPC)
  16. if not IsInCombat(NPC) and GetRunbackDistance(NPC)<2 then
  17. local choice = MakeRandomInt(1,5)
  18. if choice == 1 then
  19. PlayFlavor(NPC,"","","scheme",0,0)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC,"","","brandish",0,0)
  22. elseif choice == 3 then
  23. PlayFlavor(NPC,"","","tapfoot",0,0)
  24. elseif choice == 4 then
  25. PlayFlavor(NPC,"","","swear",0,0)
  26. elseif choice == 5 then
  27. PlayFlavor(NPC,"","","ponder",0,0)
  28. end
  29. end
  30. AddTimer(NPC,MakeRandomInt(6500,12000),"EmoteLoop")
  31. end
  32. function hailed(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end