Jump to content
BryceTheCoder

Herblore Cleaner - Clean Herbs extremely fast with multiple locations

Recommended Posts

Interesting, you have a bunch of stuff included, yet you don't seem to use any of those extra files in your script so you can really delete everything all you need is {$I OSI\OSI.scar}

 

[sCAR]case ComboBox1.ItemIndex of

0: WhichBank:= 1;

1: WhichBank:= 2;

2: WhichBank:= 3;

else Logout;[/sCAR]

 

You could just do

 

[sCAR]WhichBank := ComboBox1.ItemIndex + 1;

if (not (InRange(WhichBank, 1, 3))) then

Logout;[/sCAR]

 

if you store the players BankPin in Players[CurrentPlayer].Pin := '0000'; OpenBank will do it automatically for you

 

[sCAR] Slot := GetItemBounds(i);

MouseBox(Slot.X1, Slot.Y1, Slot.X2, Slot.Y2, ClickLeft);[/sCAR]

 

You could just use MouseItem(I, ClickLeft);

 

[sCAR] if WhichBank = 1 then

begin

OpenBankEx(Loc_VWB, True, True, True);

end;

if WhichBank = 2 then

begin

OpenBankEx(Loc_VEB, True, True, True);

end;

if WhichBank = 3 then

begin

OpenBankEx(Loc_AKB, True, True, True);

end;[/sCAR]

 

Uses cases or something.. match up WhichBank with the real Indexes in Global.scar so you can just do OpenBankEx(WhichBank

 

[sCAR] if RadioButton1.Checked then

begin

CleanEm;

end;[/sCAR]

 

You don't need begin end for single lines

 

[sCAR]if RadioButton1.Checked then

CleanEm;[/sCAR]

 

I haven't tested the script yet but I'm sure it probably works alright, just work on the fundamentals and learn the tricks and you'll find coding scripts with OSI is even easier than you imagined

Edited by Wanted
Link to comment
Share on other sites

Links are broken/dead. Is this script dead, or is this the same script listed on the UB website?

Its not the same one, but i think he just removed it? Have you happen to try the one i have posted? Its works pretty good, just do not use the darn GE! lol. The ge banking method has killed me i dunno what it is but it takes ages to find bank ect... In the new update ive removed the Ge =p lol

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
  • Create New...