SRL Archive - First Scripts

First simple script: Lumby Jug Filler BETA version


Renzanity

2015-03-05 02:35:03

Contents of this thread is now moved to https://villavu.com/forum/showthread.php?t=112225&p=1333647#post1333647 thank you. v2.1 released!

Renzanity

2015-03-06 07:30:50

EDIT:

***Resolved***

Currently working on the TPA for filling jugs and here's what I got so far. It's doing its job, but it's still hovering over other points in the mainscreen, can anyone give me tips on how I could fix this?

Thanks in advance! I'll be working on it alone until somebody gives me advice. :)



//Filling the jugs with water
procedure fillingJugs();
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;

begin
begin
findColorsSpiralTolerance(x, y, TPA, 9477264, mainScreen.getBounds(), 21, colorSetting(2, 1.06, 0.21));

if length(TPA) < 1 then
exit;

ATPA := TPA.toATPA(60, 60);
ATPA.sortFromMidPoint(mainscreen.playerPoint);


for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['emorial'], 500) then
begin
fastClick(MOUSE_LEFT);
pressKey(VK_SPACE);
wait(randomRange(18000, 19000));
end;
end;
end;
smartImage.clear;
end;

Trollcrank

2015-03-06 23:37:51

From: renzanity
Currently working on the TPA for filling jugs and here's what I got so far. It's doing its job, but it's still hovering over other points in the mainscreen, can anyone give me tips on how I could fix this?

Thanks in advance!


Try lowering the tolerance, maybe around 10-16. Until it starts to work a little better. If it is still failing post back and I, or someone else, will teach you how to use a filter.

Renzanity

2015-03-07 02:26:32

From: Trollcrank
Try lowering the tolerance, maybe around 10-16. Until it starts to work a little better. If it is still failing post back and I, or someone else, will teach you how to use a filter.


Thanks, mate. I'll look into it after I finish a new script I'm currently giving my attention to.

EDIT:

Now that I've looked into it further, I think I'm going to keep it as an "accidental" antiban. Though it's not much like boredHuman();, but I think it's better than leaving my mouse right on the spot where I've clicked the fountain.