Funkt nicht bei Mesonia
it just scan ground for items it wont work for "range" pickupQuote:
Optimal range? So we can expand the range and pick more stuff when we are botting? But it will kick or give errors and fail sometimes. Am I wrong?Code:""" [B][SIZE="5"]optimal range[/SIZE][/B]: Y_RANGE=xrange(125, 600, 9) X_RANGE=xrange(300, 825, 31) """ def GetItems(self, y_range=Y_RANGE, x_range=X_RANGE): List=[] Picker=Pick for y in y_range: # xrange(125,600,9) for x in x_range:# xrange(300,825,25) iVID = Picker(x, y) if iVID != -1 and iVID not in List: List.append(iVID) return List def GetVIDs(self): pass def GetYang(self, y_range=Y_RANGE, x_range=X_RANGE): List=[] Picker=Pick for y in y_range: # xrange(125,600,4) for x in x_range:# xrange(300,825,5) FirstCoord = None LastCoord = None iVID = Picker(x, y) if iVID != -1: if iVID not in self.NYList and iVID not in List: _range=xrange(1,29) for i in _range: if Picker(x-i, y) != iVID: FirstCoord = x-i+1 break if FirstCoord == None: self.NYList.append(iVID) continue for i in _range: if Picker(FirstCoord+i, y) != iVID: LastCoord = FirstCoord+i-1 break if LastCoord == None: self.NYList.append(iVID) continue List.append(iVID) return List