Kod:
variables:
{seviye::%player%} = 0
{öldürme::%player%} = 0
{kırma::%player%} = 0
{mobkesme::%player%} = 0
on death:
if victim is skeleton or zombie or creeper or spider:
if {mobkesme::%player%} is 20:
send "&720 Mob öldürdüğün için Seviye atladın! &a%{seviye::%player%}%"
else:
add 1 to {mobkesme::%player%}
else:
victim is a player
attacker is a player
add 1 to {öldürme::%attacker%}
execute attacker command "seviyeatla"
command /seviyeatla:
trigger:
if {öldürme::%player%} is bigger than 10:
add 1 to {seviye::%player%}
send "&7Seviye atladın! Yeni seviyen: &a%{seviye::%player%}%"
on chat:
cancel event
send "&7[&eSvy %{seviye::%player%}%&7] &f%player% &8» &7%message%" to all players
on break:
if {kırma::%player%} is 500:
add 1 to {seviye::%player%}
send "&7Seviye atladın! Yeni seviyen: &a%{seviye::%player%}%"
else:
add 1 to {kırma::%player%}
command /sıralama:
trigger:
loop {seviye::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
open virtual chest with size 4 named " &7&m ----- &a TOP 26 SEVIYE &7&m ----- " to player
make gui slot 32 of player with fire charge named "&aYenile" with lore "&7Sayfayı &eyenilemek &7için tıklayın" to close then run player command "sıralama"
make gui slot 30 of player with book named "&aSenin Seviyen" with lore "&7Seviye &e%{seviye::%player%}%" to nothing
loop {_high.to.low.list::*}:
add 1 to {_result}
make gui slot ({_result}-1) of player with skull of ("%loop-value%" parsed as offline player) named "&f%{_result}% &e%loop-value% &a%{seviye::%loop-value%}% TL" to nothing
if {_result} is 26:
stop