PDA

View Full Version : Finding DTM perimeters



Neva Banned
03-15-2014, 11:29 PM
How do I find the main screen and bank screen perimeters for finding a dtm?
Would it be in an include or what?

Frement
03-15-2014, 11:36 PM
Mainscreen: MSX1, MSY1, MSX2, MSY2 or MSBox
(You can use these same variables for bank items)

EDIT: For the rest of these types of variables, check Globals.simba.

Sk1nyNerd
03-15-2014, 11:40 PM
for mainscreen and bankscreen u can do what was said above. u can also pick you own parameters by dragging the green crosshairs over to your client and then using the eye dropper tool to the left of the green cross hairs to pick the top left of your parameter and again to pick your bottom right of the parameter

Clarity
03-15-2014, 11:48 PM
finding a DTM on the main screen:

findDTM(someDTM, x, y, mainscreen.getBounds())


there are parameters/bounds functions for other interfaces -> minimap.getBounds(), etc.

If you want to make a customized mainscreen search then you could do something like:

searchBox := IntToBox(mainscreen.x1 + 10, mainscreen.y1 + 10, mainscreen.x2 - 10, mainscreen.y2 - 10);
if findDTM(someDTM, x, y, searchBox) then {do something}

Neva Banned
03-15-2014, 11:52 PM
I <3 SRL, I just wish I was more into scripting(as i get bored very easily). You all are extremely helpful and answer questions quickly.
Thanks