Jump to content

StarBunnie

Member
  • Posts

    438
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by StarBunnie

  1. 15 hours ago, TheSckwadbros999 said:

    all I have is 

    if {xp::%player's uuid%} is 500:
        remove 500 from {xp::%player's uuid%}
        add 1 to {levels::%player's uuid%}

     

    I've tried >= doesnt work I wonder if its not running

     

    Error message:

    Can't understand this event: if {xp::%player's uuid%} is 500

    That is not how skript works. A skript needs an event to trigger the following code.

    For example an event is stuff like:

    on break:
    
    on place:
    
    command /test:
     trigger:

    These are events that tell skript one the code below is supposed to run. So in order to use the if you have there you need a trigger since you already have an on break: event because you add xp when breaking an ore just add it to that.

  2. 2 hours ago, DaanSkuhh070 said:

    Hey, for a while now, I have been wanting to set up a parcour in my server with a timer system so that everyone who does the parcour can record their time and see who is the fastest. Is there a possibility that this can be made with a script? Answering would be great 🙂

    It's actually quite easy to make just save the "start"-pressure plate and the "end"-pressure plate as a location and when the player steps on the "start"-pressure plate set a player specific variable to now and upon stepping on the "end"-pressure plate set a variable to the difference between the previously set variable and now.

  3. 1 minute ago, Razaire said:

    oh crap i didnt read right it said 4 weeks but now its 3 weeks ok but this should be in Skript Discussions

    It should not it's a "Request Skripts" post so every skript posted here is done and released

  4. 1 hour ago, Adamwh1 said:

    I was on one of my servers, and went to the "ad rewards" villager to trade. Imagine my shock when i saw that i couldn't trade! It seems that Minehut isnt allowing ad rewards anymore, but i dont know why. Can someone help?

    It was against the rules from the start minehut doesn't like adrewards for several reasons. It's new tho that they are acting on it but that sounds more like a server-side bug tbh

  5. 22 hours ago, TheCubPlaysWasTake said:

    Hello! So basicly I've some list variables which store some values and they work but the problem is that when I restart my server they fail to load. I checked the logs for this and the error that I get is this:
    "
    [16:43:37] [Server thread/ERROR]: #!#! Unable to load (all) variables:
    [16:43:37] [Server thread/ERROR]: #!#! 645 variables could not be loaded!
    [16:43:37] [Server thread/ERROR]: #!#! Affected variables: (then it displays the variables in the list variables)"

    So then when I check the values that are stored in these list variables, there are no values stored in them.
    Anyone know what's wrong?

    Are you storing locations by any chance?

  6. 18 minutes ago, Pocan said:

    [IMG]

     

    Merchant puts your items for sale you can arrange these items for sale as you wish through your own store.

    This skript is like a special shop like a only items determined by server administrators can be purchase and also stocks of items available these stocks make by server players

    Dependencies:

     Skript
     Skript-reflect
     Skript-yaml
     TuSKe

    Install:

     
    Put 'Skript.jar', 'Skript-reflect.jar', 'Skript-yaml.jar' and 'TuSKe.jar', to "plugins/"
    ■ Reload server.
    ■ Put 'merchant.sk file ' into "plugins/Skript/scripts"
    ■ Now execute command '/sk reload merchant.sk'
    ■ Basic installation complete. (The others are easily adjusted through the yaml file.)

     

    [IMG]

     

     Special purchase guis.
     Register unlimited items and create categories to Merchant.
     Easy item register.
     Easy item add.
     Easy stockadd.
     Easy setup.
     Custom stores
     Fast and optimized.
     Yaml support

     

    MERCHANT API

    PurchaseAPI

    Code (Text):
    function MerchantAPIPurchase(total : number, amount : number, d : object, item : item, uuid : text, p : player):
    # If you know SkriptLang you can use this API 😉
    # {_total} -> Total price of purchase
    # {_amount} -> The amount of item the player wants to buy
    # {_d} -> The item of player wants to buy not parsed
    # {_item} -> The item of player wants to buy with parsed
    # {_uuid} -> Uuid of seller.
    # {_p} -> Event-player
    #broadcast "&e%{_p}% &7, is purchased &c{_amount} &7of &c{_item} &7for &c${_total} &7from merchant."

    ItemAddAPI
     

    Code (Text):
    function MerchantAPIItemAdd(price : integer, amount : number, item : item, p : player):
    # If you know SkriptLang you can use this API 😉
    # {_price} -> Price of item
    # {_amount} -> The amount of item
    # {_item} -> The item
    # {_p} -> Event-player
    #set {_counter} to {_price} * {_amount}
    #broadcast "&e%{_p}% &7, is put &c{_amount} &7of &c{_item} &7to merchant for &c${_counter}"

     

    [IMG]


    [IMG]

    [IMG]

    [IMG]

    [IMG]

    [IMG]

    [IMG]

    [IMG]

    [IMG]

    [IMG]

     

    • /merchant add <1/Per Price> <all>
    • /merchant stockadd <all>
    • /merchant admin create category <Category-ID> <Category-Name-Colored>"
    • /merchant admin create shop <Category-ID> <Category-Page> <Shop-Name> <Shop-Name-Colored>

    Permissions

    merchant.* -> All permissions.
    merchant.usage -> You need this perm for usage /merchant admin.
    merchant.create.shop -> Create shop.
    merchant.create.category -> Create category.
    merchant.reload -> Reload files.
    merchant.help -> For execute command /merchant help

     

     

    CLICK HERE TO DOWNLOAD MERCHANT (SPIGOT)

    Doesn't seem like skript-yaml is on Minehut just a heads up not sure how much that breaks.

    • Thanks 1
    • Haha 1
  7. 7 hours ago, Darth1013 said:

    hi! i have put my credits to the wrong server and havnt been able to acsess it nore able to get my credits back. not even another person could acsess this server (TeamFMiner) i mistook it for my server i am working on (TeamFPVP) so can i get the credits back? cause i spent £6 on this product, hope to get a responce. cya!

    Thanks,
    Darth84/TeamF (mc ign)

    I think you should contact support for this one. Here's a link: https://minehut.com/support/form

    Good luck!

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

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

  11. 1 minute ago, nolando09 said:

    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"

    image.png.38a405789f9a5b4a330b2488ae38dfc9.png

    That line was just an example on how to use it you can leave that out just write it below into your actual scoreboard skript but remember to use loop-player

  12. 14 minutes ago, nolando09 said:

    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"

    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

  13. 32 minutes ago, nolando09 said:

    Ok i tried it got me to here BUT the hex codes arent surrounded by <>

     

    2021-07-30_16_47_12.thumb.png.e9e10884bfbba270943777f7058e3efd.png

    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)

     

  14. Just now, nolando09 said:

    But if i use <##123456> it doesnt work in luckperms

     

    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}

     

  15. 9 hours ago, Slinky5654 said:

    I have been try to breed villagers for a while but I can't get them to breed is the a setting I need to fix or is it a bug?

    I think for them to breed mobGriefing needs to be on.

  16. 2 hours ago, nolando09 said:

    so i got this far but hex codes still dont work 

     

    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: &f%loop-player's prefix%"
            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"

    Sorry bout the wait issue my bad. To use hex codes that are in like the prefix you might need to format it

    %formatted player's prefix%
    
    set {_pref} to formatted player's prefix

    give one of those a shot

×
×
  • Create New...