code for reallot stats
search for
if (CurrentNPC == 278) in client.cs
above it add
Code:
if (CurrentNPC == 9548)//Reallot Stats
{
SendPacket(General.MyPackets.NPCSay("Reborn players who are level 70 or higher can redistribute their attribute points at the cost of a Dragonball."));
SendPacket(General.MyPackets.NPCLink("I will reallot my points.", 1));
SendPacket(General.MyPackets.NPCLink("Let me think it over.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
then search for
if (CurrentNPC == 278) again
above it add
Code:
if (CurrentNPC == 9548)
if (Control == 1)
{
if (MyChar.RBCount >= 1)
{
if (MyChar.InventoryContains(1088000, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
uint Points = 0;
Points += MyChar.Str;
Points += MyChar.Spi;
Points += MyChar.Agi;
Points += MyChar.Vit;
MyChar.StatP += (ushort)Points;
MyChar.Str = 0;
MyChar.Spi = 0;
MyChar.Agi = 0;
MyChar.Vit = 0;
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, (ulong)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));
SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
MyChar.SaveStatPoints();
MyChar.Save();
SendPacket(General.MyPackets.NPCSay("You can either reallot your stats manually."));
SendPacket(General.MyPackets.NPCSay(" Command Breakdown: /allot [vit, str, agi, spi] [Amount to ADD to the Stat]"));
SendPacket(General.MyPackets.NPCLink("I see, Thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have a Dragonball."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("You cannot reallot your attribute points if you aren't reborn."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
then on character.cs search for
public void PackSkills()
above it add
Code:
public void SaveStatPoints()
{
if (MyClient.There)
if (MyClient.Online)
DataBase.SaveChar(this);
}
and thats about it i hope it helps