Paste #23175: Untitled Paste

Date: 2015/11/28 21:47:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


QuestShopAssistant:
    type: assignment 
    actions: 
        on assignment: 
        - trigger name:click state:true 
    interact scripts: 
    - 10 ShopAssistant 

ShopAssistant:
    type: interact 
    steps: 
        1: 
            Click Trigger: 
                Script: 
                    - if <player.has_flag[quest_1_stage_1]> {
                        - narrate format:npcchat "Greetings friend, how can I help you today?"
                        - wait 2
                        - narrate format:npcchat "Ooooh! You're here for Nexusrightsi's package!"
                        - narrate format:npcchat "Hold on, let me get it for you than!"
                        - wait 2
                        - flag <npc> step:1
                        - walk <def[masternpc].anchror[spot1]> auto_range
                        - wait 5
                        - flag <npc> step:2
                        - walk <def[masternpc].anchror[spot2]> auto_range
                        - wait 5
                        - flag <npc> step:3
                        - walk <def[masternpc].anchror[spot3]> auto_range
                        - wait 5
                        - flag <npc> step:4
                        - walk <def[masternpc].anchror[spot4]> auto_range
                        - wait 5
                        - narrate format:npcchat "Found it! Here you go. Tell Nexusrightsi I said hello, will you!?"
                        - execute as_server "ils give <player.name> &bPackage"
                        - flag player quest_1_stage_2
                        - flag player quest_1_stage_1:!
                        - wait 20
                        - remove <npc>
                        - zap 2
                    }