View difference between Paste ID: Q0zhbVWF and qr5NtiML
SHOW: | | - or go back to the newest paste.
1
command /start:
2
    trigger:
3
        set {to} to "set"
4
        set {_slot} to 11
5
        add "&eリゾート" to {vote::*}
6
        add "&7遺跡" to {vote::*}
7
        add "&5&lのろい&7&lの&4&lやかた" to {vote::*}
8
        add "&6皮猫区 來芽瑠公園" to {vote::*}
9
        add "&c&lHell" to {vote::*}
10
        add "&b&lIcicle Ruins" to {vote::*}
11
        add "&6家?" to {vote::*}
12
        add "&c団地" to {vote::*}
13
        add "&d懐かしい家の匂い" to {vote::*}
14
        add "&5野獣邸" to {vote::*}
15
        loop 3 times:
16
            set {_v} to random object of {vote::*}
17
            add {_v} to {vote.list::*}
18
            remove {_v} from {vote::*}
19
        loop all players:
20
            if {join.%loop-player%} is not set:
21
                close loop-player's inventory
22
        wait 5 seconds
23
        delete {to}
24
        loop all players:
25
            close loop-player's inventory
26
        delete {vote.list::*}
27
        delete {vote::*}
28
on inventory click:
29
    inventory name of player's current inventory is "&aSelect a Map"
30
    if {to} is set:
31
        if clicked slot is between 9 and 17:
32
            cancel event
33
on inventory close:
34
    wait a tick
35
    if {to} is set:
36
        set {_slot} to 11
37
        open chest with 3 rows named "&aSelect a Map" to player
38
        wait a tick
39-
        set slot 9 of player's current inventory to black stained glass pane
39+
		loop 9 times:
40-
        set slot 10 of player's current inventory to black stained glass pane
40+
      	  set slot loop-number + 8 of player's current inventory to black stained glass pane
41-
        set slot 12 of player's current inventory to black stained glass pane
41+
42-
        set slot 14 of player's current inventory to black stained glass pane
42+
43-
        set slot 16 of player's current inventory to black stained glass pane
43+