Paste #37458: Script re-paste from http://pastebin.com/022uv0Cf

Date: 2016/11/07 20:05:25 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Knight:
    type: assignment
    debug: true
    cooldown: 5s
    actions:
        on assignment:
        - run locally start instantly 
        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."
        - run locally quest instantly 
    start:
        - trigger name:click state:true
        - trigger name:chat state:true radius:7
        - lookclose true range:5 realistic           
    quest:
        (((CHAT TRIGGER FOR PLAYER INPUTTING "1" IN CHAT)))
            - if <player.has_permission[essentials.kits.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. We are looking for recruits though...you interested?"
            - flag <player> knight1noperms
            }
            else {
            - narrate "<&e>[<&b>Knight<&e>] <&c>Sorry, you<&sq>ll have to change classes to receive quests from me."
            }
        (((CHAT TRIGGER FOR PLAYER INPUTTING "2" IN CHAT)))
            - if <player.has_permission[essentials.kits.knight]> {
            - narrate "<&e>[<&b>Knight<&e>] <&c>Uh, I'm assuming that<&sq>s a joke, right?"
            }
            else if <player.has_permission[essentials.kits.peasant]> {
            - narrate "<&e>[<&b>Knight<&e>] <&a>Ah, excellent! First we must go over some details. What would you like to hear about?"
            - narrate "<&c>1. <&7>Quests"
            - narrate "<&c>2. <&7>Kits and Perks"
            - narrate "<&c>3. <&7>Upgrades"
            - narrate "<&c>4. <&7>All set. Sign me up!!!"
            - narrate "<&c>5. <&7>Nah, nevermind..."
            - flag <player> knight2
            }
            else {
            - narrate "<&e>[<&b>Knight<&e>] <&c>Sorry, you<&sq>ll have to change classes to receive quests from me."
            }