e3 begging for item casts fix

Discussion in 'E3' started by mackal, Aug 16, 2018.

  1. mackal

    mackal Pyrilen Fireblade

    Messages:
    2,267
    In e3 Includes/e3_BegForBuffs.inc in the sub event_Chat replace

    Code:
    | Check Beneficial
    /if (!${Spell[${whatToCast}].SpellType.Find[Beneficial]}) {
    /if (${ChatChannel.Equal[TELL]}) {
    /tell ${ChatSender} I cannot cast ${whatToCast} on you, it is not beneficial
    } else {
    /g I cannot cast ${whatToCast} on you, it is not beneficial
    }
    /return
    }
    | Check target type
    /if (${Spell[${whatToCast}].TargetType.Find[self]}) {
    /if (${ChatChannel.Equal[TELL]}) {
    /tell ${ChatSender} I cannot cast ${whatToCast} on you, it is self only
    } else {
    /g I cannot cast ${whatToCast} on you, it is self only
    }
    /return
    }
    with

    Code:
        | Check Beneficial
        /if (!${begBuffArray2D[1,${iSpellType}].Find[Beneficial]}) {
          /if (${ChatChannel.Equal[TELL]}) {
            /tell ${ChatSender} I cannot cast ${whatToCast} on you, it is not beneficial
          } else {
            /g I cannot cast ${whatToCast} on you, it is not beneficial
          }
          /return
        }
        | Check target type
        /if (${begBuffArray2D[1,${iTargetType}].Find[self]}) {
          /if (${ChatChannel.Equal[TELL]}) {
            /tell ${ChatSender} I cannot cast ${whatToCast} on you, it is self only
          } else {
            /g I cannot cast ${whatToCast} on you, it is self only
          }
          /return
        }