Aeonx Posted February 19, 2016 Posted February 19, 2016 Hello, I wonder whether there's a way, to run a script via API like RunScript("scriptName") from SDN? Thanks
GoldenGates Posted February 19, 2016 Posted February 19, 2016 Hello, I wonder whether there's a way, to run a script via API like RunScript("scriptName") from SDN? Thanks You can only script stuff using the API in a script itself, so no you can't.
Aeonx Posted February 19, 2016 Author Posted February 19, 2016 (edited) You can only script stuff using the API in a script itself, so no you can't. Thanks, would it be against the rules coding up a custom script starter then? (As a script, API) Edited February 19, 2016 by Aeonx
FrostBug Posted February 19, 2016 Posted February 19, 2016 Thanks, would it be against the rules coding up a custom script starter then? (As a script, API) How would that work? You'd still have to have access to download the script from SDN The script executor is easy to use once you have the script in memory (or with local scripts) getBot().getScriptExecutor().prepare(some_script); getBot().getScriptExecutor().start(some_script);
Aeonx Posted February 20, 2016 Author Posted February 20, 2016 How would that work? You'd still have to have access to download the script from SDN The script executor is easy to use once you have the script in memory (or with local scripts) getBot().getScriptExecutor().prepare(some_script); getBot().getScriptExecutor().start(some_script); Oh that's actually exactly what I was looking for, thanks! =)