Seems this is completely random, sometimes it will occur after 30 minutes, sometimes the server can run for hours without an issue. But occasionally this kicks in, and everything freezes.
The code effected is...
Code:
if (Charr.MyClient.Online) [COLOR="Red"]if (MyMath.CanSee(Attacked.LocX, Attacked.LocY, Charr.LocX, Charr.LocY))[/COLOR] Charr.MyClient.SendPacket(General.MyPackets.Attack(Mob.UID, Attacked.UID, (short)Attacked.LocX, (short)Attacked.LocY, AtkType, Dmg));
I've also skimmed through a variety of similar codes. The only thing I've noticed different on this one in the line being effected is Attacked.LocX, Attacked.LocY
So I'm guessing maybe that could be the cause, not sure though.
The section this is in revolves around moster attacks on characters, if that helps give a better idea to anyone willing to help.
Thanks in advance to anyone who can give me some insight.