August 25, 201510 yr Because object IDs change is there a way to interact with an object through objects position?
August 25, 201510 yr 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
August 25, 201510 yr 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.
August 25, 201510 yr 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
August 25, 201510 yr Author 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
August 25, 201510 yr 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, 201510 yr by iJodix
August 26, 201510 yr 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.)
August 26, 201510 yr Author 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.
August 26, 201510 yr 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.
August 27, 201510 yr Author 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.
August 28, 201510 yr 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.
August 29, 201510 yr Author 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
Create an account or sign in to comment