Solved i want help this skript

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Fain

Member
May 19, 2020
19
1
3
23
Code:
command /prestige [<player>]:
  permission: prestige.book
  trigger:
    give 1 of Paper named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
  
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to ""
 
on chat:
  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%: "

on right click with Paper:
  if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    send "&a>> You have &e&lPrestiged&a! <<"
    set {_t} to {prestige.%player's uuid%} +1
    send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    add 1 to {prestige.%player's uuid%}
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    broadcast ""
    broadcast "&8&l[&6&l%player%&8&l] &4&lhas prestige!"
    broadcast ""
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    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
[doublepost=1590842146,1590841962][/doublepost]
Code:
command /prestige [<player>]:
  permission: prestige.book
  trigger:
    give 1 of Paper named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
 
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to ""
 
on chat:
  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%: "

on right click with Paper:
  if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    send "&a>> You have &e&lPrestiged&a! <<"
    set {_t} to {prestige.%player's uuid%} +1
    send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    add 1 to {prestige.%player's uuid%}
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    broadcast ""
    broadcast "&8&l[&6&l%player%&8&l] &4&lhas prestige!"
    broadcast ""
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    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
[doublepost=1590842205][/doublepost]
Code:
command /prestige [<player>]:
  permission: prestige.book
  trigger:
    give 1 of Paper named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
 
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to ""
 
on chat:
  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%: "

on right click with Paper:
  if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    send "&a>> You have &e&lPrestiged&a! <<"
    set {_t} to {prestige.%player's uuid%} +1
    send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    add 1 to {prestige.%player's uuid%}
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    broadcast ""
    broadcast "&8&l[&6&l%player%&8&l] &4&lhas prestige!"
    broadcast ""
    broadcast "&8▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"
    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
[doublepost=1590842146,1590841962][/doublepost]

I hope you guys understand because I'm not good on English and scripting its not my skript
 

Attachments

  • ssd.jpg
    ssd.jpg
    88.7 KB · Views: 191
Code:
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to 0
Code:
on chat:
    if {prestige.%player's uuid%} > 0 #or required prestige points
      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%: "
    else:
        cancel event
        send "&cYou don't have enough prestige to chat!" to player
 
Code:
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to 0
Code:
on chat:
    if {prestige.%player's uuid%} > 0 #or required prestige points
      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%: "
    else:
        cancel event
        send "&cYou don't have enough prestige to chat!" to player

I got this message and the skript it not working
 

Attachments

  • ss.png
    ss.png
    114.8 KB · Views: 194
Because now {prestige.%player's uuid%} variables are set to "". You'll have to do:
Code:
on join:
    delete {prestige.%player's uuid%}
or just simply delete them from variables file.
 
Because now {prestige.%player's uuid%} variables are set to "". You'll have to do:
Code:
on join:
    delete {prestige.%player's uuid%}
or just simply delete them from variables file.


ok I want to remove this red line from any player he don't have prestige
ff.jpg
 
Oh sorry, I got you now.
Code:
on chat:
    if {prestige.%player's uuid%} > 0 #or required prestige points
      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%: "
    else:
        set the chat format to "%player's display name% &f: %message%: "
 
Oh sorry, I got you now.
Code:
on chat:
    if {prestige.%player's uuid%} > 0 #or required prestige points
      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%: "
    else:
        set the chat format to "%player's display name% &f: %message%: "
okay thank you its work
 
  • Like
Reactions: rustedst
Status
Not open for further replies.