What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Request] Implementing Riposte to rogue's CC.

strix

New Member
Joined
Feb 13, 2010
Messages
442
Reaction score
18
Hello,

First of all i'm not good in programming myself, but its good enough to editing code to suit my play style.

I've made some tries in implementing Riposte into MRogue , but as i see SpellManager.CanCastSpell("Riposte") seems to return true every single time.

Code:
void Riposte()
        {
            if (Me.GotTarget && targetDistance <= 5 && SpellManager.CanCastSpell("Riposte"))
            {
                SpellManager.CastSpell("Riposte");
                slog("Riposte.");
            }
        }

Nothing happens in-game but still it prints "Riposte." in Log tab and "CastSpellById: 14251 || Took XXX ms to cast:Riposte" in Debug Log.

I thought of something like that:
1. ParryTimer = reset&start on parrying attack (or "was parried by CharacterName" appearing in CombatLog)
2. Replacing CanCastSpell by: (ParryTimer <= 2 * 1000) && SpellManager.KnownSpells["Riposte"].Cooldown

I have totally no idea how to deal with parrying, could somebody help me with it?
 
Last edited:
Back
Top