options:
item: 402 named "&6Waluta serwera"
cena: 500
command /sklep [<text>]:
trigger:
open chest with 1 rows named "&6Kup / Sprzedaj" to player
set player's current inventory's slot 3 to light green wool named "&6Kup walute serwera"
set player's current inventory's slot 5 to red wool named "&6Sprzedaj walute serwera"
stop
on inventory click:
if inventory name of current inventory of player is "&6Kup / Sprzedaj":
cancel event
if clicked slot is 3:
if player's balance >= {@cena}:
add {@item} to player
remove {@cena} from player's balance
send "&6Kupiles walute!"
if clicked slot is 5:
if player has {@item}:
add {@cena} to player's balance
remove {@item} from player
send "&6Sprzedales walute"
vMCShop.pro to projekt powstający od 2016 roku. Jego głownym założeniem jest dostarczenie
wysokiej jakości sklepów internetowych dla gry Minecraft. Z biegiem czasu wyłonione zostały 3 wersje
sklepów, różniące się od siebie poziomem zaawansowania oraz możliwościami konfiguracji. Z tego też
powodu, każda osoba może wybrać sklep vMCShop, który najbardziej odpowiada jej zapotrzebowaniom.
options:
Nazwa-1: Kilof I
Nazwa-2: Kilof II poziom
Nazwa-3: Kilof III poziom
Nazwa-4: Kilof IV poziom
Nazwa-5: Kilof V poziom
MSG: &6Nie mozesz laczyc tego miecza!
On Anvil Combine:
if "%name of event-item-one%" or "%name of event-item-two%" is "{@Nazwa-1}" or "{@Nazwa-2}" or "{@Nazwa-3}" or "{@Nazwa-4}" or "{@Nazwa-5}":
cancel event
send "{@MSG}"
on damage of player:
wait 1 tick
if victim's health is between 0 and 0.5:
heal victim
teleport victim to {spawn}
command /ustawspawn [<text>]:
trigger:
set {spawn} to location of player
zobacz to
command /surowce [<text>]:
trigger:
open chest with 3 rows named "&6Surowce" to player
set player's current inventory's slot 0 to cobblestone named "&6Kamien" with lore "&6Posiadasz: %{ZMIENNA::COBl::%player%}%"
stop
on inventory click:
if inventory name of current inventory of player is "&6Surowce":
cancel event
if clicked slot is 0:
set {WYPLATA::COBL::%player%} to true
send "&6napisz na chacie ilosc"
close player's inventory
on chat:
if {WYPLATA::COBL::%player%} is true:
cancel event
set {_n} to message
set {_n} to {_n} parsed as number
if {_n} is number:
if {_n} <= {ZMIENNA::COBL::%player%}:
remove {_n} from {ZMIENNA::COBL::%player%}
add ("%{_n}% cobblestone" parsed as item) to player
clear {WYPLATA::COBL::%player%}
send "&6Wyplacono"
else:
send "&6Nie posiadasz tyle napisz jeszcze raz"
else:
send "&6Podales cos zle"
options:
item: firebal named "&6Waluta"
command /waluta [<text>] [<player>] [<number>]:
trigger:
if {WALUTA::%player%} is not set:
set {WALUTA::%player%} to 0
if arg 1 is not set:
send "waluta wplac"
send "waluta wyplac"
send "waluta stan"
send "waluta pay <nick>"
else if arg 1 is "wplac":
if player has {@item}:
remove {@item} from player
add 1 to {WALUTA::%player%}
send "&6Wplacono 1"
else:
send "&6Nie posiadasz waluty!"
else if arg 1 is "wyplac":
if {WALUTA::%player%} > 0:
remove 1 from {WALUTA::%player%}
add {@item} to player
send "&6Wyplacono 1"
else:
send "&6Nie posiadasz kasy!"
else if arg 1 is "stan":
send "&cPosiadasz: &6%{WALUTA::%player%}%"
else if arg 1 is "pay":
set {_n} to arg 3
if {WALUTA::%player%} >= {_n}:
remove {_n} from {WALUTA::%player%}
add {_n} to {WALUTA::%arg 2%}
send "&6Przelano %{_n}% do %arg 2%" to player
send "&6Przelew %{_n}% od %player%" to arg 2
else:
send "&6Nie posiadasz %{_n}%"
mam dla ciebie arcy trudne zadanie a mianowicie napisz mi skrypt (oczywiście że LuckyPotato pierwszy to napisał pod czyjimś postem.) :
- Napisz działający skrypt
- Składający się z więcej niż 3 linijki
- Ma istnieć komenda "marcheweczka"
- po ktorej wpisaniu otwiera się gui, sloty od 1 do 30 mają zawierać 60% ziemniaków a 40% marchewek
powodzenia