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 00:17

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

Advertisement



Fix for multiple logging in at one time

Discussion on Fix for multiple logging in at one time within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Fix for multiple logging in at one time

Well some of you have noticed a bug that you can log onto one account multiple times simultaneously. Here's the fix.
Go to gameworker.cs and find.
Code:
if (Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        Old.MyClient.Disconnect();
                                        if (!Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                            Game.World.H_Chars.Add(GC.MyChar.EntityID, GC.MyChar);
                                        GC.MyChar = Database.LoadCharacter(GC.AuthInfo.Character, ref Acc);
                                        GC.MyChar.MyClient = GC;
                                        GC.AddSend(Packets.SystemMessage(GC.MessageID, "ANSWER_OK"));
                                        GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.VIPLevel, GC.MyChar.VipLevel));
                                        GC.AddSend(Packets.Time());
                                        GC.AddSend(Packets.Donators(GC.MyChar));
                                        GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Effect, 0));
                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.SystemMessage(GC.MessageID, "ANSWER_OK"));
                                        GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.VIPLevel, GC.MyChar.VipLevel));
                                        GC.AddSend(Packets.Time());
                                        GC.AddSend(Packets.Donators(GC.MyChar));
                                        GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Effect, 0));
                                    }
and replace that with
Code:
if (!Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        
                                        Game.World.H_Chars.Add(GC.MyChar.EntityID, GC.MyChar);
                                        GC.AddSend(Packets.SystemMessage(GC.MessageID, "ANSWER_OK"));
                                        GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.VIPLevel, GC.MyChar.VipLevel));
                                        GC.AddSend(Packets.Time());
                                        GC.AddSend(Packets.Donators(GC.MyChar));
                                        GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Effect, 0));
                                    }
                                    else
                                    {
                                        return;
                                    }
Done.
Arcо is offline  
Thanks
6 Users
Old 04/06/2010, 08:52   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Awesome Arco! I never tried it. Lol, nice debugging =P
-NewDawn- is offline  
Old 04/06/2010, 08:56   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
lol if u put this fix in ur server.. it never worked.. iloged over 5 accounst at once
PeTe Ninja is offline  
Thanks
1 User
Old 04/06/2010, 08:57   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by PeTe Ninja View Post
lol if u put this fix in ur server.. it never worked.. iloged over 5 accounst at once
I barely put this fix in this morning -,-
Arcо is offline  
Old 04/06/2010, 08:58   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by .Arco View Post
I barely put this fix in this morning -,-
ahh okay good was ognna say
PeTe Ninja is offline  
Old 04/06/2010, 09:09   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Isnt this the way to stop the duplin the cps and items because they cannot login more the once?

if it is the fix for the duplin then Justin gave this to you and you where told not to release it :P
Paralyzer[GM] is offline  
Old 04/06/2010, 09:11   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Paralyzer[GM] View Post
Isnt this the way to stop the duplin the cps and items because they cannot login more the once?

if it is the fix for the duplin then Justin gave this to you and you where told not to release it :P
Yes this is that fix, and justin's fix didn't work for me. I recoded it and it worked perfectly. I suggest you take a look at korvacs signature kthx.

edit:
Actually it was nullable who was the one who helped me in the end.
So much credits to nullable as well as me.
Arcо is offline  
Thanks
1 User
Old 04/06/2010, 09:33   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
That's odd, according to Justin he fixed it all for you.
Paralyzer[GM] is offline  
Old 04/06/2010, 09:35   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Paralyzer[GM] View Post
That's odd, according to Justin he fixed it all for you.
Justin thought he did, as did i, but once he logged off msn I had problems which walter tried to help then null helped me.
Null was succesful.
Like I said, korvacs sig...
Arcо is offline  
Thanks
1 User
Old 04/06/2010, 09:40   #10
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Why do you keep saying look at korv sig I know full well what I am talking about but I did not know the full story however I know what I am talking about :P

Thanks, Goodluck I am using Justins.
Paralyzer[GM] is offline  
Old 04/06/2010, 10:04   #11
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
It works for me. It doesn't let the second client connect to the same character: it gets stuck on "Logging into the game server"... so thanks Arco =P
-NewDawn- is offline  
Old 04/06/2010, 10:09   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by -NewDawn- View Post
It works for me. It doesn't let the second client connect to the same character: it gets stuck on "Logging into the game server"... so thanks Arco =P
No problem, glad I could help someone. And should give nullable a lil thanks to
Arcо is offline  
Old 04/06/2010, 20:30   #13
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
[GM] is offline  
Thanks
1 User
Old 04/06/2010, 21:14   #14
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by .Arco View Post
TEXT

and replace that with
Code:
if (!Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        
                                        Game.World.H_Chars.Add(GC.MyChar.EntityID, GC.MyChar);
                                        GC.AddSend(Packets.SystemMessage(GC.MessageID, "ANSWER_OK"));
                                        GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.VIPLevel, GC.MyChar.VipLevel));
                                        GC.AddSend(Packets.Time());
                                        GC.AddSend(Packets.Donators(GC.MyChar));
                                        GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Effect, 0));
                                    }
                                    else
                                    {

                                        try{

                                        Game.Character chr = Game.World.H_Chars[GC.MyChar.EntityID];

                                        chr.MyClient.Disconnect();}catch{}

                                        if 
                                        (Game.World.H_Chars.Contains(GC.MyChar.EntityID))

                                        
                                        Game.World.H_Chars.Remove(GC.MyChar.EntityID);

                                        Game.World.H_Chars.Add(GC.MyChar.EntityID, GC.MyChar);                    
                                        GC.AddSend(Packets.SystemMessage(GC.MessageID, "ANSWER_OK"));                     
                                        GC.AddSend(Packets.CharacterInfo(GC.MyChar));

                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.VIPLevel, 
                                        GC.MyChar.VipLevel));

                                        GC.AddSend(Packets.Time());

                                        GC.AddSend(Packets.Donators(GC.MyChar));

                                        GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));

                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Effect, 0));
}
Done.
-impulse- is offline  
Thanks
1 User
Old 04/06/2010, 21:38   #15
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Lol just had to show me up eh?
Arcо is offline  
Reply


Similar Threads Similar Threads
Can run bot on multiple client at same time?
03/15/2010 - GW Bots - 2 Replies
Hi, sorry if this question is basic but I am a noob with computers. I have GW Multi Launch and have several accounts that I can bot on, but for some reason the bot and/or the injector only works for 1 client at a time. Is there any way to bot on 2 GW at once?
Sibibot first time logging
05/24/2009 - SRO Private Server - 0 Replies
Hello!Can somebody explain me why i need to log to sjsro from the first time so that sibibot can hunt alone?I would be gratefull if somebody could tell me some ideas to fix this little annoying "bug" ... Thx in advance ! Your buddy, rockangel
Buy multiple db packs as first time buyer(Paypal only)
04/04/2008 - CO2 Guides & Templates - 8 Replies
If your in a hurry to buy multiple db packs but dont want to wait 3 days to buy again then this will help you. You will need 2 or more email accounts to do this and a paypal. Buy your dbs like normal then it should be emailed to you. Go to your paypal account and change your primary email to something different and it will change your log in to something else and trick the buying process to think your someone different. The codes should be emailed to your new primary email. Hope that helps.



All times are GMT +1. The time now is 00:18.


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.