Jump to content

Ramina__

Member
  • Posts

    222
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Ramina__

  1. 5 minutes ago, pizzaschut said:

    Use this

    command /kit [<text>]:
        cooldown: 30 seconds
        cooldown message "&4&lVelvetSurv>> &c&lWait %remainingtime% Before using this kit again"
        trigger:
            if player's world is "ul_void_world_1":
                if arg 1 is "starter":
                    message "&7&lStarter &7kit selected!"
                    give 1 stone sword of unbreaking 3, sharpness 1 named "&7&lStarter Sword" to player
                    give 16 steak to player
                    give 3 golden apple to player
                    give 1 enchanted golden apple to player
                    equip player with chainmail Helmet of unbreaking 3, protection 1 named "&7&lStarter Helmet"
                    equip player with chainmail ChestPlate of unbreaking 3, protection 1 named "&7&lStarter ChestPlate"
                    equip player with chainmail Leggings of unbreaking 3, protection 1 named "&7&lStarter Leggings"
                    equip player with chainmail Boots of unbreaking 3, protection 1 named "&7&lStarter boots"   
                if arg 1 is "pro":
                    message "&b&lPro &7kit selected!"
                    give 1 iron sword of unbreaking 3, sharpness 2 named "&b&lPro Sword" to player
                    give 36 steak to player
                    give 6 golden apple to player
                    give 2 enchanted golden apple to player
                    equip player with leather Helmet of unbreaking 3, protection 1 named "&b&lPro Helmet"
                    equip player with diamond ChestPlate of unbreaking 3 named "&b&lPro ChestPlate"
                    equip player with iron Leggings of unbreaking 3, protection 1 named "&b&lPro Leggings"
                    equip player with leather Boots of unbreaking 3, protection 1 named "&b&lPro boots"
            else:
                send "&4&lVelvetSurv>> &c&lYou are not in KitPvP"
                stop

     

    Thanks!

     

  2. Ok im confused i cant get the cooldown to work

     

    command /kit [<text>]:
        cooldown: 30 seconds
        set {_remainingtime} to cooldown
        cooldown message "&4&lVelvetSurv>> &c&lWait {_remainingtime} Before using this kit again"
        trigger:
            if player's world is "ul_void_world_1":
                if arg 1 is "starter":
                    message "&7&lStarter &7kit selected!"
                    give 1 stone sword of unbreaking 3, sharpness 1 named "&7&lStarter Sword" to player
                    give 16 steak to player
                    give 3 golden apple to player
                    give 1 enchanted golden apple to player
                    equip player with chainmail Helmet of unbreaking 3, protection 1 named "&7&lStarter Helmet"
                    equip player with chainmail ChestPlate of unbreaking 3, protection 1 named "&7&lStarter ChestPlate"
                    equip player with chainmail Leggings of unbreaking 3, protection 1 named "&7&lStarter Leggings"
                    equip player with chainmail Boots of unbreaking 3, protection 1 named "&7&lStarter boots"   
                if arg 1 is "pro":
                    message "&b&lPro &7kit selected!"
                    give 1 iron sword of unbreaking 3, sharpness 2 named "&b&lPro Sword" to player
                    give 36 steak to player
                    give 6 golden apple to player
                    give 2 enchanted golden apple to player
                    equip player with leather Helmet of unbreaking 3, protection 1 named "&b&lPro Helmet"
                    equip player with diamond ChestPlate of unbreaking 3 named "&b&lPro ChestPlate"
                    equip player with iron Leggings of unbreaking 3, protection 1 named "&b&lPro Leggings"
                    equip player with leather Boots of unbreaking 3, protection 1 named "&b&lPro boots"
            else:
                send "&4&lVelvetSurv>> &c&lYou are not in KitPvP"
                stop

  3. 7 hours ago, Boxmonkey said:

    it is because you put it after the else so it did not think of it as part of the command so you just need to move the else to the end of the command

     

    command /kit [<text>]:
        trigger:
            if player's world is "ul_void_world_1":
                if arg 1 is "starter":
                    message "&7&lStarter &7kit selected!"
                    give 1 stone sword of unbreaking 3, sharpness 1 named "&7&lStarter Sword" to player
                    give 16 steak to player
                    give 3 golden apple to player
                    give 1 enchanted golden apple to player
                    equip player with chainmail Helmet of unbreaking 3, protection 1 named "&7&lStarter Helmet"
                    equip player with chainmail ChestPlate of unbreaking 3, protection 1 named "&7&lStarter ChestPlate"
                    equip player with chainmail Leggings of unbreaking 3, protection 1 named "&7&lStarter Leggings"
                    equip player with chainmail Boots of unbreaking 3, protection 1 named "&7&lStarter boots"   
                if arg 1 is "pro":
                    message "&b&lPro &7kit selected!"
                    give 1 iron sword of unbreaking 3, sharpness 2 named "&b&lPro Sword" to player
                    give 36 steak to player
                    give 6 golden apple to player
                    give 2 enchanted golden apple to player
                    equip player with leather Helmet of unbreaking 3, protection 1 named "&b&lPro Helmet"
                    equip player with diamond ChestPlate of unbreaking 3 named "&b&lPro ChestPlate"
                    equip player with iron Leggings of unbreaking 3, protection 1 named "&b&lPro Leggings"
                    equip player with leather Boots of unbreaking 3, protection 1 named "&b&lPro boots"
            else:
                send "&4&lVelvetSurv>> &c&lYou are not in KitPvP"
                stop

     

    xD im so sorry tysm! Have a good day 😄

  4. I just as soon as i added the world accessibility its broke and i cant fix it...

    command /kit [<text>]:
        trigger:
            if player's world is "ul_void_world_1":
                if arg 1 is "starter":
                    message "&7&lStarter &7kit selected!"
                    give 1 stone sword of unbreaking 3, sharpness 1 named "&7&lStarter Sword" to player
                    give 16 steak to player
                    give 3 golden apple to player
                    give 1 enchanted golden apple to player
                    equip player with chainmail Helmet of unbreaking 3, protection 1 named "&7&lStarter Helmet"
                    equip player with chainmail ChestPlate of unbreaking 3, protection 1 named "&7&lStarter ChestPlate"
                    equip player with chainmail Leggings of unbreaking 3, protection 1 named "&7&lStarter Leggings"
                    equip player with chainmail Boots of unbreaking 3, protection 1 named "&7&lStarter 
    boots"
            else:
              send "&4&lVelvetSurv>> &c&lYou are not in KitPvP"
              stop
               
              
               
              if player's world is "ul_void_world_1":
                if arg 1 is "pro":
                    message "&b&lPro &7kit selected!"
                    give 1 iron sword of unbreaking 3, sharpness 2 named "&b&lPro Sword" to player
                    give 36 steak to player
                    give 6 golden apple to player
                    give 2 enchanted golden apple to player
                    equip player with leather Helmet of unbreaking 3, protection 1 named "&b&lPro Helmet"
                    equip player with diamond ChestPlate of unbreaking 3 named "&b&lPro ChestPlate"
                    equip player with iron Leggings of unbreaking 3, protection 1 named "&b&lPro Leggings"
                    equip player with leather Boots of unbreaking 3, protection 1 named "&b&lPro boots"

  5. Just now, emopediaMC said:

    Please move to Skript Discussion as this is for Skript Releases only...

    Ive used it before for skript help and everyone has been supportive of it... Sorry to upset you i will swap to skript discussion!

  6. I just as soon as i added the world accessibility its broke and i cant fix it...

    command /kit [<text>]:
        trigger:
            if player's world is "ul_void_world_1":
                if arg 1 is "starter":
                    message "&7&lStarter &7kit selected!"
                    give 1 stone sword of unbreaking 3, sharpness 1 named "&7&lStarter Sword" to player
                    give 16 steak to player
                    give 3 golden apple to player
                    give 1 enchanted golden apple to player
                    equip player with chainmail Helmet of unbreaking 3, protection 1 named "&7&lStarter Helmet"
                    equip player with chainmail ChestPlate of unbreaking 3, protection 1 named "&7&lStarter ChestPlate"
                    equip player with chainmail Leggings of unbreaking 3, protection 1 named "&7&lStarter Leggings"
                    equip player with chainmail Boots of unbreaking 3, protection 1 named "&7&lStarter 
    boots"
            else:
              send "&4&lVelvetSurv>> &c&lYou are not in KitPvP"
              stop
               
              
               
              if player's world is "ul_void_world_1":
                if arg 1 is "pro":
                    message "&b&lPro &7kit selected!"
                    give 1 iron sword of unbreaking 3, sharpness 2 named "&b&lPro Sword" to player
                    give 36 steak to player
                    give 6 golden apple to player
                    give 2 enchanted golden apple to player
                    equip player with leather Helmet of unbreaking 3, protection 1 named "&b&lPro Helmet"
                    equip player with diamond ChestPlate of unbreaking 3 named "&b&lPro ChestPlate"
                    equip player with iron Leggings of unbreaking 3, protection 1 named "&b&lPro Leggings"
                    equip player with leather Boots of unbreaking 3, protection 1 named "&b&lPro boots"

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

  9. Like this xD??

     

    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}
     
     set {_pref} to formatted convHex(player's prefix)

    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 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"

  10. 1 minute ago, StarBunnie said:

    You can't just add the function into the scoreboard code xD Let it stand alone there are no indent errors the only line you need to use in your scoreboard itself is 

    set {_pref} to formatted convHex(loop-player's prefix)

    A function stands alone so just copy it above you're scoreboard skript

    xD so sorry 

  11. And here is what i did

     

    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:"
            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}
     
            set {_pref} to formatted convHex(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"

  12. 1 minute ago, StarBunnie said:

    Alright slapped something together

    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}
     
     set {_pref} to formatted convHex(player's prefix)

     

    Ok thanks ill try it

     

  13. Just now, StarBunnie said:

    hmm I have an idea we already set {_pref} to player's prefix so maybe we can try something like the following

    set {_pref} to player's prefix
    replace "&" in {_pref} with "##"
    set {_pref} to formatted {_pref}

     

    Ok ill try hold on

     

×
×
  • Create New...