public void AutoLoot(bool toggle) { if (toggle) { try { client.GetClient().SendData(AUTO_LOOT, BitConverter.GetBytes(CPipeClient.DataEnable), sizeof(int), ref reply); } catch { } } else { try { client.GetClient().SendData(AUTO_LOOT, BitConverter.GetBytes(CPipeClient.DataDisable), sizeof(int), ref reply); } catch { } } }
public int GetPeopleCount() { try { client.GetClient().SendData(PEOPLE_COUNT, BitConverter.GetBytes(CPipeClient.DataNULL), sizeof(int), ref reply); return(BitConverter.ToInt32(reply.Data, 0)); } catch { return(-1); } }
/// <summary> /// CPU-Related Hacks /// </summary> public void NoBackground(bool toggle) { if (toggle) { try { client.GetClient().SendData(NO_BACKGROUND, BitConverter.GetBytes(CPipeClient.DataEnable), sizeof(int), ref reply); } catch { } } else { try { client.GetClient().SendData(NO_BACKGROUND, BitConverter.GetBytes(CPipeClient.DataDisable), sizeof(int), ref reply); } catch { } } }