Okay, well I'm posting this to ask, is there away to load two client scripts at once? Now, you're wondering why two? Well, one is TUO's basic client script, and then I have Bot script, and I'd like to load both on account of logging into a server, so is there a possibility?
No, that's not possible. You'll have to merge the two scripts together yourself (or ask someone else to do that for you).
There is my (fairly old) ScriptLoader, but it tends to break and doesn't always really work. Maybe I'll give it another shot and try to improve it, as it's certainly possible. Or, of course, scripters could use a single scriptloader API, but that's probably not going to happen.
If you need an improved scriptloader I could write one for you (if that one has issues), but that assumes the script doesn't use global variables. If a script uses global variables, you can only use one at a time if the variables conflict. EDIT: I see it isn't really a "scriptloader" more like a script plugin manager. Here's a script loader thingy: Code (javascript): (function (scripts) { function bind (t, f) { return function () { f.call(t, arguments); } } function multifuse (functions) { return function () { for (var x in functions) functions[x].call(new Object, arguments) }; } } var outputs = new Object; for (var x in scripts) { for (var x2 in scripts[x]) { if (typeof scripts[x][x2] === "function") { (outputs[x2] || outputs[x2] = []).push(bind(scripts[x], scripts[x][x2])); } } } var script_out = new Object; for (var x in outputs) { script_out[x] = multifuse(outputs[x]); } return script_out; })([sys.exec("script1.js"), sys.exec("script2.js")]); Untested, just wrote :)