Date: 2016/11/06 14:23:06 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
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."
}