|
You last visited: Today at 09:12
Advertisement
[Release] Fixing SaveVoid (CoEmu v2)
Discussion on [Release] Fixing SaveVoid (CoEmu v2) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
09/22/2009, 23:21
|
#1
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
[Release] Fixing SaveVoid (CoEmu v2)
Extremely easy to fix:
go to Database.cs and serach for SaveCharacter them just change this:
Code:
" WHERE `CharID` = " + Client.ID
to this:
Code:
" WHERE `CharID` = " + Client.ID + ""
I tested it for 24hours and doesn't give me any error(Before my server was getting down every 1 minute :X)!
If someone got any error please post.... everyone (i know who help and who don't help) will help for sure and thanks for everyone who have helped me with some codes....
Gratefull !
|
|
|
09/22/2009, 23:56
|
#2
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
umm never had this problem ! O.o
|
|
|
09/23/2009, 00:21
|
#3
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
yes... you will only got this when some ppl get into your server... and this happens after some time.... but for who have this ... it's very helpfull : D
|
|
|
09/23/2009, 00:27
|
#4
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
I don't want to be rude but you could post some more info what file and where to replace it  Cus not everyone will understand what you mean
|
|
|
09/23/2009, 00:45
|
#5
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
|
I think he made it quite clear.
SaveVoid
|
|
|
09/23/2009, 00:48
|
#6
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
meh sorry :P I was working on a music video for 8 hours ! my eyes are hurting like hell cant see normal -_- I better go to bed now ^_^
|
|
|
09/23/2009, 01:00
|
#7
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
haha good night : D
but yes you're ritght...
|
|
|
09/23/2009, 02:00
|
#8
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
|
Well here's mine
Code:
lock (DatabaseConnection.Connection)
{
MySqlCommand Cmd = new MySqlCommand("UPDATE `characters` SET `GDonation` = " + Client.GuildDonation + ", `VPoints` = " + Client.VirtuePoints + ", `Model` = " + Client.Model + ", `ExpPotionTime` = " + Client.ExpPotion.AvailableFor + ", `ExpPotionRate` = " + Client.ExpPotion.Rate + ", `PreviousMap` = " + Client.PreviousMap + ", `Level` = " + Client.Level + ", `WHMoney` = " + Client.WHMoney + ", `PkPoints` = " + Client.PkPoints + ", `xCord` = " + Client.X + ", `yCord` = " + Client.Y + ", `Map` = " + (int)Client.Map + ", `CPoints` = " + Client.CPs + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money + ", `Str` = " + Client.Strength + ",`Vit` = " + Client.Vitality + ", `Spi` = " + Client.Spirit + ", `Dex` = " + Client.Dexterity + ", `StatPoints` = " + Client.StatPoints + ", `FirstLog` = " + 1 + ", `Reborn` = " + Client.Reborn + ", `HP` = " + Client.CurrentHP + ", `MP` = " + Client.CurrentMP + ", `Spouse` = '" + Client.Spouse + "' WHERE `CharID` = " + Client.ID, DatabaseConnection.Connection);
Cmd.ExecuteNonQuery();
}
|
|
|
09/23/2009, 02:11
|
#9
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
yes yes.... there is the problem ( for who have this )
Code:
"' WHERE `CharID` = " + Client.ID
somethimes it try to save for example an ID 1100001 with 1100001'
them it give error and get the GameServer down....
|
|
|
09/23/2009, 02:33
|
#10
|
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
|
Then just do Client.ID++ then it will add 1 to he xD. I think its like 5 am and I'm a little tired
|
|
|
09/23/2009, 03:08
|
#11
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
haha.... that will just increase the char id...... but help too : D
|
|
|
09/23/2009, 17:23
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
This isn't a release in my opinion.
|
|
|
09/23/2009, 22:13
|
#13
|
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
|
Quote:
Originally Posted by Smythe94
This isn't a release in my opinion.
|
Yes of course..... but for some ppl it is...
|
|
|
 |
Similar Threads
|
[Release] Fixing the ShopMall
02/19/2013 - Shaiya PServer Guides & Releases - 34 Replies
This is a Fix to ShopMall that work 100% in ProfNerwosol Server Files:
http://www.elitepvpers.com/forum/shaiya/437087-how -shaiya-server-ep4.html
Follow this steps to Fix your SHOP:
STEP 1
Open Management Studio
STEP 2
|
[HELP] PLEASE Coemu release 180
09/08/2010 - CO2 Private Server - 2 Replies
Hello everyone good morning everyone!
Well folks I'm trying to use the Coemu but the recent release that came out good I downloaded the source code and compiled it, if I did not know but was sure: D lol but one detail appeared very npcs are with the dialogues as if I was not wrong.
Can someone give me a Help please or copille me if I did something wrong! ss follows below!
http://img822.imageshack.us/img822/9706/1942037.t h.jpg
Uploaded with ImageShack.us
|
[Release] >>>> CoEmu.V3
11/09/2009 - CO2 PServer Guides & Releases - 20 Replies
i got a new CoEmu from a china site
but i don't know how to setup it
this is the link of the source
4shared.com - online file sharing and storage - download NewCoemu.rar
pass: AhmedZero
|
[Release]CoEmu Save CPs
08/10/2009 - CO2 PServer Guides & Releases - 3 Replies
People gettin tired of CP's not saving? Stop asking ... its a freakin noob change
Go to Database>Database
Search for
public static void SaveCharacter(Character Client)
Replace the whole void with
public static void SaveCharacter(Character Client)
|
[RELEASE]Fixing Guild Conducter Bug
04/05/2009 - CO2 PServer Guides & Releases - 1 Replies
this is for 5017 Sources
search for
if (CurrentNPC < 618 && CurrentNPC > 613)
at the npc do part and replae it with
if (CurrentNPC < 618 && CurrentNPC > 613)
if (Control == 1)
{
if (MyChar.Silvers >= 500)
{
MyChar.Teleport(1038, 350, 339);
|
All times are GMT +1. The time now is 09:13.
|
|