SRL Archive - OSR Help

DTM's causing simba to click off screen.


ralfpker

2013-03-06 05:48:48

For some reason, the script I'm writing compiles fine, but when i try to get it to find mt DTM, it clicks in the top left hand corner of the runescape window. Any solutions?

procedure walkShop;
begin
ShopDTM:= DTMFromString('m6wAAAHic42ZgYOhjYmDoB+KpQLwAiFcC8RoovQSI5wHxFKgaN6B6WyA2AWIjILYAYhsgDgTicCCOAuIIKP/Fl69g/O7dOxQaXQyESQGMJGAkAABN2CjC');
if P07_InvFull then
P07_MakeCompassNorth;
(findDTM(ShopDTM, x, y, 520, 16, 745, 155))
begin
Mouse((X + 15, x + 20), RandomRange(Y - 8, Y - 13), random(3), random(3), true);
FreeDtm(ShopDTM);
end;
P07_FFlag;
wait (1000+Random(200));
end;

Justin

2013-03-06 05:59:26

From: ralfpker
For some reason, the script I'm writing compiles fine, but when i try to get it to find mt DTM, it clicks in the top left hand corner of the runescape window. Any solutions?

procedure walkShop;
begin
ShopDTM:= DTMFromString('m6wAAAHic42ZgYOhjYmDoB+KpQLwAiFcC8RoovQSI5wHxFKgaN6B6WyA2AWIjILYAYhsgDgTicCCOAuIIKP/Fl69g/O7dOxQaXQyESQGMJGAkAABN2CjC');
if P07_InvFull then
P07_MakeCompassNorth;
(findDTM(ShopDTM, x, y, 520, 16, 745, 155))
begin
Mouse((X + 15, x + 20), RandomRange(Y - 8, Y - 13), random(3), random(3), true);
FreeDtm(ShopDTM);
end;
P07_FFlag;
wait (1000+Random(200));
end;


You have no 'If' therefore it might not be finding your DTM, all integers have a default value of 0 therefore x and y are not set so its moving the mouse to 0, 0 with your random range.