Skin change random

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

CasDOorn

New Member
Mar 30, 2020
9
0
0
24
Hi, i have a question i want to make an script in which with a command you can change someone's skin to a random skin, but i have seen how to change an skin but not how to randomly change it i thought of an document with skin names or an site that i can use but i don't know where to start if u have time i would like if you could help me
 
I have a little look and there seems to be no open api that allows u to get a random uuid.

So things u can do:

Add uuid's manualy to a list
Generate random uuid's and check if these are valid trough web (not recommended bc of alot of requests)
Add uuid's to a list from people who joined
fetch it from html result of sites like namemc.

So what would u like to do?
 
I have a little look and there seems to be no open api that allows u to get a random uuid.

So things u can do:

Add uuid's manualy to a list
Generate random uuid's and check if these are valid trough web (not recommended bc of alot of requests)
Add uuid's to a list from people who joined
fetch it from html result of sites like namemc.

So what would u like to do?
i think the first or the fourth what do you have to do with the fourth?
 
First place some rails with a minecart and powered rails in a circle.
make the minecart drive around.

Now test these commands see what they output. the first is send to console due to alot of lines.

mean while look at the minecart tell me the results + look if the minecart freezes.

Code:
command /htmltestskquery:
    trigger:
        $ thread
        set {_response} to text from url "https://namemc.com/minecraft-skins/random"
        send {_response} to console
        
command /htmltestskutilities:
    trigger:
        set {_response::*} to url "https://namemc.com/minecraft-skins/random"'s contents
        set {_i} to line count of url "https://namemc.com/minecraft-skins/random"
        send "%{_i}%"
 
First place some rails with a minecart and powered rails in a circle.
make the minecart drive around.

Now test these commands see what they output. the first is send to console due to alot of lines.

mean while look at the minecart tell me the results + look if the minecart freezes.

Code:
command /htmltestskquery:
    trigger:
        $ thread
        set {_response} to text from url "https://namemc.com/minecraft-skins/random"
        send {_response} to console
       
command /htmltestskutilities:
    trigger:
        set {_response::*} to url "https://namemc.com/minecraft-skins/random"'s contents
        set {_i} to line count of url "https://namemc.com/minecraft-skins/random"
        send "%{_i}%"
thx i will test it out
[doublepost=1588848470,1588845597][/doublepost]
First place some rails with a minecart and powered rails in a circle.
make the minecart drive around.

Now test these commands see what they output. the first is send to console due to alot of lines.

mean while look at the minecart tell me the results + look if the minecart freezes.

Code:
command /htmltestskquery:
    trigger:
        $ thread
        set {_response} to text from url "https://namemc.com/minecraft-skins/random"
        send {_response} to console
       
command /htmltestskutilities:
    trigger:
        set {_response::*} to url "https://namemc.com/minecraft-skins/random"'s contents
        set {_i} to line count of url "https://namemc.com/minecraft-skins/random"
        send "%{_i}%"
Skquery didn't give any output
and skutilities
Code:
[12:46:45 ERROR]: [skUtilities] v0.9.2: Error Reading from: 'https://namemc.com/minecraft-skins/random' Is the site down? (ExprUrlContents.class)
[12:46:45 ERROR]: [skUtilities] v0.9.2: Error Reading from: 'https://namemc.com/minecraft-skins/random' Is the site down? (ExprUrlLines.class)
 
Status
Not open for further replies.