- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


Titlecommands
TypeDenizen Script
Date2014/11/25 20:14:26 UTC-08:00
ByGuest
Other
Paste
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
47200
# +----------------------------------
# |   World Scripts
# +----------------------------------

Commands_Script:
  type: world
  events:
# +----------------------------------
# |   Denizen
# +----------------------------------
    on denizen command:
      - ^if !<player.is_op> queue clear
      - ^if <c.args.get[1]> == reload ^execute as_server "denizen save"
# +----------------------------------
# |   Bedport Command
# +----------------------------------
    on bedport command:
      - determine passively fulfilled
      - if <player.flag[BedTime]> {
        - potion blindness <player> d:5 p:3
        - if <player.in_group[Cathar]> {
          - ^teleport  l@9177,30,5992,world
          - run CatharIntro as:n@67
          - narrate "<blue>New Quest Objective<&co> <gold>Find Aris at the docks of Cathar"
          - flag <player> BedTime:!
          }
        - if <player.in_group[Orgoroth]> {
          - ^teleport  l@1207,31,6055,world
          - run OrgIntro as:n@77
          - narrate "<blue>New Quest Objective<&co> <gold>Find Urghat in Orgoroth"
          - flag <player> BedTime:!
          }
        - if <player.in_group[Roskgrod]> {
          - ^teleport  l@3753,32,2270,world
          - run RoskIntro as:n@76
          - narrate "<blue>New Quest Objective<&co> <gold>Find Searos in Roskgrod"
          - flag <player> BedTime:!
          }
        - if <player.in_group[Rhovan]> {
          - ^teleport  l@9177,30,5992,world
          - narrate "<blue>New Quest Objective<&co> <gold>Find Hadra in Rhovan"
          - flag <player> BedTime:!
          }
        - if <player.in_group[Lindorthell]> {
          - ^teleport  l@6767,30,7381,world
          - run LindIntro as:n@75
          - narrate "<blue>New Quest Objective<&co> <gold>Exit the boat"
          - flag <player> BedTime:!
          }
        }
# +----------------------------------
# |   Setgroup Command
# +----------------------------------
    on setgroup command:
      - determine passively fulfilled
      - if <player.has_permissions[setgroup.staff.mod]> {
        - if <context.args.get[2].is[==].to[moderator]> || <context.args.get[2].is[==].to[moda]> || <context.args.get[2].is[==].to[CM]> || <context.args.get[2].is[==].to[Head_Architect]> || <context.args.get[2].is[==].to[Grand_Architect]> || <context.args.get[2].is[==].to[Youtube]> || <context.args.get[2].is[==].to[LoreMaster]> || <context.args.get[2].is[==].to[Event_Team]> || <context.args.get[2].is[==].to[Plugin_Dev]> || <context.args.get[2].is[==].to[CD]> || <context.args.get[2].is[==].to[Admin]> || <context.args.get[2].is[==].to[Owner]> {
          - execute as_server "sync console all manuadd <context.parsed_args.get[1]> <context.parsed_args.get[2]>"
          - narrate '<green><context.parsed_args.get[1]> was added to <context.parsed_args.get[2]> in all servers' 
          } else { 
          - narrate "<red>You do not have permisson to alter this group"
          }
        - if <player.has_permissions[setgroup.staff.admin]> {
          - execute as_server "sync console all manuadd <context.parsed_args.get[1]> <context.parsed_args.get[2]>"
          - narrate '<green><context.parsed_args.get[1]> was added to <context.parsed_args.get[2]> in all servers' 
          }
        }
    on sg command:
      - determine passively fulfilled
      - if <player.has_permissions[setgroup.staff.mod]> {
        - if <context.args.get[2].is[==].to[moderator]> || <context.args.get[2].is[==].to[moda]> || <context.args.get[2].is[==].to[CM]> || <context.args.get[2].is[==].to[Head_Architect]> || <context.args.get[2].is[==].to[Grand_Architect]> || <context.args.get[2].is[==].to[Youtube]> || <context.args.get[2].is[==].to[LoreMaster]> || <context.args.get[2].is[==].to[Event_Team]> || <context.args.get[2].is[==].to[Plugin_Dev]> || <context.args.get[2].is[==].to[CD]> || <context.args.get[2].is[==].to[Admin]> || <context.args.get[2].is[==].to[Owner]> {
          - narrate "<red>You do not have permisson to alter this group"
          } else {
          - execute as_server "sync console all manuadd <context.parsed_args.get[1]> <context.parsed_args.get[2]>"
          - narrate "<green><context.parsed_args.get[1]> was added to <context.parsed_args.get[2]> in all servers"
          }
        }
      - if <player.has_permissions[setgroup.staff.admin]> {
        - execute as_server "sync console all manuadd <context.parsed_args.get[1]> <context.parsed_args.get[2]>"
        - narrate "<green><context.parsed_args.get[1]> was added to <context.parsed_args.get[2]> in all servers"
        }
# +----------------------------------
# |   Remove Flag
# +----------------------------------
    on flagrem command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Scripter]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - flag p@<context.parsed_args.get[1]> <context.parsed_args.get[2]>:!
        - narrate "<red>The flag <context.parsed_args.get[2]> was removed from <context.parsed_args.get[1]>"
        } else {
        - narrate "<red>You don<&sq>t have permission to use this command, if you should, contact upper staff."
        }
# +----------------------------------
# |   Set Flag
# +----------------------------------
    on flagset command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Scripter]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - if <context.args.size.is[EQUALS].to[3]> {
          - flag p@<context.parsed_args.get[1]> <context.parsed_args.get[2]>:<context.parsed_args.get[3]>
          - narrate "<red><context.parsed_args.get[1]> was flagged with <context.parsed_args.get[2]><&co><context.parsed_args.get[3]>"
          }
        - if <context.args.size.is[EQUALS].to[2]> {
          - flag p@<context.parsed_args.get[1]> <context.parsed_args.get[2]>
          - narrate "<red><context.parsed_args.get[1]> was flagged with <context.parsed_args.get[2]>"
          }
        } else {
        - narrate "<red>You don<&sq>t have permission to use this command, if you should, contact upper staff."
        }
# +----------------------------------
# |   change step in script
# +----------------------------------
    on zap command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Scripter]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - zap step:<context.parsed_args.get[1]> script:<context.parsed_args.get[2]> player:p@<context.parsed_args.get[3]>
        - narrate "<red>zapped <green><context.parsed_args.get[3]> <red>to step<&co> <blue><context.parsed_args.get[1]> in  script<&co> <blue><context.parsed_args.get[2]>"
        } else {
        - narrate "<red>You don<&sq>t have permission to use this command, if you should, contact upper staff."
        }
# +----------------------------------
# |   No-Character fix
# +----------------------------------
    on nochar command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Scripter]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - execute as_server "manudelsub <context.parsed_args.get[1]> No-Character"
        - execute as_server "manuaddsub <context.parsed_args.get[1]> No-Character"
        - narrate "<red>The No-Character group of <green><context.parsed_args.get[1]> <red>has been fixed"
        } else {
        - narrate "<red>You don't have permission to use /nochar"
        }
# +----------------------------------
# |   Referal commands
# +----------------------------------
    on referer command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - if <context.parsed_args.get[1]> == <player.name> {
          - narrate "<red>You cannot give yourself referer points!"
          - execute as_player "helpop Tried to give themself referer points."
          - determine cancelled
          } else {
          - execute as_player "helpop Gave <context.parsed_args.get[1]> a referer prize."
          - execute as_server "enjin addpoints <context.parsed_args.get[1]> 300"
          - narrate "<green><context.parsed_args.get[1]> <red>Received 300 points"
          }
        } else {
        - narrate "<red>You don't have permission to use /referer"
        }
    on referal command:
      - determine passively fulfilled
      - if <player.in_group[Mod]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - if <context.parsed_args.get[1]> == <player.name> {
          - narrate "<red>You cannot give yourself referal points or items!"
          - execute as_player "helpop Tried to give themself referal points and items."
          - determine cancelled
          } else {
          - execute as_player "helpop Gave <context.parsed_args.get[1]> a Referal prize."
          - execute as_server "enjin addpoints <context.parsed_args.get[1]> 300"
          - execute as_server "give <context.parsed_args.get[1]> emerald 50"
          - execute as_server "give <context.parsed_args.get[1]> steak 25"
          - execute as_server "md tome <context.parsed_args.get[1]> -a 1"
          - narrate "<green><context.parsed_args.get[1]> <red>Received 300 points, 50 Ducats, 25 steak and 1 identification tome."
          }
        } else {
        - narrate "<red>You don't have permission to use /referal"
        }
# +----------------------------------
# |   Chat commands
# +----------------------------------
    on ooc command:
      - determine passively fulfilled
      - if <context.args.size.is[EQUALS].to[0]> {
        - execute as_server "sudo <player.name> ch ooc"
        }
    on l command:
      - determine passively fulfilled
      - if <context.args.size.is[EQUALS].to[0]> {
        - execute as_server "sudo <player.name> ch l"
        }
    on w command:
      - determine passively fulfilled
      - if <context.args.size.is[EQUALS].to[0]> {
        - execute as_server "sudo <player.name> ch w"
        }
    on s command:
      - determine passively fulfilled
      - if <context.args.size.is[EQUALS].to[0]> {
        - execute as_server "sudo <player.name> ch s"
        }
# +----------------------------------
# |   Angel
# +----------------------------------
    on angel command:
      - determine passively fulfilled
      - if <context.args.size.is[EQUALS].to[0]> {
        - spawn n@133 player
        - narrate "<aqua>[Angel] -> You<&co> <red>What can I help you with?"
        - zap step:help script:Angel_Script
        }
      - if <context.args.size.is[EQUALS].to[1]> {
        - run Angel_Script as:n@133
        - spawn n@133 <context.args.get[1].as_player.location>
        - narrate "<gold>An angel has descended upon <context.parsed_args.get[1]>"
        }
# +----------------------------------
# |   Property Commands
# +----------------------------------
    on pcheck command:
      - determine passively fullfilled
      - define PChecking li@
      - narrate "Checking all offline players..."
      - foreach <server.list_offline_players> {
        - if <def[value].last_played> > 1209600000 {
            - if !<player.flag[Sold]> {
                - define PChecking <def[PChecking].include[%value%]>
            }
        }
      }
      - narrate "<red>Listing all players who've been offline for over 2 weeks"
      - narrate "<def[PChecking].formatted>"
# +----------------------------------
# |   Witch Dies
# +----------------------------------
    on deadwitch command:
      - if <server.flag[deadwitch_cooldown]> {
        - queue clear
        }
      - flag server deadwitch_cooldown duration:2t
      - determine passively fulfilled
      - run Dead_Witch as:n@39 delay:4t
# +----------------------------------
# |   Bank
# +----------------------------------
    on bank_account command:
      - determine passively fulfilled
      - inventory open d:<player.enderchest>
    on buy_bank_account command:
      - determine passively fulfilled
      - run Buy_Account
    on Passive_Buy_Account command:
      - determine passively fulfilled
      - run Passive_Buy_Account
# +----------------------------------
# |   Help and tickets
# +----------------------------------
    on help command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> menu open ticket_menu"
    on h command:
      - determine passively fulfilled
      - if <player.in_group[Architect]> {
        - execute as_player "menu open Architect_Menu"
        }
      - if <player.in_group[Mod]> {
        - execute as_player "menu open Mod_Menu"
        }
      - if <player.in_group[Admin]> || <player.in_group[Owner]> {
        - execute as_player "menu open Admin_Menu"
        }
# +----------------------------------
# |   Gamemodes
# +----------------------------------
    on g command:
      - determine passively fulfilled
      - if <player.in_group[Architect]> || <player.in_group[ModA]> || <player.in_group[HMod]> || <player.in_group[Head_Architect]> || <player.in_group[Admin]> || <player.in_group[Owner]> {
        - if <player.gamemode.id> == 1 {
          - execute as_player "gamemode survival"
          - determine cancelled
          } else {
          - execute as_player "gamemode creative"
          - determine cancelled
          }
        } else {
        - narrate "You don't have permission to use /g"
        }
# +----------------------------------
# |   Architect Mode
# +----------------------------------
    on arch command:
      - determine passively fulfilled
      - if <player.in_group[Arch_Player]> {
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> Architect"
        - define Survival_Items_List li@
        - foreach <player.inventory.list_contents.full> {
          - define Survival_Items_List <def[Survival_Items_List].include[%value%]>
          }
        - flag player Survival_Items:%Survival_Items_List%
        - execute as_server "ci <player.name>"
        - flag player Survival_Location:<player.location>
        - execute as_player "gamemode creative"
        - execute as_server "removename <player.name>"
        - execute as_player "helpop Switching to Architect Mode"
        - determine cancelled
        }
      - if <player.in_group[H_Arch_Player]> {
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> Head_Architect"
        - define Survival_Items_List li@
        - foreach <player.inventory.list_contents.full> {
          - define Survival_Items_List <def[Survival_Items_List].include[%value%]>
          }
        - flag player Survival_Items:%Survival_Items_List%
        - execute as_server "ci <player.name>"
        - flag player Survival_Location:<player.location>
        - execute as_player "gamemode creative"
        - execute as_server "removename <player.name>"
        - execute as_player "helpop Switching to Architect Mode"
        - determine cancelled
        }
      - if <player.in_group[G_Arch_Player]> {
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> Grand_Architect"
        - define Survival_Items_List li@
        - foreach <player.inventory.list_contents.full> {
          - define Survival_Items_List <def[Survival_Items_List].include[%value%]>
          }
        - flag player Survival_Items:%Survival_Items_List%
        - execute as_server "ci <player.name>"
        - flag player Survival_Location:<player.location>
        - execute as_player "gamemode creative"
        - execute as_server "removename <player.name>"
        - execute as_player "helpop Switching to Architect Mode"
        - determine cancelled
        }
      - if <player.in_group[M_Arch_Player]> {
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> ModA"
        - define Survival_Items_List li@
        - foreach <player.inventory.list_contents.full> {
          - define Survival_Items_List <def[Survival_Items_List].include[%value%]>
          }
        - flag player Survival_Items:%Survival_Items_List%
        - execute as_server "ci <player.name>"
        - flag player Survival_Location:<player.location>
        - execute as_player "gamemode creative"
        - execute as_server "removename <player.name>"
        - execute as_player "helpop Arch mode engaged"
        - determine cancelled
        }
      - if <player.in_group[ModA]> {
        - execute as_player "gamemode survival"
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> M_Arch_Player"
        - execute as_server "ci <player.name>"
        - teleport <player.flag[Survival_Location]>
        - give <player.flag[Survival_Items]>
        - execute as_player "helpop Switching to RP Mode"
        - if <player.flag[Character]> == 1 {
          - execute as_server "name <player.name> <player.flag[Char1_Name]>"
          } else {
          - execute as_server "name <player.name> <player.flag[Char2_Name]>"
          }
        - determine cancelled
        }
      - if <player.in_group[Head_Architect]> {
        - execute as_player "gamemode survival"
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> H_Arch_Player"
        - execute as_server "ci <player.name>"
        - teleport <player.flag[Survival_Location]>
        - give <player.flag[Survival_Items]>
        - execute as_player "helpop Switching to RP Mode"
        - if <player.flag[Character]> == 1 {
          - execute as_server "name <player.name> <player.flag[Char1_Name]>"
          } else {
          - execute as_server "name <player.name> <player.flag[Char2_Name]>"
          }
        - determine cancelled
        }
      - if <player.in_group[Grand_Architect]> {
        - execute as_player "gamemode survival"
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> G_Arch_Player"
        - execute as_server "ci <player.name>"
        - teleport <player.flag[Survival_Location]>
        - give <player.flag[Survival_Items]>
        - execute as_player "helpop Switching to RP Mode"
        - if <player.flag[Character]> == 1 {
          - execute as_server "name <player.name> <player.flag[Char1_Name]>"
          } else {
          - execute as_server "name <player.name> <player.flag[Char2_Name]>"
          }
        - determine cancelled
        }
      - if <player.in_group[Architect]> {
        - execute as_player "gamemode survival"
        - execute as_server "Manudel <player.name>"
        - execute as_server "Manuadd <player.name> Arch_Player"
        - execute as_server "ci <player.name>"
        - teleport <player.flag[Survival_Location]>
        - give <player.flag[Survival_Items]>
        - execute as_player "helpop Switching to RP Mode"
        - if <player.flag[Character]> == 1 {
          - execute as_server "name <player.name> <player.flag[Char1_Name]>"
          } else {
          - execute as_server "name <player.name> <player.flag[Char2_Name]>"
          }
        - determine cancelled
        }
      - if <player.flag[Admin_Mode]> == 0 {
        - flag Admin_Mode:1
        - define Survival_Items_List li@
        - foreach <player.inventory.list_contents.full> {
          - define Survival_Items_List <def[Survival_Items_List].include[%value%]>
          }
        - flag player Survival_Items:%Survival_Items_List%
        - execute as_server "ci <player.name>"
        - flag player Survival_Location:<player.location>
        - execute as_player "gamemode creative"
        - narrate "Admin Mode"
        - execute as_server "removename <player.name>"
        - determine cancelled
        }
      - if <player.flag[Admin_Mode]> == 1 {
        - flag Admin_Mode:0
        - execute as_player "gamemode survival"
        - execute as_server "ci <player.name>"
        - teleport <player.flag[Survival_Location]>
        - give <player.flag[Survival_Items]>
        - narrate "RP Mode"
        - if <player.flag[Character]> == 1 {
          - execute as_server "name <player.name> <player.flag[Char1_Name]>"
          } else {
          - execute as_server "name <player.name> <player.flag[Char2_Name]>"
          }
        - determine cancelled
        }
# +----------------------------------
# |   Pets
# +----------------------------------
    on mypet command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> menu open pet_menu"
# +----------------------------------
# |   Warp Commands
# +----------------------------------
    on cathar command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> warp cathar"
    on roskgrod command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> warp roskgrod"
    on lindorthell command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> warp lindorthell"
    on orgoroth command:
      - determine passively fulfilled
      - execute as_server "sudo <player.name> warp orgoroth"
# +----------------------------------
# |   Upgrades
# +----------------------------------
    on upgradefarmhouse command:
      - determine passively fulfilled
      - if <player.flag[farmhouse]> == 1 {
        - narrate "<red>Upgrading your house will cost:"
        - narrate "<red>Do you wish to proceed?"
        }
      - if <player.flag[farmhouse]> == 2 {
        - narrate "<red>Upgrading your house will cost:"
        - narrate "<red>Do you wish to proceed?"
        }
      - if <player.flag[farmhouse]> == 3 {
        - narrate "<red>Upgrading your house will cost:"
        - narrate "<red>Do you wish to proceed?"
        }
      - if <player.flag[farmhouse]> == 4 {
        - narrate "There's no more upgrades"
        }



RawRaw



Pastes made: 71797