Jump to content

I need help with my skript


Ramina__

Recommended Posts

9 minutes ago, nolando09 said:

Im so sorry im very dumb but do i leave (player's prefix) in?

function convHex(t: text) :: text:
 set {_t2::*} to {_t} split at "&##"
 set {_t} to ""
 delete {_t2::1}
 loop {_t2::*}:
  set {_word} to loop-value
  set {_char} to first 6 characters of {_word}
  replace {_char} in {_word} with ""
  set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
 return {_t}

on join:
    clear player's scoreboard
    erase player's sidebar

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

every tick:
    loop all players:
        toggle loop-player's scoreboard to true
        set title of loop-player's scoreboard to "&4&lVelvetSurv"
        set line 11 of loop-player's scoreboard to "&b"
        set line 10 of loop-player's scoreboard to "&4&lRank&c:"
        set {_pref} to formatted convHex(loop-player's prefix)
        set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
        set line 8 of loop-player's scoreboard to "  &4&lPing&c: &c%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 "  &4&lTPS&c: &c%rounded 1st element of tps%"
        set line 3 of loop-player's scoreboard to "  &4&lOnline&c: &c%number of all players%&8/&c%max players%"
        set line 2 of loop-player's scoreboard to "&b"
        set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"

Just use this it should work

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

8 minutes ago, StarBunnie said:
function convHex(t: text) :: text:
 set {_t2::*} to {_t} split at "&##"
 set {_t} to ""
 delete {_t2::1}
 loop {_t2::*}:
  set {_word} to loop-value
  set {_char} to first 6 characters of {_word}
  replace {_char} in {_word} with ""
  set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
 return {_t}

on join:
    clear player's scoreboard
    erase player's sidebar

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

every tick:
    loop all players:
        toggle loop-player's scoreboard to true
        set title of loop-player's scoreboard to "&4&lVelvetSurv"
        set line 11 of loop-player's scoreboard to "&b"
        set line 10 of loop-player's scoreboard to "&4&lRank&c:"
        set {_pref} to formatted convHex(loop-player's prefix)
        set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
        set line 8 of loop-player's scoreboard to "  &4&lPing&c: &c%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 "  &4&lTPS&c: &c%rounded 1st element of tps%"
        set line 3 of loop-player's scoreboard to "  &4&lOnline&c: &c%number of all players%&8/&c%max players%"
        set line 2 of loop-player's scoreboard to "&b"
        set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"

Just use this it should work

Im so sorry and thanks

Link to comment
Share on other sites

2 minutes ago, nolando09 said:

IM sorry it works but now anything not a hex code wont worrrk xD just tell me if you don't want to idm, I don't wanna waste ur time!

What does it look like it works fine on my server

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

1 minute ago, nolando09 said:

with hex code

2021-07-30_18.28.32.png

Ah now I understand the issue lol

every tick:
    loop all players:
        toggle loop-player's scoreboard to true
        set title of loop-player's scoreboard to "&4&lVelvetSurv"
        set line 11 of loop-player's scoreboard to "&b"
        set line 10 of loop-player's scoreboard to "&4&lRank&c:"
        set {_pref} to loop-player's prefix
        if {_pref} contains "&##":
         set {_pref} to formatted convHex(loop-player's prefix)
        set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
        set line 8 of loop-player's scoreboard to "  &4&lPing&c: &c%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 "  &4&lTPS&c: &c%rounded 1st element of tps%"
        set line 3 of loop-player's scoreboard to "  &4&lOnline&c: &c%number of all players%&8/&c%max players%"
        set line 2 of loop-player's scoreboard to "&b"
        set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"

Give that a shot

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

1 hour ago, nolando09 said:

Ok i tried but now when i use hex codes 

 

2021-07-30_18_36_24.thumb.png.b38092d7e09733fd8ce0ba683fa7e344.png

Uh use this one instead of the other function

function convHex(t: text) :: text:
 if {_t} contains "&##":
  set {_t2::*} to {_t} split at "&##"
  set {_t} to ""
  delete {_t2::1}
  loop {_t2::*}:
   set {_word} to loop-value
   set {_char} to first 6 characters of {_word}
   replace {_char} in {_word} with ""
   set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
 return {_t}
every tick:
    loop all players:
        toggle loop-player's scoreboard to true
        set title of loop-player's scoreboard to "&4&lVelvetSurv"
        set line 11 of loop-player's scoreboard to "&b"
        set line 10 of loop-player's scoreboard to "&4&lRank&c:"
        set {_pref} to formatted convHex(loop-player's prefix)
        set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
        set line 8 of loop-player's scoreboard to "  &4&lPing&c: &c%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 "  &4&lTPS&c: &c%rounded 1st element of tps%"
        set line 3 of loop-player's scoreboard to "  &4&lOnline&c: &c%number of all players%&8/&c%max players%"
        set line 2 of loop-player's scoreboard to "&b"
        set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"

 

  • Thanks 1

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

16 minutes ago, StarBunnie said:

Uh use this one instead of the other function

function convHex(t: text) :: text:
 if {_t} contains "&##":
  set {_t2::*} to {_t} split at "&##"
  set {_t} to ""
  delete {_t2::1}
  loop {_t2::*}:
   set {_word} to loop-value
   set {_char} to first 6 characters of {_word}
   replace {_char} in {_word} with ""
   set {_t} to "%{_t}%<##%{_char}%>%{_word}%"
 return {_t}
every tick:
    loop all players:
        toggle loop-player's scoreboard to true
        set title of loop-player's scoreboard to "&4&lVelvetSurv"
        set line 11 of loop-player's scoreboard to "&b"
        set line 10 of loop-player's scoreboard to "&4&lRank&c:"
        set {_pref} to formatted convHex(loop-player's prefix)
        set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%"
        set line 8 of loop-player's scoreboard to "  &4&lPing&c: &c%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 "  &4&lTPS&c: &c%rounded 1st element of tps%"
        set line 3 of loop-player's scoreboard to "  &4&lOnline&c: &c%number of all players%&8/&c%max players%"
        set line 2 of loop-player's scoreboard to "&b"
        set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg"

 

Ok it woks thanks SO MUCH!!!!!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...