Toribash
Prev Previous Post   Next Post Next
Original Post
[REL] 4.0+ Autorun Scripts
autorun.lua will automatically load up scripts at start time. It is capable of running multiple scripts at once, though they may interfere with each other in strange ways. The best way for developers to keep scripts compatible with on another is to make sure you use prefixed hook names, "scriptname_hook" and local variables.

To install this script, put it in your /data/scripts/ folder as usual and simply run it. You MUST keep the script named as "autorun.lua"

To add scripts to startup, once you've installed the script use the command:
/auto add script.lua

To remove them:
/auto remove script.lua

If you want to run another script while using autorun.lua use the /run command:
/run script.lua
This will run the script without adding it to run at startup.

To uninstall the script, delete "profile.tbs" from your Toribash folder.

Download Here
Last edited by Blam; Jul 29, 2013 at 04:02 PM.
:D