Skip to content

Commit

Permalink
DropReq6017 removed, since it's not used anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
CA5A committed May 19, 2022
1 parent a7d947d commit 9e4032b
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions Projects/Server/Network/Packets/IncomingItemPackets.cs
Expand Up @@ -111,44 +111,6 @@ public static void DropReq(NetState state, CircularBufferReader reader, int pack
}
}

public static void DropReq6017(NetState state, CircularBufferReader reader, int packetLength)
{
reader.ReadInt32(); // serial, ignored
int x = reader.ReadInt16();
int y = reader.ReadInt16();
int z = reader.ReadSByte();
reader.ReadByte(); // Grid Location?
Serial dest = (Serial)reader.ReadUInt32();

var loc = new Point3D(x, y, z);

var from = state.Mobile;

if (dest.IsMobile)
{
from.Drop(World.FindMobile(dest), loc);
}
else if (dest.IsItem)
{
var item = World.FindItem(dest);

if (item is BaseMulti multi && multi.AllowsRelativeDrop)
{
loc.m_X += multi.X;
loc.m_Y += multi.Y;
from.Drop(loc);
}
else
{
from.Drop(item, loc);
}
}
else
{
from.Drop(loc);
}
}

public static void EquipMacro(NetState state, CircularBufferReader reader, int packetLength)
{
int count = reader.ReadByte();
Expand Down

0 comments on commit 9e4032b

Please sign in to comment.