Paste #42935: Untitled Paste

Date: 2017/07/07 21:33:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


SigilGuard:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true radius:10

    interact scripts:
    - 1 SigilMain


SigilMain:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - lookclose true range:5 realistic
                    - ^chat "You! What is your business here?"
                    - if <player.inventory.contains.material[NETHER_STAR]> {
                        - chat " wait.. is that? "
                        - wait 3
                        - zap step:2
                        } else {
                        - chat "That's not the Kings Sigil! You are not permitted here!!"
                        - zap step:3
                        }
                exit:
                    script:
                    - anchor walkto i:tguardstart
        2:
            proximity trigger:
                entry:
                    script:
                    - if "<player.inventory.contains.display[strict:Kings Sigil]>" {
                        - ^chat "it is! Forgive my rudeness my lord, Please!"
                        - wait 2
                        - chat " I was only doing my job! I should get back to that presently.. "
                        - wait 1
                        - anchor walkto i:tguardstart
                        - zap step:6
                        } else {
                        - ^chat "no!! you are not permitted here!!"
                        - chat " If you are not gone in 5 seconds I will have no choice but to kill you."
                        - wait 3
                        - zap step:3
                        }

        3:
            proximity trigger:
                entry:
                    script:
                    - if "<player.inventory.contains.display[strict:Kings Sigil]>" {
                        - chat " Shoulda had that in the first place "
                        - anchor walkto i:tguardstart
                        - zap step:4
                        } else {
                        - adjust n@26 speed:1.1
                        - attack
                        }

                exit:
                    script:
                    - ^adjust n@26 speed:0.8
                    - attack cancel
                    - wait 1
                    - anchor walkto i:tguardstart
                    - wait 3
                    - zap step:5

        4:
            click trigger:
                script:
                - if "<player.inventory.contains.display[strict:Kings Sigil]>" {
                    - chat " it's a good thing you found the kings pass! "
                    - wait 1
                    - chat " I really don't enjoy having to hurt people :["
                    - zap step:5
                    } else {
                    - chat " You lost the kings sigil?"
                    - wait 1
                    - chat " You'd better find it, and quickly. Or i'm going to kill you. "
                    - wait 1
                    - chat  " You have 5 seconds to find it or leave. "
                    - wait 5
                    - zap step:3
                    }

        5:
            proximity trigger:
                entry:
                    script:
                    - if "<player.inventory.contains.display[strict:Kings Sigil]>" {
                        - chat " aaah, I see you've gained the Kings right of passage."
                        - wait 2
                        - chat " We have no qualm now, you may pass peacefully "
                        - zap step:6
                        } else {
                        - chat " You still cannot enter here. Leave or die "
                        - wait 5
                        - chat " You were warned!!"
                        - adjust n@26 speed:1.1
                        - attack
                        }


                exit:
                    script:
                    - attack cancel
                    - adjust n@26 speed:0.8

        6:
            proximity trigger:
                entry:
                    script:
                    - ^look <npc> <player.location>
                    - wait 1
                    - chat " How's it goin m'lord "
                exit:
                    script: