BalanceTop in signs

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

KroterPvP

Active Member
Apr 10, 2017
178
7
18
22
code_language.skript:
...
            if line 2 of event-block is "baltop":
                if line 3 of event-block is "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
                    set {_topnumber} to line 3 of event-block
                    set {sign::*} to event-block
                    send "&7You have created a &abalance top &7sign."
                    stop
                else if line 3 of event-block is not "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
                    cancel event
                    send "&7You need to specify a top number between &a1 &7and &a10&7."
                    stop
        else if player doesn't have permission "seco.signs" or "seco.admin":
            send "&cYou don't have permission to do this!"
every 4 seconds:
    loop {seco.bal::*}:
        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
            if {_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
    set {_total.balances} to 0
    loop {_high.to.low.list::*}:
        add 1 to {_topnumber}
        set {_b} to block at {sign::%{_topnumber}%}
        set {_player} to "%loop-value%" parsed as offlineplayer
        set line 1 of {_b} to "&0##%{_topnumber}%"
        set line 2 of {_b} to "&a%{_player}%"
        set line 3 of {_b} to "&0%{seco.bal::%{_player}%}%&0&l€"
        set line 4 of {_b} to ""
        set block above {_b} to {_player}'s skull
        if {_topnumber} = 10:
            stop
I need help with this:
1. The player skull doesn't apear.
2. The top signs only gets displayed on blank signs. I want to display the top that I write on the third line of the sign, (It always/only displays the top 2)
Thanks
 
code_language.skript:
...
            if line 2 of event-block is "baltop":
                if line 3 of event-block is "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
                    set {_topnumber} to line 3 of event-block
                    set {sign::*} to event-block
                    send "&7You have created a &abalance top &7sign."
                    stop
                else if line 3 of event-block is not "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
                    cancel event
                    send "&7You need to specify a top number between &a1 &7and &a10&7."
                    stop
        else if player doesn't have permission "seco.signs" or "seco.admin":
            send "&cYou don't have permission to do this!"
every 4 seconds:
    loop {seco.bal::*}:
        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
            if {_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
    set {_total.balances} to 0
    loop {_high.to.low.list::*}:
        add 1 to {_topnumber}
        set {_b} to block at {sign::%{_topnumber}%}
        set {_player} to "%loop-value%" parsed as offlineplayer
        set line 1 of {_b} to "&0##%{_topnumber}%"
        set line 2 of {_b} to "&a%{_player}%"
        set line 3 of {_b} to "&0%{seco.bal::%{_player}%}%&0&l€"
        set line 4 of {_b} to ""
        set block above {_b} to {_player}'s skull
        if {_topnumber} = 10:
            stop
I need help with this:
1. The player skull doesn't apear.
2. The top signs only gets displayed on blank signs. I want to display the top that I write on the third line of the sign, (It always/only displays the top 2)
Thanks
Why make another thead?
Original Thread - https://forums.skunity.com/threads/balancetop-displayed-with-signs.3812/
 
Status
Not open for further replies.