Paste #41525: Untitled Paste

Date: 2017/04/24 02:02:47 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


EloPvPLobby_Events:
    type: world
    debug: false
    events:
        on player enters spawn:
        - inventory clear
        - inventory set d:<player.inventory> o:in@EloPvPLobby_Player_Inventory

        on player right clicks with EloPvPLobby_Item1:
            - determine cancelled passively
            - inventory close d:<context.inventory>
            - execute as_player "warp 1vs1"

        on player right clicks with EloPvPLobby_Item2:
            - determine cancelled passively
            - inventory close d:<context.inventory>
            - execute as_player "warp 1vs1"

        on player right clicks with EloPvPLobby_Item3:
            - determine cancelled passively
            - inventory close d:<context.inventory>
            - execute as_player "warp 1vs1"

        on player right clicks with EloPvPLobby_Item4:
            - determine cancelled passively
            - inventory close d:<context.inventory>
            - execute as_player "warp 1vs1"

        on player right clicks with EloPvPLobby_Item5:
            - determine cancelled passively
            - inventory close d:<context.inventory>
            - execute as_player "warp 1vs1"

EloPvPLobby_Player_Inventory:
  type: inventory
  inventory: PLAYER
  definitions:
    Sel1: EloPvPLobby_Item1
    Sel2: EloPvPLobby_Item2
    Sel3: EloPvPLobby_Item3
    Sel4: EloPvPLobby_Item4
    Sel5: EloPvPLobby_Item5
  slots:
    - "[Sel1] [Sel2] [Sel3] [Sel4] [Sel5] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [] [] [] [] [] [] []"

EloPvPLobby_Item1:
    type: item
    material: WATCH[flags=HIDE_ATTRIBUTES]
    display name: <&3><&l>Ting
    lore:
    - <&8>(<&7>Klik her<&8>)

EloPvPLobby_Item2:
    type: item
    material: WATCH[flags=HIDE_ATTRIBUTES]
    display name: <&3><&l>Ting
    lore:
    - <&8>(<&7>Klik her<&8>)

EloPvPLobby_Item3:
    type: item
    material: WATCH[flags=HIDE_ATTRIBUTES]
    display name: <&3><&l>Ting
    lore:
    - <&8>(<&7>Klik her<&8>)

EloPvPLobby_Item4:
    type: item
    material: WATCH[flags=HIDE_ATTRIBUTES]
    display name: <&3><&l>Ting
    lore:
    - <&8>(<&7>Klik her<&8>)

EloPvPLobby_Item5:
    type: item
    material: WATCH[flags=HIDE_ATTRIBUTES]
    display name: <&3><&l>Ting
    lore:
    - <&8>(<&7>Klik her<&8>)