h4x0rdafuq
2012-10-02 20:58:23
Hey well basically i am making a script to test out my server's bot detection i am currently writing and would like to test out the stability of my woodcutting base and implement a bot detection. I have coded a simple color bot to detect the magic tree color and click it. I have then tried adding a full inventory detection as the until(invFull) would not work for an RSPS. I also added a stump detection so that for obvious reasons I can know when to look for the tree again. all being well I cannot for the life of me get the stump detection to work properly. It could possibly be because the color pixel is so small but i wouldn't expect that to happen because i can still see the pixels with my eyes. the tree and stump and inventory detection is here:
Will this work or am I doing something wrong because it is beginning to get on my nerves and i wish to put my detection to the test as i have the developers waiting for me to make a script to test it. Thank you SO much in advance!
Also, I forgot to add that upon start up i get the message "Chopping Magic Tree…" then the bot clicks the magic tree then i get the message "waiting…" on a loop and once the tree falls down I continue to get the message "Waiting…".
procedure ChopTree;
begin
repeat
if FindColorSpiralTolerance(x, y, TreeColour, TreeX1, TreeY1, TreeX2, TreeY2, TreeColourTolerance) then
begin
writeln('Chopping magic tree...');
Mouse (x ,y ,0 , 0, True);
end;
repeat
Wait(1000);
writeln('Waiting...');
Until (FindColorSpiralTolerance(x, y, StumpColour, TreeX1, TreeY1, TreeX2, TreeY2, StumpColourTolerance)
or (FindColorSpiralTolerance (x, y, 3029313, 653, 438, 669, 449, 20)) = False)
writeln('Stump Detected, Waiting for magic tree');
wait(3000);
until not(FindColorSpiralTolerance(x, y, 3029313, 653, 438, 669, 449, 20)); //the color code is the color of the last slot in inventory and is covered by logs
Writeln('Inventory full, Walking to bank.');
end;
Will this work or am I doing something wrong because it is beginning to get on my nerves and i wish to put my detection to the test as i have the developers waiting for me to make a script to test it. Thank you SO much in advance!
Also, I forgot to add that upon start up i get the message "Chopping Magic Tree…" then the bot clicks the magic tree then i get the message "waiting…" on a loop and once the tree falls down I continue to get the message "Waiting…".