OsrsBot
OsrsBot copied to clipboard
[REVIEW] Line of Sight
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)
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
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!
No problem!