Kód: Vybrat vše
using System;
namespace Phoenix.Scripts {
public class GumpMover {
private const int GumpX = 600;
private const int GumpY = 400;
[ServerMessageHandler( 0xb0 )]
public CallbackResult OnGumpInfo( byte[] data, CallbackResult prevResult ) {
byte[] bX = ByteConverter.BigEndian.GetBytes( GumpX );
byte[] bY = ByteConverter.BigEndian.GetBytes( GumpY );
Array.Copy( bX, 0, data, 11, bX.Length );
Array.Copy( bY, 0, data, 15, bY.Length );
return CallbackResult.Normal;
}
}
}