Date: 2015/12/21 04:09:38 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
Shopsystem_Apotheker:
type: inventory
title: " <&8>>> <&7>Apotheker"
size: 27
slots:
- "[i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Shopname_Apotheker] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder]"
- "[i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Placeholder]"
- "[i@Placeholder] [i@Placeholder] [i@Placeholder] [i@Shop_Apotheker_Item2] [i@Shop_Apotheker_Item3] [i@Shop_Apotheker_Item3] [i@Placeholder] [i@Placeholder] [i@Placeholder]"
########################################################################################################################################
#--------------------------------------------------------------------------------------------------------------------------------------#
#| Shop öffnen |#
#--------------------------------------------------------------------------------------------------------------------------------------#
########################################################################################################################################
Shop_Apotheker:
type: assignment
interact scripts:
- 10 Shop_Apotheker_open
Shop_Apotheker_open:
type: interact
events:
steps:
open:
click trigger:
script:
- inventory open d:in@Shopsystem_Apotheker
########################################################################################################################################
#--------------------------------------------------------------------------------------------------------------------------------------#
#| Shopsystem<i> Definitionen |#
#--------------------------------------------------------------------------------------------------------------------------------------#
########################################################################################################################################
Shopname_Apotheker:
type: item
material: m@human_skull
display name: <&c>Shop <&7>| Holzf<ä>ller
########################################################################################################################################
#--------------------------------------------------------------------------------------------------------------------------------------#
#| Item Definitionen |#
#--------------------------------------------------------------------------------------------------------------------------------------#
########################################################################################################################################
Shop_Apotheker_Item1:
type: item
material: potion,69
display name: "Geringer Heiltrank"
lore:
- " "
- "<&7>1 St<ü>ck <&8>> <&7>1050 Gold"
# Handle item1
Shop_Apotheker_Item1i:
type: world
debug: false
events:
on player right clicks potion,69 in Shopsystem_Apotheker:
- if <player.money> > 1050 {
- ^TAKE MONEY QTY:1050
- ^GIVE POTION,69 QTY:1
- narrate "<&8>> <&7>Du hast <&c>einen geringen Heiltrank <&7>gekauft!"
- determine cancelled
} else {
- narrate "<&8>> <&7>Du hast nicht gen<ü>gend Gold!"
- determine cancelled
}
#################################### ITEM 2 #####################################
Shop_Apotheker_Item2:
type: item
material: potion,37
display name: "Normaler Heiltrank"
lore:
- " "
- "<&7>1 St<ü>ck <&8>> <&7>2470 Gold"
# Handle item2
Shop_Apotheker_Item2i:
type: world
debug: false
events:
on player right clicks potion,37 in Shopsystem_Apotheker:
- if <player.money> > 2470 {
- ^TAKE MONEY QTY:2470
- ^GIVE POTION,37 QTY:1
- narrate "<&8>> <&7>Du hast <&c>einen normalen Heiltrank <&7>gekauft!"
- determine cancelled
} else {
- narrate "<&8>> <&7>Du hast nicht gen<ü>gend Gold!"
- determine cancelled
}
#################################### ITEM 3 #####################################
Shop_Apotheker_Item3:
type: item
material: potion,69
display name: "Starker Heiltrank"
lore:
- " "
- "<&7>1 St<ü>ck <&8>> <&7520 Gold"
# Item | Starker Heiltrank
StarkerHeiltrank:
type: item
material: potion,69
display name: "Starker Heiltrank"
effect: instant_health
level: 5
lore:
- "<&9>Heiltrank"
- "<&7>Heilt 10 Herzen."
# Handle item3
Shop_Apotheker_Item3i:
type: world
debug: false
events:
on player right clicks potion,69 in Shopsystem_Apotheker:
- if <player.money> > 7520 {
- ^TAKE MONEY QTY:7520
- ^GIVE i@StarkerHeiltrank QTY:1
- narrate "<&8>> <&7>Du hast <&c>einen starken Heiltrank <&7>gekauft!"
- determine cancelled
} else {
- narrate "<&8>> <&7>Du hast nicht gen<ü>gend Gold!"
- determine cancelled
}