Ranking
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
i asked for one before 4-7 days
thank you so much good job
edit:I couldnt get to the site for somereason so i used 3g
to anyone who cant go to that eaither here's some extra links: (if blam doesnt mind)
2shared
thank you so mucH!
Attached Files
autorun.lua (2.1 KB, 83 views)
INB4 14 days ban
Changed the link to http, hopefully that works.

Update: If you want to load a script, it will unload autorun.lua so I've added a "run" command that will run scripts without unloading the other scripts.

/run ukebot.lua

Will load 'ukebot.lua' while keeping the scripts loaded at startup running too!
Last edited by Blam; Jul 29, 2013 at 04:00 PM.
:D
I wrote a script that is able to (auto-) run multiple scripts without conflict some time ago. You can find it in this thread.
Last edited by psycore; Aug 6, 2013 at 05:05 PM.
Signature temporarily out of order.
Originally Posted by Blam View Post
Changed the link to http, hopefully that works.

Update: If you want to load a script, it will unload autorun.lua so I've added a "run" command that will run scripts without unloading the other scripts.

/run ukebot.lua

Will load 'ukebot.lua' while keeping the scripts loaded at startup running too!

Can you made /stop ukebot.lua ?
This is just the script I was looking for! But there is one big issue, it does not auto load this script. That means that I need to run this script then it will run the other scripts I set it to run. It kind of removes the purpose of this script. Is there a way to fix this?

EDIT: Oh sorry, I found a solution.
Last edited by AwesTube; Feb 14, 2016 at 07:34 PM.