SRL Archive - OSR Help

Finding Furnace


marco94

2013-02-01 04:36:04

Hey i'm making my first script which is a crafting script and got everything working well except the furnace finding part. The script runs from Edgeville bank, to the furnace but it cant not find the furnace, or it finds it and miss clicks and goes behind the furnace. I've tried dtm with up text and bitmaps. The Dtm is for the red part of the furnace with colour tolerance.

procedure FindingFurnace;
Begin
If finddtm (furnacedtm, x, y, msx1, msy1, msx2, msy2 ) Then
If (IsUpTextMultiCustom(['rnace', 'melt', 'urnace', 'nace', 'elt'])) Then
Mouse(x, y, 0, 0, Mouse_left);
wait (500+(250));
End;

YoHoJo

2013-02-01 04:43:47

DTMs are not very reliable at all for the main screen, they are best for static and 'flat' items like in the bank or inventory.

FindObject would be the easiest way to do it and using ACA (auto color aid) would help a lot with that too.

This video I made should help you out:
http://youtu.be/98wVrr6GwyU

marco94

2013-02-01 06:35:10

Thanks Yohojo for quick response, it works perfectly now. ++rep

YoHoJo

2013-02-01 06:53:21

Oh wow very nice/quick fix glad I could help you out, and great effort/initiative!
Mind posting the code or just saying what you ended up doing?