Register for your free account! | Forgot your password?

You last visited: Today at 16:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Good day all !!!

Discussion on Good day all !!! within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2016
Posts: 12
Received Thanks: 0
Exclamation Good day all !!!

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 ?
iordach3 is offline  
Old 09/19/2019, 03:27   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,284
Received Thanks: 4,195
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".
Spirited is offline  
Reply


Similar Threads Similar Threads
WTS 3 ACC SBOT 21 DAY 1 /2 14 DAY /3 3 DAY
01/03/2010 - Silkroad Online Trading - 0 Replies
[email protected]



All times are GMT +2. The time now is 16:52.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.