private void ButtonSend_Click(object sender, EventArgs e) { ClientPacket msg = null; if (RadioChangeBankSlot.Checked) { msg = new CpChangeBankSlotOverflow(); } if (RadioHotbarChange.Checked) { msg = new CpHotbarChangeOverflow(); } if (RadioHotbarUse.Checked) { msg = new CpHotbarUseOverflow(); } if (RadioLogin.Checked) { msg = new CpLogin("elementum", "elementum", true); } if (RadioSwapInv.Checked) { msg = new CpSwapInventoryOverflow(); } msg.SendToAll(); }
public void SendLogin(string username, string password) { if (username.Length < 1) { username = "******"; } if (password.Length < 1) { password = "******"; } var login = new CpLogin(username, password); login.Send(Global.Socket.Connection, true); }
public bool CanSendLogin(string username, string password) { if (string.IsNullOrEmpty(username)) { return(false); } if (string.IsNullOrEmpty(password)) { return(false); } var login = new CpLogin(username, password); login.Send(Global.Connection); return(true); }
private void RadioLogin_CheckedChanged(object sender, EventArgs e) { var msg = new CpLogin("elementum", "elementum", true); LabelLog.Text = "Packet Size: " + msg.Size + " Bytes"; }