Character list sort
when someone delete a character in the list remain a "hole", with this modification we solve the problem. Let's start the editing from Packet.cs in the core files.
after line 2922, exactly after this:
and after line 2891, exactly after this:
add this code block:
at last, compile the core and try, the problem is solved
when someone delete a character in the list remain a "hole", with this modification we solve the problem. Let's start the editing from Packet.cs in the core files.
after line 2922, exactly after this:
Code:
for ( int i = 0; i < a.Length; ++i )
{
if ( a != null )
highSlot = i;
}
and after line 2891, exactly after this:
Code:
m_Stream.Write( (byte) a.Count );
add this code block:
Code:
// Sort for update list by Keldron Isenhart
for ( int i = 0; i < a.Length; ++i )
{
for ( int j = i; j < a.Length; ++j )
{
if (a==null)
{
[i]a=a[j]; [/i]
[i]a[j]=null; [/i]
[i]} [/i]
[i]} [/i]
[i]} [/i]
[i]//end sort [/i]