Paste #37452: Script re-paste from http://pastebin.com/Rrwbx4Ph

Date: 2016/11/06 14:23:06 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Knight:
    type: assignment
    debug: true
    cooldown: 5s
    actions:
        on assignment:
        - trigger name:click state:true
        - trigger name:chat state:true radius:8
        on click:
        - narrate "<&7>[<&b>Knight<&7>] <&e><&l>Hello traveler! How may I assist you?"
        - narrate "<&c>1. <&7>I'd like to start a quest."
        - narrate "<&c>2. <&7>I'd like to become a <&e>Knight<&7>."
        - narrate "<&c>3. <&7>Nevermind."
        - narrate "<&a>Type 1, 2, or 3 in chat to answer."        
    interact script:
    - 1 Knight_interact

Knight_interact:
    type: interact
    debug: true
    permission: denizen.knight
    steps:
        1:
            chat trigger:
                1:
                    trigger: /1/
                    script:
                        on player chats: (HOW TO USE??????????????????)
                            - if <player.has_permission[denizen.knight]> {
                              - narrate "<&e>[<&b>Knight<&e>] <&c>Sorry, but I haven<&sq>t got any quests for you at the moment. Check back later!"
                              }
                              else if <player.has_permission[essentials.kits.Peasant]> {
                              - narrate "<&e>[<&b>Knight<&e>] <&C>Sorry bud, gotta be a Knight first. Why don<&sq>t you become a recruit."
                              }
                              else {
                              - narrate "<&e>[<&b>Knight<&e>] <&c>Sorry, you<&sq>ll have to change classes to receive quests from me."
                              }