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.

Solved i want help this skript

Discussion in 'Skript' started by Fain, May 30, 2020.

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

    Fain Member

    Joined:
    May 19, 2020
    Messages:
    19
    Likes Received:
    1
    Code (Text):
    1. command /prestige [<player>]:
    2.   permission: prestige.book
    3.   trigger:
    4.     give 1 of Paper named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
    5.  
    6. on join:
    7.   if {prestige.%player's uuid%} is not set:
    8.     set {prestige.%player's uuid%} to ""
    9.  
    10. on chat:
    11.   set the chat format to "%player's display name% &a&l[&3&lP&b&lr&3&le&b&ls&3&lt&b&li&3&lg&b&le &d&l%{prestige.%player's uuid%}%&a] &f: %message%: "
    12.  
    13. on right click with Paper:
    14.   if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    15.     send "&a>> You have &e&lPrestiged&a! <<"
    16.     set {_t} to {prestige.%player's uuid%} +1
    17.     send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    18.     add 1 to {prestige.%player's uuid%}
    19.     broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    20.     broadcast ""
    21.     broadcast "&8&l[&6&l%player%&8&l] &4&lhas prestige!"
    22.     broadcast ""
    23.     broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    24.     remove held item from player
    Hello guys I want to do on this skript if players don't have prestige it don't visible on chat
    only when he right click to prestige I want it visible on chat
    --- Double Post Merged, May 30, 2020, Original Post Date: May 30, 2020 ---
    --- Double Post Merged, May 30, 2020 ---
    I hope you guys understand because I'm not good on English and scripting its not my skript

     

    Attached Files:

    • ssd.jpg
      ssd.jpg
      File size:
      88.7 KB
      Views:
      142
  2. Best Answer:
    Post #6 by rustedst, May 31, 2020
  3. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Code (Text):
    1. on join:
    2.   if {prestige.%player's uuid%} is not set:
    3.     set {prestige.%player's uuid%} to 0
    Code (Text):
    1. on chat:
    2.     if {prestige.%player's uuid%} > 0 #or required prestige points
    3.       set the chat format to "%player's display name% &a&l[&3&lP&b&lr&3&le&b&ls&3&lt&b&li&3&lg&b&le &d&l%{prestige.%player's uuid%}%&a] &f: %message%: "
    4.     else:
    5.         cancel event
    6.         send "&cYou don't have enough prestige to chat!" to player
    7.  
     
  4. Fain

    Fain Member

    Joined:
    May 19, 2020
    Messages:
    19
    Likes Received:
    1
    I got this message and the skript it not working
     

    Attached Files:

    • ss.png
      ss.png
      File size:
      114.8 KB
      Views:
      141
  5. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Because now {prestige.%player's uuid%} variables are set to "". You'll have to do:
    Code (Text):
    1. on join:
    2.     delete {prestige.%player's uuid%}
    or just simply delete them from variables file.
     
  6. Fain

    Fain Member

    Joined:
    May 19, 2020
    Messages:
    19
    Likes Received:
    1

    ok I want to remove this red line from any player he don't have prestige ff.jpg
     
  7. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Oh sorry, I got you now.
    Code (Text):
    1. on chat:
    2.     if {prestige.%player's uuid%} > 0 #or required prestige points
    3.       set the chat format to "%player's display name% &a&l[&3&lP&b&lr&3&le&b&ls&3&lt&b&li&3&lg&b&le &d&l%{prestige.%player's uuid%}%&a] &f: %message%: "
    4.     else:
    5.         set the chat format to "%player's display name% &f: %message%: "
     
  8. Fain

    Fain Member

    Joined:
    May 19, 2020
    Messages:
    19
    Likes Received:
    1
    okay thank you its work
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...