Actually I was trying it for a kebab and it wouldn't find it until yohojo told me to add an area of 2.
Actually I was trying it for a kebab and it wouldn't find it until yohojo told me to add an area of 2.
yea i added an are of 2 and it works well now
another DTM successfully made!
tarajunky, thanks very much for sorting that out! I could never figure that one out, but now i finally know
Anyway, why would someone ever use a cross or x as the area shape?
The only reason to use a cross is if you know the color is going to be in a vertical or horizontal line around that area. Let's say that there will be a wall on the minimap within 20 pixels of a symbol you're looking for. Well, the symbol will move around, so the wall might be 5 pixels away, or it might be 20. If you put a size 20 square, SCAR will have to search 20x20 = 400 pixels every time it tests a point for your DTM. If you use a 20 pixel cross it would only have to search 80 pixels instead of 400.
That said, I don't think I've ever used a cross or an x. Even if it worked, I always ended up changing the DTM around until it worked better with just squares.
oh, ok, thanks
yohojo this is from ur wc scrip wat does it mean man
line 166: [Error] (3520:4) unkown identifier 'find0bjex' in scrip..
well its a good tut. but you left out 1 thing for noobs like me :P when i press print screen, where does it save picture too? and for pressing it, do you have to hold print screen or just tap it and let go? its a good tut, if i could ever find the picture i think i took :P
Saves to memory. Just paste and it will be there. Tap.
how do i open memory? lol. sorry I'm new to the whole print screen thing.
Pressing printscreen is like highlighting a picture and pressing ctrl+c. It's saved into the memory, so all you have to do is paste (crtl+v) like usual
Oh OK awesome! thanks ALOT Boreas for helping me with that, and thanks for making tut yohojo for making this uber tut this really helped me and now i added DTM's to my dropping procedure for my power miner
You people here at villu seem to make very good TUTs.
Every TUT you look at here you know right at the moment whats going on.
GGGOOOOOOOOOOOOOOOOOOOOODDD!!!!
Cool! Awesome tutorial. Helped me a load.
But here's the question. What can I use these for? I could just use
SCAR Code:DropTo(2,28)
to drop things, so I don't necessarily need it for that.
To autobuy something possibly?
What else could you use it for?
Well once you get past writing powerminer/choppers you will want to drop or use certain items, and you won't know what spot there are in, so you will use DTMs (mostly of the black (65536) outline).
Yes you can use for buying in the same way.
For withdrawing from banks you can use them in the same way (or you can use BlackLists which work similarly, link in sig).
You can also use them for finding things on the minimap (theres a knack to making good ones) and sometimes on the mainscreen (even bigger knack).
Great Script! Using DTM's now in a "smelter" that will probably die eventually because I will get bored but... still, it's a start :-p
Nice tut. Helped me out a ton on making DTM's! Rather easy
DropTo(2,28) drops all items from slot 2 to 28.
This would include
money
gems
random event items
extra pics
extra axes.
Using dtms would only drop specific items instead of everything.
And to everyone else.
Im glad you like this tutorial im happy it's so helpful to you all =).
honestly, your teaching skills are impressive. great tut. say, in an autofighter, how would you use dtms? also, a) do they take longer to find than colors (compare finddtm to findcolor), and b) if you can't use them on the mainscreen, that means you can only find them for inventory items and randoms i guess. this is probably very useful for randoms, but for inventory items, you will rarely need this because color-finding can do the same, that is unless the answer to a) = false ^^ this is not criticism on your tut, which is amazing, just on the use of dtms to regular scripters. thanks!
EDIT: can this be used for things like coins and arrows, that as they stack, their picture grows? and i also just tested it. your tut is so clear, got it on first try! and i'll remember not to do top-left corner and set to 255 to make it universal. such a great tut omg!
EDIT AGAIN: can you help me with dtms to make this function better...
i'm not entirely sure where the dtms are and how to use them when using a popup, but this function doesnt always work for me. pls help.SCAR Code:{*******************************************************************************
function PopUp(Option: String): Boolean;
By: RsN
Description: Finds Popup menu, then clicks Option.
*******************************************************************************}
function PopUp(Option: string): Boolean;
var
Top, Bottom: TPoint;
dtmTop, dtmBottom, x, y: Integer;
begin
dtmTop := DTMFromString('78DA63146464606801622C0026CA28006435A' +
'3AA890D7147552345841A90393D04D4880259DD04D4880359ED04' +
'D4280059AD04FC2504644DC4AF06000DC909E0');
dtmBottom := DTMFromString('78DA635CCCC8C070198891406C883B9886893' +
'22E02B22EA1AA8101B89A8540D64522CCB948843984EC02B9F910' +
'01BBA610E1AF6944D80572F311026AE6005967F0DB05007BD4134' +
'5');
if (FindDTM(dtmTop, Top.x, Top.y, 10, 10, 764, 502) and FindDTM(dtmBottom,
Bottom.x, Bottom.y, Top.x, Top.y, 764, 502)) then
if (FindText(x, y, Option, upchars, 0, 0, Bottom.x, Bottom.y)) then
begin
Result := True;
Mouse(x + Length(Option) * 3, y + 2, 4, 3, True);
Wait(150 + Random(200));
end else
if (FindText(x, y, 'Cancel', upchars, Top.x, Top.y, Bottom.x, Bottom.y))
then
Mouse(x + 3, y + 2, 4, 3, True);
FreeDTM(dtmTop);
FreeDTM(dtmBottom);
end;
The pop up function works fine.
What do you need help with,
All you need to do is something like:
If FindDTM(Logs) Then
Mouse(x,y,3,3,false)
PopUp('Drop')
And im glad you liked my tut =).
Happy you found it easy to understand.
That was the point, very clear, explain everything, even where the Print Screen button is
ok, got a real question about dtm for u.
i made a rune arrow dtm:
i set the tolerance to 5, then when i tried it on the mithril arrow, it also worked, which isn't really what i want. how can i make it specific to the arrow i want?SCAR Code:DTM := DTMFromString('78DA63DCCEC0C0308B910119B86BB032B0026' + // rune arrow
'990E87F2060DC07644C445503918591407A3790E827A0662B9058' +
'4240CD0620B118BF1A004D7F0B1F');
There are currently 1 users browsing this thread. (0 members and 1 guests)