public override void OnStart() { var names = new ResolvableNameCollection(Setting[3].Get <string>()); RegisterTask(new Follow(Setting[0].Get <string>(), (Mode)Setting[6].Get <int>(), names)); RegisterTask(new Attack(Setting[1].Get <int>(), Setting[2].Get <int>(), Setting[5].Get <bool>())); RegisterTask(new Equipment(Setting[4].Get <bool>())); }
public override void OnStart() { var clickGroup = (IParentSetting)Setting.Get("Clicks"); var equipmentGroup = (IParentSetting)Setting.Get("Equipment"); var names = new ResolvableNameCollection(Setting.GetValue <string>("Friendly name(s)/uuid(s)")); RegisterTask(new Follow(Setting.GetValue <string>("Owner name/uuid"), (Mode)Setting.GetValue <int>("Mode"), names)); RegisterTask(new Attack(clickGroup.GetValue <int>("Clicks per second"), clickGroup.GetValue <int>("Miss rate"), equipmentGroup.GetValue <bool>("Equip best weapon?"))); RegisterTask(new Equipment(equipmentGroup.GetValue <bool>("Auto equip best armor?"))); }