Date: 2014/02/18 21:44:49 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
#################################################################
# This implements the npc FloydMcFlick, after a craft type #
# quest the char receives a magic helmet; The Crown of Cake #
# when held the crown gives char 1 cake on a 1 hour cooldown. #
#command is /cakeme #
# #
#Coded by (IGN) morlanius for MCLM - http://mc.lifemud.com #
# 2013 #
# Thanks to the people on the denizen irc for their support. #
# #
#################################################################
"World_Item_cookie_crown":
type: world
events:
# on server start:
# - narrate 'Empowering magical items!'
#
#
# on walked over loc_name:
# - cmd
#
on getcookies command:
- determine passively fulfilled
- narrate 'You try to invoke the Cookie Gods to do your will!!'
- wait 1
- if <player.item_in_hand.lore> contains 'The Crown of Cookies' runtask 'cookie helm'
'cookie helm':
type: task
script:
- if <flag.p:gotcookies> runtask nocookies
else runtask getcookies queue
'getcookies':
type: task
script:
- flag player gotcookies:true duration:3600s
- narrate 'The Cookie Gods will bow to your will .... this time.'
- wait 2
- narrate 'LET THERE BE .... COOKIES!!'
- GIVE ITEM:COOKIE QTY:32
'nocookies':
type: task
script:
- narrate 'The cookie gods tire of your requests.'
####################################
# Item Definitions #
# #
####################################
crown_of_cookies:
type: item
material: 314
display name: 'The Crown of Cookies'
lore:
- 'The Crown of Cookies'
- 'type /getcookies to use me'
####################################################################
# End of item handler #
# #
# Start of Floyd McFlick #
####################################################################
"mcflick":
type: assignment
interact scripts:
- 10 mcflick script
actions:
on assignment:
- trigger name:chat toggle:true
'mcflick script':
Type: Interact
Requirements:
Mode: None
Steps:
1:
Click Trigger:
Script:
- cooldown duration:10s "script:mcflick script"
- CHAT "Hi, My name is Floyd McFlick. I having a bit of a clear out, I seem to have..."
- WAIT 3
- CHAT "an excess of my magic cookie crowns. If you can meet my challenge you can have one!"
- WAIT 3
- CHAT "All you need to do is make a whole heap of cookies, I dont even want any!"
- WAIT 3
- CHAT "MY crowns are better than 'ol fattyguts over there!"
- WAIT 3
- narrate '<&lb>KingFuttyGlut<&rb><&co> Oi! I heard that!'
- CHAT "So ... How about it?"
Chat Trigger:
1:
Trigger: /Yes/,I can make as many as you can name!!!
Script:
- WAIT 2
- CHAT "Good for you! lets see if you can make <red>FIVE Thousand Cookies<white>!."
- WAIT 2
- CHAT "I will whisper in your ear when you get to your target."
- WAIT 4
- CHAT "Then come back and ill give you your reward."
- ZAP 2
- LISTEN ITEM TYPE:CRAFT ID:listen_mcflick name:COOKIE QTY:5000 'SCRIPT:mcflick reward'
- execute asserver "denizen save"
2:
Trigger: /No/, too much work for me, I dont want your stinking magical crown that would give me lots of cookies for free.
Script:
- CHAT "Cookie hater!! leave me alone!"
2:
Click Trigger:
Script:
- CHAT "Still making cookies I see, keep it up!"
3:
Click Trigger:
Script:
- CHAT "Grand job! you truly do deserve ...."
- WAIT 1
- CHAT "The Crown of Cookies! ... here you go!"
- GIVE XP QTY:400
- GIVE ITEM:crown_of_cookies
- NARRATE "You've received The Crown of Cookies!"
- NARRATE "You've received 400 §2experience§f!"
- execute asserver "denizen save"
- COOLDOWN 'SCRIPT:mcflick script' 604800
- ZAP "mcflick after"
'mcflick reward':
Type: Task
Script:
- NARRATE "You just reached your quota of cookie making!"
- ZAP 3 'SCRIPT:mcflick script'
'mcflick after':
Type: Interact
Requirements:
Mode: None
Steps:
1:
Click Trigger:
Script:
- CHAT "Hey there friend! Still making those cookies?."