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

Question about Melee range..

Truman422

Member
Joined
Jan 10, 2011
Messages
198
Reaction score
14
Is there a way to call for a check on whether or not you're really attacking? Or if you're just standing there barely out of range and no damage is being dealt. Because some things have larger hit boxes than others, so I don't want the character standing on top of the mob when the hit box allows 10 feet. Is it possible to have the CC return nothing if damage isn't being dealt? If I was to give a code example of what I meant, it would be this:

Code:
public override void Combat()
{
    if (Me.Dead || !Me.IsDealingDamage)
    {
        return;
    }

Basically, that way the bot isn't spamming spell calls while nothing is happening. Like in PVP, you are a melee class, and you get ice nova'd in place, the bot is going nuts trying to cast stuff, but there you stand, out of range. I know I can specify a range of 5 yards or something, otherwise return nothing, but then the big hit box things, you run into a stupid obviously too close position, just to use your abilities. I hope this made sense, lol.
 
Back
Top