SRL Archive - OSR Help

Cooking: Clicking Inventory Help


StickToTheScript

2012-03-16 10:46:09

Hello,

I am currently having issue with my bot, i am trying to have it click the shrimp in my inventory.

I am using DTM's and it is able to find the range, it just wont click on the shrimp. I made sure that the DTM was found but it would not happen!!!!

here is the issue

procedure UseRange;
var
rawshrimp, x, y: integer;

begin
repeat
FindNormalRandoms;
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);


rawshrimp := DTMFromString('mAAEAAHic42FgYOABYlkoZgViXigtAMSSDBAAojmAWASIuaDynFC9YkDMCFUHkmODskWh6mOcTIAkEwmYNMBIIkYGAJOpAjA=');

if FindDTM(rawshrimp, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
MMouse(x,y, 7,7)
Mouse(x,y,5,5,false)
ChooseOption('Use')
Mouse(258, 422, 0, 0, true);
wait (67356+random(2435));
Antiban;
end;
until(InvFull);
end;

Please help,

THanks,

StickToTheScript

JuKKa

2012-03-16 10:52:20

please post some code so we can actually help you ;)

Flight

2012-03-16 10:57:29

Yeah some code would sure help. It could be a number of things, you might be searching in the wrong place for the Shrimp DTM, or maybe the shape of the Shrimp has shifted since you made your original DTM (Items do this over time).

The best solution for this is to make your main point in the middle, like usual, but keep your sub-points from the lower left-hand side, across the bottom, and up the right-side of the item. The reason is most of the time if an item shifts in shape, it's only the upper-left hand that warps; the rest remains the same.

the flea

2012-03-16 10:58:29

are you sure your searching for the DTM in the correct place?

make sure you have something similar too
 FindDTM(DTM,x,y,MIX1,MIY1,MIX2,MIY2)

my guess is your searching in the main screen or something instead

StickToTheScript

2012-03-16 16:53:45

Ya.. i used that, but it didnt work… PLEASE HELP!!!

lilcmp1

2012-03-16 18:07:13

Right after your if/then/begin add
Writeln('Found Shrimp');

See if that shows up when you run it.


Also, what does the rest of the script look like? You need something like;

{$DEFINE SRL5}
{$i SRL/srl.simba}
AND


Setupsrl;

StickToTheScript

2012-03-17 11:43:29

well, i figured out a way to fix my cooking issue, but now, the AK bank is being a total jerk, so no matter how hard i try, i cannot bank. I used guides and everything…….

PLEASE HELP!!!!

smurg

2012-03-18 00:36:46

Please post in the correct section.

moring

2012-03-31 05:37:58

I am beginner but maybe you forgot to free the DTM
"FreeDTM(rawshrimp);" in the end

Imanoobbot

2012-03-31 05:56:02

Why not posting this in the helping section? And what is the problem? Is it not clicking the rawshrimp or the range?

NKN

2012-03-31 09:12:31

1. Wrong section.
2. You're not finding the DTM, or else it would click it.

Vinyl Scratch

2012-03-31 15:21:11

Wong section, but I think I know the problem.. If you have the DTMs then you're set fo it to find it, but you need to set one of those things to true, I don't know which one, because it's 3AM here, and I don't want to get my coffee yet.