private bool CheckLogin(string user, string pass)
        {
            string response = "";
            ServerConnection sc = new ServerConnection(IP, "test");
            response = sc.SendToServer("<logincheck>" + user + ":" + pass);
            if (response.ToLower().Contains("<error>"))
            {
                MessageBox.Show("Server is offline !");
                return false;
            }

            if (response.ToLower() == "true")
            {
                return true;
            }
            return false;
        }
 private bool VaultHexCheck(string hex)
 {
     string response = "";
     ServerConnection sc = new ServerConnection(IP, encriptionKey);
     response = sc.SendToServer("<arangevault>" + hex + ":" + myAccount);
     if (response.ToLower() == "true")
         return true;
     else
         return false;
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     try
     {
         FileStream fileOld = new FileStream("ItemKor.hs", FileMode.Open);
         StreamReader readMap = new StreamReader(fileOld);
         BinaryFormatter bf = new BinaryFormatter();
         hs = (Hashtable)bf.Deserialize(readMap.BaseStream);
         readMap.Close();
         fileOld.Close();
     }
     catch { MessageBox.Show("ItemKor.hs is missing !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }
     ServerConnection sc = new ServerConnection(IP, encriptionKey);
     vaultHex = sc.SendToServer("<retvault>" + myAccount);
     LoadVault(vaultHex);
     string chars = sc.SendToServer("<getchars>" + myAccount);
     if (chars.Length > 0)
     {
         foreach (string character in chars.Split(';'))
         {
             comboBoxChars.Items.Add(character);
         }
     }
 }
 private void comboBoxChars_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBoxChars.SelectedIndex > -1 && comboBoxChars.SelectedIndex < comboBoxChars.Items.Count)
     {
         pbVaultChar.Width = 611;
         pbCharView.Visible = true;
         ServerConnection sc = new ServerConnection(IP, encriptionKey);
         charHex = sc.SendToServer("<getcharhex>" + myAccount + ":" + comboBoxChars.SelectedItem.ToString());
         LoadChar(charHex);
     }
 }