Paste #77011: what about this doe?

Date: 2020/10/30 11:55:57 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


obchodnik:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
        - obchodnik_script


obchodnik_script:
    type: interact
    steps:
        1:
            click trigger:
            script:
            - narrate "<&a>[D] <&6>Roman<&f> <&gt> Ahoj! Copak mohu pro tebe udělat?"
            - wait 2
            - narrate "<&a>[D] <&6>Roman<&f> <&gt> Chtěl by ses kouknout na aukce, nebo si něco najít v obchodu?"
            - wait 2
            - inventory open d:obchodnik_menu



obchodnik_menu:
    type: inventory
    title: <&6> Roman
    size: 27
    slots:
    - "[] [] [] [] [] [] [] [] []"
    - "[] [] [obchodnik_slot1] [] [] [] [obchodnik_slot2] [] []"
    - "[] [] [] [] [] [] [] [] []"
    inventory: CHEST
obchodnik_slot1:
    type: item
    material: diamond
    display name: <&e>Aukce

obchodnik_slot2:
    type: item
    material: emerald
    display name: <&2>Obchod

obchodnik_handler:
    type: world
    events:
        on player clicks obchodnik_slot1 in obchodnik_menu priority:1:
        - determine cancelled passively
        - execute as_player shop
        on player clicks obchodnik_slot2 in obchodnik_menu priority:1:
        - determine cancelled passively
        - execute as_player ah
        on player clicks in obchodnik_menu priority:2:
        - determine cancelled passively
        on player drags in obchodnik_menu priority:2:
        - determine cancelled passively

lodnik:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
    - lodnik_script

lodnik_script:
    type: interact
    steps:
         1:
            click trigger:
                script:
                - rotate <NPC> duration:1s
                - wait 1
                - lookclose <npc> state:true
                - narrate "<&a>[D] <&6>Břetislav<&f> <&gt> Ah, konečně jses vzbudil!"
                - wait 2
                - narrate "<&a>[D] <&6>Břetislav<&f> <&gt>  jsme dopluli zpátky k ostrovu Hamernice"
                - wait 3
                - narrate "<&a>[D] <&6>Břetislav<&f> <&gt> Přeplav  ten kousek a zajdi za Vincentem"
                - wait 3
                - narrate "<&a>[D] <&6>Břetislav<&f> <&gt> On ti řekne vše o kempu"
                - lookclose <npc> state:false
                - rotate <NPC> yaw:-10.0 duration:1s
                - wait 1
                - look <NPC> <server.flag[MYAWESOMEFLAG]>
                - zap 2
            2:
            click trigger:
            script:
            - narrate "nope not"