Hey!
So I have this skript:
How should I try to do that or how do I do thats?
Pls help and note that I'm a starter skripter and don't know much about skript and need help and I don't understand most of the things you write in "skripter language" or whatever
Thanks, Vini!
So I have this skript:
The problem is that these only work for 1 player, the player who activated it, so I want it to work for everyone on the server if one player activated it.# {type.booster.%player's uuid%} = Booster Type
# {active.booster.%player's uuid%} = Booster active or not
# {time.booster.%player's uuid%} = Time left on booster
command boostergive <integer> [<player>]:
aliases: /bgive
permission: op
trigger:
if arg-1 is 2, 5, 10, 20 or 30:
if arg-2 is not set:
give player 1 orange dye named "&b%arg-1%x &eBooster &f| &b5 minutes"
else:
give arg-2 1 orange dye named "&b%arg-1%x &eBooster &f| &b5 minutes"
else:
send "&6&lBOOSTER &8» &c[ERROR] &fUnknown booster integer."
command booster:
trigger:
if {active.booster.%player's uuid%} is true:
send "&6&lBOOSTER &8» &fYou have a booster active: &b%{type.booster.%player's uuid%}%&fx Booster, &b%{time.booster.%player's uuid%}% &fminutes remaining."
else:
send "&6&lBOOSTER &8» &fYou do not have a booster active."
on rightclick with orange dye:
if {active.booster.%player's uuid%} is true:
send "&6&lBOOSTER &8» &c[ERROR] &fYour &b%{type.booster.%player's uuid%}%&fx Booster is already active. &b%{time.booster.%player's uuid%}% &fminutes remaining until you can use another one."
else:
if name of player's tool is "&b2x &eBooster &f| &b5 minutes":
set {type.booster.%player's uuid%} to 2
else if name of player's tool is "&b5x &eBooster &f| &b5 minutes":
set {type.booster.%player's uuid%} to 5
else if name of player's tool is "&b10x &eBooster &f| &b5 minutes":
set {type.booster.%player's uuid%} to 10
else if name of player's tool is "&b20x &eBooster &f| &b5 minutes":
set {type.booster.%player's uuid%} to 20
else if name of player's tool is "&b30x &eBooster &f| &b5 minutes":
set {type.booster.%player's uuid%} to 30
else:
stop
remove 1 orange dye named "&b%{type.booster.%player's uuid%}%x &eBooster &f| &b5 minutes" from player
set {active.booster.%player's uuid%} to true
set {time.booster.%player's uuid%} to 5
send "&6&lBOOSTER &8» &fYou enabled your booster! &b%{time.booster.%player's uuid%}% &fminutes remaining."
while {time.booster.%player's uuid%} is more than 0:
wait 1 minute
remove 1 from {time.booster.%player's uuid%}
send "&6&lBOOSTER &8» &b%{time.booster.%player's uuid%}% &fminute(s) remaining on your booster."
set {active.booster.%player's uuid%} to false
clear {type.booster.%player's uuid%}
send "&6&lBOOSTER &8» &fYour booster period is now over."
How should I try to do that or how do I do thats?
Pls help and note that I'm a starter skripter and don't know much about skript and need help and I don't understand most of the things you write in "skripter language" or whatever
Thanks, Vini!