ok im writing a script and i need help on how to find a ladder. i want it to find the specified ladder on the MS then click it. thanks for any help.
ok im writing a script and i need help on how to find a ladder. i want it to find the specified ladder on the MS then click it. thanks for any help.
hmm. MainScreen you say? What kind of ladder? Wooden or Stone? I think you will need some kind of deformed or ColorSpiral scheme....
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
I came up with this.And you can do something likeSCAR Code:function LadderFind: integer;
var
lx, ly, ladder, tol: integer;
begin
//MakeCompass('S');
ladder := BitmapFromString(19, 4, 'z78DAA5D1310EC4300844D12' +
'B3103045C0627B9FF9152A45909BBDAE6D55FFA669A482F239EEE' +
'A196D485C32E7A37E0642C2C3F599F9A2A707325A2EBD489B9F03' +
'627BADB92F4E0F8A4C044F46000DD5DC93F559C3428071EB9BABB' +
'122D16ACBBADFA39F502044F6035');
tol := 15;
while (tol < 50) do
begin
if (FindBitmapToleranceIn(ladder, lx, ly, msx1, msy1, msx2, msy2, tol)) then
begin
laddercolor := GetColor(lx, ly);
Result := laddercolor;
WriteLn('Ladder color is: ' + IntToStr(laddercolor) + ' | At cords: ' + IntToStr(lx) + ', ' + IntToStr(ly) + '');
Exit;
end else
tol := tol + 1;
end;
if (Result = 0) then
WriteLn('Can not find ladder!');
end;
Or you can just call it as a procedure to save the color as a variable.... Would this help?SCAR Code:if not (FindMSColor(x, y, laddercolor)) then laddercolor:= LadderFind;
yeah i think that will help. ill try it out and see if it works. now did you write that or is it in SRL cause ill credit you in script if you wrote it.
I wrote that just before I posted it.
EDIT: And I forgot to mention thats for wooden ladders, and if it doesnt find the ladder, raise the tolerance a little where it says "while do". If you needed it for a certain ladder, tell me where and ill fix the function for you.
Check out SRL/misc/FaladorColorFinder, or any other colorfinder. Code is almost identical to Junior's.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
Where exactly are you looking for this ladder? Ill make another/new bitmap of the ladder for better finding.
thats ok ill just make one. and in your function is the bitmap from the MM or the MS? and would i be able to use the falador ladder finder for just any wooden ladder? or is the bitmap of the minimap?
EDIT: ok nvm i ffigured out i cant use the fally ladderfinder for any ladder or it wouldnt be called the falador ladder finder lol.
I dont really understand what you saying. That will find a ladder on the MS, but I got that ladder bitmap from the ladder(s) that go into the coal guild at fally.
There are currently 1 users browsing this thread. (0 members and 1 guests)