Kto potrafi zrobic, aby te 2 komendy dzialaly poprawnie ?
if arg 1 is "lider":
if arg 1 is not set:
send "&7» &7Poprawne uzycie: &3/lider <gracz>"
stop
if arg 1 is set:
if {skGuilds::inGuild::%player%} is not set:
send " &8࿃ &cNie posiadasz gildii."
stop
if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
send " &8࿃ &cNie jestes liderem gildii."
stop
if arg 1 is "%{skGuilds::Lider::%{skGuilds::inGuild::%player%}%} parsed as player%":
send "&7» &cNie mozesz dac sobie lidera gildii!"
stop
if arg 1 parsed as player is online:
loop {skGuilds::Czlonkowie::%arg 2%::*}:
if loop-value is "%arg 1 parsed as player%":
set {skGuilds::Czlonkowie::%arg 2%::*} to "%arg 1 parsed as player%"
send "&7» &7Zmieniles lidera gildii na &3%arg 1 parsed as player%&7."
send "&7» &7Zostales nowym liderem gildii." to arg 1 parsed as player
stop
send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
stop
else:
send " &8࿃ &cGracz o podanym nicku jest offline."
stop
if arg 1 is "zastepca":
if arg 1 is not set:
send "&7» &7Poprawne uzycie: &3/zastepca <gracz>"
stop
if arg 1 is set:
if {skGuilds::inGuild::%player%} is not set:
send " &8࿃ &cNie posiadasz gildii."
stop
if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
send " &8࿃ &cNie jestes liderem gildii."
stop
if arg 1 parsed as player is online:
loop {gildie::gildia::%{gildie::%player%::tag}%::czlonkowie::*}:
if loop-value is "%arg 1 parsed as player%":
set {gildie::gildia::%{gildie::%player%::tag}%::zastepca} to "%arg 1 parsed as player%"
send "&7» &7Zmieniles zastepce gildii na &3%arg 1 parsed as player%&7."
send "&7» &7Zostales nowym zastepca gildii." to arg 1 parsed as player
stop
send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
stop
else:
send " &8࿃ &cGracz o podanym nicku jest offline."
stop
Pytanie
JkkS 2
Kto potrafi zrobic, aby te 2 komendy dzialaly poprawnie ?
if arg 1 is "lider":
if arg 1 is not set:
send "&7» &7Poprawne uzycie: &3/lider <gracz>"
stop
if arg 1 is set:
if {skGuilds::inGuild::%player%} is not set:
send " &8࿃ &cNie posiadasz gildii."
stop
if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
send " &8࿃ &cNie jestes liderem gildii."
stop
if arg 1 is "%{skGuilds::Lider::%{skGuilds::inGuild::%player%}%} parsed as player%":
send "&7» &cNie mozesz dac sobie lidera gildii!"
stop
if arg 1 parsed as player is online:
loop {skGuilds::Czlonkowie::%arg 2%::*}:
if loop-value is "%arg 1 parsed as player%":
set {skGuilds::Czlonkowie::%arg 2%::*} to "%arg 1 parsed as player%"
send "&7» &7Zmieniles lidera gildii na &3%arg 1 parsed as player%&7."
send "&7» &7Zostales nowym liderem gildii." to arg 1 parsed as player
stop
send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
stop
else:
send " &8࿃ &cGracz o podanym nicku jest offline."
stop
if arg 1 is "zastepca":
if arg 1 is not set:
send "&7» &7Poprawne uzycie: &3/zastepca <gracz>"
stop
if arg 1 is set:
if {skGuilds::inGuild::%player%} is not set:
send " &8࿃ &cNie posiadasz gildii."
stop
if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
send " &8࿃ &cNie jestes liderem gildii."
stop
if arg 1 parsed as player is online:
loop {gildie::gildia::%{gildie::%player%::tag}%::czlonkowie::*}:
if loop-value is "%arg 1 parsed as player%":
set {gildie::gildia::%{gildie::%player%::tag}%::zastepca} to "%arg 1 parsed as player%"
send "&7» &7Zmieniles zastepce gildii na &3%arg 1 parsed as player%&7."
send "&7» &7Zostales nowym zastepca gildii." to arg 1 parsed as player
stop
send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
stop
else:
send " &8࿃ &cGracz o podanym nicku jest offline."
stop
Odnośnik do komentarza
https://skript.pl/temat/4442-skguilds-dorobienie-2-komend/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi