1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/prestige command help

Discussion in 'Skript' started by CurvedMonster54, Sep 28, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. CurvedMonster54

    Joined:
    Nov 14, 2020
    Messages:
    2
    Likes Received:
    0
    1. Script Version: 2.5.3
    2. Script Author: Bensku
    3. Minecraft Version: 1.16.4
    4. Full Code:

    5. Code (Text):
      1. command /prestige:
      2.     trigger:
      3.         set {prestige::%player's uuid%} to {_prestige}
      4.         if {_prestige} >= 10:
      5.             if {_prestige} < 50:
      6.                 send "hi"
      7.                 set {rewardgens::%player's uuid%} to 12
      8.                 set {rewardtokens::%player's uuid%} to 5750
      9.                 set {rewardhoppers::%player's uuid%} to 25
      10.                 set {rewardmulti::%player's uuid%} to .75
      11.         else if {_prestige} < 10:
      12.             send "hi"
      13.             set {rewardgens::%player's uuid%} to 4
      14.             set {rewardtokens::%player's uuid%} to 1250
      15.             set {rewardhoppers::%player's uuid%} to 5
      16.             set {rewardmulti::%player's uuid%} to .15
      17.         set metadata tag "prestige" of player to chest inventory with 3 row named "&9&lPRESTIGE &7(&9%{prestige::%player's uuid%}%&7)"
      18.         open (metadata tag "prestige" of player) to player
      19.         set slot 0 of metadata tag "prestige" of player to light gray stained glass pane named " "
      20.         set slot 1 of metadata tag "prestige" of player to light gray stained glass pane named " "
      21.         set slot 2 of metadata tag "prestige" of player to light gray stained glass pane named " "
      22.         set slot 3 of metadata tag "prestige" of player to light gray stained glass pane named " "
      23.         set slot 4 of metadata tag "prestige" of player to light gray stained glass pane named " "
      24.         set slot 5 of metadata tag "prestige" of player to light gray stained glass pane named " "
      25.         set slot 6 of metadata tag "prestige" of player to light gray stained glass pane named " "
      26.         set slot 7 of metadata tag "prestige" of player to light gray stained glass pane named " "
      27.         set slot 8 of metadata tag "prestige" of player to light gray stained glass pane named " "
      28.         set slot 9 of metadata tag "prestige" of player to light gray stained glass pane named " "
      29.         set slot 10 of metadata tag "prestige" of player to light gray stained glass pane named " "
      30.         set slot 11 of metadata tag "prestige" of player to light gray stained glass pane named " "
      31.         set slot 12 of metadata tag "prestige" of player to light gray stained glass pane named " "
      32.         set slot 13 of metadata tag "prestige" of player to beacon named "&9&lPRESTIGE &8|" with lore "&8| &7Level 100 needed to prestige" and " " and "&8| &9&lREWARDS" and " " and "&8| &7Gen Cap &8>> &9%{rewardgens::%player's uuid%}%" and "&8| &7Tokens &8>> &9%{rewardtokens::%player's uuid%}%" and "&8| &7Hopper Cap &8>> &9%{rewardhoppers::%player's uuid%}%" and "&8| &7Multiplier &8>> &9%{rewardmulti::%player's uuid%}%

    6. the way the prestige variable is being set is by a skripted command that either set specified person(s) prestige or performers prestige to a certain amount

    7. Errors on Reload:
    8. None


    9. Console Errors:
    10. None

    11. Other Useful Info:

    12. This is using vanillaGUI and I want it to open a gui with a beacon formatted with specified variables as the lore.
      Whats not working:
      It doesn't detect if I'm under and or above the numbers

    13. Addons using (including versions):
    14. Skrayfall - 1.9.25
    15. Skbee - 1.11.12
    16. Tuske - 1.8.2
    17. Troubleshooting:

    18. Have you tried searching the docs? Yes
    19. Have you tried searching the Forums? Yes
    20. What other methods have you tried to fix it? Minehut discord, specified skript channel
     
    #1 CurvedMonster54, Sep 28, 2021
    Last edited: Sep 29, 2021
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    you messed up at:
    Code (Text):
    1. set {prestige::%player's uuid%} to {_prestige}
    switch them

    and short that down:
    Code (Text):
    1.         set slot 0 of metadata tag "prestige" of player to light gray stained glass pane named " "
    2.         set slot 1 of metadata tag "prestige" of player to light gray stained glass pane named " "
    3.         set slot 2 of metadata tag "prestige" of player to light gray stained glass pane named " "
    4.         set slot 3 of metadata tag "prestige" of player to light gray stained glass pane named " "
    5.         set slot 4 of metadata tag "prestige" of player to light gray stained glass pane named " "
    6.         set slot 5 of metadata tag "prestige" of player to light gray stained glass pane named " "
    7.         set slot 6 of metadata tag "prestige" of player to light gray stained glass pane named " "
    8.         set slot 7 of metadata tag "prestige" of player to light gray stained glass pane named " "
    9.         set slot 8 of metadata tag "prestige" of player to light gray stained glass pane named " "
    10.         set slot 9 of metadata tag "prestige" of player to light gray stained glass pane named " "
    11.         set slot 10 of metadata tag "prestige" of player to light gray stained glass pane named " "
    12.         set slot 11 of metadata tag "prestige" of player to light gray stained glass pane named " "
    to
    Code (Text):
    1. set slot (integers from 0 to 11) of metadata tag "prestige" of player to light gray stained glass pane named " "
     
  3. CurvedMonster54

    Joined:
    Nov 14, 2020
    Messages:
    2
    Likes Received:
    0
    *
    The part about fixing the prestige still doesn't work. I know you had will help but it still doesn't work
     
Thread Status:
Not open for further replies.

Share This Page

Loading...