|
You last visited: Today at 21:56
Advertisement
NEW CHAR - 65K STAT POINTS
Discussion on NEW CHAR - 65K STAT POINTS within the CO2 Private Server forum part of the Conquer Online 2 category.
04/16/2010, 06:37
|
#1
|
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
|
NEW CHAR - 65K STAT POINTS
Any idea why all new characters start off at
LEVEL 0
SPARE STATS - 13056
VITALITY - 2048
AGI - 256
Crazy *** Donation somethin like 7 Quadrillion
Any clue? I checked the source Database and found nothing changed. All values set to 0 level set to 1. I thought it might be reg page but made manual account via console. Any ideas please lemme know.
|
|
|
04/16/2010, 06:51
|
#2
|
elite*gold: 0
Join Date: Mar 2010
Posts: 126
Received Thanks: 14
|
Post your "Create Character" class. I don't mind having a look.
|
|
|
04/16/2010, 13:25
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Did you use my perfect rb script?
|
|
|
04/16/2010, 18:26
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
|
To -Spirits-
Code:
public static string CreateCharacter(string Account, string Name, ushort Body, byte Job)
{
try
{
if (File.Exists(@"C:\OldCODB\Users\" + Account + ".usr") && !File.Exists(@"C:\OldCODB\Users\Characters\" + Name + ".chr"))
{
try
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + Name + ".chr", FileMode.CreateNew);
FileStream FS2 = new FileStream(@"C:\OldCODB\Flowers\" + Name + ".chr", FileMode.CreateNew);
BinaryWriter BW = new BinaryWriter(FS);
BinaryWriter BW2 = new BinaryWriter(FS2);
BW2.Write((int)0);//RedRoses
BW2.Write((int)0);//RedRoses2day
BW2.Write((int)0);//Lilies
BW2.Write((int)0);//Lilies2day
BW2.Write((int)0);//Tulips
BW2.Write((int)0);//Tulips2day
BW2.Write((int)0);//Orchads
BW2.Write((int)0);//Orchads2day
BW2.Flush();
FS2.Flush();
BW2.Close();
FS2.Close();
BW.Write(Account);
BW.Write((uint)Program.Rnd.Next(1000001, 19999999));
if (Body == 1003 || Body == 1004)
BW.Write((ushort)1);//Avatar
else
BW.Write((ushort)201);//Avatar
BW.Write(Body);
BW.Write((ushort)(410 + (Program.Rnd.Next(5) * 100)));//Hair
BW.Write((ushort)1010);//Map
BW.Write((ushort)61);//X
BW.Write((ushort)109);//Y
BW.Write((ushort)0);//Previous Map
BW.Write(Job);
BW.Write((byte)0);//Previous Job, 1st RB
BW.Write((byte)1);//Level
BW.Write((ulong)0);//Experience
ushort Str = 0, Agi = 0, Vit = 0, Spi = 0;
GetInitialStats(Job, ref Str, ref Agi, ref Vit, ref Spi);
BW.Write(Str);
BW.Write(Agi);
BW.Write(Vit);
BW.Write(Spi);
BW.Write((ushort)0);//Stat Points
ushort HP = (ushort)(Vit * 24 + Str * 3 + Agi * 3 + Spi * 3);
BW.Write(HP);
BW.Write((ushort)(Spi * 5));//MP
BW.Write((ulong)0);//Donation
BW.Write((uint)100);//Silvers
BW.Write((uint)0);//CPs
BW.Write((uint)0);//Warehouse Silvers
BW.Write((ulong)0);//Virtue Points
BW.Write((ushort)0);//PK Points
BW.Write((ushort)0);//Guild
BW.Write((uint)0);//Guild Donation
BW.Write((byte)0);//Guild Rank
Game.Equipment Eq = new NewestCOServer.Game.Equipment();
Eq.Open();
Eq.WriteThis(BW);
BW.Write((byte)5);//Inventory Count
#region Beginner Items
if (Job == 100)
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 421301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)421301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
else if (Job == 50)
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 601301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)601301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
else
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 410301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)410301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
Game.Item Armor = new NewestCOServer.Game.Item();
Armor.ID = 132004;
Armor.Color = (Game.Item.ArmorColor)(Program.Rnd.Next(3, 9));
Armor.MaxDur = ((DatabaseItem)DatabaseItems[(uint)132004]).Durability;
Armor.CurDur = Armor.MaxDur;
Armor.UID = (uint)Program.Rnd.Next(10000000);
Armor.WriteThis(BW);
Game.Item Stancher = new NewestCOServer.Game.Item();
Stancher.ID = 1000000;
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
#endregion
for (int n = 0; n < 5; n++)
{
BW.Write((byte)0);//WH[n] Count
//Warehouse[n]
}
BW.Write((byte)0);//WH[5] Count
//Warehouse[5]
BW.Write((byte)0);//Prof Count
if (Job != 100)
BW.Write((byte)0);//SkillCount
else
{
BW.Write((byte)2);//SkillCount
Game.Skill S = new Game.Skill() { ID = 1000 };
S.WriteThis(BW);
S = new Game.Skill() { ID = 1005 };
S.WriteThis(BW);
}
BW.Write((byte)0);//Friend Count
BW.Write((byte)0);//Enemy Count
BW.Write(false);
BW.Write((int)0);
BW.Write((int)0);
BW.Write((long)0);
BW.Write((int)0);
BW.Write((byte)0);
BW.Write((byte)0);
BW.Write((byte)1);//Merchant
BW.Write(0);//
BW.Write(DateTime.Now.Ticks);
BW.Write((ushort)0);
BW.Write(false);
BW.Write((byte)0);//lottery uses today
BW.Write("0");//WH Pass
BW.Write("None");//Spouse Name
BW.Write((uint)0);//Quiz Pts
BW.Write((int)0);//TopEffect
BW.Flush();
FS.Flush();
BW.Close();
FS.Close();
FS = new FileStream(@"C:\OldCODB\Users\" + Account + ".usr", FileMode.Append);
BW = new BinaryWriter(FS);
BW.Write((byte)Name.Length);
BW.Write(Encoding.ASCII.GetBytes(Name));
BW.Flush();
FS.Flush();
BW.Close();
FS.Close();
Game.Character C = LoadCharacter(Name, ref Account);
if (C != null)
{
C.UniversityPoints = 0;
C.Top = 0;
SaveCharacter(C, Account);
}
}
catch { return "Error! Try again."; }
return "ANSWER_OK";
}
return "Error: Character already exists!";
}
catch (Exception Exc) { Console.WriteLine(Exc); return "Failed to create the character."; }
}
}
To Arco.
Yes I did use your perfect rb. would the job changing have to do with it? Because after 1st rb it's back to normal.
|
|
|
04/16/2010, 21:49
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by ktamer
To -Spirits-
Code:
public static string CreateCharacter(string Account, string Name, ushort Body, byte Job)
{
try
{
if (File.Exists(@"C:\OldCODB\Users\" + Account + ".usr") && !File.Exists(@"C:\OldCODB\Users\Characters\" + Name + ".chr"))
{
try
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + Name + ".chr", FileMode.CreateNew);
FileStream FS2 = new FileStream(@"C:\OldCODB\Flowers\" + Name + ".chr", FileMode.CreateNew);
BinaryWriter BW = new BinaryWriter(FS);
BinaryWriter BW2 = new BinaryWriter(FS2);
BW2.Write((int)0);//RedRoses
BW2.Write((int)0);//RedRoses2day
BW2.Write((int)0);//Lilies
BW2.Write((int)0);//Lilies2day
BW2.Write((int)0);//Tulips
BW2.Write((int)0);//Tulips2day
BW2.Write((int)0);//Orchads
BW2.Write((int)0);//Orchads2day
BW2.Flush();
FS2.Flush();
BW2.Close();
FS2.Close();
BW.Write(Account);
BW.Write((uint)Program.Rnd.Next(1000001, 19999999));
if (Body == 1003 || Body == 1004)
BW.Write((ushort)1);//Avatar
else
BW.Write((ushort)201);//Avatar
BW.Write(Body);
BW.Write((ushort)(410 + (Program.Rnd.Next(5) * 100)));//Hair
BW.Write((ushort)1010);//Map
BW.Write((ushort)61);//X
BW.Write((ushort)109);//Y
BW.Write((ushort)0);//Previous Map
BW.Write(Job);
BW.Write((byte)0);//Previous Job, 1st RB
BW.Write((byte)1);//Level
BW.Write((ulong)0);//Experience
ushort Str = 0, Agi = 0, Vit = 0, Spi = 0;
GetInitialStats(Job, ref Str, ref Agi, ref Vit, ref Spi);
BW.Write(Str);
BW.Write(Agi);
BW.Write(Vit);
BW.Write(Spi);
BW.Write((ushort)0);//Stat Points
ushort HP = (ushort)(Vit * 24 + Str * 3 + Agi * 3 + Spi * 3);
BW.Write(HP);
BW.Write((ushort)(Spi * 5));//MP
BW.Write((ulong)0);//Donation
BW.Write((uint)100);//Silvers
BW.Write((uint)0);//CPs
BW.Write((uint)0);//Warehouse Silvers
BW.Write((ulong)0);//Virtue Points
BW.Write((ushort)0);//PK Points
BW.Write((ushort)0);//Guild
BW.Write((uint)0);//Guild Donation
BW.Write((byte)0);//Guild Rank
Game.Equipment Eq = new NewestCOServer.Game.Equipment();
Eq.Open();
Eq.WriteThis(BW);
BW.Write((byte)5);//Inventory Count
#region Beginner Items
if (Job == 100)
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 421301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)421301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
else if (Job == 50)
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 601301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)601301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
else
{
Game.Item I = new NewestCOServer.Game.Item();
I.ID = 410301;
I.MaxDur = ((DatabaseItem)DatabaseItems[(uint)410301]).Durability;
I.CurDur = I.MaxDur;
I.UID = (uint)Program.Rnd.Next(10000000);
I.WriteThis(BW);
}
Game.Item Armor = new NewestCOServer.Game.Item();
Armor.ID = 132004;
Armor.Color = (Game.Item.ArmorColor)(Program.Rnd.Next(3, 9));
Armor.MaxDur = ((DatabaseItem)DatabaseItems[(uint)132004]).Durability;
Armor.CurDur = Armor.MaxDur;
Armor.UID = (uint)Program.Rnd.Next(10000000);
Armor.WriteThis(BW);
Game.Item Stancher = new NewestCOServer.Game.Item();
Stancher.ID = 1000000;
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
Stancher.UID = (uint)Program.Rnd.Next(10000000);
Stancher.WriteThis(BW);
#endregion
for (int n = 0; n < 5; n++)
{
BW.Write((byte)0);//WH[n] Count
//Warehouse[n]
}
BW.Write((byte)0);//WH[5] Count
//Warehouse[5]
BW.Write((byte)0);//Prof Count
if (Job != 100)
BW.Write((byte)0);//SkillCount
else
{
BW.Write((byte)2);//SkillCount
Game.Skill S = new Game.Skill() { ID = 1000 };
S.WriteThis(BW);
S = new Game.Skill() { ID = 1005 };
S.WriteThis(BW);
}
BW.Write((byte)0);//Friend Count
BW.Write((byte)0);//Enemy Count
BW.Write(false);
BW.Write((int)0);
BW.Write((int)0);
BW.Write((long)0);
BW.Write((int)0);
BW.Write((byte)0);
BW.Write((byte)0);
BW.Write((byte)1);//Merchant
BW.Write(0);//
BW.Write(DateTime.Now.Ticks);
BW.Write((ushort)0);
BW.Write(false);
BW.Write((byte)0);//lottery uses today
BW.Write("0");//WH Pass
BW.Write("None");//Spouse Name
BW.Write((uint)0);//Quiz Pts
BW.Write((int)0);//TopEffect
BW.Flush();
FS.Flush();
BW.Close();
FS.Close();
FS = new FileStream(@"C:\OldCODB\Users\" + Account + ".usr", FileMode.Append);
BW = new BinaryWriter(FS);
BW.Write((byte)Name.Length);
BW.Write(Encoding.ASCII.GetBytes(Name));
BW.Flush();
FS.Flush();
BW.Close();
FS.Close();
Game.Character C = LoadCharacter(Name, ref Account);
if (C != null)
{
C.UniversityPoints = 0;
C.Top = 0;
SaveCharacter(C, Account);
}
}
catch { return "Error! Try again."; }
return "ANSWER_OK";
}
return "Error: Character already exists!";
}
catch (Exception Exc) { Console.WriteLine(Exc); return "Failed to create the character."; }
}
}
To Arco.
Yes I did use your perfect rb. would the job changing have to do with it? Because after 1st rb it's back to normal.
|
Alot of people had that problem when using it.
Like I said in that thread, its a code you need to tweak with.
|
|
|
04/17/2010, 01:54
|
#6
|
elite*gold: 0
Join Date: Mar 2010
Posts: 126
Received Thanks: 14
|
The Character code is "normal". It's not bugless with that flower system being saved like that but still... it works. You should look at Arco's thread and see what's wrong. Maybe someone posted a solution or a way you can deviate a solution.
|
|
|
04/17/2010, 02:26
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
You're writing in the middle of the save/load/create instead of at the end of it.
|
|
|
04/24/2010, 15:54
|
#8
|
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
|
Code:
BW.Write(Body);
BW.Write((ushort)(410 + (Program.Rnd.Next(5) * 100)));//Hair
BW.Write((ushort)1010);//Map
BW.Write((ushort)61);//X
BW.Write((ushort)109);//Y
BW.Write((ushort)0);//Previous Map
BW.Write(Job);
BW.Write((byte)0);//Previous Job, 1st RB
[COLOR="DarkRed"]BW.Write((byte)0);//Previous Job, 2nd RB[/COLOR]
BW.Write((byte)1);//Level
BW.Write((ulong)0);//Experience
This was my big mistake...I'm a tool. By all means, #Request Close
|
|
|
04/24/2010, 16:50
|
#9
|
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
|
Quote:
Originally Posted by .Arco
Did you use my perfect rb script?
|
Quote:
Originally Posted by .Arco
Alot of people had that problem when using it.
Like I said in that thread, its a code you need to tweak with.
|
You lost me here. D:
|
|
|
 |
Similar Threads
|
[QUESTION] With Stat points when a char
07/06/2009 - CO2 Private Server - 0 Replies
With Stat points after someone rb and they set there stat points and they level there stats go away how can i make it where they keep and the Stats from non rb dont add on.
|
WTS lvl 76 EU char 225 stat points 215k sp
05/26/2009 - Silkroad Online Trading - 21 Replies
Hello,
Im selling 2 lvl 76 eu chars.
They only have cleric with reverse lvl 5.
I never added any stat points (225 left).
And they got 215k sp.
This way you can decide what char you want to make of it.
If you want to calculate sp ..:: nivlaM ::..
I dont give screenshots now because they dont make sence.
The chars are naked now and got 1 skill.
|
WTS 2xlvl 76 char 225 stat points /// 215k sp
03/07/2009 - Silkroad Online Trading - 4 Replies
Hi,
I'm selling 2 lvl 76 chars both chars got 225 stat points left.
And 215k sp.
Screens say more than 1000 words :D
http://i405.photobucket.com/albums/pp134/reintjuh /SRO2009-02-1815-38-48_08.jpg
http://i405.photobucket.com/albums/pp134/reintjuh /SRO2009-02-1815-38-18_32.jpg
http://i405.photobucket.com/albums/pp134/reintjuh /SRO2009-02-1815-36-57_84.jpg
http://i405.photobucket.com/albums/pp134/reintjuh /SRO2009-02-1815-48-45_80.jpg...
|
All times are GMT +1. The time now is 21:57.
|
|