Register for your free account! | Forgot your password?

You last visited: Today at 17:07

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

Advertisement



[Release]5018+ Source

Discussion on [Release]5018+ Source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 07/30/2010, 21:09   #16


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by Basser View Post
Wrong.
Send a HTTP request to a server.
(Connect to it via e.g. Firefox, or any other internet browser using )
Depends on how the server handle the packets My auth server just said that a packet with an unknow type has been sent. My game server throw an exception because he can't read after the end of the stream. The first packet should be the DH Key answer. If it's not, you will get an error because most of the packets aren't big as the DH Key packets. And you need to decrypt it correctly.
CptSky is offline  
Old 07/30/2010, 21:29   #17
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by CptSky View Post
Depends on how the server handle the packets My auth server just said that a packet with an unknow type has been sent. My game server throw an exception because he can't read after the end of the stream. The first packet should be the DH Key answer. If it's not, you will get an error because most of the packets aren't big as the DH Key packets. And you need to decrypt it correctly.
That proves you incorrect.
Just try it, btw, send the HTTP to the game server, it will throw an exception, which is my point, it could be a wrong packet, doesn't have to be a wrong decryption key, it can be a completely random packet.
Basser is offline  
Old 07/30/2010, 21:38   #18


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by Basser View Post
That proves you incorrect.
Just try it, btw, send the HTTP to the game server, it will throw an exception, which is my point, it could be a wrong packet, doesn't have to be a wrong decryption key, it can be a completely random packet.
Sure, but if you use a wrong decryption key, you will read the value of the length of the P and G key, and you will get something unreal. You will probably read more than the stream.
CptSky is offline  
Old 07/30/2010, 22:06   #19
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by CptSky View Post
Sure, but if you use a wrong decryption key, you will read the value of the length of the P and G key, and you will get something unreal. You will probably read more than the stream.
Or in some cases it is shorter.
That's why you should check the length it is going to read, and always finish with reading the seal and check if this one is TQServer, if it is, it is correct, if its not, it isn't, so forget about that connection. (You could save the IP and when it happens too many times, ban him, because he might be trying to crash the server, using a horrible method)
Basser is offline  
Old 07/30/2010, 23:08   #20
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Awsome release Arco
Goodluck
Fish* is offline  
Old 07/31/2010, 05:16   #21
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
Quote:
Originally Posted by .Arco View Post
Hello all, I want to present to you a 5018+ BASE.
It is a base and only a base, it is Hybrid's rev3 upgraded with blowfish and using the dhkeyexchange. I am currently working on my own that is 5065 and I will not update this source for you at all. It is for those of you who would like a 5018 and can update packets. The database is included.
To change the IP to your IP it is in the AuthReceive void in program.cs.
Credits;
InFlamedCOD for releasing the socket system he used.

Me for putting it to use, which I know most of you wouldn't have been able to done so its done for you^^
Thank you, i haven't been around lately, i just got back and SEEN THIS! WOOTS!
arab4life is offline  
Thanks
1 User
Old 07/31/2010, 09:46   #22
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
So any more input people? What do you guys think of it?
Arcо is offline  
Thanks
1 User
Old 07/31/2010, 10:41   #23
 
NukingFuts's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 480
Received Thanks: 111
great job buddy keep up da good work
NukingFuts is offline  
Old 08/01/2010, 05:12   #24
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
I thought I would share one thing I did (Is converted from the 5165).
It is the additem.
Go to GameClient.cs
find:
Code:
        private void CreateInventoryInstance()
under that void put:
Code:
#region AddItem
        //public ArrayList InvCount;
        public void AddItem(uint ID, byte Plus, byte Bless, byte Enchant, byte ISocket1, byte ISocket2)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
                item.Plus = Plus;
                    item.Bless = Bless;
                        item.Enchant = Enchant;
                            item.SocketOne = ISocket1;
                                item.SocketTwo = ISocket2;

            AddInventory(item);
        }
        public void AddItem(uint ID, byte Plus, byte Bless, byte Enchant, byte ISocket1)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;
            item.Enchant = Enchant;
            item.SocketOne = ISocket1;

            AddInventory(item);
        }
        public void AddItem(uint ID, byte Plus, byte Bless, byte Enchant)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;
            item.Enchant = Enchant;

            AddInventory(item);
        }
        public void AddItem(uint ID, byte Plus, byte Bless)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;

            AddInventory(item);
        }
        public void AddItem(uint ID, byte Plus)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;

            AddInventory(item);
        }
        public void AddItem(uint ID)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;

            AddInventory(item);
        }
        #endregion
Now you can add items with +,bless,hp,soc1,soc2.
ex. for 130blade:
Code:
AddItem(410339, 12, 7, 255, 13, 13);
Fish* is offline  
Old 08/01/2010, 10:19   #25
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Use object initializers.
Basser is offline  
Old 08/01/2010, 10:42   #26
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
@grillmad
The hell?
Code:
        public void AddItem(uint ID, byte Plus, byte Bless, byte Enchant, byte ISocket1, byte ISocket2)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
                item.Plus = Plus;
                    item.Bless = Bless;
                        item.Enchant = Enchant;
                            item.SocketOne = ISocket1;
                                item.SocketTwo = ISocket2;

            AddInventory(item);
        }
        public void AddItem(uint ID, byte Plus, byte Bless, byte Enchant, byte ISocket1)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;
            item.Enchant = Enchant;
            item.SocketOne = ISocket1;

            AddInventory(item);
        }
Why 2 voids?
Pointless.
Arcо is offline  
Thanks
1 User
Old 08/01/2010, 20:07   #27
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
so u can do: anyways, is just converted from the 5165 :P
AddItem(ID);
AddItem(ID, +);
AddItem(ID, +, Bless);
AddItem(ID, +, Bless, Enchant);
AddItem(ID, +, Bless, Enchant, Soc1);
AddItem(ID, +, Bless, Enchant, Soc1, Soc2);
Fish* is offline  
Old 08/02/2010, 00:22   #28
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by grillmad View Post
so u can do: anyways, is just converted from the 5165 :P
AddItem(ID, +, Bless, Enchant);
AddItem(ID);
AddItem(ID, +);
AddItem(ID, +, Bless);
AddItem(ID, +, Bless, Enchant, Soc1);
AddItem(ID, +, Bless, Enchant, Soc1, Soc2);
All you need is AddItem(ID, +, Bless, Enchant, Soc1, Soc2);
That'll be enough.
If all you want is the item then do, AddItem(410339, 0, 0, 0 , 255, 255);
If all you want is 1soc then do AddItem(410339, 0, 0, 0 13, 255);

Having those other methods is kinda pointless.
Arcо is offline  
Thanks
2 Users
Old 08/02/2010, 00:47   #29


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Code:
        public void AddItem(uint ID, byte Plus = 0, byte Bless = 0, byte Enchant = 0, byte ISocket1 = 0, byte ISocket2 = 0)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;
            item.Enchant = Enchant;
            item.SocketOne = ISocket1;
            item.SocketTwo = ISocket2;

            AddInventory(item);
        }
Win.
Korvacs is offline  
Thanks
4 Users
Old 08/02/2010, 00:58   #30
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by Korvacs View Post
Code:
        public void AddItem(uint ID, byte Plus = 0, byte Bless = 0, byte Enchant = 0, byte ISocket1 = 0, byte ISocket2 = 0)
        {
            IConquerItem item = new ItemDataPacket(true);
            item.UID = ItemDataPacket.NextItemUID;
            item.ID = ID;
            item.Plus = Plus;
            item.Bless = Bless;
            item.Enchant = Enchant;
            item.SocketOne = ISocket1;
            item.SocketTwo = ISocket2;

            AddInventory(item);
        }
Win.
Exactly what I was trying to say!!!!
Arcо is offline  
Thanks
2 Users
Closed Thread


Similar Threads Similar Threads
[Development] 5018 Conquer Server Source
07/19/2010 - CO2 Private Server - 23 Replies
deleted by request.
Hybrid's source +5018
07/03/2010 - CO2 Private Server - 7 Replies
Well I'm upgrading Hybrid's source past 5017, everything seems good to go, but on logging in, I get thus exception. http://img256.imageshack.us/img256/4273/63984248. jpg Anyone know whats wrong?



All times are GMT +2. The time now is 17:07.


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