Paste #8631: Untitled Paste

Date: 2014/08/20 23:14:27 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ExampleQuestNextStepComplete:
  type: task 
  script:
  - ^if <npc.flag[GenericVoice]> {
       - ^if <npc.location.world.time.period> == day {
            - ^random 2
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
          }
       - ^if <npc.location.world.time.period> == dawn {
            - ^random 2
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
          }
       - ^if <npc.location.world.time.period> == dusk {
            - ^random 2
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
          }
       - ^if <npc.location.world.time.period> == night {
            - ^random 2
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
          }
     }
  - ^if !<npc.flag[GenericVoice]> {
       - ^if <npc.flag[VoicePrefix]> == Tyr {
            - ^random 8
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatdoyouneed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatcanIdoforyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetingsmortal custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_godspeed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_presencehonorsme custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_welcomeavenger custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
          }
       - ^if <npc.flag[VoicePrefix]> == Aka {
            - ^flag player ClickCount:++ duration:60s
            - ^if <player.flag[ClickCount]> > 15 {
                 - ^chat "<red>Stop pestering me!"
                 - ^playsound <npc.location> sound:custom.HostileDeclare custom
                 - ^queue clear
               }
            - ^random 4
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_orderwelcomes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Alk {
            - flag player ClickCount:++ duration:60s

            - ^if <player.flag[ClickCount]> > 5 {
                 - ^random 2
                 - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goaway custom
                 - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_stoppestering custom
                 - ^queue clear
               }
            - ^random 14
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_welcomeavenger custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatcanIdoforyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatdoyouneed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatdoyouwant custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yourpresencehonorsme custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yesyesgoodbye custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodtoseeyouagain custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodtoseeyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_what custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Cha {
            - ^random 8
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_heythere custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_needhelp custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatcanIdoforyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatchaneed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Dro {
            - ^random 11
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_allowtoadvise custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_approachandtrade custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_askandlearn custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_farewell custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodbye custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_needhelp custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_steelisstrong custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_takecare custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Hal {
            - ^random 8
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodbye custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodtoseeyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_welcomeavenger custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yourpresence custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_ custom
          }
       - ^if <npc.flag[VoicePrefix]> == Hra {
            - ^random 8
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_returngreeting custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_welcomeavenger custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Kas {
            - ^random 5
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_sisterhoodwelcomesyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_helloagainoutlander custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Nat {
            - ^random 11
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_godspeed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodtoseeyouagain custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_presencehonorsme custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_welcomeavenger custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatcanIdo custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatdoyouneed custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
       - ^if <npc.flag[VoicePrefix]> == Orm {
            - ^random 9
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_greetings custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodtoseeyouagain custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hailtoyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yourpresence custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatcanIdoforyou custom
            - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_whatdoyouneed custom
            - ^if true {
                 - ^if <npc.location.world.time.period> == day {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodday custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dawn {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodmorning custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == dusk {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_goodevening custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
                 - ^if <npc.location.world.time.period> == night {
                      - ^random 2
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_yes custom
                      - ^playsound <npc.location> sound:custom.<npc.flag[VoicePrefix]>_hello custom
                    }
               }
          }
     }