Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 13:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Conquer's Server Ports

Discussion on Conquer's Server Ports within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elvis1002's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 8
Conquer's Server Ports

Explanation: I Got Bored!
Usefulness: Almost None**
What it does: Shows You what auth port your conquer server uses

**Program version


----------**Text Version (Use CTRL+F to find it)
Quote:
9959
Aquarius
BabyIcey
Basilisk
Bluebird
Cancer
Capricorn
Centaur
Fire
Fury
Gemini
GreatWall
Gryphon
HangingGardens
Hebby
Kanasai_US
Leo
Liberty
Libra
Light
Lucky7
Mausoleum
Pegasus
Pharos
Nanya
Pishu_EU
Prosperity
Pyramid
Sagittarius
Scorpio
SnowWhite
StatueOfZeus
Storm
Titan
Unicorn
WildSwan
Virgo


9960
Volcano
Venus
Uranus
Turquoise
Triumph
Tornado
Tiger
Thunder
Sunshine
Snowfall
Saturn
Ruby
Pluto
Phoenix
Neptune
Meteor
Mercury
Lion
Lightning
Kylin
Honor
Glory
Freedom
Faith
Eternity
Emerald
Eagle
Dream
Dragon
Dark
Crystal
Blizzard

9964

GardenOfEden
elvis1002 is offline  
Old 11/07/2011, 07:43   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
*******?

You gotta be kidding me.

It's coded in VB.NET, but my decompiler only supports C# and IL.

Source:
Code:
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Server_Ports
{
	[DesignerGenerated]
	internal class Form1 : Form
	{
		private IContainer components;
		[AccessedThroughProperty("ServerN")]
		private ComboBox _ServerN;
		[AccessedThroughProperty("lblServerName")]
		private Label _lblServerName;
		[AccessedThroughProperty("lblPor")]
		private Label _lblPor;
		[AccessedThroughProperty("lblPort")]
		private Label _lblPort;
		internal virtual ComboBox ServerN
		{
			get
			{
				return this._ServerN;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				EventHandler value = new EventHandler(this.ServerN_SelectedIndexChanged);
				if (this._ServerN != null)
				{
					this._ServerN.SelectedIndexChanged -= value;
				}
				this._ServerN = WithEventsValue;
				if (this._ServerN != null)
				{
					this._ServerN.SelectedIndexChanged += value;
				}
			}
		}
		internal virtual Label lblServerName
		{
			get
			{
				return this._lblServerName;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblServerName = WithEventsValue;
			}
		}
		internal virtual Label lblPor
		{
			get
			{
				return this._lblPor;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblPor = WithEventsValue;
			}
		}
		internal virtual Label lblPort
		{
			get
			{
				return this._lblPort;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblPort = WithEventsValue;
			}
		}
		public Form1()
		{
			this.InitializeComponent();
		}
		[DebuggerNonUserCode]
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing && this.components != null)
				{
					this.components.Dispose();
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}
		[DebuggerStepThrough]
		private void InitializeComponent()
		{
			this.ServerN = new ComboBox();
			this.lblServerName = new Label();
			this.lblPor = new Label();
			this.lblPort = new Label();
			this.SuspendLayout();
			this.ServerN.FormattingEnabled = true;
			this.ServerN.Items.AddRange(new object[]
			{
				"(None)", 
				"Aquarius", 
				"BabyIcey", 
				"Basilisk", 
				"Blizzard", 
				"Bluebird", 
				"Cancer", 
				"Capricorn", 
				"Centaur", 
				"Crystal", 
				"Dark", 
				"Dragon", 
				"Dream", 
				"Eagle", 
				"Emerald", 
				"Eternity", 
				"Faith", 
				"Fire", 
				"Freedom", 
				"Fury", 
				"GardenOfEden", 
				"Gemini", 
				"Glory", 
				"GreatWall", 
				"Gryphon", 
				"HangingGardens", 
				"Hebby", 
				"Honor", 
				"Kanasai_US", 
				"Kylin", 
				"Leo", 
				"Liberty", 
				"Libra", 
				"Light", 
				"Lightning", 
				"Lion", 
				"Lucky7", 
				"Mausoleum", 
				"Mercury", 
				"Meteor", 
				"Nanya", 
				"Neptune", 
				"Pegasus", 
				"Pharos", 
				"Phoenix", 
				"Pishu_EU", 
				"Pluto", 
				"Prosperity", 
				"Pyramid", 
				"Ruby", 
				"Sagittarius", 
				"Saturn", 
				"Scorpio", 
				"Snowfall", 
				"SnowWhite", 
				"StatueOfZeus", 
				"Storm", 
				"Sunshine", 
				"Thunder", 
				"Tiger", 
				"Titan", 
				"Tornado", 
				"Triumph", 
				"Turquoise", 
				"Unicorn", 
				"Uranus", 
				"Venus", 
				"Virgo", 
				"Volcano", 
				"WildSwan"
			});
			Control arg_2DC_0 = this.ServerN;
			Point location = new Point(293, 133);
			arg_2DC_0.Location = location;
			this.ServerN.Name = "ServerN";
			Control arg_304_0 = this.ServerN;
			Size size = new Size(121, 21);
			arg_304_0.Size = size;
			this.ServerN.TabIndex = 0;
			this.lblServerName.AutoSize = true;
			this.lblServerName.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblServerName.ForeColor = Color.Red;
			Control arg_366_0 = this.lblServerName;
			location = new Point(166, 133);
			arg_366_0.Location = location;
			this.lblServerName.Name = "lblServerName";
			Control arg_38E_0 = this.lblServerName;
			size = new Size(121, 24);
			arg_38E_0.Size = size;
			this.lblServerName.TabIndex = 1;
			this.lblServerName.Text = "Server Name";
			this.lblPor.AutoSize = true;
			this.lblPor.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblPor.ForeColor = Color.Red;
			Control arg_400_0 = this.lblPor;
			location = new Point(166, 169);
			arg_400_0.Location = location;
			this.lblPor.Name = "lblPor";
			Control arg_428_0 = this.lblPor;
			size = new Size(48, 24);
			arg_428_0.Size = size;
			this.lblPor.TabIndex = 2;
			this.lblPor.Text = "Port:";
			this.lblPort.AutoSize = true;
			this.lblPort.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblPort.ForeColor = Color.Red;
			Control arg_49A_0 = this.lblPort;
			location = new Point(220, 169);
			arg_49A_0.Location = location;
			this.lblPort.Name = "lblPort";
			Control arg_4C2_0 = this.lblPort;
			size = new Size(44, 24);
			arg_4C2_0.Size = size;
			this.lblPort.TabIndex = 3;
			this.lblPort.Text = "99**";
			SizeF autoScaleDimensions = new SizeF(6f, 13f);
			this.AutoScaleDimensions = autoScaleDimensions;
			this.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.FromArgb(192, 255, 255);
			size = new Size(591, 367);
			this.ClientSize = size;
			this.Controls.Add(this.lblPort);
			this.Controls.Add(this.lblPor);
			this.Controls.Add(this.lblServerName);
			this.Controls.Add(this.ServerN);
			this.Name = "Form1";
			this.Text = "Conquer Server Ports";
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		private void ServerN_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (Operators.CompareString(this.ServerN.Text, "Aquarius", false) == 0)
			{
				this.lblPort.Text = "9959";
			}
			else
			{
				if (Operators.CompareString(this.ServerN.Text, "BabyIcey", false) == 0)
				{
					this.lblPort.Text = "9959";
				}
				else
				{
					if (Operators.CompareString(this.ServerN.Text, "Basilisk", false) == 0)
					{
						this.lblPort.Text = "9959";
					}
					else
					{
						if (Operators.CompareString(this.ServerN.Text, "BlueBird", false) == 0)
						{
							this.lblPort.Text = "9959";
						}
						else
						{
							if (Operators.CompareString(this.ServerN.Text, "Cancer", false) == 0)
							{
								this.lblPort.Text = "9959";
							}
							else
							{
								if (Operators.CompareString(this.ServerN.Text, "Capricorn", false) == 0)
								{
									this.lblPort.Text = "9959";
								}
								else
								{
									if (Operators.CompareString(this.ServerN.Text, "Centaur", false) == 0)
									{
										this.lblPort.Text = "9959";
									}
									else
									{
										if (Operators.CompareString(this.ServerN.Text, "Fire", false) == 0)
										{
											this.lblPort.Text = "9959";
										}
										else
										{
											if (Operators.CompareString(this.ServerN.Text, "Fury", false) == 0)
											{
												this.lblPort.Text = "9959";
											}
											else
											{
												if (Operators.CompareString(this.ServerN.Text, "Gemini", false) == 0)
												{
													this.lblPort.Text = "9959";
												}
												else
												{
													if (Operators.CompareString(this.ServerN.Text, "GreatWall", false) == 0)
													{
														this.lblPort.Text = "9959";
													}
													else
													{
														if (Operators.CompareString(this.ServerN.Text, "Gryphon", false) == 0)
														{
															this.lblPort.Text = "9959";
														}
														else
														{
															if (Operators.CompareString(this.ServerN.Text, "HangingGardens", false) == 0)
															{
																this.lblPort.Text = "9959";
															}
															else
															{
																if (Operators.CompareString(this.ServerN.Text, "Hebby", false) == 0)
																{
																	this.lblPort.Text = "9959";
																}
																else
																{
																	if (Operators.CompareString(this.ServerN.Text, "Kanasai_US", false) == 0)
																	{
																		this.lblPort.Text = "9959";
																	}
																	else
																	{
																		if (Operators.CompareString(this.ServerN.Text, "Leo", false) == 0)
																		{
																			this.lblPort.Text = "9959";
																		}
																		else
																		{
																			if (Operators.CompareString(this.ServerN.Text, "Liberty", false) == 0)
																			{
																				this.lblPort.Text = "9959";
																			}
																			else
																			{
																				if (Operators.CompareString(this.ServerN.Text, "Libra", false) == 0)
																				{
																					this.lblPort.Text = "9959";
																				}
																				else
																				{
																					if (Operators.CompareString(this.ServerN.Text, "Light", false) == 0)
																					{
																						this.lblPort.Text = "9959";
																					}
																					else
																					{
																						if (Operators.CompareString(this.ServerN.Text, "Lucky7", false) == 0)
																						{
																							this.lblPort.Text = "9959";
																						}
																						else
																						{
																							if (Operators.CompareString(this.ServerN.Text, "Mausoleum", false) == 0)
																							{
																								this.lblPort.Text = "9959";
																							}
																							else
																							{
																								if (Operators.CompareString(this.ServerN.Text, "Pegasus", false) == 0)
																								{
																									this.lblPort.Text = "9959";
																								}
																								else
																								{
																									if (Operators.CompareString(this.ServerN.Text, "Pharos", false) == 0)
																									{
																										this.lblPort.Text = "9959";
																									}
																									else
																									{
																										if (Operators.CompareString(this.ServerN.Text, "Nanya", false) == 0)
																										{
																											this.lblPort.Text = "9959";
																										}
																										else
																										{
																											if (Operators.CompareString(this.ServerN.Text, "Pishu_EU", false) == 0)
																											{
																												this.lblPort.Text = "9959";
																											}
																											else
																											{
																												if (Operators.CompareString(this.ServerN.Text, "Prosperity", false) == 0)
																												{
																													this.lblPort.Text = "9959";
																												}
																												else
																												{
																													if (Operators.CompareString(this.ServerN.Text, "Pyramid", false) == 0)
																													{
																														this.lblPort.Text = "9959";
																													}
																													else
																													{
																														if (Operators.CompareString(this.ServerN.Text, "Sagittarius", false) == 0)
																														{
																															this.lblPort.Text = "9959";
																														}
																														else
																														{
																															if (Operators.CompareString(this.ServerN.Text, "Scorpio", false) == 0)
																															{
																																this.lblPort.Text = "9959";
																															}
																															else
																															{
																																if (Operators.CompareString(this.ServerN.Text, "SnowWhite", false) == 0)
																																{
																																	this.lblPort.Text = "9959";
																																}
																																else
																																{
																																	if (Operators.CompareString(this.ServerN.Text, "StatueOfZeus", false) == 0)
																																	{
																																		this.lblPort.Text = "9959";
																																	}
																																	else
																																	{
																																		if (Operators.CompareString(this.ServerN.Text, "Storm", false) == 0)
																																		{
																																			this.lblPort.Text = "9959";
																																		}
																																		else
																																		{
																																			if (Operators.CompareString(this.ServerN.Text, "Titan", false) == 0)
																																			{
																																				this.lblPort.Text = "9959";
																																			}
																																			else
																																			{
																																				if (Operators.CompareString(this.ServerN.Text, "Unicorn", false) == 0)
																																				{
																																					this.lblPort.Text = "9959";
																																				}
																																				else
																																				{
																																					if (Operators.CompareString(this.ServerN.Text, "WildSwan", false) == 0)
																																					{
																																						this.lblPort.Text = "9959";
																																					}
																																					else
																																					{
																																						if (Operators.CompareString(this.ServerN.Text, "Virgo", false) == 0)
																																						{
																																							this.lblPort.Text = "9959";
																																						}
																																						else
																																						{
																																							if (Operators.CompareString(this.ServerN.Text, "Volcano", false) == 0)
																																							{
																																								this.lblPort.Text = "9960";
																																							}
																																							else
																																							{
																																								if (Operators.CompareString(this.ServerN.Text, "Venus", false) == 0)
																																								{
																																									this.lblPort.Text = "9960";
																																								}
																																								else
																																								{
																																									if (Operators.CompareString(this.ServerN.Text, "Uranus", false) == 0)
																																									{
																																										this.lblPort.Text = "9960";
																																									}
																																									else
																																									{
																																										if (Operators.CompareString(this.ServerN.Text, "Turquoise", false) == 0)
																																										{
																																											this.lblPort.Text = "9960";
																																										}
																																										else
																																										{
																																											if (Operators.CompareString(this.ServerN.Text, "Triumph", false) == 0)
																																											{
																																												this.lblPort.Text = "9960";
																																											}
																																											else
																																											{
																																												if (Operators.CompareString(this.ServerN.Text, "Tornado", false) == 0)
																																												{
																																													this.lblPort.Text = "9960";
																																												}
																																												else
																																												{
																																													if (Operators.CompareString(this.ServerN.Text, "Tiger", false) == 0)
																																													{
																																														this.lblPort.Text = "9960";
																																													}
																																													else
																																													{
																																														if (Operators.CompareString(this.ServerN.Text, "Thunder", false) == 0)
																																														{
																																															this.lblPort.Text = "9960";
																																														}
																																														else
																																														{
																																															if (Operators.CompareString(this.ServerN.Text, "Sunshine", false) == 0)
																																															{
																																																this.lblPort.Text = "9960";
																																															}
																																															else
																																															{
																																																if (Operators.CompareString(this.ServerN.Text, "Snowfall", false) == 0)
																																																{
																																																	this.lblPort.Text = "9960";
																																																}
																																																else
																																																{
																																																	if (Operators.CompareString(this.ServerN.Text, "Saturn", false) == 0)
																																																	{
																																																		this.lblPort.Text = "9960";
																																																	}
																																																	else
																																																	{
																																																		if (Operators.CompareString(this.ServerN.Text, "Ruby", false) == 0)
																																																		{
																																																			this.lblPort.Text = "9960";
																																																		}
																																																		else
																																																		{
																																																			if (Operators.CompareString(this.ServerN.Text, "Pluto", false) == 0)
																																																			{
																																																				this.lblPort.Text = "9960";
																																																			}
																																																			else
																																																			{
																																																				if (Operators.CompareString(this.ServerN.Text, "Phoenix", false) == 0)
																																																				{
																																																					this.lblPort.Text = "9960";
																																																				}
																																																				else
																																																				{
																																																					if (Operators.CompareString(this.ServerN.Text, "Neptune", false) == 0)
																																																					{
																																																						this.lblPort.Text = "9960";
																																																					}
																																																					else
																																																					{
																																																						if (Operators.CompareString(this.ServerN.Text, "Meteor", false) == 0)
																																																						{
																																																							this.lblPort.Text = "9960";
																																																						}
																																																						else
																																																						{
																																																							if (Operators.CompareString(this.ServerN.Text, "Mercury", false) == 0)
																																																							{
																																																								this.lblPort.Text = "9960";
																																																							}
																																																							else
																																																							{
																																																								if (Operators.CompareString(this.ServerN.Text, "Lion", false) == 0)
																																																								{
																																																									this.lblPort.Text = "9960";
																																																								}
																																																								else
																																																								{
																																																									if (Operators.CompareString(this.ServerN.Text, "Lightning", false) == 0)
																																																									{
																																																										this.lblPort.Text = "9960";
																																																									}
																																																									else
																																																									{
																																																										if (Operators.CompareString(this.ServerN.Text, "Kylin", false) == 0)
																																																										{
																																																											this.lblPort.Text = "9960";
																																																										}
																																																										else
																																																										{
																																																											if (Operators.CompareString(this.ServerN.Text, "Honor", false) == 0)
																																																											{
																																																												this.lblPort.Text = "9960";
																																																											}
																																																											else
																																																											{
																																																												if (Operators.CompareString(this.ServerN.Text, "Glory", false) == 0)
																																																												{
																																																													this.lblPort.Text = "9960";
																																																												}
																																																												else
																																																												{
																																																													if (Operators.CompareString(this.ServerN.Text, "Freedom", false) == 0)
																																																													{
																																																														this.lblPort.Text = "9960";
																																																													}
																																																													else
																																																													{
																																																														if (Operators.CompareString(this.ServerN.Text, "Faith", false) == 0)
																																																														{
																																																															this.lblPort.Text = "9960";
																																																														}
																																																														else
																																																														{
																																																															if (Operators.CompareString(this.ServerN.Text, "Eternity", false) == 0)
																																																															{
																																																																this.lblPort.Text = "9960";
																																																															}
																																																															else
																																																															{
																																																																if (Operators.CompareString(this.ServerN.Text, "Emerald", false) == 0)
																																																																{
																																																																	this.lblPort.Text = "9960";
																																																																}
																																																																else
																																																																{
																																																																	if (Operators.CompareString(this.ServerN.Text, "Eagle", false) == 0)
																																																																	{
																																																																		this.lblPort.Text = "9960";
																																																																	}
																																																																	else
																																																																	{
																																																																		if (Operators.CompareString(this.ServerN.Text, "Dream", false) == 0)
																																																																		{
																																																																			this.lblPort.Text = "9960";
																																																																		}
																																																																		else
																																																																		{
																																																																			if (Operators.CompareString(this.ServerN.Text, "Dragon", false) == 0)
																																																																			{
																																																																				this.lblPort.Text = "9960";
																																																																			}
																																																																			else
																																																																			{
																																																																				if (Operators.CompareString(this.ServerN.Text, "Dark", false) == 0)
																																																																				{
																																																																					this.lblPort.Text = "9960";
																																																																				}
																																																																				else
																																																																				{
																																																																					if (Operators.CompareString(this.ServerN.Text, "Crystal", false) == 0)
																																																																					{
																																																																						this.lblPort.Text = "9960";
																																																																					}
																																																																					else
																																																																					{
																																																																						if (Operators.CompareString(this.ServerN.Text, "Blizzard", false) == 0)
																																																																						{
																																																																							this.lblPort.Text = "9960";
																																																																						}
																																																																						else
																																																																						{
																																																																							if (Operators.CompareString(this.ServerN.Text, "GardenOfEden", false) == 0)
																																																																							{
																																																																								this.lblPort.Text = "9964";
																																																																							}
																																																																							else
																																																																							{
																																																																								this.lblPort.Text = "Unknown";
																																																																							}
																																																																						}
																																																																					}
																																																																				}
																																																																			}
																																																																		}
																																																																	}
																																																																}
																																																															}
																																																														}
																																																													}
																																																												}
																																																											}
																																																										}
																																																									}
																																																								}
																																																							}
																																																						}
																																																					}
																																																				}
																																																			}
																																																		}
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
Note it's not to piss you off, but the source code is so rubbish, that I thought I'd share it.
BaussHacker is offline  
Thanks
1 User
Old 11/07/2011, 21:26   #3
 
elvis1002's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 8
Thumbs up

Quote:
Originally Posted by BaussHacker View Post
*******?

You gotta be kidding me.

It's coded in VB.NET, but my decompiler only supports C# and IL.

Source:
Code:
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Server_Ports
{
	[DesignerGenerated]
	internal class Form1 : Form
	{
		private IContainer components;
		[AccessedThroughProperty("ServerN")]
		private ComboBox _ServerN;
		[AccessedThroughProperty("lblServerName")]
		private Label _lblServerName;
		[AccessedThroughProperty("lblPor")]
		private Label _lblPor;
		[AccessedThroughProperty("lblPort")]
		private Label _lblPort;
		internal virtual ComboBox ServerN
		{
			get
			{
				return this._ServerN;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				EventHandler value = new EventHandler(this.ServerN_SelectedIndexChanged);
				if (this._ServerN != null)
				{
					this._ServerN.SelectedIndexChanged -= value;
				}
				this._ServerN = WithEventsValue;
				if (this._ServerN != null)
				{
					this._ServerN.SelectedIndexChanged += value;
				}
			}
		}
		internal virtual Label lblServerName
		{
			get
			{
				return this._lblServerName;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblServerName = WithEventsValue;
			}
		}
		internal virtual Label lblPor
		{
			get
			{
				return this._lblPor;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblPor = WithEventsValue;
			}
		}
		internal virtual Label lblPort
		{
			get
			{
				return this._lblPort;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			set
			{
				this._lblPort = WithEventsValue;
			}
		}
		public Form1()
		{
			this.InitializeComponent();
		}
		[DebuggerNonUserCode]
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing && this.components != null)
				{
					this.components.Dispose();
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}
		[DebuggerStepThrough]
		private void InitializeComponent()
		{
			this.ServerN = new ComboBox();
			this.lblServerName = new Label();
			this.lblPor = new Label();
			this.lblPort = new Label();
			this.SuspendLayout();
			this.ServerN.FormattingEnabled = true;
			this.ServerN.Items.AddRange(new object[]
			{
				"(None)", 
				"Aquarius", 
				"BabyIcey", 
				"Basilisk", 
				"Blizzard", 
				"Bluebird", 
				"Cancer", 
				"Capricorn", 
				"Centaur", 
				"Crystal", 
				"Dark", 
				"Dragon", 
				"Dream", 
				"Eagle", 
				"Emerald", 
				"Eternity", 
				"Faith", 
				"Fire", 
				"Freedom", 
				"Fury", 
				"GardenOfEden", 
				"Gemini", 
				"Glory", 
				"GreatWall", 
				"Gryphon", 
				"HangingGardens", 
				"Hebby", 
				"Honor", 
				"Kanasai_US", 
				"Kylin", 
				"Leo", 
				"Liberty", 
				"Libra", 
				"Light", 
				"Lightning", 
				"Lion", 
				"Lucky7", 
				"Mausoleum", 
				"Mercury", 
				"Meteor", 
				"Nanya", 
				"Neptune", 
				"Pegasus", 
				"Pharos", 
				"Phoenix", 
				"Pishu_EU", 
				"Pluto", 
				"Prosperity", 
				"Pyramid", 
				"Ruby", 
				"Sagittarius", 
				"Saturn", 
				"Scorpio", 
				"Snowfall", 
				"SnowWhite", 
				"StatueOfZeus", 
				"Storm", 
				"Sunshine", 
				"Thunder", 
				"Tiger", 
				"Titan", 
				"Tornado", 
				"Triumph", 
				"Turquoise", 
				"Unicorn", 
				"Uranus", 
				"Venus", 
				"Virgo", 
				"Volcano", 
				"WildSwan"
			});
			Control arg_2DC_0 = this.ServerN;
			Point location = new Point(293, 133);
			arg_2DC_0.Location = location;
			this.ServerN.Name = "ServerN";
			Control arg_304_0 = this.ServerN;
			Size size = new Size(121, 21);
			arg_304_0.Size = size;
			this.ServerN.TabIndex = 0;
			this.lblServerName.AutoSize = true;
			this.lblServerName.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblServerName.ForeColor = Color.Red;
			Control arg_366_0 = this.lblServerName;
			location = new Point(166, 133);
			arg_366_0.Location = location;
			this.lblServerName.Name = "lblServerName";
			Control arg_38E_0 = this.lblServerName;
			size = new Size(121, 24);
			arg_38E_0.Size = size;
			this.lblServerName.TabIndex = 1;
			this.lblServerName.Text = "Server Name";
			this.lblPor.AutoSize = true;
			this.lblPor.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblPor.ForeColor = Color.Red;
			Control arg_400_0 = this.lblPor;
			location = new Point(166, 169);
			arg_400_0.Location = location;
			this.lblPor.Name = "lblPor";
			Control arg_428_0 = this.lblPor;
			size = new Size(48, 24);
			arg_428_0.Size = size;
			this.lblPor.TabIndex = 2;
			this.lblPor.Text = "Port:";
			this.lblPort.AutoSize = true;
			this.lblPort.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.lblPort.ForeColor = Color.Red;
			Control arg_49A_0 = this.lblPort;
			location = new Point(220, 169);
			arg_49A_0.Location = location;
			this.lblPort.Name = "lblPort";
			Control arg_4C2_0 = this.lblPort;
			size = new Size(44, 24);
			arg_4C2_0.Size = size;
			this.lblPort.TabIndex = 3;
			this.lblPort.Text = "99**";
			SizeF autoScaleDimensions = new SizeF(6f, 13f);
			this.AutoScaleDimensions = autoScaleDimensions;
			this.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.FromArgb(192, 255, 255);
			size = new Size(591, 367);
			this.ClientSize = size;
			this.Controls.Add(this.lblPort);
			this.Controls.Add(this.lblPor);
			this.Controls.Add(this.lblServerName);
			this.Controls.Add(this.ServerN);
			this.Name = "Form1";
			this.Text = "Conquer Server Ports";
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		private void ServerN_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (Operators.CompareString(this.ServerN.Text, "Aquarius", false) == 0)
			{
				this.lblPort.Text = "9959";
			}
			else
			{
				if (Operators.CompareString(this.ServerN.Text, "BabyIcey", false) == 0)
				{
					this.lblPort.Text = "9959";
				}
				else
				{
					if (Operators.CompareString(this.ServerN.Text, "Basilisk", false) == 0)
					{
						this.lblPort.Text = "9959";
					}
					else
					{
						if (Operators.CompareString(this.ServerN.Text, "BlueBird", false) == 0)
						{
							this.lblPort.Text = "9959";
						}
						else
						{
							if (Operators.CompareString(this.ServerN.Text, "Cancer", false) == 0)
							{
								this.lblPort.Text = "9959";
							}
							else
							{
								if (Operators.CompareString(this.ServerN.Text, "Capricorn", false) == 0)
								{
									this.lblPort.Text = "9959";
								}
								else
								{
									if (Operators.CompareString(this.ServerN.Text, "Centaur", false) == 0)
									{
										this.lblPort.Text = "9959";
									}
									else
									{
										if (Operators.CompareString(this.ServerN.Text, "Fire", false) == 0)
										{
											this.lblPort.Text = "9959";
										}
										else
										{
											if (Operators.CompareString(this.ServerN.Text, "Fury", false) == 0)
											{
												this.lblPort.Text = "9959";
											}
											else
											{
												if (Operators.CompareString(this.ServerN.Text, "Gemini", false) == 0)
												{
													this.lblPort.Text = "9959";
												}
												else
												{
													if (Operators.CompareString(this.ServerN.Text, "GreatWall", false) == 0)
													{
														this.lblPort.Text = "9959";
													}
													else
													{
														if (Operators.CompareString(this.ServerN.Text, "Gryphon", false) == 0)
														{
															this.lblPort.Text = "9959";
														}
														else
														{
															if (Operators.CompareString(this.ServerN.Text, "HangingGardens", false) == 0)
															{
																this.lblPort.Text = "9959";
															}
															else
															{
																if (Operators.CompareString(this.ServerN.Text, "Hebby", false) == 0)
																{
																	this.lblPort.Text = "9959";
																}
																else
																{
																	if (Operators.CompareString(this.ServerN.Text, "Kanasai_US", false) == 0)
																	{
																		this.lblPort.Text = "9959";
																	}
																	else
																	{
																		if (Operators.CompareString(this.ServerN.Text, "Leo", false) == 0)
																		{
																			this.lblPort.Text = "9959";
																		}
																		else
																		{
																			if (Operators.CompareString(this.ServerN.Text, "Liberty", false) == 0)
																			{
																				this.lblPort.Text = "9959";
																			}
																			else
																			{
																				if (Operators.CompareString(this.ServerN.Text, "Libra", false) == 0)
																				{
																					this.lblPort.Text = "9959";
																				}
																				else
																				{
																					if (Operators.CompareString(this.ServerN.Text, "Light", false) == 0)
																					{
																						this.lblPort.Text = "9959";
																					}
																					else
																					{
																						if (Operators.CompareString(this.ServerN.Text, "Lucky7", false) == 0)
																						{
																							this.lblPort.Text = "9959";
																						}
																						else
																						{
																							if (Operators.CompareString(this.ServerN.Text, "Mausoleum", false) == 0)
																							{
																								this.lblPort.Text = "9959";
																							}
																							else
																							{
																								if (Operators.CompareString(this.ServerN.Text, "Pegasus", false) == 0)
																								{
																									this.lblPort.Text = "9959";
																								}
																								else
																								{
																									if (Operators.CompareString(this.ServerN.Text, "Pharos", false) == 0)
																									{
																										this.lblPort.Text = "9959";
																									}
																									else
																									{
																										if (Operators.CompareString(this.ServerN.Text, "Nanya", false) == 0)
																										{
																											this.lblPort.Text = "9959";
																										}
																										else
																										{
																											if (Operators.CompareString(this.ServerN.Text, "Pishu_EU", false) == 0)
																											{
																												this.lblPort.Text = "9959";
																											}
																											else
																											{
																												if (Operators.CompareString(this.ServerN.Text, "Prosperity", false) == 0)
																												{
																													this.lblPort.Text = "9959";
																												}
																												else
																												{
																													if (Operators.CompareString(this.ServerN.Text, "Pyramid", false) == 0)
																													{
																														this.lblPort.Text = "9959";
																													}
																													else
																													{
																														if (Operators.CompareString(this.ServerN.Text, "Sagittarius", false) == 0)
																														{
																															this.lblPort.Text = "9959";
																														}
																														else
																														{
																															if (Operators.CompareString(this.ServerN.Text, "Scorpio", false) == 0)
																															{
																																this.lblPort.Text = "9959";
																															}
																															else
																															{
																																if (Operators.CompareString(this.ServerN.Text, "SnowWhite", false) == 0)
																																{
																																	this.lblPort.Text = "9959";
																																}
																																else
																																{
																																	if (Operators.CompareString(this.ServerN.Text, "StatueOfZeus", false) == 0)
																																	{
																																		this.lblPort.Text = "9959";
																																	}
																																	else
																																	{
																																		if (Operators.CompareString(this.ServerN.Text, "Storm", false) == 0)
																																		{
																																			this.lblPort.Text = "9959";
																																		}
																																		else
																																		{
																																			if (Operators.CompareString(this.ServerN.Text, "Titan", false) == 0)
																																			{
																																				this.lblPort.Text = "9959";
																																			}
																																			else
																																			{
																																				if (Operators.CompareString(this.ServerN.Text, "Unicorn", false) == 0)
																																				{
																																					this.lblPort.Text = "9959";
																																				}
																																				else
																																				{
																																					if (Operators.CompareString(this.ServerN.Text, "WildSwan", false) == 0)
																																					{
																																						this.lblPort.Text = "9959";
																																					}
																																					else
																																					{
																																						if (Operators.CompareString(this.ServerN.Text, "Virgo", false) == 0)
																																						{
																																							this.lblPort.Text = "9959";
																																						}
																																						else
																																						{
																																							if (Operators.CompareString(this.ServerN.Text, "Volcano", false) == 0)
																																							{
																																								this.lblPort.Text = "9960";
																																							}
																																							else
																																							{
																																								if (Operators.CompareString(this.ServerN.Text, "Venus", false) == 0)
																																								{
																																									this.lblPort.Text = "9960";
																																								}
																																								else
																																								{
																																									if (Operators.CompareString(this.ServerN.Text, "Uranus", false) == 0)
																																									{
																																										this.lblPort.Text = "9960";
																																									}
																																									else
																																									{
																																										if (Operators.CompareString(this.ServerN.Text, "Turquoise", false) == 0)
																																										{
																																											this.lblPort.Text = "9960";
																																										}
																																										else
																																										{
																																											if (Operators.CompareString(this.ServerN.Text, "Triumph", false) == 0)
																																											{
																																												this.lblPort.Text = "9960";
																																											}
																																											else
																																											{
																																												if (Operators.CompareString(this.ServerN.Text, "Tornado", false) == 0)
																																												{
																																													this.lblPort.Text = "9960";
																																												}
																																												else
																																												{
																																													if (Operators.CompareString(this.ServerN.Text, "Tiger", false) == 0)
																																													{
																																														this.lblPort.Text = "9960";
																																													}
																																													else
																																													{
																																														if (Operators.CompareString(this.ServerN.Text, "Thunder", false) == 0)
																																														{
																																															this.lblPort.Text = "9960";
																																														}
																																														else
																																														{
																																															if (Operators.CompareString(this.ServerN.Text, "Sunshine", false) == 0)
																																															{
																																																this.lblPort.Text = "9960";
																																															}
																																															else
																																															{
																																																if (Operators.CompareString(this.ServerN.Text, "Snowfall", false) == 0)
																																																{
																																																	this.lblPort.Text = "9960";
																																																}
																																																else
																																																{
																																																	if (Operators.CompareString(this.ServerN.Text, "Saturn", false) == 0)
																																																	{
																																																		this.lblPort.Text = "9960";
																																																	}
																																																	else
																																																	{
																																																		if (Operators.CompareString(this.ServerN.Text, "Ruby", false) == 0)
																																																		{
																																																			this.lblPort.Text = "9960";
																																																		}
																																																		else
																																																		{
																																																			if (Operators.CompareString(this.ServerN.Text, "Pluto", false) == 0)
																																																			{
																																																				this.lblPort.Text = "9960";
																																																			}
																																																			else
																																																			{
																																																				if (Operators.CompareString(this.ServerN.Text, "Phoenix", false) == 0)
																																																				{
																																																					this.lblPort.Text = "9960";
																																																				}
																																																				else
																																																				{
																																																					if (Operators.CompareString(this.ServerN.Text, "Neptune", false) == 0)
																																																					{
																																																						this.lblPort.Text = "9960";
																																																					}
																																																					else
																																																					{
																																																						if (Operators.CompareString(this.ServerN.Text, "Meteor", false) == 0)
																																																						{
																																																							this.lblPort.Text = "9960";
																																																						}
																																																						else
																																																						{
																																																							if (Operators.CompareString(this.ServerN.Text, "Mercury", false) == 0)
																																																							{
																																																								this.lblPort.Text = "9960";
																																																							}
																																																							else
																																																							{
																																																								if (Operators.CompareString(this.ServerN.Text, "Lion", false) == 0)
																																																								{
																																																									this.lblPort.Text = "9960";
																																																								}
																																																								else
																																																								{
																																																									if (Operators.CompareString(this.ServerN.Text, "Lightning", false) == 0)
																																																									{
																																																										this.lblPort.Text = "9960";
																																																									}
																																																									else
																																																									{
																																																										if (Operators.CompareString(this.ServerN.Text, "Kylin", false) == 0)
																																																										{
																																																											this.lblPort.Text = "9960";
																																																										}
																																																										else
																																																										{
																																																											if (Operators.CompareString(this.ServerN.Text, "Honor", false) == 0)
																																																											{
																																																												this.lblPort.Text = "9960";
																																																											}
																																																											else
																																																											{
																																																												if (Operators.CompareString(this.ServerN.Text, "Glory", false) == 0)
																																																												{
																																																													this.lblPort.Text = "9960";
																																																												}
																																																												else
																																																												{
																																																													if (Operators.CompareString(this.ServerN.Text, "Freedom", false) == 0)
																																																													{
																																																														this.lblPort.Text = "9960";
																																																													}
																																																													else
																																																													{
																																																														if (Operators.CompareString(this.ServerN.Text, "Faith", false) == 0)
																																																														{
																																																															this.lblPort.Text = "9960";
																																																														}
																																																														else
																																																														{
																																																															if (Operators.CompareString(this.ServerN.Text, "Eternity", false) == 0)
																																																															{
																																																																this.lblPort.Text = "9960";
																																																															}
																																																															else
																																																															{
																																																																if (Operators.CompareString(this.ServerN.Text, "Emerald", false) == 0)
																																																																{
																																																																	this.lblPort.Text = "9960";
																																																																}
																																																																else
																																																																{
																																																																	if (Operators.CompareString(this.ServerN.Text, "Eagle", false) == 0)
																																																																	{
																																																																		this.lblPort.Text = "9960";
																																																																	}
																																																																	else
																																																																	{
																																																																		if (Operators.CompareString(this.ServerN.Text, "Dream", false) == 0)
																																																																		{
																																																																			this.lblPort.Text = "9960";
																																																																		}
																																																																		else
																																																																		{
																																																																			if (Operators.CompareString(this.ServerN.Text, "Dragon", false) == 0)
																																																																			{
																																																																				this.lblPort.Text = "9960";
																																																																			}
																																																																			else
																																																																			{
																																																																				if (Operators.CompareString(this.ServerN.Text, "Dark", false) == 0)
																																																																				{
																																																																					this.lblPort.Text = "9960";
																																																																				}
																																																																				else
																																																																				{
																																																																					if (Operators.CompareString(this.ServerN.Text, "Crystal", false) == 0)
																																																																					{
																																																																						this.lblPort.Text = "9960";
																																																																					}
																																																																					else
																																																																					{
																																																																						if (Operators.CompareString(this.ServerN.Text, "Blizzard", false) == 0)
																																																																						{
																																																																							this.lblPort.Text = "9960";
																																																																						}
																																																																						else
																																																																						{
																																																																							if (Operators.CompareString(this.ServerN.Text, "GardenOfEden", false) == 0)
																																																																							{
																																																																								this.lblPort.Text = "9964";
																																																																							}
																																																																							else
																																																																							{
																																																																								this.lblPort.Text = "Unknown";
																																																																							}
																																																																						}
																																																																					}
																																																																				}
																																																																			}
																																																																		}
																																																																	}
																																																																}
																																																															}
																																																														}
																																																													}
																																																												}
																																																											}
																																																										}
																																																									}
																																																								}
																																																							}
																																																						}
																																																					}
																																																				}
																																																			}
																																																		}
																																																	}
																																																}
																																															}
																																														}
																																													}
																																												}
																																											}
																																										}
																																									}
																																								}
																																							}
																																						}
																																					}
																																				}
																																			}
																																		}
																																	}
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
Note it's not to piss you off, but the source code is so rubbish, that I thought I'd share it.

I don't take offense to that, I'm just starting out with this coding thing... May you please state why its rubbish? It might help me out with future projects
elvis1002 is offline  
Old 11/07/2011, 23:51   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Use switch cases.
BaussHacker is offline  
Thanks
1 User
Old 11/08/2011, 10:10   #5
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Or even else if's. Man oh man.

I commend you for trying though, keep at it.
Lateralus is offline  
Old 11/08/2011, 13:12   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Holy ***... yes...

I don't think I've ever see someone do their logic like that... I just assumed everyone kinda learned if/else if/else at the same time as they are the same concept.

you can switch between values by doing something like...

switch(this.ServerN.Text)
{
case "Dragon:
this.lblPort.Text = "9960";
break;
case "etc1":
break;
case "etc2":
break;
}


Or just do

if(case 1)
code

else if(case2)
code2

etc
pro4never is offline  
Old 11/08/2011, 23:00   #7
 
elvis1002's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 8
Exclamation

Quote:
Originally Posted by Lateralus View Post
Or even else if's. Man oh man.

I commend you for trying though, keep at it.
Quote:
Originally Posted by pro4never View Post
Holy god... yes...

I don't think I've ever see someone do their logic like that... I just assumed everyone kinda learned if/else if/else at the same time as they are the same concept.

you can switch between values by doing something like...

switch(this.ServerN.Text)
{
case "Dragon:
this.lblPort.Text = "9960";
break;
case "etc1":
break;
case "etc2":
break;
}


Or just do

if(case 1)
code

else if(case2)
code2

etc
What do you mean by elseifs... i used alot of elseifs....this is the non de-compiled code

If i used the elseifs wrong, can you tell me how?, Don't wanna keep doing things wrong

Edit: Elseifs are found at the bottom of the code




Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.ServerN = New System.Windows.Forms.ComboBox()
        Me.lblServerName = New System.Windows.Forms.Label()
        Me.lblPor = New System.Windows.Forms.Label()
        Me.lblPort = New System.Windows.Forms.Label()
        Me.SuspendLayout()
        '
        'ServerN
        '
        Me.ServerN.FormattingEnabled = True
        Me.ServerN.Items.AddRange(New Object() {"(None)", "Aquarius", "BabyIcey", "Basilisk", "Blizzard", "Bluebird", "Cancer", "Capricorn", "Centaur", "Crystal", "Dark", "Dragon", "Dream", "Eagle", "Emerald", "Eternity", "Faith", "Fire", "Freedom", "Fury", "GardenOfEden", "Gemini", "Glory", "GreatWall", "Gryphon", "HangingGardens", "Hebby", "Honor", "Kanasai_US", "Kylin", "Leo", "Liberty", "Libra", "Light", "Lightning", "Lion", "Lucky7", "Mausoleum", "Mercury", "Meteor", "Nanya", "Neptune", "Pegasus", "Pharos", "Phoenix", "Pishu_EU", "Pluto", "Prosperity", "Pyramid", "Ruby", "Sagittarius", "Saturn", "Scorpio", "Snowfall", "SnowWhite", "StatueOfZeus", "Storm", "Sunshine", "Thunder", "Tiger", "Titan", "Tornado", "Triumph", "Turquoise", "Unicorn", "Uranus", "Venus", "Virgo", "Volcano", "WildSwan"})
        Me.ServerN.Location = New System.Drawing.Point(293, 133)
        Me.ServerN.Name = "ServerN"
        Me.ServerN.Size = New System.Drawing.Size(121, 21)
        Me.ServerN.TabIndex = 0
        '
        'lblServerName
        '
        Me.lblServerName.AutoSize = True
        Me.lblServerName.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblServerName.ForeColor = System.Drawing.Color.Red
        Me.lblServerName.Location = New System.Drawing.Point(166, 133)
        Me.lblServerName.Name = "lblServerName"
        Me.lblServerName.Size = New System.Drawing.Size(121, 24)
        Me.lblServerName.TabIndex = 1
        Me.lblServerName.Text = "Server Name"
        '
        'lblPor
        '
        Me.lblPor.AutoSize = True
        Me.lblPor.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblPor.ForeColor = System.Drawing.Color.Red
        Me.lblPor.Location = New System.Drawing.Point(166, 169)
        Me.lblPor.Name = "lblPor"
        Me.lblPor.Size = New System.Drawing.Size(48, 24)
        Me.lblPor.TabIndex = 2
        Me.lblPor.Text = "Port:"
        '
        'lblPort
        '
        Me.lblPort.AutoSize = True
        Me.lblPort.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblPort.ForeColor = System.Drawing.Color.Red
        Me.lblPort.Location = New System.Drawing.Point(220, 169)
        Me.lblPort.Name = "lblPort"
        Me.lblPort.Size = New System.Drawing.Size(44, 24)
        Me.lblPort.TabIndex = 3
        Me.lblPort.Text = "99**"
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
        Me.ClientSize = New System.Drawing.Size(591, 367)
        Me.Controls.Add(Me.lblPort)
        Me.Controls.Add(Me.lblPor)
        Me.Controls.Add(Me.lblServerName)
        Me.Controls.Add(Me.ServerN)
        Me.Name = "Form1"
        Me.Text = "Conquer Server Ports"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents ServerN As System.Windows.Forms.ComboBox

    Friend WithEvents lblServerName As System.Windows.Forms.Label
    Friend WithEvents lblPor As System.Windows.Forms.Label
    Friend WithEvents lblPort As System.Windows.Forms.Label
    Private Sub ServerN_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ServerN.SelectedIndexChanged
        If ServerN.Text = "Aquarius" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "BabyIcey" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Basilisk" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "BlueBird" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Cancer" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Capricorn" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Centaur" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Fire" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Fury" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Gemini" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "GreatWall" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Gryphon" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "HangingGardens" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Hebby" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Kanasai_US" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Leo" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Liberty" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Libra" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Light" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Lucky7" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Mausoleum" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Pegasus" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Pharos" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Nanya" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Pishu_EU" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Prosperity" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Pyramid" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Sagittarius" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Scorpio" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "SnowWhite" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "StatueOfZeus" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Storm" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Titan" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Unicorn" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "WildSwan" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Virgo" Then
            lblPort.Text = "9959"
        ElseIf ServerN.Text = "Volcano" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Venus" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Uranus" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Turquoise" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Triumph" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Tornado" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Tiger" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Thunder" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Sunshine" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Snowfall" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Saturn" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Ruby" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Pluto" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Phoenix" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Neptune" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Meteor" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Mercury" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Lion" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Lightning" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Kylin" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Honor" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Glory" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Freedom" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Faith" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Eternity" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Emerald" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Eagle" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Dream" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Dragon" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Dark" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Crystal" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "Blizzard" Then
            lblPort.Text = "9960"
        ElseIf ServerN.Text = "GardenOfEden" Then
            lblPort.Text = "9964"
        Else
            lblPort.Text = "Unknown"

        End If
    End Sub
End Class





I do know the concepts of else-elseifs to some degree,
else= everything else if its not ur "ifs" or "elseifs" also known as forced response in vb,
else-if= allows multiples conditions to be specified in one if statement
elvis1002 is offline  
Old 11/09/2011, 00:07   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Ahh sorry, I was referring to the decompiled code which was showing things like...

Code:
if (Operators.CompareString(this.ServerN.Text, "Aquarius", false) == 0)
			{
				this.lblPort.Text = "9959";
			}
			else
			{
				if (Operators.CompareString(this.ServerN.Text, "BabyIcey", false) == 0)
				{
					this.lblPort.Text = "9959";
				}
				else
				{
					if (Operators.CompareString(this.ServerN.Text, "Basilisk", false) == 0)
					{
						this.lblPort.Text = "9959";
					}
					else
					{
						if (Operators.CompareString(this.ServerN.Text, "BlueBird", false) == 0)
						{
							this.lblPort.Text = "9959";
						}
						else
						{
							if (Operators.CompareString(this.ServerN.Text, "Cancer", false) == 0)
							{
								this.lblPort.Text = "9959";
							}
							else
							{
								if (Operators.CompareString(this.ServerN.Text, "Capricorn", false) == 0)
								{
									this.lblPort.Text = "9959";
								}
etc
pro4never is offline  
Old 11/09/2011, 08:07   #9
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Oh yeah, so was I. Honestly though, I think switches would be better to use in this case... or use logical operators. In this case, use ORs.

If ServerN.Text = "Aquarius" | ServerN.Text = "BlueBird" ... Then
lblPort.Text = "9959"
Else If Ser.......
lblPort.Text = "9960"
....

Yeah, I don't know VB.NET syntax, but like that. That's probably how I'd do it.
Lateralus is offline  
Thanks
1 User
Old 11/09/2011, 17:08   #10
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Or use a container class like Dictionary to store the servers.

Code:
Private servers As Dictionary(Of String, UShort)

Private Sub InitializeServers()

        If Not servers Is Nothing Then

            servers = New Dictionary(Of String, UShort)

            servers.Add("Aquarius", 9959)
            servers.Add("BabyIcey", 9959)
            servers.Add("Volcano", 9960)
            servers.Add("Venus", 9960)

        End If

End Sub
IAmHawtness is offline  
Thanks
1 User
Old 11/11/2011, 08:27   #11
 
elite*gold: 0
Join Date: Jan 2007
Posts: 118
Received Thanks: 20
If you just want to make your proxy listen from any conquer servers then I think putting a 2 two listening socket on port 9959 and 9960 will be enough.
xmen01235 is offline  
Reply


Similar Threads Similar Threads
Conquer's Epidemic - Stupidity Syndrome
08/04/2009 - CO2 Private Server - 19 Replies
In the past few years I'm sure anyone who's been on epvp, has noticed dwindling numbers of good programmers. Why is this? This is due to the wide spread of what is known a Stupidity Syndrome. More general information about it can be found here, Stupidity Syndrome - Uncyclopedia, the content-free encyclopedia Identifying it in the Conquer Private Server Section. - If someone is asking for you to implement something, they probably suffer from this. - If someone is using the TQ Binaries,...
Trading rs acc for conquer's
01/28/2008 - Runescape Trading - 4 Replies
Im trading this acc for 10dbs on tiger server(+ you get the miner for free if u buy it) http://img84.imageshack.us/img84/7652/stuffffrp3. png
Find out the Ports/Ports herausfinden
11/14/2007 - Lineage 2 - 1 Replies
Wie finde ich die Ports von nem Server raus???



All times are GMT +1. The time now is 13:52.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.