Paste #14883: Untitled Paste

Date: 2015/04/03 08:31:45 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TestStarostaAssign:
    type: assignment
    interact scripts:
    - 10 TestStarostaQuest

TestStarostaQuest:
    type: interact
    steps:

        1:
            click trigger:
                script:
                - chat "Nic nepotrebujem, ale dakujem za opytanie"

        2:
            click trigger:
                script:
                - if <player.has_flag[NPCLock]> {
                    - queue clear
                } 
                - ^flag NPCLock
                - chat "Co by si potreboval, <player.name>?"
                - wait 3
                - narrate "<yellow>Quest tip: <white>Do chatu (bez lomitka) napis <italic>zmluvu"
                - zap 3
                - flag NPCLock:!

        3:
            chat trigger:
                zmluva:
                    trigger: /zmluvu/ pre Bylinkara
                    script:
                    - if <player.has_flag[NPCLock]> {
                        - queue clear
                    } 
                    - ^flag NPCLock
                    - wait 3
                    - chat "Tak zmluvu?"
                    - wait 2
                    - chat "Vedel som to.."
                    - wait 3
                    - chat "Schvalne, vies preco chce tu zmluvu?"
                    - wait 4
                    - chat "Lebo ho nenavidi polovica mesta"
                    - wait 4
                    - chat "Ale nemam sa s nim chut hadat"
                    - wait 4
                    - chat "Tak nieco za nieco. Ukaz mi tie bylinky"
                    - wait 5
                    - take i@TestBylinkarBylinky
                    - wait 1
                    - chat "No tie su skvele"
                    - wait 3
                    - chat "Tu mas tu zmluvu"
                    - wait 3
                    - give i@TestStarostaZmluva
                    - chat "Urcite sa ponahla, chod za nim"
                    - zap 1
                    - zap step:3 script:TestBylinkarQuest
                    - flag NPCLock:!

TestStarostaZmluva:
    type: item
    material: paper
    display name: Zmluva pre Bylinkara
    bound: true
    lore:
    - Questovy item