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 21:49

  • 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 04/09/2010, 02:58   #46
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by Paralyzer[GM] View Post
But then lets say someone was hacking your account they could get stright in I prefer it so they don't get to login 2x erm I would do lets say 1 character logged someone else trys to login BUT FROM A DIFF IP and it will alert the character that is trying to be logged saying something like "Somebody is trying to login to your account from the IP: x.xxx.xxx.xx if you do not know them please change your password before logging out, and alert the ServerCo staff otherwise the person could comprimise your account"
then add some codes for that... i would suggest u to use New Dawn algo (have some delay before the disconnection of the first client)... put your notice message somewhere in here:

Code:
                                        new Thread(new ThreadStart(
                                        delegate()
                                        {
                                           [COLOR="Red"] GC.AddSend(Packets.PopUpMessage(GC.MessageID, "This account has been loggedIn from different machine! you are advice to change you password immediately!")); [/COLOR]
                                             Thread.Sleep(200);
                                             Old.MyClient.Disconnect();
                                             Game.World.H_Chars.Remove(Old.EntityID);
                                            Thread.Sleep(200);
                                        }
                                        )).Start();
kamote is offline  
Thanks
1 User
Old 04/09/2010, 03:13   #47
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by kamote View Post
then add some codes for that... i would suggest u to use New Dawn algo... put your notice message somewhere in here:

Code:
                                        new Thread(new ThreadStart(
                                        delegate()
                                        {
                                           [COLOR="Red"] GC.AddSend(Packets.PopUpMessage(GC.MessageID, "This account has been loggedIn from different machine! you are advice to change you password immediately!")); [/COLOR]
                                             Thread.Sleep(200);
                                             Old.MyClient.Disconnect();
                                             Game.World.H_Chars.Remove(Old.EntityID);
                                            Thread.Sleep(200);
                                        }
                                        )).Start();
Don't change the thread's parameters!
Keep the Thread as is.

Plus, that pop up message won't work.
It should look like this ... which I'll implement into my code so there is no confusion.
Code:
delegate()
                                        {
                                            Thread.Sleep(200);
                                            Game.World.H_Chars.Remove(Old.EntityID);
                                            Thread.Sleep(200);
                                            GC.LocalMessage(2000, "This account has been logged in from different client! You are advised to change you password immediately!"); 

                                        }
Thanks =]
+k for the idea!
-NewDawn- is offline  
Old 04/09/2010, 08:21   #48
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by -NewDawn- View Post
Code:
delegate()
                                        {
                                            GC.AddSend(Packets.PopUpMessage(GC.MessageID, "This account has been loggedIn from different machine! you are advice to change you password immediately!")); 
                                            [B][COLOR="Red"]GC.EndSend();[/COLOR][/B]
                                            Thread.Sleep(200);
                                            Game.World.H_Chars.Remove(Old.EntityID);
                                            Thread.Sleep(200);}
...now the message will be seen.
-impulse- is offline  
Old 04/09/2010, 08:50   #49
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by -impulse- View Post
...now the message will be seen.
That still won't work. I'm not even sure what the pop up message command does. Can someone send me a screenshot? I think the method in use right now is correct.
-NewDawn- is offline  
Old 04/09/2010, 09:22   #50
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by -NewDawn- View Post
That still won't work. I'm not even sure what the pop up message command does. Can someone send me a screenshot? I think the method in use right now is correct.
If PopUpMessage wouldn't work then you wouldn't be able to connect on your serve.
-impulse- is offline  
Old 04/09/2010, 23:29   #51
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
I can log 2 times with the same acc :S. Just login very fast the both.
Can anyone post the fix one ... -.-
.Kob is offline  
Old 04/10/2010, 02:43   #52
 
elite*gold: 0
Join Date: May 2008
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by kamote View Post
try this code.. i tested it, and it worked fine! It look similar with the first one, but i added one single code(in color blue) to fix the bug. It will disconnect the first loggedIn client and let the later one get in.

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();
                                        [COLOR="Blue"] Game.World.H_Chars.Remove(Old.EntityID);[/COLOR]
                                        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
                                    {
                                        [COLOR="#ff0000"]Game.World.H_Chars.Add(GC.MyChar.EntityID, GC.MyChar);[/COLOR]
                                        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));
                                    }
this works fine with me
but still have erorr in consul
yes5090 is offline  
Old 04/10/2010, 11:08   #53
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
If you want help from me, MSN me.
I'm not posting any more releases.
#request close
-NewDawn- is offline  
Old 04/10/2010, 13:12   #54


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by -NewDawn- View Post
If you want help from me, MSN me.
I'm not posting any more releases.
#request close
Its not your thread, so you cant request that it be closed.
Korvacs is offline  
Old 03/18/2011, 21:15   #55
 
elite*gold: 0
Join Date: Apr 2009
Posts: 82
Received Thanks: 5
Lol all these codes are rubbish. Non of them work... The character laods before the npcs.
snow118 is offline  
Old 03/18/2011, 21:19   #56
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by snow118 View Post
Lol all these codes are rubbish. Non of them work... The character laods before the npcs.
That's what you get for bumping a nearly year-old thread.
nTL3fTy is offline  
Old 03/19/2011, 03:33   #57
 
elite*gold: 0
Join Date: Apr 2009
Posts: 82
Received Thanks: 5
nTL3fTy when it comes to 5165.. Im far more advanced than impulse or Arco... I will even release the code they couldnt...

PHP Code:
                                    GC.MyChar.AccountName Acc;
                                    if (!
Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        
Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.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.EntityIDGame.Status.Effect0));
                                    }
                                    else
                                    {
                                        
Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        
Old.MyClient.Disconnect();
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.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.EntityIDGame.Status.Effect0));
                                    }
                                    
Program.WriteLine(GC.MyChar.Name " has logged on.");
                                }
                                
GC.EndSend(); 

This will make the old client disconnect, stoppin rollbacks and cheats... The new client will login and will load after NPCS... so you dont have to jump on an offscreen. First time this has been released, so i hope you guys like it. Click thanks.
snow118 is offline  
Old 03/19/2011, 12:12   #58
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Quote:
Originally Posted by snow118 View Post
nTL3fTy when it comes to 5165.. Im far more advanced than impulse or Arco... I will even release the code they couldnt...

PHP Code:
                                    GC.MyChar.AccountName Acc;
                                    if (!
Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        
Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.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.EntityIDGame.Status.Effect0));
                                    }
                                    else
                                    {
                                        
Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        
Old.MyClient.Disconnect();
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.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.EntityIDGame.Status.Effect0));
                                    }
                                    
Program.WriteLine(GC.MyChar.Name " has logged on.");
                                }
                                
GC.EndSend(); 

This will make the old client disconnect, stoppin rollbacks and cheats... The new client will login and will load after NPCS... so you dont have to jump on an offscreen. First time this has been released, so i hope you guys like it. Click thanks.
Oh really? They could've made that with their eyes shut.

Least they dont use php tags around there code...

Now seriously, Stop being so arrogant.

--
First post for 2 months
_DreadNought_ is offline  
Thanks
3 Users
Old 03/19/2011, 12:24   #59
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Quote:
Originally Posted by snow118 View Post
nTL3fTy when it comes to 5165.. Im far more advanced than impulse or Arco... I will even release the code they couldnt...
You're retarted. Do you really think you're better than Impulse and Arco?
I think my shoes are falling off.

#Edit
This is how pro you are.




I believe you failed hard, when you said you were better.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 03/19/2011, 13:21   #60
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
He can't Make Simple NPCs, and he's FAR MORE ADVANCED *****!!!!!!!!!!!!!!!!!!!!!!!!
I laughed my *** off when John Showed me what he said rofl.
iStefan 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 21:49.


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.