void Pulse() { ObjectManager.Instance.Player.AntiAfk(); tt = new TreeTask(100, new List <List <TreeTask> >() { TTS.collection, }); if (tt.Activate()) { tt.Execute(); } if (running) { return; } stopCallback(); MainThread.Stop(); }
void Pulse() { Common.Instance.DebugMessage(ObjectManager.Instance.Player.Position.ToString()); ObjectManager.Instance.Player.AntiAfk(); TreeTask tt = new TreeTask(100, new List <List <TreeTask> >() { TTS.alive, }); if (tt.Activate()) { tt.Execute(); } if (running) { return; } stopCallback(); MainThread.Stop(); }
void Pulse() { //Common.Instance.DebugMessage(ObjectManager.Instance.Player.Position.ToString()); //Common.Instance.DebugMessage(db.Rows.Count.ToString()); File.WriteAllText("blacklist.json", JsonConvert.SerializeObject(CMD.goBlacklist.ToArray(), Formatting.Indented)); ObjectManager.Instance.Player.AntiAfk(); TreeTask tt = new TreeTask(100, new List <List <TreeTask> >() { TTS.collect, }); if (tt.Activate()) { tt.Execute(); } if (running) { return; } stopCallback(); MainThread.Stop(); }