From: Hexless
I need some help with adding paint to my script, i'd like the paint to cover the chatbox and username but not the options at the bottom and i'd also like it to display how many times its done the action and the time running and xp/xp per hour
Thanks
You should checkout the SmartGraphics include for functions you can use. If you want to use these functions in your script you have to call
{$i SRL/SRL/Misc/SmartGraphics.simba}
at the top of your script.
The easiest one is probably SMART_DrawText:
procedure SMART_DrawText(x, y: Integer; font, Text: string; Color: TColor);
The x and y are the coordinates where the text is displayed on the runescape screen, the font is one of the fonts out of C:\Simba\Fonts, the text is what you want to write, and the color is the color is the text.
For example:
SMART_DrawText(15, 300, LoginChars, 'Time Running: ' + (TimeRunning), 6298638);
Will draw 'Time running: 1 Hour 30 Mintues' in a blue color in the chat box.