Jump to content

How to create an Fight Class (developer only)


Droidz

Recommended Posts

8 minutes ago, nfx said:

I deleted all combat code. I have an empty working template now. However i encountered alrdy issues with stealth, seems some spells not working fine in vanilla or im doing it wrong

 

empty template.cs

I'm afraid you're probably doing it wrong, I suggest joining the discord if you haven't already. Find some of the examples in the downloads section like https://wrobot.eu/files/file/1080-mcro-vanilla-rogue/ ?

 

Link to comment
Share on other sites

  • 9 months later...

make sure to check you're conditions. in making a fightclass, a friend of mine was having problems his and i had to edit it.

nternal void Rotation() // Rotation itself
    {
        while (_isLaunched)
        {
            try
            {
                if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !(Fight.InFight))
                {
                    BuffRotation(); // Out of Combat buffing
                }
                else
                    if (Fight.InFight && ObjectManager.Me.Target > 0)
                    {
                        CombatRotation(); //call of  Combatroutine
                    }
                
            }
            catch (Exception e)
            {
                Logging.WriteError("error" + e);
            }

            Thread.Sleep(10); // little sleep for 10ms
        }
        Logging.Write("STOPPED");
    }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...