9
3

Borxx.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. FaceTarget(NPC, overlord)
  29. Say(NPC, "You lack dedication. I owe you nothing.")
  30. AddTimer(overlord, 3500, "overlordConvo2")
  31. end
  32. function borxxConvo2(NPC, Spawn)
  33. local overlord = GetSpawn(NPC, 5560003)
  34. FaceTarget(NPC, overlord)
  35. Say(NPC, "Your scheming will lead to ruin. If you wish my aid, you know the price.")
  36. AddTimer(overlord, 3500, "overlordConvo3")
  37. end
  38. function borxxConvo3(NPC, Spawn)
  39. local overlord = GetSpawn(NPC, 5560003)
  40. FaceTarget(NPC, overlord)
  41. Say(NPC, "If you wish my aid, you know the price.")
  42. AddTimer(overlord, 3500, "overlordConvo4")
  43. end
  44. function borxxConvo4(NPC, Spawn)
  45. local overlord = GetSpawn(NPC, 5560003)
  46. FaceTarget(NPC, overlord)
  47. Say(NPC, "If you wish my aid, you know the price.")
  48. AddTimer(overlord, 3500, "overlordConvo5")
  49. end
  50. function borxxConvo5(NPC, Spawn)
  51. local overlord = GetSpawn(NPC, 5560003)
  52. local hated = GetMostHated(overlord)
  53. local braxx = GetSpawn(NPC, 5560004)
  54. local brixx = GetSpawn(NPC, 5560005)
  55. FaceTarget(NPC, overlord)
  56. Say(NPC, "So be it.")
  57. Attack(NPC, hated)
  58. Attack(braxx, hated)
  59. Attack(brixx, hated)
  60. end
  61. function hailed(NPC, Spawn)
  62. end
  63. function respawn(NPC)
  64. spawn(NPC)
  65. end