Date: 2019/11/10 07:19:36 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
# Punti_Fabbro - da assegnare per le abilità
# Punti_esp_fabbro - indica i punti esperienza del fabbro
# Livello_fabbro - indica il livello fabbro
# Mestiere_fabbro_XXXXX - indica l'abilità con il livello.
#
# Menù fabbro compra skill
Mestiere_fabbro_menu:
type: inventory
title: Mestiere Fabbro
size: 54
slots:
- "[i@Fabbro_Guida_menu_slot2] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] [i@Mestiere_fabbro_Tutorial_slot1]"
- "[] [] [] [] [] [] [] [] [i@Mestiere_fabbro_Tutorial_slot2]"
- "[] [] [] [] [] [] [] [] [i@Mestiere_fabbro_Tutorial_slot3]"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
# menù fabbro usa skill
Cast_Mestiere_fabbro:
type: inventory
title: Cast Fabbro
size: 54
slots:
- "[] [i@Fabbro_Guida_menu_Cast] [] [] [] [] [] [] []"
- "[i@Mestiere_fabbro_Tutorial_slot0] [] [] [] [] [] [] [] []"
- "[i@Mestiere_fabbro_Tutorial_slot2] [] [] [] [] [] [] [] []"
- "[i@Mestiere_fabbro_Tutorial_slot3] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
# comandi fabbro
Mestiere_fabbro_menu_command_1:
type: command
debug: false
name: fabbro
permission: mestiere.fabbro
description: Apre l'interfaccia del fabbro.
usage: /fabbro
script:
- inventory open d:in@Mestiere_fabbro_menu
- narrate "<green>Acquisisci abilità!"
# sezione click in inventory acquisisci abilità
Mestiere_fabbro_menu_Click:
type: world
debug: false
events:
on player drags in Mestiere_fabbro_menu:
- determine cancelled
#
on player clicks in Mestiere_fabbro_menu:
- determine passively cancelled
#
on player drags in Cast_Mestiere_fabbro:
- determine cancelled
#
on player clicks in Cast_Mestiere_fabbro:
- determine passively cancelled
#
# click in fabbro cast
#
on player clicks Fabbro_Guida_menu_Cast in Cast_Mestiere_fabbro:
- if <player.flag[Mestiere_fabbro_Guida_al_fabbro]> = 1:
- execute as_op "cmi saveditems get GuidaFabbro"
- else:
- narrate "Non hai Questa Skill"
#
# click per cambiare inventory
#
on player clicks Mestiere_fabbro_Tutorial_slot1 in Mestiere_fabbro_menu:
- inventory close d:in@Cast_Mestiere_fabbro
- wait 5t
- inventory open d:in@Mestiere_fabbro_menu
#
on player clicks Mestiere_fabbro_Tutorial_slot1 in Mestiere_fabbro_menu:
- inventory close d:in@Mestiere_fabbro_menu
- wait 5t
- inventory open d:in@Cast_Mestiere_fabbro
#
# click per apprendere le abilità
#
on player clicks Fabbro_Guida_menu_slot2 in Mestiere_fabbro_menu:
- if <player.flag[punti_fabbro]> > 0:
- if <player.flag[Mestiere_fabbro_Guida_al_fabbro]> = 0:
- flag player Mestiere_fabbro_Guida_al_fabbro:1
- flag player punti_fabbro:--
- inventory close d:in@Mestiere_fabbro_menu
- inventory open d:in@Mestiere_fabbro_menu
- if <player.flag[Mestiere_fabbro_Guida_al_fabbro]> = 1:
- narrate "Hai raggiunto il livello massimo per questa skill"
- else:
- narrate "Hai già acquistato questa abilità"
- else:
- if <player.flag[Mestiere_fabbro_Guida_al_fabbro]> = 1:
- narrate "Hai raggiunto il livello massimo per questa skill"
- else:
- narrate "Non hai Punti Mestiere per Questa skill"
# sezione slot tutorial
Mestiere_fabbro_Tutorial_slot0:
type: item
material: SIGN
display name: <gold>sezione cast
enchantments:
- vanishing_curse:1
mechanisms:
flags: HIDE_ENCHANTS
lore:
- <dark_green>Passa alla sezione Apprendi
Mestiere_fabbro_Tutorial_slot1:
type: item
material: SIGN
display name: <gold>Sezione Apprendi
enchantments:
- vanishing_curse:1
mechanisms:
flags: HIDE_ENCHANTS
lore:
- <dark_green>Passa alla sezione Cast
Mestiere_fabbro_Tutorial_slot2:
type: item
material: SIGN
display name: <gold>Punti Skill Fabbro
enchantments:
- vanishing_curse:1
mechanisms:
flags: HIDE_ENCHANTS
lore:
- <green>hai <aqua><player.flag[punti_fabbro]> <green>Punti abilità
Mestiere_fabbro_Tutorial_slot3:
type: item
material: SIGN
display name: <gold>Livello e esperienza
enchantments:
- vanishing_curse:1
mechanisms:
flags: HIDE_ENCHANTS
lore:
- <green>Il tuo livello da fabbro è <aqua><player.flag[Livello_fabbro]>
# sezione slot compra skill
Fabbro_Guida_menu_slot2:
type: item
material: ENCHANTED_BOOK
display name: Guida al Fabbro
lore:
- <dark_green>Livello fabbro sbloccabile: <dark_aqua>1
- <dark_green>Livello skill massimo: <dark_aqua>1
- <dark_green>Livello: <gold><player.flag[Mestiere_fabbro_Guida_al_fabbro]>
- <blue>Ottieni Il Libro Guida del mestiere Fabbro.
#
#
#
# sezione slot usa skill
Fabbro_Guida_menu_Cast:
type: item
material: ENCHANTED_BOOK
display name: Guida al Fabbro
lore:
- <dark_green>Livello: <gold><player.flag[Mestiere_fabbro_Guida_al_fabbro]>
- <blue>Ottieni Il Libro Guida del mestiere Fabbro.