I'm trying to make my script bank at Catherby, but it's hard. I've tried dtms, ddtms, bitmaps, radial walking, symbol finding, autocoloring and cannot find a way to get inside! Can somebody help me with this dilemma?
Printable View
I'm trying to make my script bank at Catherby, but it's hard. I've tried dtms, ddtms, bitmaps, radial walking, symbol finding, autocoloring and cannot find a way to get inside! Can somebody help me with this dilemma?
Any bankers?
yeah like 4 or 5.
Make a DTM of the bankers?
i already tried dtms.. didn't work :(
Use MouseBox as a last resort?
Should work, What function are you using to find the DTM With?
Try
DTMRotated.
DTMs ALWAYS work for this kind of stuff. Use the static colour of the NPC dots (195*something*), areasize 2 or 3, and remember to use DTMRotated and 300 tol @ mainpoint.
edit: N1ke/Erik gf.
like so?
http://i294.photobucket.com/albums/m...habbo/dtms.jpg
I put an area size of 3, tolerance of 300 on main point and used the 19.... color for the npc's just like Marcus said. ;)
It took some time :p.
Does it works all of the time?
Area size 3 for all of em, ;)
~Eerik~
edit: "Markus"*, not marcus. :D
Big note: You could pick all the point of the middle of 2 possible standing locations? If you get what I'm saying ;)
Nah. Took me a minute. It took me a while to see the posts. lol
EDIT: Hermen- Yeah, i get it. So that it doesn't go to the same spot all of the time . :D After i see that the dtm works, i'll do that. Thanks for pointing it out. Rep + oh and to Markus too.
@ Eerik: Yup, did that. =)
Note: All i need is to test it. Will post back in a few.
Are you trying to click the bank on the map? If so, whats wrong with
?SCAR Code:FindSymbol(x,y, 'bank');
And in case of a full bank:
SCAR Code:SymbolAccuracy := {symbol accuracy from 0 to 1};
Nope and Nope.
Dtm didn't work. Here's the proc:
SCAR Code:program New;
{.include srl/srl.scar}
var
BankDTM, x, y: integer;
DTMAngle : Extended;
begin
SetUpSrl;
ActivateClient;
BankDTM := DTMFromString('78DA858A490A00210C04BBF53BFEFF511E066' +
'65C60201043F4E2297DA92E28B604087C7903AA8A4280FB2BAB35' +
'13D7449293C7F998BF41F3998FA099E63D68FEB8592A2E1C90');
if (DTMRotated(BankDTM, x, y, MMx1, MMy1, MMx2, MMy1)) then Writeln(';)');
if not (DTMRotated(BankDTM, x, y, MMx1, MMy1, MMx2, MMy1)) then Writeln(';(');
end.
Didn't work.
Symbol clicking didn't work either. Here's the proc:
:( can someone help?SCAR Code:program New;
{.include srl/srl.scar}
var
x, y: integer;
begin
SetUpSrl;
ActivateClient;
SymbolAccuracy := 1;
if FindSymbol(x, y, 'bank') then MMouse(x, y, 5, 5);
if not FindSymbol(x, y, 'bank') then Writeln('noooo');
end.
Don't use symbolaccuracy 1.0, try 0.7-0.8. :)
I will create a DTM for you, wait..
~Eerik~
Of course 1 symbol accuracy isn't going to work! It means the image has to be perfect, try 0.5 or 0.4, might find it.
Symbol method doesn't work. And i can't seem to make a working dtm.
Okay, that should work. :)
~Eerik~SCAR Code:program New;
{.include srl/srl.scar}
function OpenBankI: Boolean;
var
x, y: integer;
begin
SymbolAccuracy := 1.0;
repeat
SymbolAccuracy := SymbolAccuracy - 0.1;
until (FindSymbol(x, y, 'bank') or (SymbolAccuracy = 0.1));
begin
Result := True;
MMouse(x, y, 5, 5);
end;
end;
function OpenBankJ: Boolean;
var
x, y, bank: Integer;
begin
Bank := DTMFromString('78DA6364676660C86740016FDEBC61D061646' +
'0002286FF40C0F8978981211D22C70255F3E70F1398CD08E53332' +
'02CD4922A08615A8268D801A2E22D4F001D5A4E257030076D614A' +
'0');
if DTMRotated(Bank, x, y, mmx1, mmy1, mmx2, mmy2) then
begin
Result := True;
MMouse(x, y, 5, 5);
end;
end;
begin
SetupSRL;
ActivateClient;
if OpenBankJ then
begin
Writeln('Found bank with DTM.');
end
else
begin
if OpenBankI then
begin
Writeln('Found bank with symbol.');
end
else
begin
Writeln('We didn''t find bank.');
end;
end;
end.
Oh em gee! Finally!! :D Thank you...Sooooo Much! You deserve a cookie! Rep+