Mundosk Tablist

  • 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.

Oliv583c

Member
Jan 11, 2021
13
0
1
18
Hi. I just recently started to learn how to make a special kind of tablist:

2021-03-16_13-46-46-png.5845


Using Mundosk.

But. I wanted to color some of the "player heads" like this:

untitlied-png.5846


I have tried a variety of ways. My method was to change my skin into a solid color. Then save my own skin in a file or variable. Then later on I could use the variable/file to set the skin on. But it just can't see it as a skin. I have even tried spawning an npc, then putting a skin on it and looping it to set the npc's skin on the tab. But that doesn't work either. Here is my code (Note: This is in danish):
Code:
command /savecolor [<text>] [<text>]:
    permission: M-Ejer
    permission message: &4Du har ikke adgang til denne kommando.
    trigger:
        if arg-1 is not set:
            send "&c&lFARVE &c/SaveColor &7Add <Farve>"
            send "&c&lFARVE &c/SaveColor &7Fjern <Farve>"
            send "&c&lFARVE &c/SaveColor &7List"
        Else:
            if arg-1 is "List":
                if size of {SaveColors::*} is greater than 0:
                    send "&6&lOPRETTEDE FARVER:"
                    send ""
                    set {_N} to 0
                    loop {SaveColors::*}:
                        add 1 to {_N}
                        send "&a%{_N}%. &e%loop-value%"
                    send ""
                    send "&7Der er ialt &a%{_N}%&7 oprettede farver!"
                Else:
                    send "&c&lFARVE &cDer er ingen oprettede farver."
            Else:
                if arg-2 is set:
                    if arg-1 is "Add" or "Tilføj" or "Opret":
                        if {SaveColor.%arg-2%} is not set:
                            set {SaveColor.Skin.%arg-2%} to "%player's skin%"
                            add arg-2 to {SaveColors::*}
                            send "&c&lFARVE &7Du oprettede farven &a%arg-2%&7!"
                            set {SaveColor.%arg-2%} to arg-2
                        Else:
                            send "&c&lFARVE &cDenne farve er allerede oprettet!"
                    Else:
                        if arg-1 is "Remove" or "Fjern" or "Slet":
                            if {SaveColor.%arg-2%} is set:
                                send "&c&lFARVE &7Du fjernede farven &a%{SaveColor.%arg-2%}%&7!"
                                delete {SaveColor.%arg-2%}
                                delete {SaveColor.Skin.%arg-2%}
                                remove arg-2 from {SaveColors::*}
                            Else:
                                send "&c&lFARVE &cDenne farve er ikke oprettet!"
                        Else:
                            send "&c&lFARVE &cUkendt argument!"
                Else:
                    send "&c&lFARVE &c/SaveColor &7Add <Farve>"
                    send "&c&lFARVE &c/SaveColor &7Fjern <Farve>"
                    send "&c&lFARVE &c/SaveColor &7List"

And the code when I tried to load on the skin:
Code:
command /test:
    trigger:
        set icon of tab 4, 20 for players to {SaveColor.<Color>}
I know in the first line of code I set the variable to "%player's skin%". And it would have worked fine if I was able to use player's skin instead of "%player's skin%". But it doesn't seem to be able to save my actual skin in a file or global variable. What I mean by that is that if I use the variable {_Test} it works since it doesn't save into the variables file in the skripts folder. Does anyone know how to put the skin on? (Without actually having the skin)

Please note that I use spigot 1.8.8
(Addons: Skellett, SkQuery, SkrayFall, MundoSK & MorkazSK)

(This is a re-uploaded thread since no one replied to my last.)
(I'm kinda new to this forum stuff...)
 
I would need this tablist, when you send it to me, I look at it and try to change the color when you want to send it to me, so this is my dc: Neeko Neeko Nii#4422
 
Status
Not open for further replies.