seems like actions have changed with regards to the new animation packet, lets leave that for another day
This commit is contained in:
parent
39d2827c85
commit
e1f5808102
2 changed files with 15 additions and 15 deletions
|
|
@ -6162,7 +6162,7 @@ namespace Server
|
|||
ProcessDelta();
|
||||
|
||||
Packet p = null;
|
||||
Packet pOld = null;
|
||||
//Packet pNew = null;
|
||||
|
||||
IPooledEnumerable eable = map.GetClientsInRange( m_Location );
|
||||
|
||||
|
|
@ -6172,22 +6172,22 @@ namespace Server
|
|||
{
|
||||
state.Mobile.ProcessDelta();
|
||||
|
||||
if ( state.IsPost7000 ) {
|
||||
//if ( state.IsPost7000 ) {
|
||||
//if( pNew == null )
|
||||
//pNew = Packet.Acquire( new NewMobileAnimation( this, action, frameCount, delay ) );
|
||||
|
||||
//state.Send( pNew );
|
||||
//} else {
|
||||
if( p == null )
|
||||
p = Packet.Acquire( new MobileAnimation( this, action, frameCount, delay ) );
|
||||
p = Packet.Acquire( new MobileAnimation( this, action, frameCount, repeatCount, forward, repeat, delay ) );
|
||||
|
||||
state.Send( p );
|
||||
} else {
|
||||
if( pOld == null )
|
||||
pOld = Packet.Acquire( new OldMobileAnimation( this, action, frameCount, repeatCount, forward, repeat, delay ) );
|
||||
|
||||
state.Send( pOld );
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
Packet.Release( p );
|
||||
Packet.Release( pOld );
|
||||
//Packet.Release( pNew );
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2713,9 +2713,9 @@ namespace Server.Network
|
|||
}
|
||||
}
|
||||
|
||||
public sealed class OldMobileAnimation : Packet
|
||||
public sealed class MobileAnimation : Packet
|
||||
{
|
||||
public OldMobileAnimation( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : base( 0x6E, 14 )
|
||||
public MobileAnimation( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : base( 0x6E, 14 )
|
||||
{
|
||||
m_Stream.Write( (int) m.Serial );
|
||||
m_Stream.Write( (short) action );
|
||||
|
|
@ -2726,10 +2726,10 @@ namespace Server.Network
|
|||
m_Stream.Write( (byte) delay );
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class MobileAnimation : Packet
|
||||
|
||||
public sealed class NewMobileAnimation : Packet
|
||||
{
|
||||
public MobileAnimation( Mobile m, int action, int frameCount, int delay ) : base( 0xE2, 10 )
|
||||
public NewMobileAnimation( Mobile m, int action, int frameCount, int delay ) : base( 0xE2, 10 )
|
||||
{
|
||||
m_Stream.Write( (int) m.Serial );
|
||||
m_Stream.Write( (short) action );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue