Register for your free account! | Forgot your password?

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

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

Advertisement



Two questions in one. First question is most important.

Discussion on Two questions in one. First question is most important. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
Two questions in one. First question is most important.

1.) Okay so I built a GUI for my server using Fang's guide and then I made it so I could use commands and whatnot and it says I've got no errors except 3. And the errors have something to do with the Program.WriteLine. In my GUI I have it set so that it Writes 1 argument, but some of the arguments in other portions of the source have up to 4 arguments!!!

Is there a way that I can set my WriteLine (to the gui) to take UP TO 4 arguments?


2.) This question is slightly sinister, I can understand if you don't want to answer it. Is it possible to code a program to ping a specific IP with a specific Port with whatever Data I want while encrypting my IP? That'd be pretty legit if I could, if anything just to screw with my friends. Yeah, I would probably test it out on an ignorant server owner or two, but I mainly want it to mess with my friends who have busy ports!
xBlackPlagu3x is offline  
Old 09/16/2011, 07:45   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
1. make 4 parameters of the method.
2. encrypt your ip? lolwut
BaussHacker is offline  
Old 09/16/2011, 07:51   #3
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
Quote:
Originally Posted by BaussHacker View Post
1. make 4 parameters of the method.
2. encrypt your ip? lolwut
1. When I put 4 parameters of the method, it expects 4 arguments. It fixes the errors that say "[expecting] 4 arguments" but then adds on the ones that say "[expecting] 1 argument"

2. Idk, I just thought it might be possible I mean you can encrypt a lot of stuff and I'm sure that if you sent data to a computer the computer could tell who sent it and I thought it would be possible to encrypt who you are so they computer can't tell. (Who you are being your IP)

I now no longer have the arguments problem. Now I have the problem of my commands not working. I do something like this

(insert my button void here)
{
if (inputCommand.text.Contains("/exit"))
{
Environment.Exit(0);
}
}

That's really what my void looks like right now and it's not working. What's up with that?
xBlackPlagu3x is offline  
Old 09/16/2011, 09:52   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by xBlackPlagu3x View Post
1. When I put 4 parameters of the method, it expects 4 arguments. It fixes the errors that say "[expecting] 4 arguments" but then adds on the ones that say "[expecting] 1 argument"

2. Idk, I just thought it might be possible I mean you can encrypt a lot of stuff and I'm sure that if you sent data to a computer the computer could tell who sent it and I thought it would be possible to encrypt who you are so they computer can't tell. (Who you are being your IP)

I now no longer have the arguments problem. Now I have the problem of my commands not working. I do something like this

(insert my button void here)
{
if (inputCommand.text.Contains("/exit"))
{
Environment.Exit(0);
}
}

That's really what my void looks like right now and it's not working. What's up with that?
You can't encrypt your IP. You can use a proxy or a vpn tho, but your IP will never be 'hidden'.

About that they aren't working anymore, probably because you need to set the event on the button again, it happens if you either move or edit it sometimes.
BaussHacker is offline  
Old 09/16/2011, 15:19   #5
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
I solved it I supposed, instead of having commands I just used a menu strip. It's how I prefer things though so it's okay, I like having a menu strip, makes it look kinda stylish. Now that I have a GUI going on and I can officially start development, I'm off to the races! Wish me luck that I can join the ranks of those who don't fail...
xBlackPlagu3x is offline  
Old 09/16/2011, 20:22   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Try using default values or various versions of the same method if you want to only use 1 param sometimes.


Super basic example...

public static void WriteLine(string infoOne, string infoTwo = "", string infoThree = "")
{
Console.WriteLine(infoOne + " " + infoTwo + " " + infoThree);
}

If nothing is added for infoTwo or Three it won't matter (incredibly useless example but you get the idea)
pro4never is offline  
Old 09/16/2011, 20:26   #7
 
xBlackPlagu3x's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 286
Received Thanks: 71
Quote:
Originally Posted by pro4never View Post
Try using default values or various versions of the same method if you want to only use 1 param sometimes.


Super basic example...

public static void WriteLine(string infoOne, string infoTwo = "", string infoThree = "")
{
Console.WriteLine(infoOne + " " + infoTwo + " " + infoThree);
}

If nothing is added for infoTwo or Three it won't matter (incredibly useless example but you get the idea)
That's actually a brilliant idea.

I just solved it by using this:
Code:
Console.WriteLine("ErrorID: " + Error.ID);
Instead of:
Code:
Console.WriteLine("ErrorID: {0}", Error.ID);
xBlackPlagu3x is offline  
Old 09/17/2011, 05:36   #8
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by pro4never View Post
Try using default values or various versions of the same method if you want to only use 1 param sometimes.


Super basic example...

public static void WriteLine(string infoOne, string infoTwo = "", string infoThree = "")
{
Console.WriteLine(infoOne + " " + infoTwo + " " + infoThree);
}

If nothing is added for infoTwo or Three it won't matter (incredibly useless example but you get the idea)
Use params instead, like Console.WriteLine does.

Code:
public static void Write(String s, params Object[] p)
{
    if (p != null)
        for (int i = 0; i < p.Length; i++)
            s = s.Replace("{" + i + "}", p[i].ToString());
}
.Kinshi is offline  
Reply


Similar Threads Similar Threads
important question about cap 100
07/12/2009 - Silkroad Online - 4 Replies
In cap 100 who are stornger at pvp Europeans or Chineses? at lvl 100 and Euros will have LVL 100 skills?. answer. thx and Warrior cleric cann kills glaivers? bladers? all at cap 100? answer Thx.
2 Important question please come
03/19/2009 - Dekaron - 1 Replies
well, i have 2 question 1) someone have cooldown skills hack that i dont need to wait to skils? if yes give some link please 2)i see alot of player with weird name like "hft4d" etc... i know that but but i see alot of them attack one monster now my question is who get all the exp the bot or the player that the bot on? and how they do that alot of bot ?



All times are GMT +1. The time now is 06:46.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.