Paste #28283: Untitled Paste

Date: 2016/01/11 14:48:56 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


PlotHelperAssignment:
    type: assignment
    interact scripts:
    - 1 plotHelperInteract
    actions:
    - trigger name:chat toggle:true
    - trigger name:click toggle:true
    - trigger name:proximity toggle:true

plotHelperInteract:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - flag player "cont:false"
                    - flag player "chatSelect:1"
            chat trigger:
                1:
                    trigger: //
                    script:
                    - flag player "cont:true"
            click trigger:
                script:
                - flag player "cont:false"
                - run plotHelperChat

plotHelperChat:
    type: task
    script:
        - if <player.flag[cont]> == true {
            - if <player.chat_history> == Z {
                - flag player "chatSelect:z"
                } else if <player.chat_history> == Y {
                - flag player "chatSelect:<player.flag[_chatSelect]>"
                } else {
                - flag player "_chatSelect:<player.flag[chatSelect]>"
                - flag player "chatSelect:<player.flag[chatSelect]><player.chat_history>"
                }
            }
        - if <player.flag[chatSelect]> == 1 {
            - if <npc.flag[plotworld1]> != 1 {
                - flag npc "mytrainee:<player.name>"
                - flag npc "plotworld1:1"
                - flag npc "<birth:<util.date.time.month>"
                - flag player "application:1"
            } else if <player.name> == <npc.flag[myTrainee]> {
                - if <player.flag[application]> == 0 {
                    - chat "You aren't suppose to be here yet! Im just gonna teleport you right back to spawn now!"
                    - execute as_op "spawn"
                    } else if <player.flag[application]> == 1 {
                    - flag player "chatSelect:1"
                    } else if <player.flag[application]> == 2 {
                    - random {
                        - chat "<green>Welcome to <white>The Plotworld<green> <white><player.name><green>. Can I help you with something?"
                        - chat "<green>Good day <white><player.name><green> welcome to <white>The Plotworld<green>. Is there something I can help you with?"
                        - chat "<green>Welcome to <white>The Plotworld<green>, is there anything I can help you with?"
                        - chat "<green>Good day! Welcome to <white>The Plotworld<green>. Can I aid you?"}
                    - flag player "chatSelect:1"
                    } else if <player.flag[application]> == 3 {
                    - run plotapplicationresetsystem
                    }
                } else if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - chat "Hey <red>Staffmember<green> can i help you with anything about<white> <npc.flag[mytrainee]> <green>?<gray>(Right click me)"
                } else {
                - chat "I am sorry, <white><npc.flag[mytrainee]><green> is my trainee. I am not allowed to help you!"
                }
            - narrate "1. Okay got it!"
            } else if <player.flag[chatSelect]> == 11 {
                - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - chat "So i have some options for you that you have as an Staffmember!"
                - narrate "1. reset this plot."
                - narrate "2. Complete application from <npc.flag[mytrainee]>."
                - narrate "3. deny application from <npc.flag[mytrainee]>."
                - narrate "4. info about <npc.flag[mytrainee]> his application"
                }
                else {
                - random {
                    - chat "<green>What is it you need help with?"
                    - chat "<green><white><player.name><green> what's your problem?"
                    - chat "<green>What does you'r issue regard?"
                    - chat "<green>What problem do you need help with <white><player.name><green>?"}
                - narrate "1. My application"
                - narrate "2. The server"
                - narrate "3. Play some music!"
                - narrate "4. Worldedit"
                - narrate "5. Stop talking please!"
                }
            } else if <player.flag[chatSelect]> == 111 {
            - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - run s@plotapplicationresetsystem
                } else {
                - chat "<green>So you have a question about your application? what is the problem?"
                - narrate "1. Can you run my application tutorial again?"
                - narrate "2. I am done with my application"
                }
            } else if <player.flag[chatSelect]> == 112 {
            - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - chat "Oke, here we go"
                - announce "&6[Fixiebrick]<gray> Congratulations <white><npc.flag[mytrainee]><gray> you completed your application! "
                - execute as_op "rm complete <npc.flag[mytrainee]>"
                - execute as_op "pex user <npc.flag[mytrainee]> group set builder"
                - flag player "application:3"
                - chat "Do you want to protect this plot?"
                - narrate "1. Yes"
                - narrate "2. No thanks"
                }
            } else if <player.flag[chatSelect]> == 113 {
            - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - execute as_player "rm deny <npc.flag[mytrainee]>"
                - chat "<white> <npc.flag[mytrainee]> <green> his application has been denied."
                }
            } else if <player.flag[chatSelect]> == 1111 {
            - chat "<green>Oh sure, let me start from the beginning!"
            - run s@plotapplicationintroduction
            } else if <player.flag[chatSelect]> == 1112 {
            - chat "<green>Are you sure you are done?"
            - wait 2
            - chat "<green>Well i can send in your build as done then, if you like me to do that."
            - narrate "1. Yes"
            - narrate "2. No"
            } else if <player.flag[chatSelect]> == 11121 {
            - execute as_player "plotme home"
            - execute as_player "rm review"
            - chat "<green>Oke, your build has now been submitted as completed, you will soon hear from an admin!"
            } else if <player.flag[chatSelect]> == 11122 {
            - chat "<green>Oke, do your best on your build <white><player.name><green>!"
            } else if <player.flag[chatSelect]> == 112 {
            - chat "<green>Aha you want some info about the server?"
            - wait 5
            - chat "<green>Well Fixiebrick is original a roleplayserver started in April 2013."
            - wait 5
            - chat "<green>We are always building the roleplayworld up. and hope we can open it soon enough."
            - wait 5 
            - chat "<green>You are now applying to build in the roleplayworld."
            - wait 5
            - chat "<green>Since May 2014 we also host minigames on our server and hope to expand these!"
            - wait 5
            - chat "<green>We also offer work for developers, and graphical designers, and techincians!"
            } else if <player.flag[chatSelect]> == 1121 {
            - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - chat "Oke, let me protect it"
                - execute as_op "npc sel"
                - execute as_op "npc tp"
                - execute as_op "plotme protect"
                }
            } else if <player.flag[chatSelect]> == 1122 {
            - if <player.in_group[Admin]> || <player.in_group[Mod]> {
                - chat "oke, i wont protect it then."
                }
            } else if <player.flag[chatSelect]> == 113 {
            - random {
                - chat "<green>You want to play music! What piece?"
                - chat "<green>Music? Which piece?"
                - chat "<green>You want music <white><player.name><green>? Any specific piece?"
                - chat "<green>What piece of music <white><player.name><green>"}
            - narrate "1. Boulevard Of Broken Dreams"
            - narrate "2. Jingle Bells"
            - narrate "3. Jump"
            - narrate "4. Money Money Money"
            - narrate "5. Nothing Else Matters"
            - narrate "6. Still Alive"
            - narrate "7. The Model"
            - narrate "8. Too Bad"
            - narrate "9. Wake Me Up"
            - midi stop
            } else if <player.flag[chatSelect]> == 1131 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Boulevard Of Broken Dreams it is!"
                - chat "<green>Boulevard Of Broken Dreams? I'll play that!"
                - chat "<green>Ok, I'll play Boulevard Of Broken Dreams"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Boulevard Of Broken Dreams"}
            - midi stop
            - midi file:boulevardOfBrokenDreams
            } else if <player.flag[chatSelect]> == 1132 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Jingle Bells it is!"
                - chat "<green>Jingle Bells? I'll play that!"
                - chat "<green>Ok, I'll play Jingle Bells"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Jingle Bells"}
            - midi stop
            - midi file:jingleBells
            } else if <player.flag[chatSelect]> == 1133 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Jump it is!"
                - chat "<green>Jump? I'll play that!"
                - chat "<green>Ok, I'll play Jump"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Jump"}
            - midi stop
            - midi file:jump
            } else if <player.flag[chatSelect]> == 1134 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Money Money Money it is!"
                - chat "<green>Money Money Money? I'll play that!"
                - chat "<green>Ok, I'll play Money Money Money"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Money Money Money"}
            - midi stop
            - midi file:moneyMoneyMoney
            } else if <player.flag[chatSelect]> == 1135 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Nothing Else Matters it is!"
                - chat "<green>Nothing Else Matters? I'll play that!"
                - chat "<green>Ok, I'll play Nothing Else Matters"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Nothing Else Matters"}
            - midi stop
            - midi file:nothingElseMatters
            } else if <player.flag[chatSelect]> == 1136 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Still Alive it is!"
                - chat "<green>Still Alive? I'll play that!"
                - chat "<green>Ok, I'll play Still Alive"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Still Alive"}
            - midi stop
            - midi file:stillAlive
            } else if <player.flag[chatSelect]> == 1137 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, The Model it is!"
                - chat "<green>The Model? I'll play that!"
                - chat "<green>Ok, I'll play The Model"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing The Model"}
            - midi stop
            - midi file:theModel
            } else if <player.flag[chatSelect]> == 1138 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Too Bad it is!"
                - chat "<green>Too Bad? I'll play that!"
                - chat "<green>Ok, I'll play Too Bad"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Too Bad"}
            - midi stop
            - midi file:tooBad
            } else if <player.flag[chatSelect]> == 1139 {
            - random {
                - chat "<green>You're the boss <white><player.name><green>, Wake Me Up it is!"
                - chat "<green>Wake Me Up? I'll play that!"
                - chat "<green>Ok, I'll play Wake Me Up"
                - chat "<green>That's what you want <white><player.name><green>? Ok, playing Wake Me Up"}
            - midi stop
            - midi file:wakeMeUp
            } else if <player.flag[chatSelect]> == 114 {
            - chat "<green>So you need some help with worldedit?"
            - wait 5
            - chat "<green>First of all, a wooden axe is your maintool"
            - wait 5
            - chat "<green>use the command <yellow>//wand<green> to get a wooden axe. (I already did for you now)"
            - execute as_player "/wand"
            - narrate "Hold the wooden axe in your hands!"
            - wait 10
            - chat "<green>Oke, so what you need to know. Worldedit needs 2 positions to modify everything in that area"
            - wait 8
            - chat "<green>Left mouseclick a block while holding the axe. and right click another block with the axe."
            - wait 15
            - chat "<green>You now have made a selection with worldedit"
            - wait 5
            - chat "<green>now use the command <yellow>//set 35<green>     this will make the selected area into wool."
            - wait 10
            - chat "<green>Now go stand on your selection you just modified, use the command <yellow>//copy<green>     and fly 5 blocks up, then use <yellow>//paste<green>"
            - wait 15
            - chat "<green>Oke, now you know the very basic of <yellow>worldedit<green>."
            - wait 5
            - chat "<green>visit <red>http://wiki.sk89q.com/wiki/WorldEdit<green> for more info about worldedit, and excercise on your plot!"
            } else if <player.flag[chatSelect]> == 115 {
            - chat "<green>I will stop talking from now on!"
            - wait 2
            - chat "<green>If you need me, richt click me!"
            - trigger proximity state:false 
            } else if <player.flag[chatSelect]> == 2 {
            - trigger name:chat toggle:false
            - trigger name:click toggle:false
            - trigger name:proximity toggle:false
            - wait 1
            - chat "<green>Hey <white><player.name><green> i have been expecting you on this plot for a while!"
            - wait 1
            - chat "So why didn't you come earlier?"
            - wait 1
            - chat "Well it's not important, let's focus on your application here for now!"
            - wait 1
            - chat "Im going to give you a short tutorial about your application."
            - wait 1
            - chat "First of all, you are now doing a applicationbuild on the server Fixiebrick to become a builder!"
            - wait 1
            - chat "So, when you finish your application, you are in the buildteam for Fixiebrick!"
            - wait 1
            - narrate "<white><player.name><green> So what do i need to do now for my application?"
            - wait 1
            - chat "Oh, you don't know it yet? You have to build something good!"
            - wait 1
            - chat "You should build on your plot in <yellow>medieval<green> or <yellow>steampunk<green> style with a touch of <yellow>fantasy<green>."
            - wait 1
            - chat "Be sure to spend atleast several hours on your build, and make it your best build ever on this size."
            - wait 1
            - chat "The staff who checks the plot is very strict on good build quality."
            - wait 1
            - chat "Be sure to signup for our server <red>http://www.fixiebrick.net <green> to be able to complete your application!"
            - wait 1
            - chat "You are allowed to use <yellow>worldedit<green> for your application on your plot!"
            - wait 1
            - chat "Also be sure to download our texturepack, and mcpatcher <red>http://fixiebrick.net/home/m/19617520/article/2214964<green>."
            - wait 1
            - chat "If you are finished with you application, talk to me again!"
            - wait 1
            - chat "Goodluck <white><player.name><green> on your application!"
            - wait 1
            - narrate "<gold>[Fixiebrick]<gray> If you want this tutorial again? talk to your Trainer!"
            - trigger name:chat toggle:true
            - trigger name:click toggle:true
            - trigger name:proximity toggle:true
            - flag player "application:2"
            } else if <player.flag[chatSelect]> == z {
                - random {
                - chat "<green>Bye!"
                - chat "<green>Bye <player.name>!"
                - chat "<green>Goodbye!"
                - chat "<green>Goodbye <player.name>!"}
            - flag player "chatSelect:1"
            } else {
            - chat "<green>Sorry that dosn't appear to be an option"
            - flag player "chatSelect:<player.flag[_chatSelect]>"
            }
        - narrate "Y. Back"
        - narrate "Z. Exit"


plotapplicationresetsystem:
    type: task
    script:
    - chat "this plot will now be reset!"
    - execute as_npc "plotme reset"
        - if <<npc.flag[mytrainee]>.flag[application]> != 3 {
        - flag <npc.flag[mytrainee]> "application:0"
        - pex user <npc.flag[mytrainee]> group set Guest
        }
    - remove <npc>
    - narrate "<npc.flag[mytrainee]> his plot has been reset!"