9
3

anawaitingcontestant.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/FightClub/anawaitingcontestant.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.26 12:10:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function aggro(NPC,Spawn)
  9. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_death_gm_9f33cf68.mp3", "Don't break! Hold the line!", "", 3817730547, 2283622719, Spawn, 0)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function spawn(NPC)
  15. SpawnSet(NPC, "action_state", 372)
  16. AddTimer(NPC, math.random(2000,5000), "EmoteLoop")
  17. end
  18. function EmoteLoop(NPC)
  19. SpawnSet(NPC, "action_state", 0)
  20. if not IsInCombat(NPC)then
  21. local choice = MakeRandomInt(1,8)
  22. if choice == 1 then
  23. PlayAnimation(NPC, 1644)
  24. AddTimer(NPC, 1550, "Idle")
  25. elseif choice == 2 then
  26. PlayAnimation(NPC, 1646)
  27. AddTimer(NPC, 2100, "Idle")
  28. elseif choice == 3 then
  29. PlayAnimation(NPC, 1284)
  30. AddTimer(NPC, 2050, "Idle")
  31. elseif choice == 4 then
  32. PlayAnimation(NPC, 3021)
  33. AddTimer(NPC, 2100, "Idle")
  34. elseif choice == 5 then
  35. PlayAnimation(NPC, 1201)
  36. AddTimer(NPC, 1450, "Idle")
  37. elseif choice == 6 then
  38. PlayAnimation(NPC, 1181)
  39. AddTimer(NPC, 1550, "Idle")
  40. elseif choice == 7 then
  41. PlayAnimation(NPC, 4506)
  42. AddTimer(NPC, 3400, "Idle")
  43. else
  44. PlayAnimation(NPC, 3037)
  45. AddTimer(NPC, 2300, "Idle")
  46. end
  47. else
  48. AddTimer(NPC, 3400, "Idle")
  49. end
  50. end
  51. function Idle(NPC)
  52. PlayAnimation(NPC, 372)
  53. SpawnSet(NPC, "action_state", 372)
  54. local timer = MakeRandomInt(500,2500)
  55. AddTimer(NPC, timer, "EmoteLoop")
  56. end