Date: 2013/11/16 14:27:57 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
"BartenderBodyGuardMyself":
type: assignment
interact scripts:
- 10 Bartender
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
- trigger name:proximity toggle:true
- trigger name:damage toggle:true
on exit proximity:
- Zap step:1 "s@Bartender"
"Bartender":
Type: Interact
Steps:
1:
Proximity Trigger:
Script:
- RANDOM 2
- CHAT 'If your looking for help you can hire a mercenary from me...'
- CHAT 'Welcome, <PLAYER.NAME> Come talk to me for protection.'
Click Trigger:
Script:
- ENGAGE
- CHAT 'Looks like you<&sq>re a little worn out.'
- WAIT 2
- CHAT "I'll have one of my boys protect you<&cm> for a price..."
- WAIT 2
- CHAT 'What type of help are you looking for?'
- ^NARRATE "<RED>Say:"
- ^NARRATE " '<YELLOW>Peon<YELLOW>' - <GRAY>Low level bodyguard - <GOLD>20 Emeralds"
- ^NARRATE " '<YELLOW>Thug<YELLOW>' - <GRAY>Mid level bodyguard - <GOLD>50 Emeralds"
- ^NARRATE " '<YELLOW>Brute<YELLOW>' - <GRAY>High level bodyguard - <GOLD>64 Emeralds"
- DISENGAGE
Chat Trigger:
2:
Trigger: I would like to hire a /peon/.
Script:
- ENGAGE
- CHAT "Ah, you just need a little protection?"
- ^NARRATE '<RED>Right click to hire a peon.'
- run "BartenderNoEmeraldsPeon"
- DISENGAGE
3:
Trigger: I would like to hire a /thug/.
Script:
- ENGAGE
- CHAT "I can call him right up for you..."
- ^NARRATE '<RED>Right click to hire a thug.'
- run "BartenderNoEmeraldsThug"
- DISENGAGE
4:
Trigger: I would like to hire a /brute/.
Script:
- ENGAGE
- CHAT "Lookin' for the big guns?"
- ^NARRATE '<RED>Right click to hire a brute.'
- run "BartenderNoEmeraldsBrute"
- DISENGAGE
5:
Trigger: /None/, I can handle myself!
Script:
- CHAT "Not my fault if you wind up dead, kid."
"BartenderNoEmeraldsPeon":
Type: task
Script:
- if <player.item_in_hand> == "Emerald" && <player.item_in_hand.qty> >= "20" run "CreatePeon"
else if <player.item_in_hand> == "/REGEX:^\w+$/" run "NoEmeralds"
"BartenderNoEmeraldsThug":
Type: task
Script:
- if <player.item_in_hand> == "Emerald" && <player.item_in_hand.qty> >= "50" run "CreateThug"
else if <player.item_in_hand> == "/REGEX:^\w+$/" run "NoEmeralds"
"BartenderNoEmeraldsBrute":
Type: task
Script:
- if <player.item_in_hand> == "Emerald" && <player.item_in_hand.qty> >= "64" run "CreateBrute"
else if <player.item_in_hand> == "/REGEX:^\w+$/" run "NoEmeralds"
"CreatePeon":
type: task
script:
- ENGAGE
- CHAT "Alright, <PLAYER.NAME>. His life is in your hands. Try not to get him killed too quickly."
- ^take 'item:388' qty:20
- EXECUTE ASNPC "npc create Peon"
- EXECUTE ASNPC "trait sentry"
- EXECUTE ASNPC "sentry vulnerable"
- ^EXECUTE ASNPC "sentry guard <PLAYER.NAME>"
- ^EXECUTE ASNPC "sentry strength 7"
- ^EXECUTE ASNPC "sentry armor 5"
- ^EXECUTE ASNPC "sentry equip IRON_SWORD"
- ^EXECUTE ASNPC "sentry equip LEATHER_HELMET"
- ^EXECUTE ASNPC "sentry equip LEATHER_CHESTPLATE"
- ^EXECUTE ASNPC "sentry equip LEATHER_LEGGINGS"
- ^EXECUTE ASNPC "sentry equip LEATHER_BOOTS"
- ^EXECUTE ASNPC "sentry respawn -1"
- COOLDOWN 86400 'SCRIPT:BARTENDER'
- DISENGAGE
"CreateThug":
type: task
script:
- ENGAGE
- CHAT "Alright, <player.name>. Thugs are ruthless - but not too smart."
- ^take 'item:388' qty:50
- EXECUTE ASNPC "npc create Thug"
- EXECUTE ASNPC "trait sentry"
- EXECUTE ASNPC "sentry vulnerable"
- ^EXECUTE ASNPC "sentry guard <player.name>"
- ^EXECUTE ASNPC "sentry strength 7"
- ^EXECUTE ASNPC "sentry armor 6"
- ^EXECUTE ASNPC "sentry equip IRON_SWORD"
- ^EXECUTE ASNPC "sentry equip IRON_HELMET"
- ^EXECUTE ASNPC "sentry equip IRON_CHESTPLATE"
- ^EXECUTE ASNPC "sentry equip IRON_LEGGINGS"
- ^EXECUTE ASNPC "sentry equip IRON_BOOTS"
- ^EXECUTE ASNPC "sentry respawn -1"
- COOLDOWN 86400 'SCRIPT:BARTENDER'
- DISENGAGE
"CreateBrute":
type: task
script:
- ENGAGE
- CHAT "Alright, <PLAYER.NAME>. You shouldn't be worried about creepers for a while, this brute can handle his own..."
- ^take 'item:388' qty:64
- EXECUTE ASNPC "npc create Brute"
- EXECUTE ASNPC "trait sentry"
- EXECUTE ASNPC "sentry vulnerable"
- ^EXECUTE ASNPC "sentry guard <PLAYER.NAME>"
- ^EXECUTE ASNPC "sentry strength 8"
- ^EXECUTE ASNPC "sentry armor 7"
- ^EXECUTE ASNPC "sentry equip DIAMOND_SWORD"
- ^EXECUTE ASNPC "sentry equip DIAMOND_HELMET"
- ^EXECUTE ASNPC "sentry equip DIAMOND_CHESTPLATE
- ^EXECUTE ASNPC "sentry equip DIAMOND_LEGGINGS"
- ^EXECUTE ASNPC "sentry equip DIAMOND_BOOTS"
- ^EXECUTE ASNPC "sentry respawn -1"
- COOLDOWN 86400 'SCRIPT:BARTENDER'
- DISENGAGE
"NoEmeralds":
Type: task
Script:
- Narrate "<RED>You don't have enough emeralds to purchase that bodyguard..."
- wait 1
- Narrate "<Yellow>If you have enough emeralds, make sure you are holding them while talking."