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

SpellManager.CanCast problem What am i doing wrong?

renzorx

New Member
Joined
Jan 15, 2010
Messages
92
Reaction score
0
im trying to make a maxdps cc/plugin for unholy pve, singletarget first, still figuring out how to write this stuff! if it performs well ill share it.

else if (SpellManager.CanCast("Death Coil") && (Me.CurrentRunicPower <= 120))

What i want is to save runic power until i have about 100-130 before it uses death coil, i dont know if it is possible to make it a dump of some kind, and only use death coil when the sudden doom buff/effect proccs. how do i add the sudden doom effect to this? its a buff that makes the next deathcoil cost no runic power.
 
im trying to make a maxdps cc/plugin for unholy pve, singletarget first, still figuring out how to write this stuff! if it performs well ill share it.

else if (SpellManager.CanCast("Death Coil") && (Me.CurrentRunicPower <= 120))

What i want is to save runic power until i have about 100-130 before it uses death coil, i dont know if it is possible to make it a dump of some kind, and only use death coil when the sudden doom buff/effect proccs. how do i add the sudden doom effect to this? its a buff that makes the next deathcoil cost no runic power.
if (Me.ActiveAuras.ContainsKey("Sudden Doom") && SpellManager.CanCast("Death Coil"))
{
SpellManger.CastSpell("Death Coil");
}

that should do it.
 
Thanks that did the trick but, how do i make it depended on runic power? do i use Me.CurrentRunicPower, but it dont seem to work very well, it uses deathcoil when the current runic power is avaiable(CanCast)
if runic power is less than 70 dont cast DeathCoil.
 
Thanks that did the trick but, how do i make it depended on runic power? do i use Me.CurrentRunicPower, but it dont seem to work very well, it uses deathcoil when the current runic power is avaiable(CanCast)
if runic power is less than 70 dont cast DeathCoil.
you're saying you want to save deathcoil till you have 100-130 runic power, but your Operator:

Code:
Me.CurrentRunicPower <= 120

returns true when you have less or equal to 120 runic power.

a short list:

C# Relational Operators :: BlackWasp Software Development
 
Thanks, figured that out allready. think i solved it with this

Code:
            else if (Me.ActiveAuras.ContainsKey("Sudden Doom"))
            {
                SpellManager.Cast("Death Coil");
                Log("Sudden Doom Coil");
            }
            else if (Me.CurrentRunicPower >= 110)
            {
                SpellManager.Cast("Death Coil");
                Log("RunicDump");
            }
 
Thanks, figured that out allready. think i solved it with this

Code:
            else if (Me.ActiveAuras.ContainsKey("Sudden Doom"))
            {
                SpellManager.Cast("Death Coil");
                Log("Sudden Doom Coil");
            }
            else if (Me.CurrentRunicPower >= 110)
            {
                SpellManager.Cast("Death Coil");
                Log("RunicDump");
            }

should be changed to:

Code:
else if (Me.ActiveAuras.ContainsKey("Sudden Doom") || Me.CurrentRunicPower >= 110)
{
       SpellManager.Cast("Death Coil");
}

Looks cleaner that way, and does the same :)
 
Back
Top