Alright, this guide is to show you how to fix the CPTrader, not the CPAdmin, the CPTrader!
The CPTrader is the one that trades CPs for your money. This is my first guide, so please don't flame. I know it's easy, but maybe some people don't know how to do it!
You see, before you do this guide, when you try to trade him money for CPs, it acts like it does nothing, but actually it does. He does make the trade successfully, but you must log out and back in before it would show up. Now with this, it updates without you having to log out and log in. You're welcome. :}
First open up CoServerProject.sln in the CPServerProject folder.
Now when that opens, double click client.cs and hold ctrl+f and then search for
right below this:
add this:
That's it, you're done. :}
So at the end, it should look like this:
The CPTrader is the one that trades CPs for your money. This is my first guide, so please don't flame. I know it's easy, but maybe some people don't know how to do it!
You see, before you do this guide, when you try to trade him money for CPs, it acts like it does nothing, but actually it does. He does make the trade successfully, but you must log out and back in before it would show up. Now with this, it updates without you having to log out and log in. You're welcome. :}
First open up CoServerProject.sln in the CPServerProject folder.
Now when that opens, double click client.cs and hold ctrl+f and then search for
Code:
if (CurrentNPC == 104813)
{
if (Control == 1)
{
if (MyChar.Silvers >= 200000)
{
MyChar.Silvers -= 200000;
MyChar.CPs += 20;
}
}
}
Code:
MyChar.CPs += 20;
Code:
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
So at the end, it should look like this:
Code:
if (CurrentNPC == 104813)
{
if (Control == 1)
{
if (MyChar.Silvers >= 200000)
{
MyChar.Silvers -= 200000;
MyChar.CPs += 20;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
}
}
}