Laimonas171
2012-10-28 15:16:31
Hi, I have creating one script…
So I created one function which takes items from bank etc.
So if I use
If I do Tolarance 15, looks like works well, but by that, I guess if you click "note" "unnote" button at bank
it slightly changes colours, so no need to login, logout… maybe thats one of new tricks from jagex? or it was like this before, and I'm kinda noobie? [ Though strange that with iron everything works well even with 10 tolerance, both bitmaps are exact same place of item, and coords. ]
So I created one function which takes items from bank etc.
function takeFromBank(ItemName: string; howMuch: integer; noted: Boolean):boolean;
var
x, y, itemBmp, regular: integer;
begin
wait(600+random(150));
if (howMuch=0) then
begin
howMuch:=(999+random(5000));
end;
if (noted = false) then
begin
Notes(false);
end else
begin
if (noted = true) then
Notes(true);
end;
case ItemName of
'iron ore':
begin
itemBmp := BitmapFromString(6, 5, 'meJwTldEXkzOSkDcFIlEZfSYGBlGwiKSiBQQB2XARKWUrCIJogYjIqDlIq9jCuUAE5AIRABseDJ0=');
if((FindBitmapToleranceIn(itemBmp, x, y, MsX1, MsY1, MsX2, MsY2, 10))) then
begin
mouse(x, y, 3, 3, false);
wait(300+random(150));
WaitOption('w-X', 500);
wait(800+random(150));
TypeSendEx(IntToStr(howMuch), true);
wait(500+random(150));
WriteLn('Rado rado iron');
end;
end;
'coal':
begin
itemBmp := BitmapFromString(6, 5, 'meJwTEheXkJeXUlICkkDExMAgKi0NEYEgIBsuIqumBkEQxRARBU1NIIJrgYgo6egAAMGUCqw=');
if((FindBitmapToleranceIn(itemBmp, x, y, MsX1, MsY1, MsX2, MsY2, 10))) then
begin
mouse(x, y, 3, 3, false);
wait(300+random(150));
WaitOption('w-X', 500);
wait(800+random(150));
TypeSendEx(IntToStr(howMuch), true);
wait(500+random(150));
WriteLn('Rado coal');
end;
end;
end;
FreeBitmap(itemBmp);
end; So if I use
takeFromBank('coal', 3, false); // takes 100%
takeFromBank('coal', 3, true);// Do not takes 90%
takeFromBank('iron ore', 3, True); // takes 100%
takeFromBank('iron ore', 3, false); // takes 100%If I do Tolarance 15, looks like works well, but by that, I guess if you click "note" "unnote" button at bank
it slightly changes colours, so no need to login, logout… maybe thats one of new tricks from jagex? or it was like this before, and I'm kinda noobie? [ Though strange that with iron everything works well even with 10 tolerance, both bitmaps are exact same place of item, and coords. ]