Codex Posted August 25, 2015 Share Posted August 25, 2015 Because object IDs change is there a way to interact with an object through objects position? Quote Link to comment Share on other sites More sharing options...
Precise Posted August 25, 2015 Share Posted August 25, 2015 Because object IDs change is there a way to interact with an object through objects position? why not use the name? try PositionFilter or something called that Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted August 25, 2015 Share Posted August 25, 2015 I believe you can just do #get(x, y) and retrieve a List<RS2Object/Entity/NPC>? Not entirely sure, if not you can just use a filter and then in the match just check if the positions match. Quote Link to comment Share on other sites More sharing options...
Og Domo Posted August 25, 2015 Share Posted August 25, 2015 I believe you can just do #get(x, y) and retrieve a List<RS2Object/Entity/NPC>? Not entirely sure, if not you can just use a filter and then in the match just check if the positions match. Not sure if this would work, but definitely worth a shot Quote Link to comment Share on other sites More sharing options...
Codex Posted August 25, 2015 Author Share Posted August 25, 2015 why not use the name? try PositionFilter or something called that I could use the name for woodcutting and I do but for mining every Rock object is called Rock. Plus I have not got a clue how to use the filters Quote Link to comment Share on other sites More sharing options...
iJodix Posted August 25, 2015 Share Posted August 25, 2015 (edited) I could use the name for woodcutting and I do but for mining every Rock object is called Rock. Plus I have not got a clue how to use the filters Use color to detect the right rocks or just filter the positions of the right rocks. Edited August 25, 2015 by iJodix Quote Link to comment Share on other sites More sharing options...
FrostBug Posted August 26, 2015 Share Posted August 26, 2015 I could use the name for woodcutting and I do but for mining every Rock object is called Rock. Plus I have not got a clue how to use the filters PositionFilter<RS2Object> posFilter = new PositionFilter(pos); NameFilter<RS2Object> nameFilter = new NameFilter("Rock"); RS2Object rock = getObjects().closest(posFilter, nameFilter); _____ Alternatively, make your own filter that suits all of your needs (position / name / color etc. etc.) Quote Link to comment Share on other sites More sharing options...
Codex Posted August 26, 2015 Author Share Posted August 26, 2015 PositionFilter<RS2Object> posFilter = new PositionFilter(pos); NameFilter<RS2Object> nameFilter = new NameFilter("Rock"); RS2Object rock = getObjects().closest(posFilter, nameFilter); _____ Alternatively, make your own filter that suits all of your needs (position / name / color etc. etc.) Cheers for the example mate! I have put something together that will interact with the object in a 1x1 area. Quote Link to comment Share on other sites More sharing options...
Zee Best Posted August 26, 2015 Share Posted August 26, 2015 Since when? Object ID's do not change. If you're talking about objects specific to the player such as hunter spots then you can determine what the object is based on specific Varbits. Quote Link to comment Share on other sites More sharing options...
Codex Posted August 27, 2015 Author Share Posted August 27, 2015 Since when? Object ID's do not change. If you're talking about objects specific to the player such as hunter spots then you can determine what the object is based on specific Varbits. Object IDs change when Runescape updated. Quote Link to comment Share on other sites More sharing options...
Zee Best Posted August 28, 2015 Share Posted August 28, 2015 Object IDs change when Runescape updated. I don't know what game you're playing but I've written a few scripts in the last month and none of them have broken using object ID's. Quote Link to comment Share on other sites More sharing options...
Codex Posted August 29, 2015 Author Share Posted August 29, 2015 I don't know what game you're playing but I've written a few scripts in the last month and none of them have broken using object ID's. Yeah I noticed that they were the same after I posted this sorry. but I do think they change Quote Link to comment Share on other sites More sharing options...