sudoinit6 Posted March 30, 2018 Share Posted March 30, 2018 (edited) Hey all. I am trying to put together a farming script and I was hoping to use configs to get the state of the allotments and patches, but I am a little lost. I found this (which was posted somewhere very recently so I am confident it is up to date): Spoiler Catherby529(<<0) = Fruit Tree529(<<24) = Herb529(<<16) = Flower529(<<8) = South Allotment529(<<0) = North Allotment511(<<24) = Compost BinFalador529(<<0) = Tree529(<<24) = Herb529(<<16) = Flower529(<<8) = South Allotment529(<<0) = North Allotment511(<<0) = Compost BinArdougne529(<<24) = Herb529(<<16) = Flower529(<<8) = South Allotment529(<<0) = North Allotment529(<<24) = Compost Bin529(<<0) = BushPort Phasmatys529(<<24) = Herb529(<<16) = Flower529(<<8) = South Allotment529(<<0) = North Allotment511(<<16) = Compost Bin Which provides me with answers but also questions. It appears that the config for all patches and allotments is 529. I went to the Falador farming patch and when I get the current config for 529 it gives a number based on what has most recently changed on any of the patches/allotments. If I rake the herb patch I get 352322049, If I rake the north allotment I get 352379451. I can't seem to figure out how to query a specific patch, how do I get the state of 529(<<24) for example? Edited March 30, 2018 by sudoinit6 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted March 30, 2018 Share Posted March 30, 2018 bit shift Quote Link to comment Share on other sites More sharing options...
sudoinit6 Posted March 30, 2018 Author Share Posted March 30, 2018 2 minutes ago, Chris said: bit shift Thanks, off to google. Quote Link to comment Share on other sites More sharing options...
liverare Posted March 30, 2018 Share Posted March 30, 2018 (edited) It's no longer possible to read the current growth states of crops from farming patches. It used to be; the most notable example was RSBuddy. However, Jagex felt the feature was an exploit, and the farming necklace had already existed for the purpose of tracking your farming patches. Jagex patched this. There may be a farming patch for a quest that might still work, but it's unlikely. I had worked on a farming tracker for OSBot v1 before the patch. It tracked all the herbs, and I was working to include every single farming patch in the game. :edit: I harvested toadflax from the Ardougne herb and, you're right, configuration #529 responded with the following values: 0x27030303 0x03030303 0x2c030303 0x2b030303 The values that changes are 0xFF000000 (where the "F" is, the numbers changes). To extract it, you could do: public int extractValueFromArdougneHerbPatch() { int c = configs.get(529); c >>>= 24; c &= 0xFF; return c; } Edited March 30, 2018 by liverare 3 Quote Link to comment Share on other sites More sharing options...
sudoinit6 Posted March 30, 2018 Author Share Posted March 30, 2018 25 minutes ago, liverare said: It's no longer possible to read the current growth states of crops from farming patches. It used to be; the most notable example was RSBuddy. However, Jagex felt the feature was an exploit, and the farming necklace had already existed for the purpose of tracking your farming patches. Jagex patched this. There may be a farming patch for a quest that might still work, but it's unlikely. I had worked on a farming tracker for OSBot v1 before the patch. It tracked all the herbs, and I was working to include every single farming patch in the game. :edit: I harvested toadflax from the Ardougne herb and, you're right, configuration #529 responded with the following values: 0x27030303 0x03030303 0x2c030303 0x2b030303 The values that changes are 0xFF000000 (where the "F" is, the numbers changes). To extract it, you could do: public int extractValueFromArdougneHerbPatch() { int c = configs.get(529); c >>>= 24; c &= 0xFF; return c; } Reveal hidden contents Wow thanks! It's going to take me a bit to wrap my head around this but I really appreciate the help and I love to learn new things! Quote Link to comment Share on other sites More sharing options...
Gosre Posted March 30, 2018 Share Posted March 30, 2018 Least & most significant bits below for each varbit (pulled directy from cache). Varbit ID: 4771 Config ID: 529 Least: 0 Most: 7 Varbit ID: 4772 Config ID: 529 Least: 8 Most: 15 Varbit ID: 4773 Config ID: 529 Least: 16 Most: 23 Varbit ID: 4774 Config ID: 529 Least: 24 Most: 31 Varbit ID: 4953 Config ID: 529 Least: 0 Most: 3 Varbit ID: 4954 Config ID: 529 Least: 4 Most: 7 Varbit ID: 4955 Config ID: 529 Least: 8 Most: 11 Varbit ID: 4956 Config ID: 529 Least: 12 Most: 15 Varbit ID: 4957 Config ID: 529 Least: 16 Most: 19 Varbit ID: 4958 Config ID: 529 Least: 20 Most: 23 Varbit ID: 4959 Config ID: 529 Least: 24 Most: 27 Varbit ID: 4960 Config ID: 529 Least: 28 Most: 31 Varbit ID: 740 Config ID: 511 Least: 0 Most: 7 Varbit ID: 741 Config ID: 511 Least: 8 Most: 15 Varbit ID: 742 Config ID: 511 Least: 16 Most: 23 Varbit ID: 743 Config ID: 511 Least: 24 Most: 31 Quote Link to comment Share on other sites More sharing options...