aLonetuskwarriorCheering.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/aLonetuskwarriorCheering.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.04 07:07:20
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/LoneTusk2.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. RandomWeapons(NPC)
  13. OrcArmorCommon(NPC)
  14. Lonetusk(NPC)
  15. AddTimer(NPC,MakeRandomInt(1000,3500),"EmoteLoop")
  16. end
  17. function EmoteLoop(NPC,Spawn)
  18. local zone = GetZone(NPC)
  19. local Dancer = GetSpawnByLocationID(zone,133785473)
  20. if IsInCombat(NPC)==false then
  21. if Dancer ~=nil and IsAlive(Dancer)then
  22. choice = MakeRandomInt(1,3)
  23. if choice == 1 then
  24. PlayFlavor(NPC,"","","cheer",0,0)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC,"","","woowoo",0,0)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC,"","","happy",0,0)
  29. end
  30. else
  31. choice = MakeRandomInt(1,3)
  32. if choice == 1 then
  33. PlayFlavor(NPC,"","","tapfoot",0,0)
  34. elseif choice == 2 then
  35. PlayFlavor(NPC,"","","grumble",0,0)
  36. elseif choice == 3 then
  37. PlayFlavor(NPC,"","","peer",0,0)
  38. end
  39. end
  40. end
  41. AddTimer(NPC, MakeRandomInt(5500,8500),"EmoteLoop")
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end