Paste #129503: Unnamed Denizen Script Paste

Date: 2024/12/30 08:43:18 UTC-08: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
16
17
18


#========================
##### Commands
#========================
testcmd:
    type: command
    name: test
    description: Test
    usage: /test
    script:
        - if <server.has_flag[savedaccnumber]>:
          - narrate "<red>NO! IT ALREADY EXISTS >:C"
        - else:
          - define char1 <util.random.int[1000].to[9999]>
          - define char2 <util.random.int[1000].to[9999]>
          - define char3 <util.random.int[1000].to[9999]>
          - define char4 <util.random.int[1000].to[9999]>
          - flag server savedaccnumber:<[char1]>-<[char2]>-<[char3]>-<[char4]>
          - narrate "<gray><[char1]>-<[char2]>-<[char3]>-<[char4]>"