各位大佬本人是易语言初学者,希望用易语言列子解解析下面的数据包
{170,85,137,0,0,1,0,192,0,122,0,118,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,66,98,63,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,111,0,0,0,0,0,0,0,0,0,85,170}
'第1-3格的物品ID{24,8,175,47}属性{73,13,3} 第4-6格的物品ID{23,8,175,47}属性{125,174,10}
{170,85,144,0,0,1,0,192,0,129,0,125,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,51,253,2,50,244,62,96,253,4,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,66,98,63,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,51,0,0,0,0,0,0,0,0,0,85,170}
' 第1-3格的物品ID{24,8,175,47}属性{73,13,3} 第34-36格的物品ID{23,8,175,47}属性{125,174,10}
{170,85,141,0,0,1,0,192,0,126,0,122,0,86,9,11,107,0,113,0,80,9,1,37,0,0,2,0,224,101,0,2,77,188,61,96,113,4,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,90,253,2,92,22,58,96,253,4,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,159,0,0,0,0,0,0,0,0,0,85,170}
' 第4-6格的物品ID{23,8,175,47}属性{125,174,10} 第31-33格的 物品ID{24,8,175,47}属性{73,13,3}
{170,85,137,0,0,1,0,192,0,122,0,118,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,66,98,63,32,5,6,0,0,23,8,175,47,1,32,9,2,125,174,10,32,5,224,5,2,2,77,188,61,96,19,224,19,35,2,50,244,62,96,19,224,19,35,2,92,22,58,96,19,0,24,160,35,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,246,0,224,111,0,0,0,0,0,0,0,0,0,85,170}
' 第1-3格的物品ID{23,8,175,47}属性{125,174,10} 第4-6格的 物品ID{24,8,175,47}属性{73,13,3}
以上物品数量都是一个占一格
{170,85,152,0,0,1,0,192,0,137,0,133,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,77,188,61,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,224,246,0,224,246,0,224,246,0,224,162,253,2,175,236,73,96,253,5,168,202,154,59,185,1,96,10,224,246,0,224,246,0,224,246,0,224,246,0,224,176,0,0,0,0,0,0,0,0,0,85,170}
'第1-3格的物品ID{24,8,175,47}属性{73,13,3} 第4-6格的物品ID{23,8,175,47}属性{125,174,10} 第33格的物品ID{168, 202, 154, 59}数量{185,1}=441个 无属性
{170,85,166,0,0,1,0,192,0,151,0,147,0,86,9,16,107,0,113,0,80,9,1,37,0,0,2,0,0,0,92,22,58,32,5,6,0,0,24,8,175,47,1,32,9,2,73,13,3,32,5,224,5,2,1,69,148,224,25,35,2,192,57,60,96,19,224,19,35,2,77,188,61,96,19,0,23,160,35,2,125,174,10,32,5,224,5,2,2,66,98,63,96,19,224,19,35,2,50,244,62,96,19,224,19,35,2,182,236,73,96,19,4,171,202,154,59,44,64,36,224,246,0,224,246,0,224,246,0,224,145,253,2,175,236,73,96,253,5,168,202,154,59,185,1,96,10,224,246,0,224,246,0,224,246,0,224,246,0,224,176,0,0,0,0,0,0,0,0,0,85,170}
'第1-3格的物品ID{24,8,175,47}属性{73,13,3} 第4-6格的物品ID{23,8,175,47}属性{125,174,10} 第7格的物品ID{171, 202, 154, 59}数量{44,64}【正常应该是{44,1}才对有时也有32,或192求怎么对应前面的字节集】=300个无属性, 第33格的物品ID{168, 202, 154, 59}数量{185,1}=441个无属性,
求解惑或给个思路是怎么判断物品位置,物品ID,物品数量
|