protected void NpcStoppedMoving(byte type, List<byte> data)
{
byte[] packet = data.ToArray();
UInt32 id = BitConverter.ToUInt32(packet, 1);
UInt16 x = BitConverter.ToUInt16(packet,5);
UInt16 y = BitConverter.ToUInt16(packet, 7);
byte life = packet[9];
if (!m_owner.BotGameData.Npcs.ContainsKey(id))
{
Console.WriteLine("{0}: [D2GS] Npc ({1}) not found in map... Adding with type = 0", m_owner.Account, id);
m_owner.BotGameData.Npcs.Add(id, new NpcEntity(id, 0, life, x, y));
}
m_owner.BotGameData.Npcs[id].Moving = false;
m_owner.BotGameData.Npcs[id].Location = new Coordinate(x, y);
m_owner.BotGameData.Npcs[id].Life = life;
}