variables:
{poziomek.%player%} = 1
{expo.%player%} = 0
{wymagania.%player%} = 250
on chat:
if player has permission "chat.admin":
cancel event
broadcast "&8(&2Lvl. %{poziomek.%player%}%&8) &c%display name of player%&8: &c%colored message%"
stop
if player has permission "chat.moderator":
cancel event
broadcast "&8(&2Lvl. %{poziomek.%player%}%&8) &2%display name of player%&8: &%colored message%"
stop
else:
cancel event
broadcast "&8(&2Lvl. %{level.%player%}%&8) &f%display name of player%&8: &a%colored message%"
stop
on death:
if attacker is a player:
if victim is a zombie:
add 30 to {expo.%attacker%}
if {wymagania.%player%} is 250:
if {level.%player%} is 1:
send "&8> &aAwansowales na 2 poziom!" to player
on death:
if victim is a zombie:
display name of zombie is "&fZombie &6(Poziom 1)":
if attacker is a player:
add 10 to {expo.%attacker%}
command /poziom:
aliases: /lvl, /exp, /dolvl, /level
trigger:
set {_next} to ({wymagania.%player%} - {expo.%player%})
set {_exp} to {expo.%player%}
send "&m&l(---)&r &m&l----------&r &m&l(---)" to player
send " &2Twoj Poziom: &a%{poziomek.%player%}%" to player
send " &2Do kolejnego poziomu zostalo ci &a%{_exp}%/%{_next}%" to player
send "&m&l(---)&r &m&l----------&r &m&l(---)" to player
Pytanie
TakiJakTy 140
Kod:
variables: {poziomek.%player%} = 1 {expo.%player%} = 0 {wymagania.%player%} = 250 on chat: if player has permission "chat.admin": cancel event broadcast "&8(&2Lvl. %{poziomek.%player%}%&8) &c%display name of player%&8: &c%colored message%" stop if player has permission "chat.moderator": cancel event broadcast "&8(&2Lvl. %{poziomek.%player%}%&8) &2%display name of player%&8: &%colored message%" stop else: cancel event broadcast "&8(&2Lvl. %{level.%player%}%&8) &f%display name of player%&8: &a%colored message%" stop on death: if attacker is a player: if victim is a zombie: add 30 to {expo.%attacker%} if {wymagania.%player%} is 250: if {level.%player%} is 1: send "&8> &aAwansowales na 2 poziom!" to player on death: if victim is a zombie: display name of zombie is "&fZombie &6(Poziom 1)": if attacker is a player: add 10 to {expo.%attacker%} command /poziom: aliases: /lvl, /exp, /dolvl, /level trigger: set {_next} to ({wymagania.%player%} - {expo.%player%}) set {_exp} to {expo.%player%} send "&m&l(---)&r &m&l----------&r &m&l(---)" to player send " &2Twoj Poziom: &a%{poziomek.%player%}%" to player send " &2Do kolejnego poziomu zostalo ci &a%{_exp}%/%{_next}%" to player send "&m&l(---)&r &m&l----------&r &m&l(---)" to playerBłedy: 0
Odnośnik do komentarza
https://skript.pl/temat/27260-pilne-dlaczego-nie-dodaje-exp/Udostępnij na innych stronach
32 odpowiedzi na to pytanie
Rekomendowane odpowiedzi