Ok, It resets the attributes but doesnt add statpoints or refresh maxhealth and im assuming it doesnt refresh statpoints.
I have
I have
Code:
if (Control == 4)
{
DataBase.GetStats(MyChar);
MyChar.MinAtk = MyChar.Str;
MyChar.MaxAtk = MyChar.Str;
MyChar.MaxHP = MyChar.BaseMaxHP();
int StatTotal = MyChar.Str + MyChar.Agi + MyChar.Vit + MyChar.Spi;
MyChar.Str = 0;
MyChar.Agi = 0;
MyChar.Vit = 0;
MyChar.Spi = 0;
MyChar.StatP += ushort.Parse(Convert.ToString(StatTotal));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.StatP));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, 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, 0, MyChar.CurHP));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 2, MyChar.MaxMana()));
SendPacket(General.MyPackets.GeneralData((long)MyChar.UID, 0, 0, 0, 92));
if (MyChar.MyGuild != null)
MyChar.MyGuild.Refresh(MyChar);
}