diff --git a/src/main/resources/util.dscript b/src/main/resources/util.dscript index b0e4721b90..4266d18260 100644 --- a/src/main/resources/util.dscript +++ b/src/main/resources/util.dscript @@ -1,78 +1,3 @@ -# /dTime Command - - -_util_dtime_command: - type: command - name: dtime - debug: false - description: (Deprecated) Changes the server time. - usage: /dtime <<>time<>> - allowed help: - - determine - script: - - if ! queue clear - - narrate "WARNING- This command is deprecated!" - - flag 'ddtc_time:' - - if > 24 - queue clear - else narrate 'Changing time to :00.' - - if == 24 - execute as_op 'time set 18000' - - flag ddtc_time:-:6 - - if >= 0 - execute as_op 'time set 000' - - flag ddtc_time:+:24 - - if > 18 - execute as_op 'time set 000' - - flag ddtc_time:! - - determine cancelled - - -# Generic Looper (GL) - -loop through: - type: task - speed: 0 - debug: false - context: task|flag|type - - script: - - announce to_console "<&3>Denizen<&co><&c> Using outdated 'loop through' task script" - - ^if %3% == global || == global ^define 3 server - else ^define 3 - - ^define queue - - ^if %1% != null - ^run '_depend generic loop process' id:%queue% "def:%1%|%2%|%3%|%queue%" instantly - else ^run '_depend generic loop process' - "def:||%3%|%queue%" instantly - -_util_gl: - type: task - speed: 0 - debug: false - context: task|flag|type - - script: - - if %1% != null - run '_depend generic loop process' id: "def:%1%|%2%|%3%|" instantly - else run '_depend generic loop process' - "def:|||" instantly - -_depend generic loop process: - type: task - debug: false - definitions: task|flag|type|id - - script: - - ^if "" == null - ^flag global "Iterator %id%:|:<%type%.flag[%flag%].aslist>" - - ^runtask "%task%" "context:" queue instantly - - ^flag global "Iterator %id%:<-:" - - ^if "" > 0 - run instantly '_depend Generic Loop Process' id:%id% - "def:%task%|%flag%|%type%|%id%" - else flag global "Iterator %id%:!" - # Load Tester @@ -83,11 +8,11 @@ Load Tester: description: Tests server load. usage: /testload <<>power<>> allowed help: - - determine + - determine > script: # ops only! - - if ! queue clear + - if !> queue clear - if == 1 define n