diff --git a/src/main/resources/genies.dscript b/src/main/resources/genies.dscript deleted file mode 100644 index 376677e7b0..0000000000 --- a/src/main/resources/genies.dscript +++ /dev/null @@ -1,78 +0,0 @@ -"Diagnostics Genie": - type: assignment - - interact scripts: - - 10 _test_package diagnostics executer - - actions: - on assignment: - - trigger name:chat toggle:true - - trigger name:click toggle:true - -_test_package diagnostics executer: - type: interact - requirements: - mode: all - list: [op] - - steps: - 'execute*': - - chat trigger: - 'get test script': - trigger: /REGEX:.+/ - script: - - chat "Attempting to '' in 2 seconds..." - - wait 2 - - runtask '_test_package ' - - -_test_package test announce: - type: task - script: - - announce 'This is a test.' - - announce '<&sq>This<&sq>, is only a test.' - - announce to_ops 'You are an op, so you probably already know this is a test!' - - announce 'Currently online ops<&co> ' - - - - -# Whenever you want to get all the values of a flag and loop through them -# in a task of your choice, you can easily do it using the Generic Loop -# task included in Denizen. -# -# Simply use the following command: -# - runtask "script:Generic Loop" "context:Your Task|Your Flag's name|Your Flag's type" -# -# And add speed:0 (or any speed you like) and context:value to your task, -# right under type:task. -# -# Then you're all set. The Generic Loop will run your task once for every -# value inside the flag. Use the tag in your task to get -# the current value sent to the task. -# -# To see a quick example of how it works, give the "_test_package test generic looper" -# assignment to an NPC and click on it. It will announce all the values -# from the player flag Cookies. - -_test_package test generic looper: - type: task - script: - - flag player "Cookies:->:crunchy" - - flag player "Cookies:->:munchy" - - flag player "Cookies:->:yummy" - - runtask '_util_gl' "context:_depend Generic Loop Example Task|Cookies|player" - - flag player "Cookies:!" - -_depend Generic Loop Example Task: - type: task - speed: 0 - context: value - - script: - - announce "Got flag value of " - - - - diff --git a/src/main/resources/util.dscript b/src/main/resources/util.dscript index a6e28513f6..5d389e579e 100644 --- a/src/main/resources/util.dscript +++ b/src/main/resources/util.dscript @@ -1,35 +1,41 @@ # /dTime Command + _util_dtime_command: - type: world - - events: - on dtime command: - - if ! queue clear - - 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 + type: command + name: dtime + description: (Deprecated) Changes the server time. + usage: /dtime