View difference between Paste ID: 1m95qxcs and RV1pnMhG
SHOW: | | - or go back to the newest paste.
1
on rightclick with paper:
2
	name of player's tool contain "&a&l電子マネー[Manako]"
3
	make player execute command "/densi"
4
5
command /densi:
6
	trigger:
7
		open chest with 6 row named "&a電子マネー[Manako] Options" to player
8
		set slot 0 of player's current inventory to diamond named "&6Piggy: %{money.%player%}%"
9
		set slot 19 of player's current inventory to gold block named "&6入金"
10
		set slot 21 of player's current inventory to emerald block named "&bPOINTからマネーへの交換"
11
12
on inventory click:
13
	if name of player's current inventory contain "&a電子マネー[Manako] Options":
14
		cancel event
15
		if name of clicked item is "&6入金":
16
			close player's inventory
17
			wait 2 tick
18
			make player execute command "/purse"
19
		if name of clicked item is "&bPOINTからマネーへの交換":
20
			close player's inventory
21
			wait 2 tick
22
			make player execute command "/pointc"
23
24
command /purse:
25
	trigger:
26
		open chest with 6 row named "&6入金オプション" to player
27
		set slot 0 of player's current inventory to diamond named "&6Purse: %{money.%player%}%" with Lore "&a残高: %{densi.%player%}%"
28
		set slot 19 of player's current inventory to gold block of Sharpness 10 named "&6&l50000Coin入れる"
29
		set slot 21 of player's current inventory to gold ingot of Sharpness 10 named "&6&l10000Coin入れる"
30
		set slot 23 of player's current inventory to gold nugget of Sharpness 10 named "&6&l5000Coin入れる"
31
		set slot 19 of player's current inventory to gold ingot of named "&6&l1000Coin入れる"
32
		set slot 19 of player's current inventory to gold nugget named "&6&l500Coin入れる"
33
34
on inventory click:
35
	if name of player's current inventory contain "&6入金オプション":
36
		cancel event
37
		if name of clicked item is "&6&l50000Coin入れる":
38
			50000 <= {money.%player%}
39
			remove 50000 from {money.%player%}
40
			add 50000 to {densi.%player%}
41
			send "&6&n50000 Coin&d入金しました!!"
42
		if name of clicked item is "&6&l10000Coin入れる":
43
			10000 <= {money.%player%}
44
			remove 10000 from {money.%player%}
45
			add 10000 to {densi.%player%}
46
			send "&6&n10000 Coin&d入金しました!!"
47
		if name of clicked item is "&6&l5000Coin入れる":
48
			5000 <= {money.%player%}
49
			remove 5000 from {money.%player%}
50
			add 5000 to {densi.%player%}
51
			send "&6&n5000 Coin&d入金しました!!"
52
		if name of clicked item is "&6&l1000Coin入れる":
53
			1000 <= {money.%player%}
54
			remove 1000 from {money.%player%}
55
			add 1000 to {densi.%player%}
56
			send "&6&n1000 Coin&d入金しました!!"
57
		if name of clicked item is "&6&l500Coin入れる":
58
			500 <= {money.%player%}
59
			remove 500 from {money.%player%}
60
			add 500 to {densi.%player%}
61
			send "&6&n500 Coin&d入金しました!!"
62
63
command /pointc:
64
	trigger:
65
		open chest with 6 row named "&a&lPOINT Options" to player
66
		set slot09 of player's current inventory to diamond named "&d&lPOINT: %{point.%player%}%"
67
		set slot 19 of player's current inventory to emerald named "&a500POINT交換"
68
		set slot 21 of player's current inventory to emerald named "&a100POINT交換"
69
		set slot 23 of player's current inventory to emerald named "&a50POINT交換"
70
		set slot 25 of player's current inventory to emerald named "&a10POINT交換"
71
		set slot 31 of player's current inventory to emerald block named "&a&l全て交換"
72
		set slot 40 of player's current inventory to emerald named "&dPOINTの説明"
73
74
on inventory click:
75
	if name of player's current inventory contain "&a&lPOINT Options":
76
		cancel event
77
		if name of clicked item is "&a500POINT交換":
78
			500 <= {point.%player%}
79
			remove 500 from {point.%player%}
80
			add 500 to {densi.%player%}
81
			send "&d500&6Coin 残高を追加しました"
82
		if name of clicked item is "&a100POINT交換":
83
			100 <= {point.%player%}
84
			remove 100 from {point.%player%}
85
			add 100 to {densi.%player%}
86
			send "&d100&6Coin 残高を追加しました"
87
		if name of clicked item is "&a50POINT交換":
88
			50 <= {point.%player%}
89
			remove 50 from {point.%player%}
90
			add 50 to {densi.%player%}
91
			send "&d50&6Coin 残高を追加しました"
92
		if name of clicked item is "&a500POINT交換":
93
			500 <= {point.%player%}
94
			remove 500 from {point.%player%}
95
			add 500 to {densi.%player%}
96
			send "&d500&6Coin 残高を追加しました"
97
		if name of clicked item is "&a&l全て交換":
98
			send "&d%{point.%player%}%&6Coin 残高を追加しました"
99
			add {point.%player%} to {densi.%player%}
100
			set {point.%player%} to 0
101
102
command /m [<player>] <text>:
103
	trigger:
104
		if arg-1 is not set:
105
			send "&6Usage: /w [playername] [text]"
106
		if arg-1 is set:
107
			message "&a%player%=>%arg-1% &%{color.%player%}% %arg-2%" to arg-1
108
109
command /color:
110
	trigger:
111
		if {colorset::*} contains player:
112
			open chest with 5 row named "&1C&ao&bl&6o&dr &cS&ee&5tt&3i&2n&7g&4s" to player
113
			set slot 19 of player's current inventory to red wool named "&4Red"
114
			set slot 21 of player's current inventory to blue wool named "&1Blue"
115
			set slot 23 of player's current inventory to lime wool named "&aLime"
116
			set slot 25 of player's current inventory to aqua wool named "&bAqua"
117
			set slot 28 of player's current inventory to white wool named "&fWhite"
118
			set slot 30 of player's current inventory to black wool named "&0Black"
119
			set slot 32 of player's current inventory to orange wool named "&6Orange"
120
		else:
121
			send "&cERROR: あなたはColorRankをもっていません。"
122
123
on inventory click:
124
	if name of player's current inventory to "&1C&ao&bl&6o&dr &cS&ee&5tt&3i&2n&7g&4s":
125
		cancel event
126
		if name of clicked item is "&4Red":
127
			set {color.%player%} to 4
128
			send "&%{color.%player%}%色をRedに変更しました" 
129
		if name of clicked item is "&1Blue":
130
			set {color.%player%} to 1
131
			send "&%{color.%player%}%色をBlueに変更しました"
132
		if name of clicked item is "&aLime":
133
			set {color.%player%} to a
134
			send "&%{color.%player%}%色をLimeに変更しました"
135
		if name of clicked item is "&bAqua":
136
			set {color.%player%} to b
137
			send "&%{color.%player%}%色をAquaに変更しました"
138
		if name of clicked item is "&fWhite":
139
			set {color.%player%} to f
140
			send "&%{color.%player%}%色をWhiteに変更しました"
141
		if name of clicked item is "&0Black":
142
			set {color.%player%} to 0
143
			send "&%{color.%player%}%色をBlackに変更しました"
144
		if name of clicked item is "&6Orange":
145
			set {color.%player%} to 6
146
			send "&%{color.%player%}%色をOrangeに変更しました"
147
148
command /colorrank <player>:
149
	trigger:
150
		add player to {colorset::*}
151-
		send "&d/colorでRank Optionを開けます。"
151+
		send "&d/color&6でColor Optionを開けます。"
152
153
on chat:
154
	if {colorset::*} contains player:
155
		if {rank1::*} contains player:
156-
		broadcast "&%{color.%player%}% %player% %message%"
156+
			cancel event
157
			broadcast "&%{color.%player%}%[&fPremium&%{color.%player%}%] %player% &%{color.%player%}% %message%"
158
		else:
159
			cancel event
160
			broadcast "&%{color.%player%}% %player% &%{color.%player%}% %message%"	
161
162
command /card <player>:
163
	executable by: console
164
	trigger:
165
		25000 <= {money.%arg%}
166
		remove 25000 from {money.%arg%}
167
		give paper of Mending 10 named "&a&l電子マネー[Manako]" to arg-1