|
You last visited: Today at 23:30
Advertisement
Is this necessary?
Discussion on Is this necessary? within the CO2 Private Server forum part of the Conquer Online 2 category.
|
#1
|
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);
}
|
|
|
|
#2
|
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
|
|
|
|
#3
|
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
|
|
|
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 92
Received Thanks: 8
|
No.
|
|
|
|
#5
|
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.
|
|
|
All times are GMT +2. The time now is 23:31.
|
|