again, sick release you really contribute to this forum alot but one small suggestion (if you actually can) just add under each line of code what's it purpose is this way it would actually help people who want to learn =)
public Timer PkRemove; // Add a new Timer, to perform certain actions every time the interval elapses.
Code:
public void RemPKP() // Create a new VOID function, passing no arguments.
{
if (Client.PkPoints > 0) // If we have more than ZERO PK Points
{
Client.PkPoints -= 1; // PkPoints = PkPoints - 1
Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints)); // Update the client with the new status and value of PK Points
}
}
Code:
CSocket.Client.PkRemove = new System.Timers.Timer(); // Initialize the timer with the basic Timer type
CSocket.Client.PkRemove.Interval = (60000 * 6); // The interval is set to 60000 * 6, 1000 = One Second, thus 60000 = Sixty Seconds (One Minute), * 6 = Six Minutes
CSocket.Client.PkRemove.Elapsed += delegate { CSocket.RemPKP(); }; // The delegate to call the function we defined earlier, every time six minutes elapse.
CSocket.Client.PkRemove.Enabled = true; // Enable the timer, so it ticks.
CSocket.Client.PkRemove.Start(); // Start the timer
public Timer PkRemove; // Add a new Timer, to perform certain actions every time the interval elapses.
Code:
public void RemPKP() // Create a new VOID function, passing no arguments.
{
if (Client.PkPoints > 0) // If we have more than ZERO PK Points
{
Client.PkPoints -= 1; // PkPoints = PkPoints - 1
Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints)); // Update the client with the new status and value of PK Points
}
}
Code:
CSocket.Client.PkRemove = new System.Timers.Timer(); // Initialize the timer with the basic Timer type
CSocket.Client.PkRemove.Interval = (60000 * 6); // The interval is set to 60000 * 6, 1000 = One Second, thus 60000 = Sixty Seconds (One Minute), * 6 = Six Minutes
CSocket.Client.PkRemove.Elapsed += delegate { CSocket.RemPKP(); }; // The delegate to call the function we defined earlier, every time six minutes elapse.
CSocket.Client.PkRemove.Enabled = true; // Enable the timer, so it ticks.
CSocket.Client.PkRemove.Start(); // Start the timer
yep thats good, hopefully people would read and learn something from every release a lil by lil =)
[Release] Atr Points Command 06/30/2010 - CO2 PServer Guides & Releases - 14 Replies Put these codes in Chat.cs in your source
Command for free Atr. Points
if (GC.AuthInfo.Status == "")
{
if (Cmd == "/statp")
{
GC.MyChar.StatPoints = 0;
GC.MyChar.StatPoints = byte.Parse(Cmd);
}
}
[Release]Attribute points in console 02/03/2010 - CO2 PServer Guides & Releases - 18 Replies Hello everyone.
If you need to put manually your Attribute Points in console - option: /characters
here is form1.cs with my added function.
I think you need only replace your orginal form1 with my from archive and rebuild project.
Small Release For Points 11/15/2008 - CO2 PServer Guides & Releases - 4 Replies Hello every one this is pretty noobie release but here goes this release is for Emme's Point cose that he released it is a command that gives u Points
Here it is :
if (Splitter == "/points")
{
uint NewPoints = uint.Parse(Splitter);
MyChar.Points = NewPoints;
...