Paste #5346: Untitled Paste

Date: 2014/06/17 11:31:40 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


jayblues:
    Type: Assignment
    Actions:
        on assignment:
        - trigger name:chat toggle:true
        - trigger name:click toggle:true
        #- lookclose state:true
    Interact Scripts:
    - 1 Q1

Q1:
    type: Interact
    Requirements:
        Mode: None
        List:
        #- -flagged player "jayblues1Done:true"
    Steps:
        1:
            Proximity trigger:
                Entry:
                    #entry radius: 2
                    Script:
                    - lookclose toggle:true
                    - random 2
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> DON'T HURT ME!"
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> NOT THE FACE!"
                Exit:
                    #exit radius: 4
                    Script:
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Please hurry <player.name>!"
                    - lookclose toggle:false

            Click Trigger:
                Script:
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Oh, hi <player.name>, I thought you were a skeleton ..."
                - wait 1
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> I was mining and opened a tomb and now it's after me!"
                - wait 1
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Hey <player.name>, can you do me a favour and go kill it?"
                - wait 1
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> I found some gems worth a few gold in there, you can have them if you bring me proof you killed it."
                - wait 2
                - narrate "<dark_gray><&lb>Hint <&co> Yes to accept the quest, No to decline.<&rb>"
            Chat Trigger:
                1:
                    Trigger: /Yes/ I'll help you!
                    Script:
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Great!"
                    - wait 1
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> It's at the end of the tombs."
                    - wait 1
                    - narrate "<red> Scared to the Bones - Quest Started"
                    - ^listen kill type:entity target:skeleton qty:1 script:CryptQuestCheck
                    - zap step:2
                2:
                    Trigger: /No/ way, I'm not going down there!
                    Script:
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Ok, well, I didn't like my life anyway ..."
                    - wait 1
                    - narrate "<npc.name> looks scared"
        2:
            Click Trigger:
                Script:
                - if "<player.inventory.contains.display[Funny Bone].qty[1]>" {
                    - ^take "Funny Bone" qty:1
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You did it!"
                    - wait 1
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You actually did it! Here, I promised you these."
                    - wait 1
                    - narrate "<red> Scared to the Bones - Quest Completed"
                    - flag player "jayblues1Done:true"
                    - give money qty:200
                    - give xp qty:50
                    - ^zap Step:3
                    } 
                    else {
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> It's, It's not dead yet...."
                    - wait 1
                    - narrate "<npc.name> Looks scared."
                    }
        3:
            Click Trigger:
                Script:
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Thank you so much <player.name>, you really did save me!"