Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 08:15

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

Advertisement



Guide/Release: Conquer Server (CoFuture) Using MySql!

Discussion on Guide/Release: Conquer Server (CoFuture) Using MySql! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 03/13/2008, 00:44   #496
 
elite*gold: 0
Join Date: Jul 2005
Posts: 14
Received Thanks: 8
Quote:
Originally Posted by Korvacs View Post
@holymage,

gg on making them commands, however your skill command needs to be changed to else if not just if, to save the server some time, secondly youll also need to add return 2; to the end of the skill command, to inform the server that the command was used succesfully otherwise youll never know if there was a problem durring using it,

thirdly you also need to add the line to change the char's last command var to the last command you used so that if there is a problem the server will be able to inform you of the last command you used....

all trivial stuff really but.....ya know
Thanks for the advice I do that right away

EDIT: I fixed it, that wasn't really that hard at all. I would like to learn a lot more about mysql version of co and C#. Do you have any suggestions on where to get me started on the right track?
HolyMage is offline  
Old 03/13/2008, 02:46   #497
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
@HolyMage, will you send me the new commands.cs once you have it fixed? Thanks
walmartboi is offline  
Old 03/14/2008, 21:08   #498

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
1 question the /item command swork like this right?
/item [itemhere] 9 7 255 13 13 right?
but that doesn't work
Kiyono is offline  
Old 03/14/2008, 23:55   #499
 
elite*gold: 0
Join Date: Dec 2007
Posts: 69
Received Thanks: 0
Ihave error:
Auth Packet:Auth Request ;(

Help me pls
wolas112pl is offline  
Old 03/15/2008, 01:59   #500
 
elite*gold: 0
Join Date: Jul 2005
Posts: 14
Received Thanks: 8
Quote:
Ihave error:
Auth Packet:Auth Request ;(

Help me pls
You need to read the posts

Quote:
Originally Posted by Korvacs
Quote:
Also for all people receiving the 317/318 error:

Change your database type from 0 to 1, a noob error on mine and futures part,


Quote:
Originally Posted by Walos
Ok if you get try to log in and get an error similar to this


Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer.Start.Game_FirstDataArrived(Object sender, DataArgs e) in CoFuture_ReleaseServerStart.cs:line 317which should be one of these 2 lines
Code:
                COClient Cli = ((COServer.AuthServerPackets.AuthRequest.AuthBinder)GameClients[e.Conn]).Client;
                string User = Cli.Account + ": " + Cli.Char.Name;and get the Error: Connection with Server is interupted. Please re-login. on your client
make sure in your account table auth is set to 1
eg
Code:
AccountID    Password    Type   Auth     Address
NewChar                    0      1       NULLAlso make sure tha the password field is blank
Changing the Auth to 1 and having a blank password try to log in again and now you should have the create char screen on the client

If you get

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer.Start.Game_FirstDataArrived(Object sender, DataArgs e) in CoFuture_ReleaseServerStart.cs:line 317
and get to the create char screen of the client then what i think is happening is that it is connecting you to the game server without first making sure that there is a row in the character table (CharID) with the same accountid as in the account table. CharID == AccountID.... This will raise the exception but allow you to create the char.

After you successfully created the char you should be able to login and these error will not appear for that account/char

I hope this helps the thing to make sure is that Auth is 1 and password is blank
Cheers
Walos

I Have had a bit of a look through this again and if you change this in start.cs



Code:
string User = Cli.Account + ": " + Cli.Char.Name;
ClientList.Items.Add(User);to

Code:
if (Cli.Status != Mode.CreateCharacter)
{
   string User = Cli.Account + ": " + Cli.Char.Name;
   ClientList.Items.Add(User);
}
Assumming that Auth is set right in the account table you shouldnt see this error again.
Its caused when you are creating a new Character as Cli.Char does not exist yet
Cheers
Walos

And that should be that, full credit to Walos for finding the source of the error and correcting it
Also you have to make sure your sql database server port matches your gameport in your Start.cs and in you server.dat also.


Quote:
Originally Posted by Djago160 View Post
1 question the /item command swork like this right?
/item [itemhere] 9 7 255 13 13 right?
but that doesn't work
This is how it should go when you typing it in
/item [ItemID] [PLUS] [MINUS] [HP] [GEM1]* [GEM2]* 0 0
So here is an example.
Code:
/item [ItemID] 9 7 255 13 13 0 0
To make an item super using this method. The last number has to be 9 so like for example
ItemID = 111309
which is a Super Iron Helment notice the 9 at the end
ItemID = 111303
is a normal one

To Find the Item ID you have to have the items list I have provide at this posted.

*
For each gem in the socs as follows.
1= Normal PhoenixGem
2= Refined PhoenixGem
3= Super PhoenixGem
11= Normal DragonGem
12= Refined DragonGem
13= Super DragonGem
21= Normal FuryGem
22= Refined FuryGem
23= Super FuryGem
31= Normal RainbowGem
32= Refined RainbowGem
33= Super RainbowGem
41= Normal KylinGem
42= Refined KylinGem
43= Super KylinGem
51= Normal VioletGem
52= Refined VioletGem
53= Super VioletGem
Attached Files
File Type: rar Items.rar (65.3 KB, 52 views)
HolyMage is offline  
Old 03/15/2008, 09:40   #501

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
i can also find the item IDs in the itemtype.dat right
btw i have a problem
when i put the /prof part in the commands.cs and the prof.cs in the folder and i try to rebuild i get a error:
The name prof does not exist in the current context
Kiyono is offline  
Old 03/15/2008, 10:52   #502
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
About the /prof command, made it a little better looking ->

Can someone test it and say if it worked, 'cause I don't have the COFuture currently on my computer.

P.S You gotta admit it looks a little neater. :P

Code:
if (Splitter[0] == "/wskill" || Splitter[0] == "/prof")
            {
                ushort ProfID = 0;
                switch (Splitter[1])
                {
                    #region WeaponNames
                    case "blade": ProfID = 410; break;
                    case "sword": ProfID = 420; break;
                    case "bow": ProfID = 500; break;
                    case "club": ProfID = 480; break;
                    case "bs": ProfID = 421; break;
                    case "hook": ProfID = 430; break;
                    case "whip": ProfID = 440; break;
                    case "mace": ProfID = 441; break;
                    case "axe": ProfID = 450; break;
                    case "hammer": ProfID = 460; break;
                    case "scepter": ProfID = 481; break;
                    case "dagger": ProfID = 490; break;
                    case "glaive": ProfID = 510; break;
                    case "poleaxe": ProfID = 530; break;
                    case "spear": ProfID = 560; break;
                    case "longhammer": ProfID = 540; break;
                    case "halbert": ProfID = 580; break;
                    case "wand": ProfID = 561; break;
                    #endregion
                }
                if (ProfID != 0)
                {
                    byte ProfLvl = 0;
                    byte.TryParse(Splitter[2], out ProfLvl);
                    if (ProfLvl == 0)
                        ProfLvl = 1;
                    if (ProfLvl > 20)
                        ProfLvl = 20;

                    Client.Char.PreviousCommand = Splitter[1];
                    Client.SendData(Prof.Skill(ProfID, ProfLvl));
                    return 2;
                }
            }
tanelipe is offline  
Old 03/15/2008, 10:54   #503

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by tanelipe View Post
About the /prof command, made it a little better looking ->

Can someone test it and say if it worked, 'cause I don't have the COFuture currently on my computer.

Code:
if (Splitter[0] == "/wskill" || Splitter[0] == "/prof")
            {
                ushort ProfID = 0;
                switch (Splitter[1])
                {
                    #region WeaponNames
                    case "blade": ProfID = 410; break;
                    case "sword": ProfID = 420; break;
                    case "bow": ProfID = 500; break;
                    case "club": ProfID = 480; break;
                    case "bs": ProfID = 421; break;
                    case "hook": ProfID = 430; break;
                    case "whip": ProfID = 440; break;
                    case "mace": ProfID = 441; break;
                    case "axe": ProfID = 450; break;
                    case "hammer": ProfID = 460; break;
                    case "scepter": ProfID = 481; break;
                    case "dagger": ProfID = 490; break;
                    case "glaive": ProfID = 510; break;
                    case "poleaxe": ProfID = 530; break;
                    case "spear": ProfID = 560; break;
                    case "longhammer": ProfID = 540; break;
                    case "halbert": ProfID = 580; break;
                    case "wand": ProfID = 561; break;
                    #endregion
                }
                if (ProfID != 0)
                {
                    byte ProfLvl = 0;
                    byte.TryParse(Splitter[2], out ProfLvl);
                    if (ProfLvl == 0)
                        ProfLvl = 1;
                    if (ProfLvl > 20)
                        ProfLvl = 20;

                    Client.Char.PreviousCommand = Splitter[1];
                    Client.SendData(Prof.Skill(ProfID, ProfLvl));
                    return 2;
                }
            }
i will try because the other prof script doesn't work
edit: no i get the same error
Kiyono is offline  
Old 03/15/2008, 11:03   #504
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
The problem with your error is probably.. that you don't have the Skill Packet declared. Let me see If I can find a fix for you.

EDIT :

Try replacing the line

Client.SendData(Prof.Skill(ProfID, ProfLvl));

with ->

Client.SendData(CPacket.Skill(ProfID, ProfLvl, 0));


EDIT2 ::
After reading error you described, and looking on the Prof.cs
I suppose It should be -> PacketBuilder.Skill(ProfID, ProfLvl)
Instead of Prof.Skill(ProfID, ProfLvl)

And have you added the Prof.cs to the project? Or have you just put the file on the folder ? (It won't automatically include it in the project..)
tanelipe is offline  
Old 03/15/2008, 11:10   #505
 
elite*gold: 0
Join Date: Dec 2007
Posts: 69
Received Thanks: 0
OK work!
Thank You !!
wolas112pl is offline  
Old 03/15/2008, 11:36   #506

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
O.o i have no idea what i did but i van't connect to my server anymore...
Kiyono is offline  
Old 03/15/2008, 11:41   #507

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by tanelipe View Post
The problem with your error is probably.. that you don't have the Skill Packet declared. Let me see If I can find a fix for you.

EDIT :

Try replacing the line

Client.SendData(Prof.Skill(ProfID, ProfLvl));

with ->

Client.SendData(CPacket.Skill(ProfID, ProfLvl, 0));


EDIT2 ::
After reading error you described, and looking on the Prof.cs
I suppose It should be -> PacketBuilder.Skill(ProfID, ProfLvl)
Instead of Prof.Skill(ProfID, ProfLvl)

And have you added the Prof.cs to the project? Or have you just put the file on the folder ? (It won't automatically include it in the project..)
i did include dit(left click Prof.CS add in project right)

edit:after i replaced it i get a other error
No overload for method 'Skill' takes '2' arguments
edit2:i tried packetbuilder instead of proff and now it does work
edit3:downloading Qonquer client
Kiyono is offline  
Old 03/15/2008, 12:15   #508
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
So, it's compiling just fine now?
tanelipe is offline  
Old 03/15/2008, 12:18   #509
 
elite*gold: 0
Join Date: Dec 2007
Posts: 69
Received Thanks: 0
I can't wear weapon lvl 130 why ??
wolas112pl is offline  
Old 03/15/2008, 12:28   #510

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Acct typ 2 auth 1 doesn't work...
Kiyono is offline  
Closed Thread


Similar Threads Similar Threads
[Guide]cofuture source
06/11/2011 - CO2 PServer Guides & Releases - 91 Replies
hi guys am new here and i hope stay here for long time ------------ i make this guide Couz i found alot pll cant work with cofuture source --------------- Coder source:future <<<Thanks to hime 1st helping me:haydeZ<<<<Thanks to hime 2nd --------------------------------------- What we are need? 1:cofuture source>>>Download Here 2:AppServ(MySQL, Apache, and PhpMyAdmin all in one)>>>>AppServNetwork
[Request]Conquer Server (CoFuture) Using MySql
06/25/2008 - Conquer Online 2 - 2 Replies
hey I want to get the Conquer Server (CoFuture) Using MySql Source but all links down Can someone add it on rapidshare? or other Site? thank you if you up it in a site ps:sorry for my bad english :)
Need help Guide/Release: Conquer Server (CoFuture) Using MySql!
05/28/2008 - Conquer Online 2 - 1 Replies
Hello i tryed that Guide/Release: Conquer Server (CoFuture) Using MySql! But it don't work i can't do that phpmyadmin think anyone can help me the language is german but i wanted to change it to english but idk how. If anyone got Teamviewer or somethink like that would be nice greetz



All times are GMT +1. The time now is 08:16.


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.