SRL Archive - General Botting Help

Finding the width of a banker help


Obquility

2014-12-17 16:45:18

Hey all,
I'm using the mainscreen.findObject function to click on a banker because the defaults (BANK_BOOTH, NPC_GREEN) do not work at this location. I am wondering how to find the width and height of a banker. I was wondering if there was a tool for that, or a procedure that would help you find this out.
Help would be appreciated,
Josh

Camel

2014-12-17 16:51:59

Just eyeball it and guess how many pixels high and wide the banker is. I'd say 20 by 20 is a good starting point. Experiment around with different numbers until you get the results you want.

Kyle

2014-12-17 17:05:33

You can also just use the color picker and go from the left edge to the right edge of the banker, the difference will be the width..

acow

2014-12-17 17:06:54

gyazo will tell you the pixel height by width of w.e screenshot you're taking, I hope that helps :)

Obquility

2014-12-17 17:17:42

From: No Lifer
gyazo will tell you the pixel height by width of w.e screenshot you're taking, I hope that helps :)


Dis guy is a genius :P

acow

2014-12-17 17:25:03

From: jonesy259
Dis guy is a genius :P


lol np. gl on your scripting, if you end up releasing it publicly, lemme know to check it out =)

Obquility

2014-12-17 17:31:32

From: No Lifer
lol np. gl on your scripting, if you end up releasing it publicly, lemme know to check it out =)


Its working great

Release on srl junior soon

Brandon

2014-12-17 17:40:25

Find the banker using a TPA..

GetTPABounds will return a box containing that TPA.. Y2 - Y1 = Height. X2 - X1 = Width.