Paste #129047: cursed

Date: 2024/12/14 13:36:37 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


        - repeat 3:
          - while true:
            - define random_slot <util.random.int[10].to[36]>
            - if <[loop_index]> >= 15:
              - define item<[value]>:null
              - while stop
            - if <player.inventory.slot[<[random_slot]>].material.name> != air && !<player.inventory.slot[<[random_slot]>].has_flag[soulbound]>:
              - if <[random_slot]> != <[item1]> || <[random_slot]> != <[item2]> || <[random_slot]> != <[item3]>:
                - define item<[value]>:<[random_slot]>
                - narrate <[loop_index]>
                - while stop
        - foreach <list[<[item1]>|<[item2]>|<[item3]>]> as:slot:
          - if <[slot]> == null:
            - foreach next
          - drop item:<player.inventory.slot[<[slot]>]>
          - take slot:<[slot]> quantity:<player.inventory.slot[<[slot]>].quantity>