Paste #44933: Untitled Paste

Date: 2017/10/09 18:21:34 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


list_notable_cuboids:
    type: command
    name: clist
    debug: false
    description: <red>SCRIPTING<&co><&r> Lists notable cuboids.
    script:
        - narrate "<gold>Amount of cuboids: <yellow><server.list_notables[cuboids].size>" 
        - narrate "<gold>List:" 
        - define page <context.args.get[1]||1> 
        - define first <def[page].mul_int[10].add_int[1].sub_int[10]> 
        - define last <def[page].mul_int[10]> 
        - foreach <server.list_notables[cuboids].alphanumeric.get[%first%].to[%last%]> { 
            - narrate "<yellow>- <def[value].split[cu@].get[2]>" 
        }
        - narrate "<gold>Page <yellow><context.args.get[1]||1><gold> of <yellow><server.list_notables[cuboids].size.div_int[10].add_int[1]> <gold>/clist [<yellow>number<gold>]"