How To: Get your BST to cast "Ferocity" and "Ferocity of Irionu"

Discussion in 'E3' started by mrelephant, Mar 23, 2019.

  1. mrelephant

    mrelephant Orc Pawn

    Messages:
    19
    Full disclosure, this solution is a hack. It's terrible code which I would never write in a real life application. The reason that you can't get your beastlord to cast "Ferocity" is because the MQ2Cast plugin looks for the spell by name, and it finds "Ferocity of Irionu" first. Even if you try casting by spell ID it still casts Irionu instead!! WTF!

    Since you likely only have 1 or 2 beastlords in your raid, and the Ferocity spell gems are fixed in your bot ini files (because of the recast timer), here is my solution:

    In e3_Casting.inc, in the :cast_spell section, find the section that looks something like this:

    /if (${${ArrayName}[${ArrayIndex},${iTargetType}].Equal[Self]}) {
    /casting "${pendingCastID}|${pendingType}"
    } else {
    /casting "${pendingCastID}|${pendingType}" "-targetid|${targetID}"
    }

    And change it to this:

    /if (${${ArrayName}[${ArrayIndex},${iTargetType}].Equal[Self]}) {
    /casting "${pendingCastID}|${pendingType}"
    } else {
    /if (${pendingCastID} == 3463) {
    /squelch /target id ${targetID}
    /delay 5 ${Target.ID} == ${targetID}
    /cast
    9
    } else {
    /casting "${pendingCastID}|${pendingType}" "-targetid|${targetID}"
    }
    }

    3463 is the Ferocity spell ID, and the /cast 9 is whatever gem # you set Ferocity to in your bot ini. This also assumes that you aren't casting Ferocity on the beastlord itself. Again, it's terrible programming, but it's a quick dirty fix to get around a pretty major bug in MQ2Cast.

    Enjoy!
     
  2. doeda

    doeda Orc Centurion

    Messages:
    89
    the buff stacks?
     
  3. Hive

    Hive Froglok Krup Watcher

    Messages:
    340
    The buffs do not stack, but being able to cast both doubles the number of melee you can boost.

    I made a bst recently and I did not have to make any edits at all. He simply naturally cast both when I put the bot/combat buff lines in his ini as you would do normally. I did edit the spells alias list and deleted the ferocity=ferocity of irionu line, not sure if that is needed- I did it before I even tried.

    I use e3 7
     
  4. mackal

    mackal Pyrilen Fireblade

    Messages:
    2,267
    Just put Ferocity in a lower gem slot than Ferocity of Irionu. (My BST has Ferocity in gem6 and Ferocity of Irionu in gem7 and it works fine)
     
  5. cream

    cream GM Staff Member

    Messages:
    239
    both fero setup in my bst example ini now
     
  6. Hive

    Hive Froglok Krup Watcher

    Messages:
    340
    upload_2019-8-17_15-27-54.png

    Code:
    Combat Buff=Ferocity of Irionu/Kirisawa/Gem|2
    Combat Buff=Ferocity of Irionu/Saicho/Gem|2
    Combat Buff=Ferocity of Irionu/Jisho/Gem|2
    Combat Buff=Ferocity of Irionu/Genjuro/Gem|2
    Combat Buff=Ferocity of Irionu/Rota/Gem|2
    Bot Buff=Ferocity of Irionu/Kirisawa/Gem|2
    Bot Buff=Ferocity of Irionu/Saicho/Gem|2
    Bot Buff=Ferocity of Irionu/Jisho/Gem|2
    Bot Buff=Ferocity of Irionu/Genjuro/Gem|2
    Bot Buff=Ferocity of Irionu/Rota/Gem|2
    Combat Buff=Ferocity/Faced/Gem|1
    Combat Buff=Ferocity/Stabetha/Gem|1
    Combat Buff=Ferocity/Autolycus/Gem|1
    Combat Buff=Ferocity/Flexo/Gem|1
    Combat Buff=Ferocity/Bluff/Gem|1
    Bot Buff=Ferocity/Faced/Gem|1
    Bot Buff=Ferocity/Stabetha/Gem|1
    Bot Buff=Ferocity/Autolycus/Gem|1
    Bot Buff=Ferocity/Flexo/Gem|1
    Bot Buff=Ferocity/Bluff/Gem|1
     
  7. Minorai

    Minorai Orc Pawn

    Messages:
    7
    If your bst is not casting both simply put quotes around the spell name in the ini lines. Worked fine for me.
     
  8. Merstin

    Merstin Orc Centurion

    Messages:
    54
    Just wanted to respond to this thread. Modifying e3_Casting.inc per OP is not needed, however I found the following:

    Both Ferocity and Ferocity of Irionu will not cast regardless of gem order, location, quotes around spell name. To fix this, 1st remove both lines of fero / ferocity from spell alias, now Ferocity of Irionu will start to cast, but Ferocity will not. To fix that add quotes around the "Ferocity" spell name in the ini.

    Code:
    '''Combat Buff=Ferocity of Irionu/Fleetfist/Gem|7/MinMana|30
    Combat Buff=Ferocity of Irionu/Steeldawn/Gem|7/MinMana|30
    Combat Buff=Ferocity of Irionu/Steelyfist/Gem|7/MinMana|30
    Combat Buff=Ferocity of Irionu/Spinit/Gem|7/MinMana|30
    Combat Buff=Ferocity of Irionu/Zerketta/Gem|7/MinMana|30
    Bot Buff=Ferocity of Irionu/Fleetfist/Gem|7/MinMana|30
    Bot Buff=Ferocity of Irionu/Steeldawn/Gem|7/MinMana|30
    Bot Buff=Ferocity of Irionu/Steelyfist/Gem|7/MinMana|30
    Bot Buff=Ferocity of Irionu/Spinit/Gem|7/MinMana|30
    Bot Buff=Ferocity of Irionu/Zerketta/Gem|7/MinMana|30
    Combat Buff="Ferocity"/Ragelet/Gem|6/MinMana|30
    Combat Buff="Ferocity"/Stabsjoo/Gem|6/MinMana|30
    Combat Buff="Ferocity"/Stabsngrabs/Gem|6/MinMana|30
    Combat Buff="Ferocity"/Foresty/Gem|6/MinMana|30
    Combat Buff="Ferocity"/Strumin/Gem|6/MinMana|30
    Bot Buff="Ferocity"/Ragelet/Gem|6/MinMana|30
    Bot Buff="Ferocity"/Stabsjoo/Gem|6/MinMana|30
    Bot Buff="Ferocity"/Stabsngrabs/Gem|6/MinMana|30
    Bot Buff="Ferocity"/Foresty/Gem|6/MinMana|30
    Bot Buff="Ferocity"/Strumin/Gem|6/MinMana|30'''
     
    Last edited: May 2, 2022