Jump to content

Invislol

Member
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Invislol

  1. 8 minutes ago, Skray said:

    How to do on first join set it to 0?

    on first join:
    	set {deaths.%player's uuid%} to 0
    
    # I meant to put deaths but misspelled
    # So change the one above to deaths instead of deats

     

  2. There should be, Just to test try to /locate a villager!
    If that does not work go to spigot.yml and make sure they are enabled.
    Please also send a list of your plugins if the /locate doesn't work!

    (NOTE: If this fixes your problem please respond so I know its fixed and I don't have to check here again)

    1 hour ago, Tr1stoelle said:

    i cant find any villages in my minehut server are there villages 

     

     

  3. 59 minutes ago, Skray said:

    I chanced to this: But the deaths dosn't work

    on join:
        clear player's scoreboard

    on script load:
        loop all players:
            clear loop-player's scoreboard

    every tick:
        loop all players:
            toggle loop-player's scoreboard to true
            set title of loop-player's scoreboard to "SERVER NAME"
            set line 12 of loop-player's scoreboard to "Deaths: %player's deaths%"
            set line 11 of loop-player's scoreboard to "&b"
            set line 10 of loop-player's scoreboard to "&b&lYou"
            set line 9 of loop-player's scoreboard to "  &7Name: &f%loop-player's displayname%"
            set line 8 of loop-player's scoreboard to "  &7Ping: &f%loop-player's ping%ms"
            set line 6 of loop-player's scoreboard to "&b"
            set line 5 of loop-player's scoreboard to "&b&lInformations"
            set line 4 of loop-player's scoreboard to "  &7TPS: &f%rounded 1st element of tps%"
            set line 3 of loop-player's scoreboard to "  &7Online: &f%number of all players%&7/&f%max players%"
            set line 2 of loop-player's scoreboard to "&b"
            set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg"

    on death:
        add 1 to %player's deaths%


    Here

     

    on join:
        clear player's scoreboard
    
    on script load:
        loop all players:
            clear loop-player's scoreboard
    
    every tick:
        loop all players:
            toggle loop-player's scoreboard to true
            set title of loop-player's scoreboard to "SERVER NAME"
            set line 12 of loop-player's scoreboard to "Deaths: %{deats.%loop-player's uuid%}%"
            set line 11 of loop-player's scoreboard to "&b"
            set line 10 of loop-player's scoreboard to "&b&lYou"
            set line 9 of loop-player's scoreboard to "  &7Name: &f%loop-player's displayname%"
            set line 8 of loop-player's scoreboard to "  &7Ping: &f%loop-player's ping%ms"
            set line 6 of loop-player's scoreboard to "&b"
            set line 5 of loop-player's scoreboard to "&b&lInformations"
            set line 4 of loop-player's scoreboard to "  &7TPS: &f%rounded 1st element of tps%"
            set line 3 of loop-player's scoreboard to "  &7Online: &f%number of all players%&7/&f%max players%"
            set line 2 of loop-player's scoreboard to "&b"
            set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg"
    
    on death:
        add 1 to {deats.%player's uuid%}

     

  4. 55 minutes ago, mateiop4 said:

    Soo it is almost done, but i have one slight problem. It says that the "else" needs to be put after an if. I don't know how to fix that. Almost doneee...

    Captură de ecran din 2021-05-15 la 19.45.12.png


     

    #Fixed version of your skript
    
    on right click with prismarine shard:
        name of player's item is "Key 1"
        add player's uuid to {checkArea1::*}
    
    on region enter:
        if "%region at player%" contains "Area1":
            if {checkArea1::*} contains player's uuid:
                send "yes"
    
            else:
                cancel event
                send "no"


    There!
     

    Sorry working on my discord (In my sig) I sell skripts and give out a lot of free skripts (You can see some)

    • Like 1
  5. function updateBoard(p: player, prefix: player's prefix):
        set {_uuid} to {_p}'s uuid
        set line 4 of player's scoreboard to "&4Rank: &f %{_prefix}% "  
        set line 3 of {_p}'s scoreboard to "&4Name: &f%{_p}%" 
        set line 2 of {_p}'s scoreboard to "&6Kills: &f%{kills::%{_uuid}%} ? 0%"
        set line 1 of {_p}'s scoreboard to "&6Deaths: &f%{deaths::%{_uuid}%} ? 0%"
        
    on join:
        set title of player's scoreboard to "&3Skray"
        updateBoard(player, player's prefix)
        
    on death of player:
        add 1 to {deaths::%victim's uuid%}
        if attacker is a player:
            add 1 to {kills::%attacker's uuid%}
        updateBoard(victim)
        updateBoard(attacker)
    
    on disconnect:
        clear scoreboard of player

    Try that. Not tested so that may not work

  6. 3 minutes ago, mateiop4 said:

    No wait it is not! Because now it says no when i try to use mvtp or other stuff when i go in other regions! I want this to happen only in that region!

    #Fixed version of your skript
    
    on right click with prismarine shard:
        name of player's item is "Key 1"
        add player's uuid to {checkArea1::*}
    
    on region enter:
        if "%region at player%" contains "Area1":
        	if {checkArea1::*} contains player's uuid:
            	send "yes"
        
        	else:
            	cancel event
            	send "no"

     

  7. Just now, Skray said:

    How to use it in here, it dosn't work

        set line 4 of player's scoreboard to "&4Rank: &f %player's prefix% " 

    Use 

     

    set line 4 of player's scoreboard to "&4Rank: &f %loop-player's prefix% " 

     

  8. Just now, mateiop4 said:

    HEY i actually changed the contains into is and it works! But i cannot go in any region only if i have the uuid

     

    Oh lol you got it at the same time I remembered (I had to look throught my old skripts)

  9. 1 minute ago, mateiop4 said:

    THE CODE:

    on right click with prismarine shard:
        name of player's item is "Key 1"
        add player's uuid to {checkArea1::*}

    on region enter:
        if "%region at player%" contains "Area1":
        if {checkArea1::*} contains player's uuid:
            send "yes"
        
        else:
            cancel event
            send "no"

     

    THE ERROR:

     

     

    Captură de ecran din 2021-05-15 la 19.02.52.png

    Yeah I think you should try %region% That seams to be the issue!

  10. 12 minutes ago, mateiop4 said:

     

    Please send the skript reload error and send the full skript.

    EDIT: this may be to you not having the required skript addons

     

  11. On 5/4/2021 at 9:06 AM, Stan_erd said:

    I have the luck perms plugin and vault already, but I'm unsure how to change it so than unopped players can play.

    What plugin are you using so I can tell you the command to execute.

×
×
  • Create New...