BryceTheCoder Posted February 27, 2013 Share Posted February 27, 2013 Hello there, after a big big break from scar scripting. I am a bit rusty haha:P So was wondering, how do you draw a simple box on the screen again? Something like draw tpa or around there? ( i totally forgot.. ) Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 27, 2013 Share Posted February 27, 2013 Where are you trying to draw to? The SMART debug screen? The debug window? On a form? I'm guessing SMART? Just use SmartDebugTB for a box or SmartDebugTPA for a TPA. Quote Link to comment Share on other sites More sharing options...
LordJashin Posted February 27, 2013 Share Posted February 27, 2013 EDIT: Shucks Bixby is godspeed Draw a box on SMART, or on a FORM? For SMART here's an example file of SMARTDebugATPA in use: https://github.com/OSI1/OSI1/blob/master/RS2/Testing/DrawRS2Bounds.scar There's the functions here too: [scar] {=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Official SCAR Include SMART Debugging Routines -------------------------------------------------------------------------------- * procedure SmartDebugText(Text: string; Chars, Color, X, Y: Integer); * procedure SmartDebugATPABoundsEx(ATPA: T2DPointArray; ShowTPAs, ShowATPABorder, ShowTPABorders, ShowTPAIndexes: Boolean); * procedure SmartDebugATPABounds(ATPA: T2DPointArray); * procedure SmartDebugATPA(ATPA: T2DPointArray); * procedure SmartDebugTPA(TPA: TPointArray); * procedure SmartDebugTBA(TBA: TBoxArray); * procedure SmartDebugTB(TB: TBox); =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=} [/scar] Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted February 27, 2013 Author Share Posted February 27, 2013 OH SHIEZA! I forgot... I would have to use SMART for the drawing of the debug.. aww man:( So I cannot draw anything box of some sort without using SMART huh? Quote Link to comment Share on other sites More sharing options...
LordJashin Posted February 27, 2013 Share Posted February 27, 2013 OH SHIEZA! I forgot... I would have to use SMART for the drawing of the debug.. aww man:( So I cannot draw anything box of some sort without using SMART huh? Not unless your talented like me and Freddy when it comes to forms. hint hint: when you drag the client selector, that's a form O_O, you know the red box stuff I wanted to implement something to do this, but never got around to it. It wouldn't be too hard to do either imo. Might get in the way though? Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted February 27, 2013 Author Share Posted February 27, 2013 Not unless your talented like me and Freddy when it comes to forms. hint hint: when you drag the client selector, that's a form O_O, you know the red box stuff I wanted to implement something to do this, but never got around to it. It wouldn't be too hard to do either imo. Might get in the way though? Very cool idea actually.. Maybe set the coordinates of the form somewhere and make its Opacity so its almost invisible? Is this a good way of doing it? - - - Updated - - - Not unless your talented like me and Freddy when it comes to forms. hint hint: when you drag the client selector, that's a form O_O, you know the red box stuff I wanted to implement something to do this, but never got around to it. It wouldn't be too hard to do either imo. Might get in the way though? Very cool idea actually.. Maybe set the coordinates of the form somewhere and make its Opacity so its almost invisible? Is this a good way of doing it? Quote Link to comment Share on other sites More sharing options...
LordJashin Posted February 27, 2013 Share Posted February 27, 2013 It gets complicated. Lols, also your forgetting SCAR can't "multithread". So it can't have a form up, AND bot for you at the same time (I think anyway). So it would have to be from a DLL or something. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted February 27, 2013 Author Share Posted February 27, 2013 It gets complicated. Lols, also your forgetting SCAR can't "multithread". So it can't have a form up, AND bot for you at the same time (I think anyway). So it would have to be from a DLL or something. Damn thats right.. Stupid java got me all thinking their way haha, I need to get back into creating RS bots in Scar:) Quote Link to comment Share on other sites More sharing options...