Wait.. Wait, wait!! Are you actually sending the CPs packet to upgrade points? Omg dude,quit it. This will change your CPs value into the Point value,gosh! Just do:
if (Splitter[0] == "/points")
{
uint Points1 = uint.Parse(Splitter[1]);
MyChar.Points += Points1;
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got " + Points1 + " points by command, current points is : " + MyChar.Points, 2005));
}
Simple as that .
Note,wrote this code in epvp,not in the source. COULD be wrong,but i really doubt it would.
Emme
|