aGruttoothchampion.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/GrimgashsLair/aGruttoothchampion.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.23 12:09:41
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. EmoteLoop(NPC,Spawn)
  10. end
  11. function EmoteLoop(NPC,Spawn)
  12. if IsInCombat(NPC) == false and HasMoved(NPC)==false then
  13. choice = MakeRandomInt(1,10)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn, 0)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn, 0)
  20. elseif choice == 4 then
  21. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  22. elseif choice == 5 then
  23. PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
  24. elseif choice == 6 then
  25. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  26. elseif choice == 7 then
  27. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  28. elseif choice == 8 then
  29. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn, 0)
  30. elseif choice == 9 then
  31. PlayFlavor(NPC, "", "", "brandish", 0, 0, Spawn, 0)
  32. elseif choice == 10 then
  33. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  34. end
  35. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  36. else
  37. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  38. end
  39. end
  40. function respawn(NPC)
  41. spawn(NPC)
  42. end