9
3

amenacingraiderHeroic.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/amenacingraiderHeroic.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.10.27 08:10:03
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseOgre1.lua")
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. SpawnSet(NPC, "heroic", 1)
  13. local Level = GetLevel(NPC)
  14. local level1 = 7
  15. local level2 = 8
  16. local difficulty1 = 6
  17. local hp1 = 200
  18. local power1 = 90
  19. local difficulty2 = 6
  20. local hp2 = 240
  21. local power2 = 100
  22. if Level == level1 then
  23. SpawnSet(NPC, "difficulty", difficulty1)
  24. SpawnSet(NPC, "hp", hp1)
  25. SpawnSet(NPC, "power", power1)
  26. elseif Level == level2
  27. then
  28. SpawnSet(NPC, "difficulty", difficulty2)
  29. SpawnSet(NPC, "hp", hp2)
  30. SpawnSet(NPC, "power", power2)
  31. end
  32. AddTimer(NPC,MakeRandomInt(3500,10000),"EmoteLoop")
  33. end
  34. function EmoteLoop(NPC)
  35. if not IsInCombat(NPC) and GetRunbackDistance(NPC)<2 then
  36. local choice = MakeRandomInt(1,5)
  37. if choice == 1 then
  38. PlayFlavor(NPC,"","","sniff",0,0)
  39. elseif choice == 2 then
  40. PlayFlavor(NPC,"","","feint",0,0)
  41. elseif choice == 3 then
  42. PlayFlavor(NPC,"","","tapfoot",0,0)
  43. elseif choice == 4 then
  44. PlayFlavor(NPC,"","","glare",0,0)
  45. elseif choice == 5 then
  46. PlayFlavor(NPC,"","","frustrated",0,0)
  47. end
  48. end
  49. AddTimer(NPC,MakeRandomInt(6500,12000),"EmoteLoop")
  50. end
  51. function hailed(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. end
  54. function respawn(NPC)
  55. spawn(NPC)
  56. end