9
3

aGiantslayerbasherHeroic.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/TheSprawl_Classic/aGiantslayerbasherHeroic.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.11.18 10:11:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. ogre(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