nicoalla
-
Posts
20 -
Joined
-
Last visited
nicoalla's Achievements
Rookie (3/6)
1
Reputation
-
I need a skript, that remembers things, while player is not on the server.
command /test:
trigger:
set {get::%player's uuid%} to "Hello"
on join:
if {get::%player's uuid%} is "Hello":
send "It worked!"the problem in that skript is, that when the players get offline the on join event doesn't do anything.
I want that a variable can get set by command and when you rejoin the skript knows what was set
-
I have made a skript for a rank system. If you want to make it individual and don't know how, then just tell me and i make it like you want ,)
options:
prefix: &8[&3Pre&bfix&8]
defaultPrefix: "&f[No rank]" # The default prefix, obv.variables:
{prefix::%player%} = "&f[Nor rank]"on load:
loop all players:
if {prefix::%loop-player's uuid%} is not set:
set {prefix::%loop-player's uuid%} to {@defaultPrefix}
command /rank <player> [<text>] [<text>]:
#permission: prefix.use #If you want to have a permission node remove the #
#permission message: &cSorry, but you do not have permission to execute this command.
usage: &ePlease do &6/rank help &efor commands.
trigger:
set {playername} to arg 1
if arg 2 is "help":
send "{@prefix} &eCommands:"
send "&8&m "
send "&3- &b/rank help &7| &fDisplays this message."
send "&3- &b/rank set §l§6<rank> &7| &fSets your rank."
send "&3- &b/rank reset &7| &fResets your rank."
send "&3- &b/All available ranks:"
send "§l§1MVP"
send "§l§3Myth"
send "§l§5Titan"
send "§l§dImmortal"
send "§l§eJr Mod"
send "§l§2Mod"
send "§l§aAdmin"
send "§l§7Sr Admin"
send "§l§4Owner"
send "&8&m "if arg 2 is "set":
if arg 3 is set:
if arg 3 does not contain "MVP" or "Myth" or "Titan" or "Immortal" or "Jar Mod" or "Mod" or "Admin" or "Sr Admin" or "Owner":
send "{@prefix} &4 You have to choose one of the nine ranks!"
stopelse:
set {prefix::%player's uuid%} to colored arg 3
if arg 3 is "MVP":
set the player's tab list name to "§l§1%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Myth":
set the player's tab list name to "§l§3%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Titan":
set the player's tab list name to "§l§5%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Immortal":
set the player's tab list name to "§l§d%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Jr Mod":
set the player's tab list name to "§l§e%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Mod":
set the player's tab list name to "§l§2%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Admin":
set the player's tab list name to "§l§a%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Sr Admin":
set the player's tab list name to "§l§7%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
if arg 3 is "Owner":
set the player's tab list name to "§l§4%arg 3% §f%arg 1%"
send "{@prefix} &a%arg 1%'s rank is now: &3%colored arg 3%&a."
stop
stopelse:
send "{@prefix} &cPlease set a §nrank."
stopif arg 2 is "reset":
set {prefix::%player's uuid%} to {@defaultPrefix}
send "{@prefix} &a%arg 1% rank's has been reset."
stopon chat:
if player's tab list name is "&1MVP &f%player%":
set the chat format to "&l&1%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&3Myth &f%player%":
set the chat format to "&l&3%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&5Titan &f%player%":
set the chat format to "&l&5%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&dImmortal &f%player%":
set the chat format to "&l&d%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&eJr Mod &f%player%":
set the chat format to "&l&e%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&2Mod &f%player%":
set the chat format to "&l&2%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&aAdmin &f%player%":
set the chat format to "&l&a%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&7Sr Admin &f%player%":
set the chat format to "&l&7%{prefix::%player's uuid%}% &f%player's display name%: &7%message%"
if player's tab list name is "&4Owner &f%player%":
set the chat format to "&l&4%{prefix::%player's uuid%}% &f%player's display name%: &7%message%" -
A efriend System for your server #Skript
#Accept a friend request
command /efriendaccept:
trigger:
set {accept} to true
add {currentefriend} to {efriendlist::*}
send "&3%player% accepted your friendrequest!" to {currentefriend}#Deny a friendrequest
command /efrienddeny:
trigger:
set {deny} to true
send "&3%player% denied your friendrequest!" to {currentefriend}#Get a help menu
command /efriendhelp:
trigger:
send "&eHelp menu:"
send "&8&m "
send "&3- &b/efriend help &7| Get to the help menu."
send "&3- &b/efriend add <player> &7| Send a friendrequest to someone."
send "&3- &b/efriendaccept &7| Accept a friend request."
send "&3- &b/efrienddeny &7| Deny a friendrequest."
send "&3- &b/efriendlist &7| See a list of all your efriends"
send "&3- &b/efiriendremove <player> &7| Remove a efriend of your efriendlist"
send "&8&m "
#Get to know if the request is dinied or accepted
every second:
loop all players:
if {accept} is true:
send "%{currentefriend}% accepted your friend request !" to loop-player
send "You accepted the friend request!" to {currentefriend}
set {accept} to false
stop
if {deny} is true:
send "&4%{currentefriend}% &3denied your friendrequest!" to loop-player
send "You denied the friend request!" to {currentefriend}
set {currentefriend} to ""
set {deny} to false
stop#See your efriend list
command /efriendlist:
trigger:
send "&8&m "
send "&6&lYour friend list"
send "%{efriendlist::*}%"
send "&8&m "#Remove a efriend
command /efriendremove <player>:
trigger:
remove arg 1 from {efriendlist::*}
send "&3You removed %arg 1% from your efriendlist!"
send "&3You were removed by %player%!" to arg 1#Not making damage to friends
on damaging:
if {efriendlist::*} contains victim's tab list name:
send "It's a friend!" to attacker
cancel event
stop