Paste #13621: Untitled Paste

Date: 2015/02/05 09:07:31 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


cookass:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:chat state:true
    interact scripts:
    - 10 cook
cook:
    type: interact
    steps:
         1:
             click trigger:
                 script:
                     - if '<player.has_flag[CTF1]>' {
                       - chat "<gold>Would you like to hear our menu <red><player.name>, <gold>if so just say <red>Menu"
                       } else {
                          - random 3
                          - chat "<red>Dont you have citizens around the realm you could be helping"
                          - chat "<red>You have not won the Emporors Favor yet!"
                          - chat "<red>You may want to talk to the Chef"
                         }
             chat Trigger:
                 1:
                     Trigger: "/menu/"
                     Script:
                     - chat "<gold><player.name> Our Menu is as follows tell me wich one you want!"
                     - chat "<gold>FortuneCookie or Cookie"
                     - chat "<gold>EggFooYoung or Egg"
                     - chat "<gold>SchezuanBeef or Beef"
                     - chat "<gold>PorkLoMein or Pork"
                     - chat "<gold>GeneralTsosChicken or Chicken"
                 2:
                     Trigger: "/cookie/"
                     Script:
                     - animate <npc> arm_swing
                     - chat "<gold>Oh you gonna like these cookies"
                     - take money qty:20
                     - give FortuneCookie qty:16
                     - narrate '<gold>You just bought 16 fortue cookies for 20 money! SWEET!'
FortuneCookie:
    type: item
    material: i@cookie
    display name: <red>Fortune Cookie
    lore:
    - <green>'Fortune: says May Be Sweet
    - <green>or maybe SOUR!'
    recipe:
    - i@item|i@item|i@item
    - i@item|i@item|i@item