Amberleaf Posted November 16, 2011 Share Posted November 16, 2011 (edited) AmberIceGiants Range/Mage script What's the best way of finding objects that can move and then making the mouse click accurately? I'm trying to make a range/mage script that has a safe spot check. I've been fiddling with it for ages but can't seem to get anything that can follow the targets & click at the right time, aswel as checking if it needs to run to safe spot. Any advice? ---MERGED--- How would i make it detect the word 'Attack' at the top left of that picture and left click? Edited November 16, 2011 by Freddy Quote Link to comment Share on other sites More sharing options...
FHannes Posted November 16, 2011 Share Posted November 16, 2011 I think it's probably best to use OSI for this. SCAR comes with only 3 remaining RS specific functions which all target the uptext ocr. OSI wraps these nicely for you so you can check for uptext in a single call without any specific setup. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted November 16, 2011 Share Posted November 16, 2011 Check out IsUpText (from OSI includes) for finding the text. As for the detecting when to run/hide: OSI doesn't have a routine for getting the minimap dots (yet?) so I would play around with FindMMColorTolerance and calculating the Distance to the minimap center (you the player are always center of minimap unless on world edge). Quote Link to comment Share on other sites More sharing options...