LonetuskSparring.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/LonetuskSparring.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.04 08:07:34
  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(2500,4000), "AttackAnim")
  16. end
  17. function hailed(NPC, Spawn)
  18. -- FaceTarget(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function aggro(NPC,Spawn)
  24. SpawnSet(NPC, "visual_state", 0)
  25. end
  26. function AttackAnim(NPC,Spawn)
  27. if IsInCombat(NPC) == false then
  28. choice = MakeRandomInt(1,7)
  29. if choice == 1 then
  30. PlayFlavor(NPC,"","","1h_sword_ouch_down",0,0)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC,"","","1h_sword_dodge_forehand",0,0)
  33. elseif choice == 3 then
  34. PlayFlavor(NPC,"","","kick",0,0)
  35. elseif choice == 4 then
  36. PlayFlavor(NPC,"","","1h_sword_parry_backhand",0,0)
  37. elseif choice == 5 then
  38. PlayFlavor(NPC,"","","pugilist_attack",0,0)
  39. elseif choice == 6 then
  40. PlayFlavor(NPC,"","","pugilist_attack",0,0)
  41. elseif choice == 7 then
  42. PlayFlavor(NPC,"","","pugilist_attack",0,0)
  43. end
  44. end
  45. AddTimer(NPC, MakeRandomInt(2500,4000), "AttackAnim")
  46. end