SRL Archive - News and General

Have noticed one thing at rs


Laimonas171

2012-10-28 15:16:31

Hi, I have creating one script…
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. ]

Rezozo

2012-10-28 15:37:43

This is good, though you would have to set up one for each Item, which is a drag anyway.

Laimonas171

2012-10-28 17:06:10

From: Rezozo
This is good, though you would have to set up one for each Item, which is a drag anyway.


drag away? dont get it :D
edit: I'm not very very good at English though.. :D

Rezozo

2012-10-28 17:35:35

Lol yea, for drag, meant it is a pain/bore. This would be good if someone could, potentially, input all the most used items, and send a pull request to make it official!

Brandon

2012-10-28 17:39:43

Also if you withdraw an item, it changes colours. I know this because of the OGL stuff. I withdraw an item and its colour ID's change but as soon as you deposit it back, the colour goes back to what it was.

Jagex uses this alpha blending thing which is what causes the colour change :l

Laimonas171

2012-10-29 13:42:50

From: Brandon
Also if you withdraw an item, it changes colours. I know this because of the OGL stuff. I withdraw an item and its colour ID's change but as soon as you deposit it back, the colour goes back to what it was.

Jagex uses this alpha blending thing which is what causes the colour change :l


but if i use iron, it works perfectly, coal not, probably because "main" colour of items. iron doesn't change drastic so it still worked at that point

EDIT 500 post.

Rezozo

2012-10-29 14:16:14

^^^Gratz on the 500.
As for color change, how much tolerance is acceptable for the item then? There must be a balance between getting it stuck on some other item, and picking the same one only for it to change to an unsupported(by set parameter) color.