SRL Archive - OSR Help

DTM or picture to string?


BlueWorld

2010-05-02 18:31:28

which is better and really whats the difference?

i luffs yeww

2010-05-02 18:41:17

It depends on a few things. How dynamic is it? How big or small is it? Where are you searching for it? DTMs look mostly at the outline of an object, while bitmaps look for a small (or large, yet small is more accurate and faster) snippet of something. Apparently bitmaps are faster, but it's no noticeable difference. All in all, it comes down to personal preference (except for some things, where DTMs would be better, but for the most part, it's up to the scripter).

Frement

2010-05-02 18:41:59

From: BlueWorld
which is better and really whats the difference?


Really depends on the purpose that its for.

DTM's are usually good for item finding, thought BMP's do the same.

I prefer DTM's over BMP's.

YoHoJo

2010-05-02 18:50:05

Show us a picture of what you are trying to find, and we'll tell you.

BlueWorld

2010-05-02 18:53:43

not what im trying to find cause iv'e made the dtms of what i want =] but i need to figure out how to withdraw x amount, and you know when i lets say x=100 then i have the option to take of 100 at a time right? how would i click withdraw 100 rather then keep using with draw x amount?

i luffs yeww

2010-05-02 18:54:59


if(ChooseOption('X'))then
TypeSend('100')
else
ChooseOption('100');

Frement

2010-05-02 18:58:03

From: i luffs yeww

if(ChooseOption('X'))then
TypeSend('100')
else
ChooseOption('100');


Maybe this instead?
if (OptionsExist(['100'], False)) then begin
ChooseOption('100');
end else begin
ChooseOption('x');
TypeSend('100');
end;

BlueWorld

2010-05-02 18:58:33

so that would choose x and then take 100 IF it didn't have the option to take 100 already?
frement's one makes sense i think its taht one

i luffs yeww

2010-05-02 19:00:18

What I posted would still work, I think. If it doesn't ChooseOption('100'), it will ChooseOption('X') and then TypeSend('100'), so then next time ChooseOption('100') will work. I'll try it.


{.include SRL/SRL.scar}

begin
SetupSRL;
repeat
MouseBox(440, 97, 458, 121, 2);
Wait(Random(500));
if(ChooseOption('100'))then
Break
else begin
MouseBox(440, 97, 458, 121, 2);
ChooseOption('X');
Wait(500 + Random(500));
TypeSend('100');
end;
MMouse(MMCX, MMCY, 100, 100);
until(False);
end.

Fixed, sorry.

Or just use Frement's. What I posted just now was just an example that I think would work.

Neg_

2010-05-03 05:03:22

DTM all way, smaller, faster, more dynamic.

cycrosism

2010-05-03 09:07:50

bitmaps are better then dtms. They are much faster. If you need help with them check out my tutorial in my signiture. Dont worry about people saying they are more memory intensive i am sure you have 30kb of ram to spare.

Frement

2010-05-03 09:09:46

From: cycrosism
bitmaps are better then dtms. They are much faster. If you need help with them check out my tutorial in my signiture. Dont worry about people saying they are more memory intensive i am sure you have 30kb of ram to spare.


Depends on what you are trying to search for…if you search for a road in minimap, a bitmap is the worst way to do it, am i right? If you search for a item in inv/bank then bitmap would do fine, thought i still prefer using dtm's for those too. As for the speed, you wont even notice it. (or atleast on my comp).

cycrosism

2010-05-03 09:11:12

if you search for a road in minimap you should be using autocolours not bitmaps.

Frement

2010-05-03 09:19:15

From: cycrosism
if you search for a road in minimap you should be using autocolours not bitmaps.


I use DTM's as failsafes…

Coh3n

2010-05-03 15:57:52

I've used both DTMs and Bitmaps a lot, and I've had in my experience, DTMs are more reliable. Just saying. Oh and DTMs are a good failsafe for walking (in certain situations). :)