Awkwardsaw
2009-11-26 15:33:15
i would like to get an other rev update, so please post ideas, so i can make the functions, and add them :) also post functions if you think they should be added to the includes
2009-11-26 15:33:15
2009-11-26 16:35:07
2009-11-26 17:00:51
2009-11-26 17:10:25
2009-11-26 21:29:57
2009-11-26 22:08:26
From: Aut03r
the find bank one would be awesome :)
wanna start banking ore rather then power mining it hehe
uncfan can you tell me what DTM is..?
2009-11-26 22:23:44
2009-11-26 22:58:36
From: Blumblebee
hmm I think it would be cool to help out on this, problem is I dont have an account, realistically I don't need one but I do need colors. If I could…
a) borrow an account for a bit
or
b) people could collect colors for me
I could make an autocolor.scar or something for classic?
2009-11-26 23:01:59
From: Nava2
Colors are static.
2009-11-26 23:16:32
From: Blumblebee
oh ballin. Then why is it so hard to script for RSC? its just FindColor() and shit would it not?
2009-11-27 01:41:44
2009-11-27 01:58:15
2009-11-27 08:21:22
From: r4it
Banking is needed yes… twinkered a little with DTMs n shit… got the window open, but depositing shit isnt that easy :D for me atleast… im a newb.
2009-11-27 20:36:28
2009-11-28 06:50:59
From: Awkwardsaw
all you really need is to find the slot, and mousebox the depositing :p. i can do it i guess if you send me what you have :D
and JP, you can borrow my account :) you may need to walk a little though, it near port sarim/ rimmy
and zasz, what tool/ plugin is it? :)
program New;
{.Include SRL-rsc/SRL_rsc.scar}
{.include srl/srl/misc/Reports.scar}
const
banker_col = 65536; //color of the banker
ground_col = 143460; //bank floor color on minimap
function Guptext(uptext : string; var x, y : integer): boolean;
var dtm : integer;
begin
case lowercase(uptext) of
'banker' : DTM := DTMFromString('78DA639CC9C0C0C0C98001F8819811CA66EC0' +
'612EC0C58015CCD2A20C14B40CD444C35FFFFA3A959896917BA1A' +
'00E57C074F');
'talk' : DTM := DTMFromString('78DA63CC6664603060C000FC40CC086533466' +
'257C380ACA60AC8D225A0A602C832C1AF0600DE010293');
'answer' : DTM := DTMFromString('78DA635CCBC0C0C0C98001F881981188FF030' +
'1E37220839D012B6084D10F885033014870E3570300C57A06FA');
end;
result := finddtm(dtm, x, y, rssx1, rssy1, rssx2, rssy2);
freedtm(dtm);
end;
procedure IFintalk;
var
x, y : integer;
begin
if Guptext('answer', x, y) then
begin
wait(500 + random(300));
mouse(x, y, 0, 0, true);
wait(500 + random(300));
end;
wait(3000 + random(2000));
end;
procedure TalkBanker;
var
cts, a, x, y : integer;
tpa : TPointArray;
begin
cts := getcolortolerancespeed;
colortolerancespeed(3);
findcolorsspiraltolerance(rsscx, rsscy, tpa, banker_col, rssx1, rssy1, rssx2, rssy2, 2);
if length(tpa) < 50 then exit;
for a := 0 to 50 do
begin
mmouse(tpa[a].x, tpa[a].y, 0, 0);
if Guptext('banker', x, y) then
begin
mouse(tpa[a].x, tpa[a].y, 0, 0, false);
wait(100 + random(200));
if Guptext('talk', x, y) then
begin
mouse(x, y, 20, 5, true);
break;
end else
mmouse(random(100), random(100), 0, 0);
end;
wait(10 + random(100));
end;
wait(2000 + random(500));
IFintalk;
end;
begin
setuprsc;
repeat
TalkBanker;
wait(10 + random(20));
until(false);
end.
2009-11-28 07:19:54
2009-11-28 08:26:42
From: antti mies
We need to get the fonts working :(
2009-11-28 08:40:57
From: Awkwardsaw
that we do :(
i'll have a look at it r4it :)
2009-11-28 12:28:53
procedure LockedIn;
begin
i:= 0; j:= 0; x:= 0; y:= 0;
MoveMouse (460, 15)
Wait (300);
ClickMouse (432, 133, True);
wait (300);
repeat
if (FindColorSpiral (x, y, 929884, 1 + j, 1, 500, 320)) or
(FindColorSpiral (x, y, 415860, 1 + j, 1, 500, 320)) or
(FindColorSpiral (x, y, 1859768, 1 + j, 1, 500, 320)) or
(FindColorSpiral (x, y, 1327248, 1 + j, 1, 500, 320)) or
(FindColorSpiral (x, y, 663624, 1 + j, 1, 500, 320)) then
begin
MoveMouse (x, y);
wait (200);
if (IsTextAt (6, 2, 'Door: Open')) then
begin
ClickMouse (x, y, True);
wait (1000);
end;
end;
i:= i + 1;
if (i = 3) then
begin
i:= 0;
j:= j + 50;
end;
wait (100);
until (j > 501) or (IsTextAt (7, 304, 'The door'));
writeln ('Locked in Check Complete. Continue with Autoing.');
end;
2009-11-28 12:31:35
2009-11-28 12:36:11
2009-11-28 13:29:10
2009-11-28 13:41:50
2009-11-29 09:28:48
From: r4it
Iv managed to talk to the banker and bank my tunas lol… with using DTMs and ClickMouse method… are there any better/safer ways to do this?
2009-11-29 10:14:48
From: Awkwardsaw
DONT use clickmouse :) use mouse(x, y, rx, ry, true/false); :p
and what does the converter convert zasz?
program New;
{.Include SRL-rsc/SRL_rsc.scar}
{.include srl/srl/misc/Reports.scar}
const
fish_col = 3757396;
function Guptext(uptext : string; var x, y : integer): boolean;
var dtm : integer;
begin
case lowercase(uptext) of
'tuna' : DTM := DTMFromString('78DA634C626460B8CE8002162F5ECCC00FA41' +
'9A17CC63820EB0EAA9A90504B881C4C4D25907501554D414101AA' +
'9A1020EB2A7E350042900A6C');
'deposit' : DTM := DTMFromString('78DA637CC3C0C0C0C7C8800EF8811824FA1F0' +
'818B7810430D53040D580692146C26A8E020951026A98812C1EFC' +
'6A00BFE406E6');
end;
result := finddtm(dtm, x, y, rssx1, rssy1, rssx2, rssy2);
freedtm(dtm);
end;
procedure DepositAll1;
var
cts, a, x, y : integer;
tpa : TPointArray;
begin
cts := getcolortolerancespeed;
colortolerancespeed(3);
findcolorsspiraltolerance(rsscx, rsscy, tpa, fish_col, rssx1, rssy1, rssx2, rssy2, 2);
if length(tpa) < 50 then exit;
for a := 0 to 50 do
begin
mmouse(tpa[a].x, tpa[a].y, 0, 0);
if Guptext('tuna', x, y) then
begin
mouse(tpa[a].x, tpa[a].y, 0, 0, false);
wait(100 + random(200));
if Guptext('deposit', x, y) then
begin
MoveMouse (427, 295)
wait(300 + random(200));
ClickMouse (427, 294, True);
end else
wait(10 + random(100));
end;
wait(10 + random(100));
end;
wait(2000 + random(500));
end;
begin
setuprsc;
repeat
DepositAll1;
wait(1000 + random(500));
until(false);
end.
2009-11-29 10:34:02
2009-11-29 11:29:37
From: Awkwardsaw
hmm, why dont you just find the dtm of the tuna itsself, instead of finding its color and checking the uptext? :)
i dont know how that would fix the problem, but give it a shot :)
also, you didnt post the actual opening bank procedure
program New;
{.Include SRL-rsc/SRL_rsc.scar}
{.include srl/srl/misc/Reports.scar}
const
banker_col = 65536; //color of the banker
fish_col = 7368816;
function Guptext(uptext : string; var x, y : integer): boolean;
var dtm : integer;
begin
case lowercase(uptext) of
'banker' : DTM := DTMFromString('78DA639CC9C0C0C0C98001F8819811CA66EC0' +
'612EC0C58015CCD2A20C14B40CD444C35FFFFA3A959896917BA1A' +
'00E57C074F');
'talk' : DTM := DTMFromString('78DA63CC6664603060C000FC40CC086533466' +
'257C380ACA60AC8D225A0A602C832C1AF0600DE010293');
'answer' : DTM := DTMFromString('78DA635CCBC0C0C0C98001F881981188FF030' +
'1E37220839D012B6084D10F885033014870E3570300C57A06FA');
'tuna' : DTM := DTMFromString('78DA634C626460B8CE8002162F5ECCC00FA41' +
'9A17CC63820EB0EAA9A90504B881C4C4D25907501554D414101AA' +
'9A1020EB2A7E350042900A6C');
'deposit' : DTM := DTMFromString('78DA637CC3C0C0C0C7C8800EF8811824FA1F0' +
'818B7810430D53040D580692146C26A8E020951026A98812C1EFC' +
'6A00BFE406E6');
end;
result := finddtm(dtm, x, y, rssx1, rssy1, rssx2, rssy2);
freedtm(dtm);
end;
procedure DepositAll1;
var
cts, a, x, y : integer;
tpa : TPointArray;
begin
cts := getcolortolerancespeed;
colortolerancespeed(3);
findcolorsspiraltolerance(rsscx, rsscy, tpa, fish_col, rssx1, rssy1, rssx2, rssy2, 2);
if length(tpa) < 50 then exit;
for a := 0 to 50 do
begin
mmouse(tpa[a].x, tpa[a].y, 0, 0);
if Guptext('tuna', x, y) then
begin
mouse(tpa[a].x, tpa[a].y, 0, 0, false);
wait(100 + random(200));
if Guptext('deposit', x, y) then
begin
MoveMouse (427, 295)
wait(300 + random(200));
ClickMouse (427, 294, True);
end else
wait(10 + random(100));
end;
wait(10 + random(100));
end;
wait(2000 + random(500));
end;
procedure IFintalk;
var
x, y : integer;
begin
if not Guptext('answer', x, y) then
exit;
while Guptext('answer', x, y) do
begin
wait(1000 + random(1000));
mouse(x, y, 0, 0, true);
wait(10000 + random(500));
end;
wait(700 + random(453));
DepositAll1;
end;
procedure TalkBanker;
var
cts, a, x, y : integer;
tpa : TPointArray;
begin
cts := getcolortolerancespeed;
colortolerancespeed(3);
findcolorsspiraltolerance(rsscx, rsscy, tpa, banker_col, rssx1, rssy1, rssx2, rssy2, 2);
if length(tpa) < 50 then exit;
for a := 0 to 50 do
begin
mmouse(tpa[a].x, tpa[a].y, 0, 0);
if Guptext('banker', x, y) then
begin
mouse(tpa[a].x, tpa[a].y, 0, 0, false);
wait(100 + random(200));
if Guptext('talk', x, y) then
begin
wait(100 + random(200));
mouse(x, y, 20, 5, true);
break;
end;
wait(100 + random(100));
end;
wait(100 + random(100));
end;
wait(3000 + random(500));
IFintalk;
end;
begin
setuprsc;
repeat
TalkBanker;
wait(10 + random(20));
until(false);
end.
2009-11-29 11:50:10
2009-11-29 13:13:26
From: Awkwardsaw
add in some writeln's so you know exactly where it messes up, also make a "while (not bankscreenopen) do wait(100 + random(10));" function right after you finish talking, and before you deposit. also add in the fail safe before you deposit :)