Date: 2016/11/07 20:05:25 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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."
}