private void ghostmodskin_CheckedChanged(object sender, EventArgs e) { if (ghostmodskin.Checked) { skinColor[0] = 110; // A - transparency skinColor[1] = 255; skinColor[2] = 255; skinColor[3] = 255; GamePacketProton variantPacket = new GamePacketProton(); variantPacket.AppendString("OnChangeSkin"); variantPacket.AppendUInt(BitConverter.ToUInt32(skinColor, 0)); variantPacket.NetID = messageHandler.worldMap.netID; //variantPacket.delay = 100; PacketSending.SendData(variantPacket.GetBytes(), proxyPeer); } else { skinColor[0] = 255; GamePacketProton variantPacket = new GamePacketProton(); variantPacket.AppendString("OnChangeSkin"); variantPacket.AppendUInt(BitConverter.ToUInt32(skinColor, 0)); variantPacket.NetID = messageHandler.worldMap.netID; //variantPacket.delay = 100; PacketSending.SendData(variantPacket.GetBytes(), proxyPeer); } }
void doRGBHack() { bool k1 = false; bool k2 = false; bool k3 = false; bool kAll = false; while (rgbSkinHack.Checked) { Thread.Sleep(32); skinColor[0] = 255; if (kAll == false) { if (skinColor[1] < 255) { skinColor[1]++; } else { k1 = true; } if (k1 == true) { if (skinColor[2] < 255) { skinColor[2]++; } else { k2 = true; } } if (k2 == true) { if (skinColor[3] < 255) { skinColor[3]++; } else { k3 = true; } } if (k3 == true) { kAll = true; } } else { if (skinColor[3] > 0) { skinColor[3]--; } else { k1 = false; } if (k1 == false) { if (skinColor[2] > 0) { skinColor[2]--; } else { k2 = false; } } if (k2 == false) { if (skinColor[1] > 0) { skinColor[1]--; } else { k3 = false; } } if (k3 == false) { kAll = false; } } //else Array.Copy(BitConverter.GetBytes(0), 0, skinColor, 1, 3); GamePacketProton variantPacket = new GamePacketProton(); variantPacket.AppendString("OnChangeSkin"); variantPacket.AppendUInt(BitConverter.ToUInt32(skinColor, 0)); variantPacket.NetID = messageHandler.worldMap.netID; //variantPacket.delay = 100; PacketSending.SendData(variantPacket.GetBytes(), proxyPeer); } }