Jump to content

How to LUA program only to kill a specific number of mobs then possible log out / close game


Recommended Posts

hey all,

I want to create a customer profile to kill some mobs, but i want to kill only a specific number of mobs and for a limit time (if possible) then log out / exit bot or game.

I have create a custom profile to kill the mobs, but i dont know how to update .cs file to kill only a specific number of mobs.

Can anyone help please ? :)

Regards,

NvD

TheCreepingMist.cs

Hello, you can get number of mob kills in "wManager.Statistics.Kills".

The better way is to create plugin. But you can add this code in your custom profile:

            int maxKill = 10;
            if (wManager.Statistics.Kills >= maxKill &&
                Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
                !Conditions.IsAttackedAndCannotIgnore)
            {
                try
                {
                    Memory.WowMemory.Memory.GetProcess().Kill(); // if you want close game
                }
                catch {}
                robotManager.Products.Products.ProductStop();
            }

 

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...