9
3

amenacingraiderDarkElfHeroic.lua 2.0 KB

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