Date: 2020/08/14 11:04:35 UTC-07: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
GuildMenu:
type: inventory
inventory: chest
title: Guilda Menu
size: 27
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [inv_slot1] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
inv_slot1:
type: item
material: name_tag
display name: Create Guilda
quests:
type: command
name: guilda
description: Open guilda menu
usage: /guilda
permission:
script:
- inventory open d:GuildMenu
into_gui:
type: world
events:
on player clicks in GuildMenu priority:2:
- determine cancelled
on player drags in GuildMenu priority:2:
- determine cancelled
on player clicks inv_slot1 in GuildMenu priority:1:
- inventory close
- narrate "<&a>Write the player name what do you want to invite:"
- flag <player> command_chat
on player chat:
- if <player.flag[command_chat]>:
- define target <context.args.get[1]>
- narrate "<[target].name> test1"
- flag <player> command_chat:!
# chat_command1:
# type: world
# events:
# - if <player.flag[command_chat]>:
# - define target <context.args.get[1]>
# - if <server.match_player[<[target]>]>:
# - define target <server.match_player[<[target]>]>
# - narrate "<player.name> has invited you to their clan." targets:<[target]>
# - narrate "You've invited <[target].name> to your clan."
# - flag <player> command_chat:!
# - else:
# - narrate "<[target]> cannot be found, is it a valid player?"
# - flag <player> command_chat:!
# - determine cancelled