9
3

Borxx.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/MeetingOfTheMinds/Borxx.lua
  3. Script Author : Neveruary
  4. Script Date : 2021.10.05 12:10:00
  5. Script Purpose : Governs the behavior of Borxx in Meeting of the Minds.
  6. Script Notes : This script contains behavior for Borxx and Broxx. There are 4 adds on Live. This was likely changed since the last collect. I've merged their behaviors here.
  7. : Spell functions de-activated. All spells need implementation.
  8. --]]
  9. -- spells = {Gaze, Glare of Eradication, Gaze of Commandment, Gaze of Writhing Agony}
  10. function spawn(NPC)
  11. end
  12. function aggro(NPC, Spawn)
  13. AddTimer(NPC, math.random(1500,2500), "spellLoop")
  14. end
  15. function spellLoop(NPC, Spawn) -- referred from aggro. Loopback function for spellcasts.
  16. AddTimer(NPC, math.random(1500,2500), "spellChoice")
  17. end
  18. function spellChoice(NPC, Spawn) -- select a spell from table.
  19. local hated = GetMostHated(NPC)
  20. if hated ~= nil then
  21. FaceTarget(NPC, hated)
  22. -- CastSpell(hated, spells[math.random(#spells)], 3, NPC)
  23. end
  24. AddTimer(NPC, math.random(1500, 2500), "spellLoop")
  25. end
  26. function borxxConvo1(NPC, Spawn)
  27. local overlord = GetSpawn(NPC, 5560003)
  28. Say(NPC, "You lack dedication. I owe you nothing.")
  29. AddTimer(overlord, 3500, "overlordConvo2")
  30. end
  31. function borxxConvo2(NPC, Spawn)
  32. local overlord = GetSpawn(NPC, 5560003)
  33. FaceTarget(NPC, overlord)
  34. Say(NPC, "Your scheming will lead to ruin. If you wish my aid, you know the price.")
  35. AddTimer(overlord, 3500, "overlordConvo3")
  36. end
  37. function borxxConvo3(NPC, Spawn)
  38. local overlord = GetSpawn(NPC, 5560003)
  39. FaceTarget(NPC, overlord)
  40. Say(NPC, "If you wish my aid, you know the price.")
  41. AddTimer(overlord, 3500, "overlordConvo4")
  42. end
  43. function borxxConvo4(NPC, Spawn)
  44. local overlord = GetSpawn(NPC, 5560003)
  45. FaceTarget(NPC, overlord)
  46. Say(NPC, "If you wish my aid, you know the price.")
  47. AddTimer(overlord, 3500, "overlordConvo5")
  48. end
  49. function borxxConvo5(NPC, Spawn)
  50. local overlord = GetSpawn(NPC, 5560003)
  51. local hated = GetMostHated(overlord)
  52. local braxx = GetSpawn(NPC, 5560004)
  53. local brixx = GetSpawn(NPC, 5560005)
  54. FaceTarget(NPC, overlord)
  55. Say(NPC, "So be it.")
  56. Attack(NPC, hated)
  57. Attack(braxx, hated)
  58. Attack(brixx, hated)
  59. end
  60. function hailed(NPC, Spawn)
  61. end
  62. function respawn(NPC)
  63. spawn(NPC)
  64. end