internal static void smethod_1(IBot ibot_1) { try { object obj = object_0; lock (obj) { if (bool_1) { return; } bool_1 = true; } smethod_3(ibot_1, botEvent_2); using (TritonHs.AcquireFrame()) { using (TritonHs.Memory.TemporaryCacheState(false)) { TritonHs.Memory.ClearCache(); ibot_1.Tick(); TritonHs.smethod_2(false); } } smethod_3(ibot_1, botEvent_3); } finally { object obj = object_0; lock (obj) { bool_1 = false; } } }
internal static void smethod_1(IBot ibot_1) { object obj2; try { obj2 = object_0; lock (obj2) { if (bool_1) { return; } bool_1 = true; } smethod_3(ibot_1, botEvent_2); try { using (TritonHs.AcquireFrame()) { using (TritonHs.Memory.TemporaryCacheState(false)) { TritonHs.Memory.ClearCache(); ibot_1.Tick(); TritonHs.smethod_2(false); } } } catch (Exception exception) { ilog_0.Error("[Tick] Exception during execution:", exception); throw; } smethod_3(ibot_1, botEvent_3); } finally { obj2 = object_0; lock (obj2) { bool_1 = false; } } }
private static void smethod_4() { object obj2 = object_0; lock (obj2) { Thread.Sleep(1); } TritonHs.Memory.DisableCache(); TritonHs.Memory.ClearCache(); TritonHs.Memory.Executor.FrameDropWaitTime = 0x3a98; TritonHs.Memory.Executor.ExecuteWaitTime = 0x3a98; try { TritonHs.smethod_2(true); } catch { } try { smethod_0(CurrentBot); goto Label_00DF; } catch { autoResetEvent_0.Set(); goto Label_00DF; } Label_0084 :; try { if (MsBeforeNextTick != 0) { Thread.Sleep(MsBeforeNextTick); MsBeforeNextTick = 0; } smethod_1(CurrentBot); if (MsBetweenTicks != 0) { Thread.Sleep(MsBetweenTicks); } bool_3 = false; } catch (InjectionDesyncException) { ilog_0.DebugFormat("[BotThreadFunction] An InjectionDesyncException was detected.", Array.Empty <object>()); bool_3 = true; goto Label_00EC; } catch { } Label_00DF: if (!autoResetEvent_0.WaitOne(0)) { goto Label_0084; } Label_00EC :; try { smethod_2(CurrentBot); } catch { } BotThread = null; if (bool_3) { object[] args = new object[2]; args[1] = new ClientFrozenEventArgs(); TritonHs.InvokeEvent(eventHandler_1, args); } else { try { TritonHs.smethod_2(true); } catch { } } }
private static void smethod_4() { object obj = object_0; lock (obj) { Thread.Sleep(1); } TritonHs.Memory.DisableCache(); TritonHs.Memory.ClearCache(); TritonHs.Memory.Executor.FrameDropWaitTime = 15000u; TritonHs.Memory.Executor.ExecuteWaitTime = 15000; try { TritonHs.smethod_2(); } catch { } try { smethod_0(CurrentBot); goto IL_FA; } catch { autoResetEvent_0.Set(); goto IL_FA; } IL_87: try { if (MsBeforeNextTick != 0) { Thread.Sleep(MsBeforeNextTick); MsBeforeNextTick = 0; } smethod_1(CurrentBot); bool_3 = false; if (MsBetweenTicks != 0) { Thread.Sleep(MsBetweenTicks); } } catch (InjectionDesyncException) { //BotManager.ilog_0.DebugFormat("[BotThreadFunction] An InjectionDesyncException was detected.", Array.Empty<object>()); bool_3 = true; TritonHs.InvokeEvent(eventHandler_1, null, new ClientFrozenEventArgs()); } catch { } IL_FA: if (!autoResetEvent_0.WaitOne(0)) { goto IL_87; } try { smethod_2(CurrentBot); } catch { } BotThread = null; if (bool_3) { TritonHs.InvokeEvent(eventHandler_1, null, new ClientFrozenEventArgs()); return; } try { TritonHs.smethod_2(); } catch { } }