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 19:03

  • 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 04/02/2008, 05:32   #661
 
elite*gold: 0
Join Date: Sep 2006
Posts: 335
Received Thanks: 185
did you edit your server.dat to connect to your server? when you run the server a control panel pops up and it allows you to choose which IP to listen on choose the one that looks like 192.***.***.*** copy that and paste it in your IP slot inside of the server.dat
ex:
Code:
Server2=Alumni
Ip2=192.168.1.73
Port2=9958
ServerName2=Alumni
HintWord2=
Pic2=servericon33
cjainy is offline  
Old 04/02/2008, 06:05   #662
 
elite*gold: 0
Join Date: Jan 2008
Posts: 10
Received Thanks: 0
Yup, I've edited the server.dat file accordingly, and put my IP in the Control Panel.
It connects, then says the server is having matinence, and I checked back in localhost/phpmyadmin and it shows a encrypted password next to my account.

Any Ideas how to log in?

[Edit]
Open Router Ports maybe? I dont know my username/password for my router though.

katanahack is offline  
Old 04/02/2008, 09:04   #663
 
elite*gold: 0
Join Date: Jan 2008
Posts: 10
Received Thanks: 0
Also, is there anyway to disable the commands?
katanahack is offline  
Old 04/02/2008, 13:32   #664
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Quote:
Originally Posted by tanelipe View Post
Look for Korvac's post @ page 40; There should be all the information needed to fix that error.
What I posted on previous page (about the line 317 problem..)
tanelipe is offline  
Old 04/02/2008, 13:57   #665

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by katanahack View Post
Also, is there anyway to disable the commands?
put all commands on PM mode or remove them completly
[edit]is there a way to get the /item use names instead of IDs?
Kiyono is offline  
Old 04/02/2008, 16:17   #666
 
elite*gold: 0
Join Date: Oct 2005
Posts: 31
Received Thanks: 1
Quote:
Originally Posted by Djago160 View Post
[edit]is there a way to get the /item use names instead of IDs?
Enumerating in the code will probably work like the maps are or making a db table
g_elf is offline  
Old 04/02/2008, 16:46   #667
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Load the ItemType.dat into Hashtable (containing all the shiz, easy to access also) (Decrypted one ofcourse) after that when you need to access, just foreach through it


Code:
foreach(DictionaryEntry DE in ItemDatabase)
{
   if(DE.Value.toString().Split('~')[1] == Splitter[1])
   {
      // If the Name was found
      // First one = ID, second = Name
      // Atleast this is how it's in the ItemType.dat
      // This would be rather messy way tho but... better than nothing
   }
}
tanelipe is offline  
Old 04/02/2008, 17:06   #668

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by tanelipe View Post
Load the ItemType.dat into Hashtable (containing all the shiz, easy to access also) (Decrypted one ofcourse) after that when you need to access, just foreach through it

where exactly is the table?
Kiyono is offline  
Old 04/02/2008, 18:25   #669
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Uhm, I don't have this source, so I don't know if there even is table wich contains Item Informations. Best way probably would be that you make on your self (Doesn't even have to be in MySQL format if you load it directly from a .txt file from your server location.)
tanelipe is offline  
Old 04/02/2008, 19:11   #670

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by tanelipe View Post
Uhm, I don't have this source, so I don't know if there even is table wich contains Item Informations. Best way probably would be that you make on your self (Doesn't even have to be in MySQL format if you load it directly from a .txt file from your server location.)
any suggestion how to? and i already have itemtype decrypted
Kiyono is offline  
Old 04/02/2008, 19:44   #671
 
elite*gold: 0
Join Date: Oct 2005
Posts: 31
Received Thanks: 1
WareHouse Deposite and Withdraw Money, still doesnt show in WH how much u have save still working on that, help would be nice ;D

@PacketHandler.cs find case 1009 subtype 10 and 11
Code:
case 10: // Warehouse <Deposit Money>
                                {
                                    Console.WriteLine("[Client Packet]Item Packet: Warehouse <Deposit Money>");
                                    int DepMoney = (data[9] << 8) + data[8];
                                    Console.WriteLine("DepMoney = " + DepMoney);
                                    Client.Char.Money -= DepMoney;
                                    Client.SendData(CPacket.Status(Client.Char, 1, Client.Char.Money, StatusTypes.InvMoney));
                                    Client.Char.WhMoney += DepMoney;
                                    Client.SendData(CPacket.Status(Client.Char, 1, Client.Char.WhMoney, StatusTypes.WhMoney));
                                    Database.UpdateCharMoney(Client);
                                    Database.UpdateCharWhMoney(Client);

                                    
                                    break;
                                }
                            case 11: // Warehouse <Withdraw Money>
                                {
                                    Console.WriteLine("[Client Packet]Item Packet: Warehouse <Withdraw Money>");
                                    int WithMoney = (data[9] << 8) + data[8];
                                    Console.WriteLine("WithMoney = " + WithMoney);
                                    if (Client.Char.WhMoney - WithMoney >= 0)
                                    {
                                        Client.Char.WhMoney -= WithMoney;
                                        Client.Char.Money += WithMoney;
                                        Client.SendData(CPacket.Status(Client.Char, 1, Client.Char.WhMoney, StatusTypes.WhMoney));
                                        Client.SendData(CPacket.Status(Client.Char, 1, Client.Char.Money, StatusTypes.InvMoney));
                                        Database.UpdateCharMoney(Client);
                                        Database.UpdateCharWhMoney(Client);
                                    }
                                    
                                    break;
                                }
@ ConquerPackets.cs find "StatusTypes" and add
EDIT:
Code:
WhMoney = 10,
@ Database.cs add

Code:
public static void UpdateCharWhMoney(COClient Client)
        {
            MySqlCommand Command = new MySqlCommand("UPDATE `Characters` Set `WHMoney` = "" + Client.Char.WhMoney + "" WHERE `CharID` = "" + Client.Char.CharID + """, DatabaseConnection);
            try
            {
                Command.ExecuteNonQuery();
            }
            catch
            {

            }
        }
hope it helps
g_elf is offline  
Old 04/03/2008, 00:56   #672
 
elite*gold: 0
Join Date: Jan 2008
Posts: 10
Received Thanks: 0
Alright, so I can connect to my server, but my friend cannot. Yes I created an account for him, and yes Ports 9958 and 9960 are open on my firewall, and he is connected to the server with Hamachi.

Any Ideas?

[Edit]
When you edit the npcs to make them do stuff (talk, give items, etc), is there any way to make an NPC make you a certain level?
katanahack is offline  
Old 04/03/2008, 05:45   #673
 
elite*gold: 0
Join Date: Jan 2008
Posts: 10
Received Thanks: 0
When I run COServer.exe, I get this error:



See, it connects, but then as soon as the shops are loaded, it gets an error.
katanahack is offline  
Old 04/03/2008, 15:09   #674
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Prolly u doin wrong sumthin or running wrong Server.exe Thats why go check again and make sure everythin is right
damianpesta is offline  
Old 04/03/2008, 16:53   #675

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
k i ported the Mob files from the 5011 release to this one but i have 1 problem the mobs don't spawn and they don't spawn either on the 5011(or im not searching at the rright place)
and where is the HP located cause normaly you login with 1 HP and and that is...well anoying
[edit]how do you change the service messages when you login
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 19:03.


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.