Good day all !!!

09/19/2019 00:48 iordach3#1
Hi there,

On my server, I have a problem with the XP Skill. When the character is killing monsters , the "spirit round bar" is decreasing and not increasing as it should and the character is not getting XP Skill ( superman, cyclone, etc.).

If I stay with the character and not kill any monster and let the "spirit round bar" get to 100 on hes own, I am able to select a XP Skill (superman, cylcone etc.) and it will last only 20 sec and after that it will end even if I am killing monsters to recharge it and continue.
This is the config of the xp skill in my source that is located in the Thread.cs

#region XPList
if (!client.Player.ContainsFlag((ulong)MsgUpdate.Flag s.XPList))
{
if (Now > client.XPCountStamp.AddSeconds(3))
{
#region Arrows
if (client.Equipment != null)
{
if (!client.Equipment.Free(5))
{
if (ItemHandler.IsArrow(client.Equipment.TryGetItem(5 ).ID))
{
ConquerItemTable.UpdateDurabilityItem(client.Equip ment.TryGetItem(5));
}
}
}
#endregion
client.XPCountStamp = Now;
client.XPCount++;
if (client.XPCount >= 100)
{
client.XPCount = 0;
if (client.Player.InHangUp) return;
client.Player.KOCount = 0;
client.Player.AddFlag((ulong)MsgUpdate.Flags.XPLis t);
client.XPListStamp = Now;
}
}
}
else if (Now > client.XPListStamp.AddSeconds(20))
{
client.Player.RemoveFlag((ulong)MsgUpdate.Flags.XP List);
}
#endregion

Can someone explain to me what is wrong ?
09/19/2019 03:27 Spirited#2
So, if I'm understanding correctly, you want it to increase by one XP skill point per kill like it does in retail. Is that right? The code you posted is for gaining XP skill points over time. You can try looking in your server's attack handler. Try right clicking on that XPCount variable and selecting "Find all references".