View Full Version : help with my log dropper!
Hugolord
04-01-2007, 02:50 PM
well its just my second script and i cant make it to click the drop logs text afer it right clicked the logs on the inventory :'( someone help please?
after the right click, do ChooseOption('rop'); and have it repeat doing that
until(not(FindDTM(logs....etc)));
so it would be something like this:
repeat
if(FindDTM(x,y,logs....etc))then
begin
Mouse(x,y,2,2,False)
ChooseOption('rop')
end;
until(not(FindDTM(x,y,logs....etc)))
~alex~
04-01-2007, 03:56 PM
should chooseoption not be clickoption?
3Garrett3
04-01-2007, 04:16 PM
well.. the only one i have ever used is chooseoption
Boreas
04-01-2007, 04:17 PM
Isn't there a DropAllLogs in SRL?
3Garrett3
04-01-2007, 04:23 PM
Yes, in fact there is. You could put
DropAllLogs;
like that, or make your own
Jason2gs
04-01-2007, 05:05 PM
I used drop all logs in my script before, and it looked to me like it was very detectible. It would move very jerkily from inventory space to inventory space.
You can use this one that I made for someone's request...
First the DTM:
LogDTM := DTMFromString('78DA632C66626078CA8002527D75191E026 94' +
'620FE0F048CC94035CF18D000231209A4F3806AEE10505343 A49A' +
'3744D8F511BF1A00056F0DE4');
Now the dropper...
procedure DropLogs;
begin
if(InvFull)then
begin
repeat
if(FindDTM(LogDTM, x, y, 552, 203, 742, 469))then
begin
Mouse(x, y, 2, 2, False);
ChooseOption(x, y, 'Drop');
FindTalk;
FindNormalRandoms;
DeadWillows := DeadWillows + 1;
end;
until(Not(FindDTM(LogDTM, x, y, 552, 203, 742, 469)));
end;
end;
You can change "DeadWillows" to whatever you want. Or you can take it out. I put it in there for the progress report.
Hugolord
04-01-2007, 05:07 PM
i tried with choose option and still doesn't drop.. dam some1 pls help?
Jason2gs
04-01-2007, 05:12 PM
What exactly is wrong with it?
Ejjman
04-01-2007, 05:13 PM
Uhg...
Run..But plugin ur stuff
program LogDropper;
{.include SRL\SRL.scar}
procedure DropTheLogs;
var xx, yy, rx, ry, LogDTM : integer;
begin
{Put your LogDTM here}
if(FindDTM({Put your LogDTM NAME here}, xx, yy, MIX1, MIY1, MIX2, MIY2))then
begin
MMouse(xx, yy, 2, 2);
wait(50+random(100));
Mouse(xx, yy, 2, 2, False);
wait(100+random(100));
ChooseOption(rx, ry, 'Drop');
wait(1000);
end;
end;
begin
SetupSRL;
DropTheLogs;
end.
if that don't work, u need to look at a dtm tut, and fast!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.