mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Refactored how zones work. Cleaned out a lot of duplciations and smoothed out how Zones/PrivateAreas work.
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Meteor.Map.packets.send.actor
|
||||
public const ushort OPCODE = 0x013D;
|
||||
public const uint PACKET_SIZE = 0x48;
|
||||
|
||||
public static SubPacket BuildPacket(uint sourceActorId, uint displayNameID, string customName, bool isSexMale = true)
|
||||
public static SubPacket BuildPacket(uint sourceActorId, int displayNameID, string customName, bool isSexMale = true)
|
||||
{
|
||||
byte[] data = new byte[PACKET_SIZE - 0x20];
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Meteor.Map.packets.send.actor
|
||||
{
|
||||
binWriter.Write((UInt32)displayNameID);
|
||||
|
||||
if (customName != null && (displayNameID == 0 || displayNameID == 0xFFFFFFFF))
|
||||
if (customName != null && (displayNameID == 0 || displayNameID == -1))
|
||||
{
|
||||
binWriter.Write(Encoding.ASCII.GetBytes(customName), 0, Encoding.ASCII.GetByteCount(customName) >= 0x20 ? 0x19 : Encoding.ASCII.GetByteCount(customName));
|
||||
|
||||
|
@@ -30,7 +30,7 @@ namespace Meteor.Map.packets.send
|
||||
public const ushort OPCODE = 0x0005;
|
||||
public const uint PACKET_SIZE = 0x30;
|
||||
|
||||
public static SubPacket BuildPacket(uint playerActorID, uint mapID, uint regionID)
|
||||
public static SubPacket BuildPacket(uint playerActorID, uint regionId, uint placeId)
|
||||
{
|
||||
byte[] data = new byte[PACKET_SIZE - 0x20];
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace Meteor.Map.packets.send
|
||||
{
|
||||
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
||||
{
|
||||
binWriter.Write((uint)mapID);
|
||||
binWriter.Write((uint)regionID);
|
||||
binWriter.Write((uint)regionId);
|
||||
binWriter.Write((uint)placeId);
|
||||
binWriter.Write((uint)0x28);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user