OsrsBot icon indicating copy to clipboard operation
OsrsBot copied to clipboard

[REVIEW] Line of Sight

Open GigiaJ opened this issue 5 years ago • 3 comments

Currently we can confirm if something is on screen, but not if we have line of sight of it. We need to likely rework some interactions or add in a check to verify that the object we are attempting to see and interact with is visible to the player. (To prevent clicking through walls or similar consistently)

GigiaJ avatar Jul 11 '19 12:07 GigiaJ

The WorldArea class, it has some very useful stuff for pathfinding Look at "canMoveToAttack"

https://github.com/xKylee/plugins-source/blob/master/inferno/src/main/java/net/runelite/client/plugins/inferno/InfernoNPC.java

https://streamable.com/ugzbi Could do a collision map like this then make it map-wide functionality Eg start in lumbridge and get it to walk to Catherby Taking into account all obstacles and agility shortcuts and check level requirements

f0rmatme avatar Apr 01 '20 01:04 f0rmatme

Oooo. So the issue I mention here is actually regarding clicking completely through walls and such. Meaning the bot would click in manners that a human realistically just wouldn't. Read lack of sight to actually click.

That said, you bring a very wonderful idea up to further add to this. Adding intelligent pathing to the mix would allow it to act even less bot-like. Thanks!

GigiaJ avatar Apr 01 '20 02:04 GigiaJ

No problem!

f0rmatme avatar Apr 02 '20 01:04 f0rmatme