#Format .

1 messages · Page 1 of 1 (latest)

tawny jackal
#
on join:
    set title of player's fastboard to " &8| &c&lS-Beta"
    set line 1 of player's fastboard to "&c"
    set line 2 of player's fastboard to "&d&lPlayer"
    set line 13 of player's fastboard to ""
    while player is online:
        set {_multi} to {multi::%player's uuid%}
        if {_multi} is not set:
            set {_multi} to 1
        set line 3 of player's fastboard to "  &dBalance &8| &a%formatNumber1(player's balance)%"
        set line 4 of player's fastboard to "  &dTokens &8| &a%formatNumber1{token::%player's uuid%}%"        
        set line 5 of player's fastboard to "  &dMulti &8| &a%{_multi} ? 0%x"        
        set line 6 of player's fastboard to "&5"
        wait 1 second

function formatNumber1(n: number) :: string:
    set {_l::*} to split "k|M|B|T|Qn|Qi|Sx" at "|"
    set {_i} to min(floor(log({_n})/3), size of {_l::*})
    return "%{_n}%" if {_i} <= 0
    set {_i2} to 1000^{_i}
    return "%{_n}/{_i2}%%{_l::%{_i}%}%"
#

doesn't work on set line 4 of player's fastboard to " &dTokens &8| &a%formatNumber1{token::%player's uuid%}%"

cosmic helm
#

function({_variable})

tawny jackal
#

so function%{_token::%player's uuid%}%" ?

barren island
#

no

#

you need to pass it in inside the ()

#

add(a:number, b:number) would be used like add(3,5)

#

or, set {_x} to 3, set {_y} to 5 and then add({_x}, {_y})

tawny jackal
#

&a%formatNumber1({token::%player's uuid%})%"

#

Got it, thank yall for the help!

exotic etherBOT
#

You successfully increased @barren island's reputation. They now have 4 skoints!

tawny jackal
#

Not sure on how to close this window