Paste #2503: Thing

Date: 2014/03/12 12:05:00 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Jobs:
    Type: World
    Events:
      on job command:
      - Narrate format:formatdemo "<Green> Available Jobs<n><Blue>Weapons Shopkeeper<n>Resturant Chef<n>Flowershop Cashier<n>Government/Politician<n>Uchiha Police<n>Shopkeeper<n>Ichiraku Ramen<n>Guard<n>Secretary<n>Research Division<n>Sauna Shop Owner"
      on quest command:
     - if <context.args[]> {
      - Narrate format:formatdemo "<Green> Available Quests<n><Blue>1. Akamaru's Bone<n>2. Suspicious Sauna Man"
      }
     - if <context.args[help]> {
      - Narrate format:formatdemo "<Green> Simply put in the quest you want to do"
      }
Akamaru:
    Type: assignment
    interact scripts:
    - 1 Wolf
Wolf:
    Type: Interact
    steps:
        1:
            click trigger:
                script:
                - playsound <npc.location> WOLF_GROWL
                - Chat "Woah, Calm down Akamaru looks like he doesn't trust you maybe you could change his mind?"
                - Chat "If you were to find him a bone i'm sure that would alter his opinion of you hehehe"
                - zap step:2
        2:
            click trigger:
                script:
                - if <player.inventory.contains[BONE].qty[1]> {
                  - take bone qty:1
                  - chat "Wow looks like Akamaru really liked that bone isn't that right Akamaru?"
                  - playsound <npc.location> WOLF_PANT
                  - give money qty:10
                  - zap step:3
                  } 

                  else {
                  - chat "Doesn't look like you have a bone for Akamaru.."
                  - playsound <npc.location> WOLF_GROWL
                  }
        3:
            click trigger:
                script:
                - chat "Akamaru really appreciated that bone didn't you Akamaru"
                - wait 1
                - playsound <npc.location> WOLF_BARK
                - zap step:1