Jak dodac do tego skryptu zmienna która po wpisaniu komendy "/doubleexp sprawdz" sprawdza czy jest wlaczony double xp np wyskakuje
===============================
Double xp: Wlaczony
===============================
Kod:
command /double-exp:
aliases: /doubleexp, /double
permission: admin
permission message: {@msg-no-perm}
executable by: console and player
trigger:
set {_prefix} to "{@prefix-double-exp}"
if {expmultiplier} is 0 or 2:
set {expmultiplier} to 1
if {@exp-multiplier-bc} is false:
send "{@msg-multiplier-on}"
else:
broadcast "{@msg-multiplier-on}"
stop
if {expmultiplier} is 1:
set {expmultiplier} to 0
if {@exp-multiplier-bc} is false:
send "{@msg-multiplier-off}"
else:
broadcast "{@msg-multiplier-off}"
command {@custom-exp-command}:
aliases: {@custom-exp-aliases}
permission: admin
permission message: {@msg-no-perm}
executable by: console and player
trigger:
set {_prefix} to "{@prefix-custom-exp}"
if {expmultiplier} is 0 or 1:
set {expmultiplier} to 2
if {@exp-multiplier-bc} is false:
send "{@msg-multiplier-on}"
else:
broadcast "{@msg-multiplier-on}"
stop
if {expmultiplier} is 2:
set {expmultiplier} to 0
if {@exp-multiplier-bc} is false:
send "{@msg-multiplier-off}"
else:
broadcast "{@msg-multiplier-off}"
Pytanie
MateoxPL 6
Witam
Jak dodac do tego skryptu zmienna która po wpisaniu komendy "/doubleexp sprawdz" sprawdza czy jest wlaczony double xp np wyskakuje
===============================
Double xp: Wlaczony
===============================
Kod:
command /double-exp: aliases: /doubleexp, /double permission: admin permission message: {@msg-no-perm} executable by: console and player trigger: set {_prefix} to "{@prefix-double-exp}" if {expmultiplier} is 0 or 2: set {expmultiplier} to 1 if {@exp-multiplier-bc} is false: send "{@msg-multiplier-on}" else: broadcast "{@msg-multiplier-on}" stop if {expmultiplier} is 1: set {expmultiplier} to 0 if {@exp-multiplier-bc} is false: send "{@msg-multiplier-off}" else: broadcast "{@msg-multiplier-off}" command {@custom-exp-command}: aliases: {@custom-exp-aliases} permission: admin permission message: {@msg-no-perm} executable by: console and player trigger: set {_prefix} to "{@prefix-custom-exp}" if {expmultiplier} is 0 or 1: set {expmultiplier} to 2 if {@exp-multiplier-bc} is false: send "{@msg-multiplier-on}" else: broadcast "{@msg-multiplier-on}" stop if {expmultiplier} is 2: set {expmultiplier} to 0 if {@exp-multiplier-bc} is false: send "{@msg-multiplier-off}" else: broadcast "{@msg-multiplier-off}"Odnośnik do komentarza
https://skript.pl/temat/24723-pytanie-zmienna/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi