Voilà :D Aucun addons nécessaire. Juste le skript Json.sk.
[spoiler=Code]
options:
chat.format.kill.1: &6&m----------&a&o Classement balance %{_entre}%&a&o-%{_et}% &6&m----------
chat.format.kill.2: &6» &7##&b%loop-index% &c%loop-value%&7: &3%{navaria_money::%loop-value%}%$
command /balancetop [<number=1>] [<number=10>]:
trigger:
send "&7Recherche en cours..."
BalanceTop(player, arg 1, arg 2)
function BalanceTop(p: player, entre: number, et: number):
loop {navaria_money::*}:
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
send "{@chat.format.kill.1}" to {_p}
if {_entre} = 1:
if {_et} = 10:
loop {_high.to.low.list::*}:
loop-value is {_p}
set {_o.%loop-value%} to loop-index parsed as number
wait 2 ticks
if {_o.%loop-value%} = 1:
send "&3Vous êtes &e%{_o.%loop-value%}% &3er" to {_p}
send " " to {_p}
stop loop
else:
send "&3Vous êtes &e%{_o.%loop-value%}% &3ième" to {_p}
send " " to {_p}
stop loop
loop {_high.to.low.list::*}:
add 1 to {_result}
if {_result} >= {_entre}:
if {_result} <= {_et}:
send "{@chat.format.kill.2}" to {_p}
clear {_high.to.low.list::*} and {_result} and {_size} and {_n} and {_low.to.high.list::*}
set {_Bal} to {_entre}+10
set {_Bal2} to {_et}+10
loop {navaria_money::*}:
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
loop {_high.to.low.list::*}:
add 1 to {_result}
if {_result} >= {_Bal}:
if {_result} <= {_Bal2}:
set {_True?} to true
stop loop
if {_True?} is true:
json("%{_p}%", "&cClique ici pour voir la page suivante.||cmd:/BalanceTop %{_Bal}% %{_Bal2}%")