Paste #23150: Untitled Paste

Date: 2015/11/28 19:19:52 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


npcchat:
    type: format
    format: "<&b><npc.name><&f><&co> <&a><text>"

PickPokemon: 
    type: assignment 
    actions: 
        on assignment: 
        - trigger name:click state:true 
        - trigger name:chat state:true 
    interact scripts: 
    - 1 Pokemon 

Pokemon: 
    type: interact 
    steps: 
        1: 
            Click Trigger: 
            Script: 
                - if !<player.has_flag[finished_quest_1]> && !<player.has_flag[quest_1_stage_1]> && !<player.has_flag[quest_1_stage_2}> && !<player.has_flag[quest_1_stage_3]> { 
                        - narrate format:npcchat "Greetings newcomer, before I will send you on your adventure into the wilds I have one minor quest for you." 
                        - wait 2 
                        - narrate format:npcchat "I assume you have heard of these strange, magical beings that randomly appeared in the world?" 
                        - wait 2
                        - narrate format:npcchat "Well now, I managed to catch a few specimens in my newest invention called the Pokéball!"
                        - wait 2
                        - narrate format:npcchat "So, how would you like it to obtain one of your own?"
                        - narrate format:npcchat "<white>Would you like to know more, write Yes or No." 
                    }
                - if <player.has_flag[quest_1_stage_2]> {
                    - narrate format:npcchat "Welcome back <player.name>, do you have my package?"
                    - wait 2
                    - if <player.inventory.contains[nether_brick_item]> {
                        - narrate format:npcchat "Oh you do, splendid! hand it over, please."
                        - take nether_brick_item quantity:1
                        - wait 5
                        - narrate format:npcchat "Now, take a few seconds to decide which pokemon you'd like"
                        - wait 10
                        - flag player quest_1_stage_3
                        - flag player quest_1_stage_2:!
                        - narrate format:npcchat "Which pokemon would you like to start off with?"
                        - narrate "write the name of the starter pokemon, starting with a capitol"
                    }
                }
                - if <player.has_flag[finished_quest_1]> {
                        - narrate format:npcchat "Hey <player.name>! How is my old Pokémon doing?"
                        - queue clear 
                }

            Chat Trigger: 
                1: 
                    Trigger: /Yes/, please. This all sounds so interesting! 
                    Script: 
                    - if !<player.has_flag[quest_1_stage_1]> && !<player.has_flag[quest_1_stage_2]> && !<player.has_flag[quest_1_stage_3]> !<player.has_flag[finished_quest_1]> {
                        - narrate format:npcchat "Splendid! now for this 'quest' of yours, could you swing by the PokeMart and fetch me my package that I ordered?"
                        - wait 2
                        - narrate format:npcchat "The PokeMart is located on the Market place, you can't miss it really!"
                        - create player Shop_Assistant <npc.location> save:Shop_Assistant
                        - spawn Shop_Assistant l@-45,87,-235,world
                        - adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[Shop_Assistant].created_npc>
                        - flag player quest_1_stage_1 
                    }

                2:
                    Trigger: /No/, thank you. I have no time.
                    Script:
                        - ^disengage

            Chat Trigger:
                1:
                    Trigger: /regex:.+/, please.
                    Script:
                        - if <player.has_flag[quest_1_stage_3]> {
                            - if !<li@Bulbasaur|Squirtle|Charmander|Chikorita|Totodile|Cyndaquil|Treecko|Mudkip|Torchic|Turtwig|Piplup|Chimchar|Snivy|Oshawott|Tepig.contains[<context.message>]> { 
                                  - narrate format:npcchat "<&c>...I do not have that pokemon!" 
                                  - queue clear 
                              } 
                            - narrate format:npcchat "Very well, <context.message> it is!" 
                            - execute as_server "pokegive <player.name> <context.message> lvl5"
                            - flag player finished_quest_1
                            - flag player quest_1_stage_3:!
                            - firework location:<player.location> power:1 type:star primary:yellow flicker trail
                            - wait 5
                            - narrate format:npcchat "Here, these items might come in handy at some point!" 
                            - execute as_server "give <player.name> 4908 3"
                            - execute as_server "give <player.name> 4675 6"
                        }