Paste #50271: Untitled Paste

Date: 2018/10/08 07:54:58 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


halloween: 
    type: assignment 
    actions: 
        on assigment: 
        - trigger name:click state:true 
        - trigger name:chat state:true 
    interact scripts: 
        - 10 halloween_interact 


halloween_interact: 
    type: interact 
    steps: 
        1: 
            click trigger:  
                script: 
                - if <player.has_flag[hallowen_completed]> { 
                    - random { 
                        - chat "Do you like....scary movies?"
                        - chat "Heeeeeeeeeeere's Pocky!"
                        - chat "I see dead people"
                        - chat "BOO!"
                        - chat "They all float down here"
                        - chat "You're my wife now, Dave"
                        - chat "Hello Daaaave"
                        - chat "We can't stop here, this is bat country"
                        - chat "The only one I think I can deal with is Edgar Allan Poe's daughter. I think she understands me."
                        }
                    - queue clear 
                    } 
                - if <player.inventory.contains[i@halloween_item].quantity[1]> && !<player.has_flag[pennywise_complete]> { 
                    - chat "CHEATER!!"
                    - hurt 10 <player>                     
                    - queue clear 
                    } 
                - if <player.has_flag[pennywise]> { 
                    - random { 
                        - chat "In't there someone you should be looking for?" 
                        - chat "Whats the matter? ... Scared?" 
                        - hurt 4 <player>
                        - chat "Get a move on sunshine, I don't got all night..." 
                        }
                    - queue clear 
                    } 
                - if <player.inventory.contains[i@halloween_item].quantity[1]> && <player.has_flag[pennywise_complete]> { 
                    - chat "Ah ha! My lost key! Excellent, now I can access my chest!"                     
                    - take i@halloween_item quantity:1 
                    - execute as_op "points give <player.name> 2" 
                    - flag <player> halloween_chest
                    - disengage 
                    - queue clear 
                    } 
                - if <player.has_flag[halloween_chest]>
                    - chat "Hey, you're not bad kid." 
                    - wait 5t
                    - chat "The trouble is, I can't get too my chest. I need someone to go for me and get me the item in it."
                    - wait 5t
                    - chat "whaddaya say kid?"
                    - narrate [Yes] or [No]
                    - disengage
                - if <player.inventory.contains[i@chest_item].quantity[1]> && <player.has_flag[halloween_chest_complete]> { 
                    - chat "Nice job! Now I have almost everything I need!"                     
                    - take i@chest_item quantity:1 
                    - execute as_op "points give <player.name> 2" 
                    - flag <player> halloween_one
                    - disengage 
                    - queue clear 
                    } 
                - chat "You know that part in scary movies when somebody does something really stupid and everyone hates them for it? Well, now's your chance to go and do it." 
                - wait 10t 
                - chat "I dropped a very important key down a drain. A friend of mine must have found it. You need to go and find him. He won't hurt you" 
                - wait 10t 
                - chat "much...." 
                - wait 10t 
                - chat "Waddaya say, are you up to the challenge?" 
                - wait 10t 
                - narrate "[Yes] or [No]"
            chat trigger: 
                1: 
                    trigger: /Yes/ 
                    script:  
                    - if <player.has_flag[halloween_chest]> {
                        - engage
                        - chat "My friend Skye is at south warp"
                        - wait 5t
                        - chat "I say friend...more like...well......"
                        - wait 5t
                        - chat "Go talk to her and she'll point you to where i left my chest"
                        - wait 5t
                        - chat "Only...Don't tell her I sent you?"
                        - flag <player> halloween_one_chest
                        - queue clear
                        - disengage
                        }
                    - engage 
                    - wait 5t 
                    - chat "Well aren't you just sugar, spice, and everything nice. Head out from /warp north and you'll find him."
                    - wait 5t 
                    - chat "oh...and don't get too close..." 
                    - flag <player> pennywise 
                    - disengage 
                2: 
                    trigger: /No/ 
                    script:  
                    - engage 
                    - hurt 6 <player> 
                    - chat "Wrong answer" 
                    - disengage