Jump to content




WClear - Clear the Weather Automatically

command

4 replies to this topic

#1 Lego Stax

  • Members
  • 136 posts
  • LocationThe dark depths of the web

Posted 19 September 2015 - 12:11 AM

I was surprised that no one had already made this. So I made it myself since it's so simple.

The concept is pretty simple. Run the program and it clears the weather for you every 999,999 ticks by default (the maximum you can put in the /weather clear command)

Download here or run:
pastebin get 4F9eqMv6 wclear
Or
packman install wclear

Furthermore, you can set a custom wait time and run other programs simultaneously. By default, it runs the shell. Here's how to use it:
wclear [ticks_to_wait] [program_to_run]

Feedback is always appreciated.

Edited by Lego Stax, 11 August 2016 - 08:50 PM.


#2 Thefdjurt

  • Members
  • 45 posts
  • LocationMy house

Posted 19 September 2015 - 12:31 AM

It should be
...
  commands.exec("/weather clear "..ticksToWait)
...


#3 Lego Stax

  • Members
  • 136 posts
  • LocationThe dark depths of the web

Posted 19 September 2015 - 01:02 AM

Why would you want to clear weather for a shorter amount of time? I guess I could change it though.

Edit: Spelling fail.

Edited by Lego Stax, 20 September 2015 - 01:45 PM.


#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 19 September 2015 - 02:48 AM

Bear in mind all Command Computers run multishell - launching the script using the bg command would have much the same effect as your use of the parallel API.

#5 Lego Stax

  • Members
  • 136 posts
  • LocationThe dark depths of the web

Posted 20 September 2015 - 01:44 PM

 Bomb Bloke, on 19 September 2015 - 02:48 AM, said:

Bear in mind all Command Computers run multishell - launching the script using the bg command would have much the same effect as your use of the parallel API.
I forgot about that. However, the user does have to remember to type 'bg'. This way, they don't.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users