Register for your free account! | Forgot your password?

You last visited: Today at 23:13

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

Advertisement



Is this necessary?

Discussion on Is this necessary? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
Is this necessary?

Code:
if (Splitter[0] == "@job")
                                        {
                                            byte NewJob = byte.Parse(Splitter[1]);
                                            MyChar.Job = NewJob;
                                            DataBase.GetStats(MyChar);
                                            MyChar.GetEquipStats(1, true);
                                            MyChar.GetEquipStats(2, true);
                                            MyChar.GetEquipStats(3, true);
                                            MyChar.GetEquipStats(4, true);
                                            MyChar.GetEquipStats(5, true);
                                            MyChar.GetEquipStats(6, true);
                                            MyChar.GetEquipStats(7, true);
                                            MyChar.GetEquipStats(8, true);
                                            MyChar.MinAtk = MyChar.Str;
                                            MyChar.MaxAtk = MyChar.Str;
                                            MyChar.MaxHP = MyChar.BaseMaxHP();
                                            MyChar.Potency = MyChar.Level;
                                            MyChar.GetEquipStats(1, false);
                                            MyChar.GetEquipStats(2, false);
                                            MyChar.GetEquipStats(3, false);
                                            MyChar.GetEquipStats(4, false);
                                            MyChar.GetEquipStats(5, false);
                                            MyChar.GetEquipStats(6, false);
                                            MyChar.GetEquipStats(7, false);
                                            MyChar.GetEquipStats(8, false);
                                            MyChar.CurHP = MyChar.MaxHP;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 7, MyChar.Job));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 16, MyChar.Str));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 17, MyChar.Agi));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 15, MyChar.Vit));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 14, MyChar.Spi));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 2, MyChar.MaxMana()));
                                            SendPacket(General.MyPackets.GeneralData((long)MyChar.UID, 0, 0, 0, 92));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.CurHP));
                                        }
Today, while I was recoding my commands, and I found this job command, just wondering is all of this necessary?

Code:
if (Splitter[0] == "@level")
                                        {
                                            byte NewLvl = byte.Parse(Splitter[1]);
                                            MyChar.Level = NewLvl;
                                            MyChar.Exp = 0;
                                            DataBase.GetStats(MyChar);
                                            MyChar.GetEquipStats(1, true);
                                            MyChar.GetEquipStats(2, true);
                                            MyChar.GetEquipStats(3, true);
                                            MyChar.GetEquipStats(4, true);
                                            MyChar.GetEquipStats(5, true);
                                            MyChar.GetEquipStats(6, true);
                                            MyChar.GetEquipStats(7, true);
                                            MyChar.GetEquipStats(8, true);
                                            MyChar.MinAtk = MyChar.Str;
                                            MyChar.MaxAtk = MyChar.Str;
                                            MyChar.MaxHP = MyChar.BaseMaxHP();
                                            MyChar.Potency = MyChar.Level;
                                            MyChar.GetEquipStats(1, false);
                                            MyChar.GetEquipStats(2, false);
                                            MyChar.GetEquipStats(3, false);
                                            MyChar.GetEquipStats(4, false);
                                            MyChar.GetEquipStats(5, false);
                                            MyChar.GetEquipStats(6, false);
                                            MyChar.GetEquipStats(7, false);
                                            MyChar.GetEquipStats(8, false);
                                            MyChar.CurHP = MyChar.MaxHP;
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 13, MyChar.Level));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 16, MyChar.Str));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 17, MyChar.Agi));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 15, MyChar.Vit));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 14, MyChar.Spi));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 5, MyChar.Exp));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 2, MyChar.MaxMana()));
                                            SendPacket(General.MyPackets.GeneralData((long)MyChar.UID, 0, 0, 0, 92));
                                            SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.CurHP));
                                            if (MyChar.MyGuild != null)
                                                MyChar.MyGuild.Refresh(MyChar);
                                        }
Vortex. is offline  
Old 06/14/2009, 19:08   #2
 
ssj3jon's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 1,150
Received Thanks: 298
Well i dunno about that xD so i cant answer that question if thats nessasry
ssj3jon is offline  
Old 06/14/2009, 19:11   #3
 
ih8you's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 146
Received Thanks: 38
Yea its need... Its yor stats hp and w/e upgrade.... dunno about the equips ones tho
ih8you is offline  
Old 06/14/2009, 19:12   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 92
Received Thanks: 8
No.
_tao4229 is offline  
Old 06/14/2009, 20:14   #5
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
Yeah, wtf is the

Code:
MyChar.GetEquipStats(1, true);
                                            MyChar.GetEquipStats(2, true);
                                            MyChar.GetEquipStats(3, true);
                                            MyChar.GetEquipStats(4, true);
                                            MyChar.GetEquipStats(5, true);
                                            MyChar.GetEquipStats(6, true);
                                            MyChar.GetEquipStats(7, true);
                                            MyChar.GetEquipStats(8, true);
I'm tryna do a memory usage clean up.
Vortex. is offline  
Reply




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


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.