Register for your free account! | Forgot your password?

You last visited: Today at 13:04

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

Advertisement



sumthing wrong

Discussion on sumthing wrong within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 28
Received Thanks: 4
sumthing wrong

ok when u lvl to 137 then relog u are 130 again. has anyone had this problem? how can i fix?
tomtucker is offline  
Old 10/06/2010, 22:10   #2
 
Galactic's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 84
Received Thanks: 46
I'm not sure what you really mean. But I think can help you.
Galactic is offline  
Old 10/06/2010, 22:16   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Your character probably didn't save before it logged off.
Arcо is offline  
Old 10/06/2010, 23:11   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 28
Received Thanks: 4
Here is my savecharacter

Quote:
public static void SaveCharacter(Game.Character C, string Acc)
{
try
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + C.Name + ".chr", FileMode.Open);
BinaryWriter BW = new BinaryWriter(FS);

int DoubleExp = C.DoubleExpLeft;
if (C.DoubleExp)
DoubleExp -= (int)(DateTime.Now - C.ExpPotionUsed).TotalSeconds;

BW.Write(Acc);
BW.Write(C.EntityID);
BW.Write(C.Avatar);
BW.Write(C.Body);
BW.Write(C.Hair);//Hair
BW.Write(C.Loc.Map);//Map
BW.Write(C.Loc.X);//X
BW.Write(C.Loc.Y);//Y
BW.Write(C.Loc.PreviousMap);//Previous Map
BW.Write(C.Job);
BW.Write(C.PreviousJob);//Previous Job, 1st RB
BW.Write(C.Level);//Level
BW.Write(C.Experience);//Experience
BW.Write(C.Str);
BW.Write(C.Agi);
BW.Write(C.Vit);
BW.Write(C.Spi);
BW.Write(C.StatPoints);//Stat Points
BW.Write(C.CurHP);
BW.Write(C.CurMP);//MP
BW.Write(C.Nobility.Donation);
BW.Write(C.Silvers);//Silvers
BW.Write(C.CPs);
BW.Write(C.WHSilvers);//Warehouse Silvers
BW.Write(C.VP);//Virtue Points
BW.Write(C.PKPoints);//PK Points
if (C.MyGuild != null)
{
BW.Write(C.MyGuild.GuildID);//Guild
BW.Write(C.GuildDonation);//Guild Donation
BW.Write((byte)C.GuildRank);//Guild Rank
}
else BW.Write(new byte[7]);
C.Equips.WriteThis(BW);
BW.Write((byte)C.Inventory.Count);
foreach (Game.Item I in C.Inventory)
I.WriteThis(BW);
C.Warehouses.WriteThis(BW);
BW.Write((byte)C.Skills.Count);
foreach (Game.Skill I in C.Skills.Values)
I.WriteThis(BW);
BW.Write((byte)C.Profs.Count);
foreach (Game.Prof I in C.Profs.Values)
I.WriteThis(BW);
BW.Write((byte)C.Friends.Count);
foreach (Game.Friend I in C.Friends.Values)
I.WriteThis(BW);
BW.Write((byte)C.Enemies.Count);
foreach (Game.Enemy I in C.Enemies.Values)
I.WriteThis(BW);

BW.Write(C.DoubleExp);
BW.Write(DoubleExp);
BW.Write(C.BlessingLasts);
BW.Write(C.BlessingStarted.Ticks);
if (C.GettingLuckyTime)
{
if (!C.Prayer)
C.LuckyTime += (uint)(DateTime.Now - C.PrayDT).TotalSeconds;
else
C.LuckyTime += (uint)(DateTime.Now - C.PrayDT).TotalSeconds * 3;
C.PrayDT = DateTime.Now;
}
BW.Write(C.LuckyTime);
BW.Write(C.ExpBallsUsedToday);
BW.Write(C.Reborns);
BW.Write((byte)C.Merchant);//
BW.Write(C.VipLevel);//
BW.Write(DateTime.Now.Ticks);//When logged off, for otg feature purposes
BW.Write((ushort)(C.TrainTimeLeft + ((DateTime.Now - C.LoggedOn).TotalMinutes * 10)));//Train time left (in minutes)
BW.Write(C.InOTG);
BW.Write(C.LotteryUsed);
BW.Write(C.VotedToday);
BW.Write(C.HonorPoints);
BW.Write(C.WHPassword);
BW.Write(C.Spouse);
BW.Write(C.UniversityPoints);//Quiz Pts
BW.Write(C.Top);
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.INSERT);
//
cmd.Insert("Enlighten").Set("EnlightenPoints", C.EnlightenPoints).Set("EnlightenAdd", C.EnlightenAdd).Set("EnlightenRequest", C.EnlightenRequest).Execute();
//
//////
//
BW.Flush();
FS.Flush();
BW.Close();
FS.Close();
}
catch (Exception Exc) { Console.WriteLine(Exc); }
}
tomtucker is offline  
Old 10/07/2010, 02:51   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
We didn't say your save character wasn't working.
I said your probably not saving the character before he logs off decker.
Arcо is offline  
Reply


Similar Threads Similar Threads
can anyone just show me sumthing
02/28/2010 - CO2 Private Server - 1 Replies
hey all i was just wondering how do u no where to put codes like this if (Cmd == "/agi") GC.MyChar.Agi = ushort.Parse(Cmd); if (Cmd == "/spi") GC.MyChar.Spi = ushort.Parse(Cmd); if (Cmd == "/str") GC.MyChar.Str = ushort.Parse(Cmd); if (Cmd == "/vit") GC.MyChar.Vit = ushort.Parse(Cmd);
asking sumthing
01/31/2010 - RF Online - 0 Replies
can anyone tell where can i download rf offline client and how can does it work. i want to experiment sumthing on offline client. you can encrypt some virus in the file. hope you can defy virus developer. gg
can i ask sumthing??
09/29/2009 - Grand Chase Philippines - 5 Replies
does the 1-hit script.kom hack backfire you in pvp? (ung 1 hit hack b ay nag back fire s pvp at ikaw ung ma- 1 hit?) and 1 more.. is it possible to get banned if u are using cheats in dungeon on ur own??
Need help on sumthing.
01/12/2009 - Dekaron Private Server - 1 Replies
Hey, is there some sort of way to get alot of book of magic without doing alot of crevice runs, I'm GM in friend and my server. So is there a command to it, or will we have to go do crevice runs for life.. Thnx in advance ^^
Alright time to do sumthing with all these account...
12/08/2008 - Archlord Trading - 5 Replies
Ok soo wow i have a whole bunch of accounts that is too much for me so im finally getting rid of them all for 1 dominant account or other offers as well... ok so tha first account is a 55 archer with a 50 hunter on it as well with infinity wings and i have a video and screens of this pretty cool. this archer is hella beastly pwned a 68 sorc in 3 hits in arena and can take pretty much anything up to lvl 71 in arena best gear iv seen on 50+ archer in my archlord career haha...(GIA) ok the...



All times are GMT +1. The time now is 13:04.


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