SRL Archive - OSR Help

Coin Finding


Bad Boy JH

2010-01-26 03:46:51

What is the best way to find coins in someone's bank, My script calls for 30gp to be withdrawn (in some cases, don't worry bout that) and with the pic for gold changing depending on the amount of gold, I need a good way to find it…

The only thing i can think of is findcolortolerance…and then MMouse, then check up text…if it fails remove all the points in a certain area…

other option is I do that once, and then store the information…if it is wrong, then we run that again….

need a better solution than that though… what do you guys think?

Edit, found Bitmap for coins in amount.scar…yay for windows search function being able to look inside files…WIN!

EDIT2: that was the SRL 4 manual, which was out of date, giving me a loadcoinbmp, but the new one is better….findcoins…returning co-ordinates…YES! delete the thread…sorry for the time waste…took me all of what 2 mins?

Edit3: DONT DELETE, How do i withdraw them now….almost had it sorted…

EDIT FOUR:
Right using a function….MSTPointToBankPoint
I can convert the co-ords to a bank point….
BUT the findcoins is broken…so still have issues…I am getting rather irritated….its a cycle…yay Fixed…damn nope…yay fixed…damn nope…yay fixed…damn nope…. ARGH!

Kyle Undefined

2010-01-26 09:27:26

Haha, you could make a beat with your cycle lol. I think a simple FindColorTol and an UpText check would be your best bet.

~Camo

Naike

2010-01-26 11:20:11

First call "FixBank", and make sure the user got it visible in first tab/top.
Then use FindColorsTol/SplitTPA/MiddleTPA to scroll until you find your gold stack.

In other words, read up TPA's..

Bad Boy JH

2010-01-26 19:18:41

should have posted here, I made a function, and posted in public SVN, cause i feel if its needed, it should be available…