Dzięki Wam! Zmieniłem wasze skrypty na coś takiego lecz nie wszystko działa(nawet przed zmianą przeze mnie!),(patrzcie na komentarze!):
variables:
{lvl::%player%} = 0
{exp::%player%} = 1
{exp50::%player%} = 50
on death:
if attacker is a player:
if victim is a zombie:
send "Zdobyles 5 exp'a za zabicie tego moba!"
add 5 to {exp::%attacker%}
if {exp::%attacker%} = {exp50::%attacker%}:
set {exp::%attacker%} to 0
add 1 to {lvl::%attacker%}
send "&7Awansowales na &6%{lvl::%player%}% poziom&7!"
#Tutaj nie działa awans!!!
command /poziom [<text>]:
trigger:
set {_next} to ({lvl::%player%} * 50) - {exp::%player%}
send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7czyli &6%{lvl::%player%}% poziom&7."
#Tutaj nie działa zamiana z lvl 1 na 2 i z resetem expa z 50 na 0!!!
on damage:
if attacker is a player:
if attacker's tool is wood sword named "Miecz Przeznaczenia":
if 2 is larger than level of attacker:
send "&8> &7Aby uzywac tego miecza potrzebujesz &62 lvl&7!"
if attacker's tool is stone sword:
if 3 is larger than level of attacker:
send "&8> &7Aby uzywac tego miecza potrzebujesz &63 lvl&7!"
if attacker's tool is iron sword:
if 4 is larger than level of attacker:
send "&8> &7Aby uzywac tego miecza potrzebujesz &64 lvl&7!"
if attacker's tool is gold sword:
if 5 is larger than level of attacker:
send "&8> &7Aby uzywac tego miecza potrzebujesz &65 lvl&7!"
if attacker's tool is diamond sword named "Miecz Przeznaczenia":
if 6 is larger than level of attacker:
send "&8> &7Aby uzywac tego miecza potrzebujesz &66 lvl&7!"
Potrzebuję 2 skryptów:
1.Skrypt na exp za zabicie potwora z tego expa lvl, a żeby później wbić np.3 lvl to potrzebne 50 expa więcej.
2.Skrypt na używanie miecza od posiadanego poziomu ze skryptu wyżej.