#baltop

1 messages · Page 1 of 1 (latest)

fossil sinew
fossil sinew
#

So in the document i showed you, it showes set {_ascending-indices::*} to sorted indices of {_leader-board::*} in ascending order you can change it to a descending order if you like. change the {_leader-board::*} the variable you want to get info from.
then you can loop {_ascending-indices::*}

frank ibex
#

u have to click on the list thing

#

he put above

fossil sinew
#

so you start off making a command

  • then you set {_ascending-indices::*} to sorted indices of {_leader-board::*} in ascending order
  • loop {_ascending-indices::*}
  • and send "loop-value" to player
fossil sinew
#

from your variable

#

{var::*}

#

you variable is already a list

#

:: is a list

#
command /baltop:
  trigger:
    set {_ascending-indices::*} to sorted indices of {currencyclicker1::*} in ascending order
    loop {_ascending-indices::*}:
      send "%loop-value%"
#

a example you can use

#

i said it was only a example, you have to figure out how to use the example for your own use

#

idrk what more to tell you when i basicly made the whole code :/

frank ibex
#

😦

fossil sinew
#

i dont know if you remember the 5 hour discussion we had about spoonfeeding. and the answer is a big big NO. i will not make the code for you

fossil sinew
#

and thats the problem with the people who are used to getting spoonfeed is that they dont know how to use example codes

frank ibex
#

MRL i made a support ticket instead

#

who

#

me

#

?

#

oh not me

#

I made a ticket

fossil sinew
frank ibex
#

kk

#

lol

#

bruh why always use skull

silk drum
#

🦨

#

wrong emoji]

fossil sinew
silk drum
#

bros representing the dinosaurs

fossil sinew
#

because you never learn

frank ibex
#

amazing j h

#

get a plugin

#

i have a plugin for baltop

fossil sinew
#

i also have dyslexia, and that does not mean you should have the world only be about you and that people can only help you by making the exact code you are trying to get help on.

frank ibex
#

essentails you can do /baltop

#

that

#

is a bunch of code

fossil sinew
#

yeah ik

#

well look again

frank ibex
#

fine

#

mrl

#

ima give him skript

fossil sinew
#

well what are you not understanding?

frank ibex
stable gulchBOT
frank ibex
#

its a skript

#

for clicker

#

download it

#

onto your skript

#

scripts

#

no

#

its like 100 line slong

#

just

#

download it

fossil sinew
frank ibex
#

BRUH

#

just srch it up like i just did

#

here

#
command /baltop:
    trigger:
        set {_sortedList::*} to sorted {bal::*}
        loop {bal::*}:
            add 1 to {_count}
            set {_indexes::%loop-value%} to loop-index
            if mod({_count}, 20) = 0:
                wait 1 tick
        set {_n} to 0
        loop {_sortedList::*}:
            add 1 to {_n}
            set {_current} to {_indexes::%loop-value%} parsed as offline player
            set {_msg::%{_n}%} to "&7%{_current}% &f- &6%loop-value% bal"
            {_n} = 10
            exit 1 loop
        message "&7&m      &7< &a&lTop Balances &7>&7&m      "
        loop {_msg::*}:
            set {_current} to loop-index parsed as int - 1
            set {_c} to size of {_msg::*} - {_current}
            add {_msg::%{_c}%} to {_invertedList::*}
        set {_n} to 0
        loop {_invertedList::*}:
            add 1 to {_n}
            message "&a##%{_n}% %loop-value%"
#

srched up

frank ibex
#

well

fossil sinew
frank ibex
#

at least its a skript

#

amazing

#

use that skript

#

if it

#

dosent work

#

then

#

idk

#

bcs i suck at skripting

#

just try it

#

who knows

fossil sinew
frank ibex
#

it will work or not

#

idk bored

#

just saying

fossil sinew
frank ibex
#

chill out

#

at leasts its a skript

#

well

#

ima go

fossil sinew
frank ibex
#

copy and paste skript if u like idc

#
command /baltop:
    trigger:
        set {_sortedList::*} to sorted {bal::*}
        loop {bal::*}:
            add 1 to {_count}
            set {_indexes::%loop-value%} to loop-index
            if mod({_count}, 20) = 0:
                wait 1 tick
        set {_n} to 0
        loop {_sortedList::*}:
            add 1 to {_n}
            set {_current} to {_indexes::%loop-value%} parsed as offline player
            set {_msg::%{_n}%} to "&7%{_current}% &f- &6%loop-value% bal"
            {_n} = 10
            exit 1 loop
        message "&7&m      &7< &a&lTop Balances &7>&7&m      "
        loop {_msg::*}:
            set {_current} to loop-index parsed as int - 1
            set {_c} to size of {_msg::*} - {_current}
            add {_msg::%{_c}%} to {_invertedList::*}
        set {_n} to 0
        loop {_invertedList::*}:
            add 1 to {_n}
            message "&a##%{_n}% %loop-value%"
``` last time
#

goodbye

fossil sinew
#

jesus christ

#

now you are sending the uuid of player for each line

#

so you can set a variable to the loop-value parsed as a player

#

so you can do in the loop
set {_player} to loop-value parsed as a player

#

then

#

send "%{_player}% %loop-value%" to player

#

show what you did

eager bronze
#

I can send you mine when I will come back home
It’s not using Essentials I think
I didn’t test it with ess yet

#

Oh
I can send you mine if you want also

#

I have a really good one

#

Like this one I got

ashen berry
#

you could try set {_player} to loop-value parsed as a offline player

#

that atleast got my uuids away

#

not saying that it should get yours too

#

also, you could try this send "%{_player}% %{currencyclicker1::%loop-value%}%" to player

eager bronze
#

that’s suppose {currencyclicker1::%uuid of player%} i think

ashen berry
#

like it shows 100k instead of 100000?

#

ah

#

for the 1-10 or whatever you would need to make a variable lets say {_n}. Now you need to set {_n} to an integer. Inside of your loop you need to add 1 to {_n}.
For the 1,000,000 you would need to have a function. There are plenty of those in #skript-chat . You just need to search in the search bar "in #skript-chat format function".
Also, in the end of your loop you need to make an if statement and in there you would need to check if {_n} is higher than the integer than you want it to be. For it to stop you need to add stop right under the condition and it also needs to be indented properly

Hope this helps

#

yeah

#

yeah. But if you want it to be like 1. player value then it should be send "%{_baltopn}%. %{_player}% %{currencyclicker1::%loop-value%}%"

ashen berry
#

niceee

#

happy to help

#

yeah

#

i mean

#

it will if you did it properly

#

that will loop every single player that has ever played and will not stop until it has gone through all players

#
if {variable} > 10:
  stop```
#

nice

#

how did you try to implement them to your skript?

#

lets do this again

#

how did you try to implement the function to your skript?

#

no

#

okay

#

so

#

let the function be as it is

#

in your baltop skript you just need to change a few things

#

so this is how you now have it send "&7%{_baltopn}%.&e %{_player}% &a%{currencyclicker1::%loop-value%}%" now instead of %{currencyclicker1::%loop-value%}% you would need to wrap the function around that. It would be looking a bit like this %functionname(variable)%. So your skript would be looking like this.
send "&7%{_baltopn}%.&e %{_player}% &a%functionname({currencyclicker1::%loop-value%})%" to player replace functionname with the correct name of the function.
The name of the function needs to be the same as the one you are going to use

#

i just said to you how it should be

#

what doesn't it understand?

#

yeah

#

as i said you need to replace it

#

oh

#

sorry

#

i did not read properly

#

the name of the function is Format

#

as seen there

#

commas can be a little bit trickier iirc. Imo 1M looks better than 1,000,000. But i don't know your opinions on this, yours might be completely different and you want it to be with commas. Sadly, i don't know how that will be possible.