Date: 2019/11/09 16:48:03 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
Mestiere_fabbro_menu:
type: inventory
title: Mestiere Fabbro
size: 54
slot:
- "[i@Mestiere_fabbro_menu_slot1] [i@Mestiere_fabbro_menu_slot2] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
Mestiere_fabbro_menu_command:
type: command
debug: false
name: fabbro
aliases:
- cuboidtool
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
Mestiere_fabbro_menu_Click:
type: world
events:
on player drags in Mestiere_fabbro_menu:
- determine cancelled
on player clicks in Mestiere_fabbro_menu:
- determine cancelled
on player clicks Mestiere_fabbro_menu_slot2 in Mestiere_fabbro_menu:
- if <player.has_flag[punti_fabbro]>:
- if !<player.has_flag[Guida_al_fabbro]>:
- flag player Guida_al_fabbro:1
- flag player punti_fabbro:--
- else:
- narrate "Hai già acquistato questa abilità"
- else:
- narrate "Non hai Punti Mestiere per Questa skill"
on player clicks Mestiere_fabbro_menu_slot1 in Mestiere_fabbro_menu:
- narrate "&6I comandi sono:"
- narrate "&b/fabbro &7- Apre questo menu"
- narrate "&b/fabbro p &7- Mostra in chat quanti punti Fabbro hai"
- narrate "&b/fabbro esp &7- quanti punti esperienza mancano per raggiungere il prossimo livello / Il tuo Livello da fabbro / il livello massimo del mestiere"
- narrate "&b/f xxx &7- al posto di xxx utilizzare l'abilità voluta per eseguirla"
# sezione slot
Mestiere_fabbro_menu_slot1:
type: item
material: ENCHANTED_BOOK
display name: Comandi utili
Mestiere_fabbro_menu_slot2:
type: item
material: book
display name: Guida al Fabbro