public new bool ParseData(byte[] packet) { if (base.ParseData(packet)) { if (pipetype != PipePacketType.UpdateCreatureText) { return false; } PipePacketBuilder p = new PipePacketBuilder(ConnectionSource, packet, 3); creatureID = p.GetLong(); creatureName = p.GetString(); textLoc.X = p.GetShort(); textLoc.Y = p.GetShort(); newText = p.GetString(); index = p.Index; return true; } else { return false; } }
public new bool ParseData(byte[] packet) { if (base.ParseData(packet)) { if (pipetype != PipePacketType.RemoveText) { return false; } PipePacketBuilder p = new PipePacketBuilder(ConnectionSource, packet, 3); textname = p.GetString(); index = p.Index; return true; } else { return false; } }
public new bool ParseData(byte[] packet) { if (base.ParseData(packet)) { if (pipetype != PipePacketType.DisplayText) { return false; } PipePacketBuilder p = new PipePacketBuilder(ConnectionSource, packet, 3); textname = p.GetString(); loc.X = p.GetInt(); loc.Y = p.GetInt(); loc.Z = 0; // No need red = p.GetInt(); green = p.GetInt(); blue = p.GetInt(); color = Color.FromArgb(red, green, blue); font = (ClientFont)p.GetInt(); text = p.GetString(); index = p.Index; return true; } else { return false; } }