rendered paste body int currentSideBar = 0; //We start with interface 0 int interfaceIDs[] = { //The interfaces to set the sidebars to (in order) - use negative one (-1) to represent a disabled interface 2423, 3917, 638, 3213, 1644, 5608, 1151, -1, 5065, 5715, 2449, 4445, 147, 6299 }; for(int currentInterface = 0; currentInterface < interfaceIDs; currentInterface++) { if(interfaceIDs[currentInterface] != -1) { Shared::RuneBuffer SetSidebarInterfacePacket; SetSidebarInterfacePacket.WriteBYTE(EncryptOpcode(71)); SetSidebarInterfacePacket.WriteWORD(currentSideBar); SetSidebarInterfacePacket.WriteBYTEA(interfaceIDs[currentInterface]); Send(SetSidebarInterfacePacket); } currentSideBar++; }