Mógł by ktoś tu dodać do tego skryptu że gracz za przegranie 10min będzie dostawał 10 coinsów. Z góry dziękuje
variables:
{c.%player%} = 0
{mob.%player%} = 0
{stone.%player%} = 0
{dirt.%player%} = 0
options:
tag: &b&l[&d&lCoins&bl]
command /pomoc:
trigger:
send "&7Pomocne komendy:"
Send "&a/ic daj [nick] [ile] &e- &3Dodaje Coinsy dla Gracza."
send "&a/oddaj [nick] [ilosc] &e- &3Oddajesz dla Gracza swoje Coins"
send "&a/coins &e- &3Sprawdza stan Coinsow"
send" &a/cc [nick] [ilosc] &e- &3Usuwa Coinsy dla Gracza"
send "&a/cshop &e- &3Specjalny sklep za Coins"
command /ic [<text>] [<player>] [<integer>]:
aliases: icoins
usage: /ic daj [nick] [ile]
permission: c.daj
permission message: Nie masz permissions!
trigger:
if arg 1 is "daj":
if arg 2 is set:
add arg 3 to {c.%arg 2%}
send "{@tag} &1&l>> &7Dostales &9%arg 3% &7Coins od &9%player%&7! &1&l<<" to arg 2
send "{@tag} &1&l>> &7Dales dla &9%arg 2% &7- %arg 3% &9Coins &7! &1&l<<"
command /oddaj [<player>] [<integer>]:
aliases: od, dd, add
usage: /oddaj [nick osoby dla ktorej chcesz oddac Coins] [Ilosc]
permission: c.oddaj
permission message: Nie masz permisji aby oddac dla kogos Coins!
trigger:
if arg 1 is set:
if arg 2 is set:
if {c.%player%} is greater or equal to arg 3:
add arg 3 to {c.%arg 1%}
remove arg 3 from {c.%player}
send" {@tag} &1&l>> &7Oddales dla &9%arg 1%&7, &9%arg 2% coins&7! &1&l<<"
command /coins [<text>]:
aliases: stan,ile,coinsy
permission: c.sprawdz
permission message: Nie masz permisji aby sprawdzic stan Coinsow!
trigger:
if arg 1 is not set:
send "{@tag} &1&l>> &7Aktualnie posiadasz &a%{c.%player%}% coins&7! &1&l<<"
send "{@tag} &1&l>> &aChcesz sprawdzic ile ktos ma Coins? Wpisz &e/coins [nick]&a! &1&l<<"
command /cc [<player>] [<integer>]:
permission: c.usun
permission message: Nie mozesz zabierac Coins dla graczy!
trigger:
if arg 1 is set:
remove arg 2 from {c.%arg 1%}
send "{@tag} &1&l>> &7Usunales dla gracza &9%arg 1% &7az &9%arg 2% Coinsow&7! &1&l<<"
send "{@tag} &1&l>> &7Gracz &9%player% &7zabral Ci az &9%arg 2% Coinsow&7! &1&l<<"
command /cshop [<text>]:
aliases: shop, sklep, sklepik, sell
permission: c.sklep
permission message: Nie masz permisji do korzystania ze sklepu!
trigger:
if arg 1 is not set:
send "&a&l*~*~*&e&lSklep Coins&a&l*~*~*"
send "&eJajo zombie &2kosztuje 1000 coins. &5&lKomenda /cshop jajo"
send "&eSpawner &2kosztuje 15000 coins. &5&lKomenda /cshop spawner"
send "&e&lButelki z Expem &2kosztuja 500 coins. &5&lkomenda /cshop Exp"
send "&e&lFly na minute &2kosztuje 5000 coins &5&lKomenda /cshop Fly"
if arg 1 is "jajo":
if {c.%player%} is greater or equal than 1000:
else:
send "&4Nie masz &a1000 coins &4!"
if arg 1 is "spawner":
if {c.%player%} is greater or equal than 15000:
else:
send "&4Nie masz &a15.000 Coins!"
if arg 1 is "exp"
if {c.%player%} is greater or equal than 500:
else:
send "&4Nie masz &a500 Coins&4!"
if arg 1 is "fly"
if {c.%player%} is greater or eqal than 5000:
else:
send "&4Nie masz &a5.000 Coins&4!"
on mine stone:
add 1 to {stone.%player%}
if {stone.%player%} is greater than 999:
send "{@tag} &1&l>> &7Gratulacje! Wykopales wlasnie &e1000 stona&7! W nagrode dodajemy Ci 100 coins! &1&l<<"
add 100 to {c.%player%}
set {stone.%player%} to 0
on mine dirt:
add 1 to {dirt.%player%}
if {dirt.%player%} is greater than 999:
send "{@tag} &1&l>> &7Gratulacje! Wykopales wlasnie &e1000 dirta&7! W nagrode dodajemy Ci 100 coins! &1&l<<"
add 100 to {c.%player%}
set {dirt.%player%} to 0
on death of slime:
if attacker is player:
add 1 to {mob.%player%}
if {mob.%player%} is greater than 99:
send "{@tag} &1&l>> &7Zabiles wlasnie &e100 slime&7! Otrzymujesz 50 coins!"
add 50 to {c.%player%}
set {mob.%player%} to 0
on death:
attacker is a player:
victim is a player:
send "{@tag} &1&l>> &7Zabiles wlasnie &b%victim% &7! Dostajesz 30 Coins! &1&l<<" to attacker
send "{@tag} &1&l>> &7Zginales! Twoim zabojca jest &b%attacker%&7! Tracisz 40 Coins!" to victim
remove 40 from {c.%victim%}
add 30 to {c.%attacker%}
stop