Is this necessary?

06/14/2009 19:06 Vortex.#1
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);
                                        }
06/14/2009 19:08 ssj3jon#2
Well i dunno about that xD so i cant answer that question if thats nessasry
06/14/2009 19:11 ih8you#3
Yea its need... Its yor stats hp and w/e upgrade.... dunno about the equips ones tho
06/14/2009 19:12 _tao4229#4
No.
06/14/2009 20:14 Vortex.#5
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.