@Daily Emulator

PennMUSH code that emulates the TinyMUX @daily attribute.

Author: Ashen-Shugar
Category: Globals
Compatibility: CobraMUSH, PennMUSH, TinyBit, TinyMUSH, TinyMUX.

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for @Daily Emulator

@create Daily Emulator <DE>
@lock Daily Emulator <DE>==me
@set Daily Emulator <DE> = TRUST
&DO_DAILY Daily Emulator <DE>=@wait/until [convtime([extract(time(),1,3)] 23:59:59 [extract(time(),5,1)])]={@dolist [lsearch(all,eval,[lit([hasattr(##,daily)])])]=@tr/quiet ##/daily;@wait 300=@tr/quiet me/do_daily}
@STARTUP Daily Emulator <DE>=@wait 300=@tr/quiet me/do_daily
@set Daily Emulator <DE>/STARTUP=no_command prefixmatch