Skip to content

Tutorials » Combat Rotation » Step 3: Initialize



The Initialize() section is executed (once) every time you start a task (Grinder, Pather, etc.). You can use it for your own functions, to log various things, or not at all.


Vars
// ######################################################################
// INITIALIZE
// —————————————————————————————————————————————————————————————————————
// Executed once when the task starts.
// ######################################################################

public void Initialize(Client GC)
{
    this.GC = GC;

    Log.Write("My custom rotation.", GC);
}

this.GC = GC; has to stay in there, otherwise you'll lose access to your interface.

You can customize, expand, or delete everything else as you like, or just leave it as is. 👍