Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:31

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

Advertisement



Problem With PServer Roborning

Discussion on Problem With PServer Roborning within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2006
Posts: 69
Received Thanks: 5
Problem With PServer Roborning

Ok..all my source work great..but when I reborn and put my Points and then die or DC..my points doesnt save...and I need to start over...
Can some one help me with C# code of that line(lines) and where I need to modify..!

Thankyou guys and Sorry for my bad english
kharina is offline  
Old 04/12/2009, 22:34   #2
 
Zatoichi's Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 434
Received Thanks: 431
I have the same problem, and not sure why. all other aspects of Rb work perfectly (except the 2nd RBskills, just need to be coded in). As far as i can tell the client isnt sending a packet to the server saying we have manipulated the stats using those buttons. You can do what we did. My friend kyle wrote a splitter so we can enter like -

/str 9

That will add 9 points to strength, only if the points are available to be added from the StatP collection, and it will then deduct them from the StatP collection. I didnt write it, but if you look at the existing splitters (depending on your source), you can gather terms that can be used to write this. i'll ask him if he minds if we put the code up. If so i'll update.
Zatoichi is offline  
Old 04/12/2009, 22:51   #3
 
Klefto's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 20
Received Thanks: 2
The code is pretty simple and straight forward, just put it in a area where it checks for the status to be 0 or bigger, if its not there you can also add it. this code allows you, like zatoichi sayd, /str 9 and itl add 9 to your str while deducting your statp by 9, if your statp doesnt have 9 or more points it wont work, its tested, 100% functional, and saves to the DB.
Hope this helps, its just something i made quick, but it works, although its probably not the cleanest way, it works. The red is for the status check only, if you dont have that you'll want it too

Code:
                                  [COLOR="Red"]if (Status >= 0)
                                    {[/COLOR]
                                        if (Splitter[0] == "/str")
                                        {
                                            ushort Str = ushort.Parse(Splitter[1]);
                                            if (MyChar.StatP >= Str)
                                            {
                                                MyChar.Str += Str;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 16, MyChar.Str));
                                                World.UpdateSpawn(MyChar);
                                                MyChar.StatP -= Str;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
                                                SendPacket(General.MyPackets.CharacterInfo(MyChar));
                                                MyChar.SendEquips(false);
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                                World.SpawnMeToOthers(MyChar, true);
                                            }
                                        }
                                        if (Splitter[0] == "/agi")
                                        {
                                            ushort Agi = ushort.Parse(Splitter[1]);
                                            if (MyChar.StatP >= Agi)
                                            {
                                                MyChar.Agi += Agi;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 17, MyChar.Agi));
                                                World.UpdateSpawn(MyChar);
                                                MyChar.StatP -= Agi;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
                                                SendPacket(General.MyPackets.CharacterInfo(MyChar));
                                                MyChar.SendEquips(false);
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                                World.SpawnMeToOthers(MyChar, true);
                                            }
                                        }
                                        if (Splitter[0] == "/spi")
                                        {
                                            ushort Spi = ushort.Parse(Splitter[1]);
                                            if (MyChar.StatP >= Spi)
                                            {
                                                MyChar.Spi += Spi;
                                                MyChar.StatP -= Spi;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 14, MyChar.Spi));
                                                World.UpdateSpawn(MyChar);
                                                SendPacket(General.MyPackets.CharacterInfo(MyChar));
                                                MyChar.SendEquips(false);
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                                World.SpawnMeToOthers(MyChar, true);
                                            }
                                        }
                                        if (Splitter[0] == "/vit")
                                        {
                                            ushort Vit = ushort.Parse(Splitter[1]);
                                            if (MyChar.StatP >= Vit)
                                            {
                                                MyChar.Vit += Vit;
                                                MyChar.StatP -= Vit;
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 15, MyChar.Vit));
                                                World.UpdateSpawn(MyChar);
                                                SendPacket(General.MyPackets.CharacterInfo(MyChar));
                                                MyChar.SendEquips(false);
                                                SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                                World.SpawnMeToOthers(MyChar, true);
                                            }
                                        }
                                    }
                                [COLOR="Red"]}[/COLOR]
Hope this helped =)
Klefto is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...



All times are GMT +1. The time now is 11:31.


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.