SRL Archive - OSR Help

Help with banking and an antiban


Hazzah

2012-03-10 13:03:56

Okay, so the script I have been editing and changing may look quite shabby to most of you, but whatever, has gotten me almost 99 crafting :). But if I ever release it I want to fix the banking and one of the antibans

8:begin
GameTab(TAB_QUEST);
wait(RandomRange(100,1000));
GameTab(TAB_INV);
end;

I want it to scroll through the quest list, and maybe hover on one, is that possible with less than basic scripting knowledge?

and also the bank ALWAYS returns to face west to find the bank, is there a way I could change this to make it always find the bank at any angle?

procedure WithdrawDhide;
var
x,y:integer;
begin
SetAngle(SRL_ANGLE_HIGH);
OpenBankChestEdge(SRL_BANK_SW);
repeat
wait(500);
until(PinScreen or BankScreen);
if PinScreen then
begin
InPin(Players[CurrentPlayer].Pin);
wait(RandomRange(900,1100));
end;
if BankScreen then
begin
wait(RandomRange(400,600));
MouseItem(RandomRange(1,9),mouse_Right);
wait(RandomRange(400,600));
ChooseOption('27');
if FindDTM(dhideDTM2,x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Mouse(RandomRange(440,460), RandomRange(230,250),0,0,False);
wait(RandomRange(800,1000));
ChooseOption('27');
wait(RandomRange(800,1000));
CloseBank;
end;
end;
end;

Could I assign a DTM value somehow and use the "if FindDtmRotated then".

I have a very very basic knowledge and have borrowed most of this script, hence why I haven't released it.

Hazzah

2012-03-11 12:36:00

79 views and zero responses. :/

begginer

2012-03-11 13:33:59

What's your problem. You cannot get items form bank or what

bg5

2012-03-11 14:55:55


I want it to scroll through the quest list, and maybe hover on one, is that possible with less than basic scripting knowledge?


If think there is no SRL function to do this ,you must create your own.


and also the bank ALWAYS returns to face west to find the bank, is there a way I could change this to make it always find the bank at any angle?


You can delete line

MakeCompass(Info[10]);

in your OpenBankChestEdge function ,or create your own banking function.

Could I assign a DTM value somehow and use the "if FindDtmRotated then".


Don't rely upon DTMs for object finding on mainscreen ,they are good for minimap and inventory ,but for mainscreen much more accurate are TPAs:
http://villavu.com/forum/showthread.php?t=49067

Hazzah

2012-03-11 15:55:13

Thank you both. I have been reading about TPA's but I really just don't have time at the moment, too much other reading to do and I guess I will need to create my own procedure for scrolling through the quest list.