Quote:
Originally Posted by dumpersta
I am curious how well autoloot works with things covering the treasure chest. Like if your bag is open, or the minimap happens to overlap the chest. Or even if the chest is behind your chat panel. Seems that people are writing it to right-click on that window location, which means if your bag IS open and lined up wrong, it might right click something in the bag and use it instead.
Maybe that Pixel Color checking program that was also posted in the BoI forums here could be used as well, to ensure that the pixel about to be right clicked is at least the proper gold shiny color of a lootable chest? Doesn't prevent ALL mis-clicks, but removes a lot of them.
|
Heh, this will be a long type
Gonna start bottom up, about the pixel color checking program
That program is extremly basic. excluding gui, programming the basic interior coding would take about 10-20 minutes. I actually wrote a pixel color checking program to work in conjunction with the autoloot, but doesn't work
why? The chest isn't one pixel color. Also, the chest has those golden glowing stuff around it that completly throws off the pixel checking of program.
Also that pixel checker program only records one X and one Y location and monitors the pixel color there, totally pointless since everytime your char moves, the chest location "changes" relatively to your character and teh X and Y values fail. Also, if the chest had a static color, pixel scanning the game is a long and slow process, so it doesn't work efficeintly =\
------------------------------
AutoLoot on rightclicking
You're fears are valid on this concern, however you didn't take in the account that rightclick on an empty spot of the bag, or rightclicking anywhere on the map, closes that window :P In any case, i'll tell you exactly how my autoloot works
It first takes the width and length of the BoI window (if maximized, it takes length and width of your Display's w and l.
from there, i divide both w and l by two to get middle of screen, which would = Character position.
Through testing, I noticed that when killing an enemy, the chests drop at max distance in this equation: ((w/2)/3) +- Player's X or Y
Doing that, I create a box around the character. on my screen, box is usually around 300px or 350px or something.
From there, I find the chests smallest width.. In that box, from the top left corner, I rightclick the top left corner, increase x by width of chest and rightclick, and etc. till reaching end of box. I increase y by height of chest and reset the x of the box to the left again. I keep doing it etc. till box is finished clicking.
Here are my variables:
bright = w + (w-(w*2)/3);
bleft = w - (w-(w*2)/3);
btop = h - (w-(w*2)/3);
bdown = h + (w-(w*2)/3);
increase = (2*(w-(w*2)/3))/30;
where w = (Width of Game Window)/2
So far method works perfectly. I only seen it missed a chest once, but after killing second enemy, it picks up chest. I'm also not using the mouse to click at the coordinates, but instead making the game "think" that the mouse is clicking at those locations. So basically no game lag, you can use your mouse as you want, and etc. Only issue is that if you have bag open, it'll close bag lol
If chest is out of box, it won't be clicked. However that box is rather big. As character moves around killing monsters, the chest will eventually go back into box and get clicked. So far my bot hasn't missed a single box after battles are done, And I use my bot to automate almost all my fights.
Any more questions hit it my way :P
PS: I'm still in highschool