Rogue Poisons not working with ExpGroup On/Off

Discussion in 'E3' started by mrelephant, Dec 25, 2017.

  1. mrelephant

    mrelephant Orc Pawn

    Messages:
    19
    Hey Cream,

    Got a quick fix for rogue poisons not functioning with ExpGroup On/Off.

    Green = Add
    Yellow = Change
    Red = Remove


    E3 Version: 7.0
    File: e3_Basics.inc

    Within the EVENT_exp_group method:

    /if (${Me.Class.ShortName.Equal[Rog]}) {
    /varset strikeDisc 0
    /declare poisonInUse string local
    /declare i int local
    :remove_poisons
    /if (${Defined[poisonPR]}) {
    /if (${Bool[${Me.Buff[${FindItem[=${poisonPR}].Spell}]}]}) /varset poisonInUse ${poisonPR}
    }
    /if (${Defined[poisonFR]}) {
    /if (${Bool[${Me.Buff[${FindItem[=${poisonFR}].Spell}]}]}) /varset poisonInUse ${poisonFR}
    }
    /if (${Defined[poisonCR]}) {
    /if (${Bool[${Me.Buff[${FindItem[=${poisonCR}].Spell}]}]}) /varset poisonInUse ${poisonCR}
    }
    /if (${Defined[CombatBuffs2D]}) {
    /for i 1 to ${CombatBuffs2D.Size[1]}
    /if (${CombatBuffs2D[${i},${iCastName}].Find[${poisonInUse}]}) {
    /call RemoveSpellArrayElement "CombatBuffs2D" ${i}
    /goto :remove_poisons
    }
    /next i
    }


    Then it works! :)
     
    Last edited: Dec 26, 2017
  2. Crowflow

    Crowflow Orc Pawn

    Messages:
    21
    Great! Thank you for the fix!
     
  3. Hive

    Hive Froglok Krup Watcher

    Messages:
    340
    I want to use this, but how does the PoisonPR etc. work? I have PoisonPR=Bite of the Shissar XII in each rog ini and the other two commented out. They aren't using them automatically so is there a command for it? Previously I just had their poisons in as a self buff.

    Thanks.
     
  4. mackal

    mackal Pyrilen Fireblade

    Messages:
    2,267
    Set a default poison to use in the self buffs/combat buffs then the other entries are for /spellset