Closed Pychnight closed 7 months ago
I just pushed some commits that improve this, in particular being able to schedule scripts to run at certain times or intervals. See the Terraria-Boo repo.
i still think it's incredibly weird the way your setting up this general scripting plugins.
some of it makes some sense.. however it's almost nothing like the https://tshock.co/xf/index.php?resources/jist-javascript-interpreted-scripting-for-terraria.12/ system for seconomy.
it with the way it's set up you have to use the specific serverjoin, serverleave, files if it was more like custom quests or custom npcs, they would be internal event functions. so you can design any script for that event
I still see this as fairly limited, the new scheduler helps with automation a bit. but the downside of this sense the scripts are not always running or run for a short period of time, it will be difficult to do scripts like custom player commands or raid boss events where the script has to run at least into the monster is removed or dead.
@UndeadTwo Could you possibly Look into this?
Currently this plugin is fairly useless and needs to be improved
[ ] Ensure scripts are automatically loaded on server start and reloaded with /reload
[ ] Include examples of basic scripting