Paste #121997: Unnamed Denizen Script Paste

Date: 2024/04/15 06:50:54 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


menu_aventure_event:
    type: world
    debug: false
    events:
        on player opens aventure_menu1:
        - if !<player.has_flag[dj_2_unlock]>:
            - inventory set o:dj_warden_lock slot:<inventory[aventure_menu1].find_all_items[dj_warden]>
            - inventory set o:lock slot:23
        on player clicks item in aventure_menu1:
            - determine passively cancelled
            - announce <context.slot>
            - if !<player.has_flag[dj_2_unlock]> && <context.slot> in <inventory[aventure_menu1].find_all_items[dj_warden]>:
                - if <player.has_flag[homard_boss_killed]>:
                    - if <player.flag[pirate_coin_count]> >= 100:
                        - if <player.in_group[canonnier]>:
                            - flag <player> pirate_coin_count:-:100
                            - flag <player> dj_2_unlock
                            - inventory close
                            - playsound sound:entity_player_levelup <player>
                            - narrate "<&f>Vous avez débloquer l'accès <&5><&l>Monde Corrompu "
                            - inventory opend d:aventure_menu

aventure_menu1:
    type: inventory
    inventory: chest
    title: <&f><placeholder[img_offset_-48]><placeholder[img_menu_aventure1]><placeholder[img_menu_aventure2]> <placeholder[img_offset_-259]><placeholder[img_menu_aventure3]><placeholder[img_menu_aventure4]>
    definitions:
        S: next
        L: lock
        P: dj_pirate
        W: dj_warden
        N: dj_nether
    slots:
    - [P] [P] [P] [W] [W] [W] [N] [N] [N]
    - [P] [P] [P] [W] [W] [W] [N] [L] [N]
    - [P] [P] [P] [W] [W] [W] [N] [N] [N]
    - [P] [P] [P] [W] [W] [W] [N] [N] [N]
    - [P] [P] [P] [W] [W] [W] [N] [N] [N]
    - [P] [P] [P] [W] [W] [W] [N] [N] [S]