options: indexPrefix: &8 namePrefix: . &5 nameSuffix: &7: &d function createTop(t: string, i: number) :: strings: set {_offlinePlayers::*} to all offline players set {_index} to 1 loop {_offlinePlayers::*}: if {%{_t}%::%loop-value%} is set: if {%{_t}%::%loop-value%} is a number: set {_top::%{_index}%} to {%{_t}%::%loop-value%} set {_players::%{_index}%} to "%loop-value%" add 1 to {_index} if {_i} > (size of {_players::*}): set {_i} to (size of {_players::*}) loop {_i} times: loop {_top::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index add "{@indexPrefix}%loop-number%{@namePrefix}%{_players::%{_index}%}%{@nameSuffix}%{_max}%" to {_return::*} delete {_players::%{_index}%}, {_top::%{_index}%}, {_max} and {_index} return {_return::*}