Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using Server;
|
||||
using System;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Multis;
|
||||
|
||||
namespace Server.Network
|
||||
{
|
||||
public sealed class BoatMovementRequest
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.RegisterExtended(0x33, true, new OnPacketReceive(MultiMouseMovementRequest));
|
||||
}
|
||||
|
||||
public static void MultiMouseMovementRequest(NetState state, PacketReader reader)
|
||||
{
|
||||
Serial playerSerial = reader.ReadInt32();
|
||||
Direction movement = (Direction)reader.ReadByte();
|
||||
reader.ReadByte(); // movement direction duplicated
|
||||
int speed = reader.ReadByte();
|
||||
|
||||
Mobile mob = World.FindMobile(playerSerial);
|
||||
if (mob == null || mob.NetState == null || !mob.Mounted)
|
||||
return;
|
||||
|
||||
IMount multi = mob.Mount;
|
||||
if (!(multi is BaseBoat))
|
||||
return;
|
||||
|
||||
BaseBoat boat = (BaseBoat)multi;
|
||||
boat.OnMousePilotCommand(mob, movement, speed);
|
||||
}
|
||||
}
|
||||
}
|
||||
51
Scripts/Services/Expansions/High Seas/Network/Packets.cs
Normal file
51
Scripts/Services/Expansions/High Seas/Network/Packets.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using Server;
|
||||
using System;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Multis;
|
||||
|
||||
namespace Server.Network
|
||||
{
|
||||
public sealed class BoatDriverLock : Packet
|
||||
{
|
||||
public BoatDriverLock(Mobile m) : base(0xBF)
|
||||
{
|
||||
short length = 19;
|
||||
EnsureCapacity(length);
|
||||
|
||||
length = (short)(((length & 0xff) << 8) | ((length >> 8) & 0xff));
|
||||
m_Stream.Seek(1, System.IO.SeekOrigin.Begin);
|
||||
m_Stream.Write(length);
|
||||
|
||||
m_Stream.Write((short)0x19);
|
||||
m_Stream.Write((byte)0x05);
|
||||
m_Stream.Write((int)m.Serial);
|
||||
m_Stream.Write((byte)0x00);
|
||||
|
||||
m_Stream.Write((byte)0xFF);
|
||||
m_Stream.Write((byte)0x00);
|
||||
m_Stream.Write((short)0x04);
|
||||
m_Stream.Write((short)0x00);
|
||||
m_Stream.Write((byte)0x00);
|
||||
m_Stream.Write((byte)0x00);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class BoatEquipPacket : Packet
|
||||
{
|
||||
public BoatEquipPacket(Mobile to, BaseBoat boat)
|
||||
: base(0x2E, 15)
|
||||
{
|
||||
Serial parentSerial = to.Serial;
|
||||
|
||||
int hue = boat.Hue;
|
||||
|
||||
m_Stream.Write((int)boat.Serial);
|
||||
m_Stream.Write((short)boat.ItemID);
|
||||
m_Stream.Write((byte)0);
|
||||
m_Stream.Write((byte)boat.Layer);
|
||||
m_Stream.Write((int)parentSerial);
|
||||
m_Stream.Write((short)hue);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user