varmonid,Goods,Goods1:PDWORD;i:DWord;goodsName:PAnsiChar;strName:string;beginif self.CheckBox9.Checked thenfor i:=0 to 80 dobeginGoods:=Pointer($355500);Goods:=Pointer(Goods^+I*4);monid:=Pointer(Goods^+$20); //+20怪物IDGoods1:=Pointer(Goods^+$90); //+90遍历出所有怪物与人的距离 浮点//这里不会写 从Goods1选出最小的数pickgoods55(monid^); //pickgoods55{};是用怪物ID的技能攻击,里面的monid^是怪物IDend;end;