Requested, so I did it. Pretty simple little addition.
to the bottom of Character.cs, under
Add
Now, in ClientSocket.cs, under
Add
Last, in PacketProcessor.cs under
Add
Done, [Only registered and activated users can see links. Click Here To Register...]
to the bottom of Character.cs, under
Code:
public Timer FlashTimer;
Code:
public Timer PkRemove;
Code:
public void AddStam()
{
if(!Client.Dead)
{
if (Client.CurrentStam < 100)
{
Client.CurrentStam += 10;
Send(ConquerPacket.Status(this, 2, Client.CurrentStam, Struct.StatusTypes.Stamina));
}
else if (Client.CurrentStam > 100)
Client.CurrentStam = 100;
}
}
Code:
public void RemPKP()
{
if (Client.PkPoints > 0)
{
Client.PkPoints -= 1;
Send(ConquerPacket.Status(this, 2, Client.PkPoints, Struct.StatusTypes.PKPoints));
}
}
Code:
CSocket.Client.UpStam = new System.Timers.Timer();
CSocket.Client.UpStam.Interval = 850;
CSocket.Client.UpStam.Elapsed += delegate { CSocket.AddStam(); };
Code:
CSocket.Client.PkRemove = new System.Timers.Timer();
CSocket.Client.PkRemove.Interval = (60000 * 6);
CSocket.Client.PkRemove.Elapsed += delegate { CSocket.RemPKP(); };
CSocket.Client.PkRemove.Enabled = true;
CSocket.Client.PkRemove.Start();