Register for your free account! | Forgot your password?

You last visited: Today at 14:00

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

Advertisement



How save the account?

Discussion on How save the account? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
How save the account?

I'm makin a command for ban ppl, here is:

Code:
if (Cmd[0] == "/ban")
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null)
                                C.MyClient.AuthInfo.Status = "[ban]";
                                C.MyClient.Disconnect();
                             }
But, if the infractor log of, he have normal status again.

How i can save the status when i change it?

P.S = Sorry for the english lol. I'm spanish.
.Kob is offline  
Old 01/10/2010, 21:45   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Not having used the source I can't be super specific but I'd simple look for other areas in the source that the character/account info is updated. I know in coemu/cofuture and other sources using mysql it would be something like Database.Database.SaveCharacter but seeing as this source is using a text/ini file to store the data (assuming) there should still be something similar in the source basically writing the new data to the file.

Main things I'd check is character creation or first login (first login should be setting password so that would definitely need to save info to the account table)

Good luck.
pro4never is offline  
Old 01/10/2010, 23:23   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Thanks guy i find this in Database:

SaveCharacter(C, Account);

But in chat.cs i need rename Account for idk:

Database.SaveCharacter(C, Account);

#Edit: Maybe is:

Database.SaveCharacter(C, C.MyClient.AuthInfo.Account);

#2nd Edit: This not work but no give error:

if (Cmd[0] == "/ban")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.MyClient.AuthInfo.Status = "[ban]";
Database.SaveCharacter(C, C.MyClient.AuthInfo.Account);

}
.Kob is offline  
Old 05/05/2012, 20:00   #4
 
elite*gold: 0
Join Date: Apr 2012
Posts: 14
Received Thanks: 0
I'm don't knowing
freeman56 is offline  
Old 05/05/2012, 21:47   #5
 
tkblackbelt's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 266
Received Thanks: 85
Quote:
Originally Posted by freeman56 View Post
I'm don't knowing
Thank you for the most high quality and knowledgeable answer I've every seen.
tkblackbelt is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Save your SRO account...
05/05/2012 - Silkroad Online - 11 Replies
Tomarrow is the massive banlist on the server ''rome'' :cry: So i made a new account on silkroad-online.net and log in with your high lvl and trade all your items to the lvl 1 account.. You lose your account but not your items gold... etc..
Save
10/18/2009 - Metin2 Private Server - 2 Replies
Kanns sein dass der Server bissl länger braucht zum abspeichern aller daten...weil vorher hab ich boni eingefügt und rebootet und dann waren die weg o.O
[HELP]Save Bug?
02/11/2009 - CO2 Private Server - 9 Replies
i have a problem with COV2 Source ( 2009 Gift ), the problem is that it wont save characters or i am making characters wrong, when i make one , i relog when it dcs me like its supposed to but it just takes me back.. ( PeTe Ninja tried to help me, and he is working on to help me fix it ) ( this is also him posting this for me ) no flame please =]
frage: 2. account /save ??
06/14/2007 - WoW Bots - 6 Replies
so liebe leute.. ein acc. von mir ist banned, ich hatte da mal noch ein anderen acc. auf dem ich auch schon glider laufen hatte.. nun wen ich mich mit dem acc.. bei www.wow-europe.com einlogge steht da "acc. eigefrohren".. ist es möglich das mein 2. acc der im mom noch save zu scheinen ist.. bei der nächsten bann welle gebannt wird ? den ich wills nochmal probieren so richtig in die story einzutauchen und den ganzen shit nochmal durchzumachen so wie früher.. "hach schwärm" so was meint...
help save ur account
05/24/2007 - MapleStory - 16 Replies
ok . basically im here to say dont hack in town dont use fly hack or walking speed or grav.. or any other (not even on a new char) the reason why: when the noob is banned wizet keep ur ip or something along them lines then when you go onto ur lvl xx real char then like sorta follow you.. i know this dosent really explain but ill give u an example



All times are GMT +2. The time now is 14:00.


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.