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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

working on my own cc

BPAlpha

New Member
Joined
Jan 15, 2010
Messages
594
im working on a new warrior cc with lik 0.5 as background cc but i want some info..

i want the toon to keep targeting toon but move random around it by 5yds while still attacking is this possible in a cc :) and is so how
 
It is possible, I know of two ways to do it. You can use the WoWMovement class (first set an attack point, then move to it) or use the keyboardmanager + sleeps to do it (this way is kinda shitty, but it does work).

Code:
            Styx.Helpers.KeyboardManager.PressKey('W');
            Thread.Sleep(2 * 1000);
            WoWMovement.Face();
            Styx.Helpers.KeyboardManager.PressKey('W');
            Thread.Sleep(2 * 1000);
            WoWMovement.Face();

Code:
        WoWPoint attackPoint
        {
            get
            {
                if (Me.GotTarget) {
                    if (!movementTimer.IsRunning ||
                        movementTimer.ElapsedMilliseconds > 2500) {
                        movementTimer.Reset();
                        movementTimer.Start();
                        attackPointBuffer = WoWMovement.CalculatePointFrom(Me.CurrentTarget.Location, 25.0f);
                        return attackPointBuffer;
                    } else {
                        return attackPointBuffer;
                    }
                } else {
                    WoWPoint noSpot = new WoWPoint();
                    return noSpot;
                }
            }
        }
WoWMovement.Move(attackPoint);
 
Back
Top