Skocz do zawartości
  • 0

skguilds dorobienie 2 komend


JkkS

Pytanie

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

  • 0
 {gildie::gildia::%{gildie::%player%::tag}%::czlonkowie::*}

zdecydowanie nie jest to zmienna z mojego skryptu.

   if arg 1 is "lider":            if arg 1 is not set:

Co to jest?

 

Powinno być chyba:

   if arg 1 is "lider":            if arg 2 is not set:

i tu to samo:

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

Lol?

Odnośnik do komentarza
https://skript.pl/temat/4442-skguilds-dorobienie-2-komend/#findComment-37307
Udostępnij na innych stronach

  • 0
        if arg 1 is "lider":            if arg 2 is not set:                send "&7» &7Poprawne uzycie: &3/lider <gracz>"                stop            if arg 2 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 2 is "%{skGuilds::Lider::%{skGuilds::inGuild::%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 2%":                            set {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} to arg 2 parsed as player                            send "&7» &7Zmieniles lidera gildii na &3%arg 2 parsed as player%&7."                            send "&7» &7Zostales nowym liderem gildii." to arg 2 parsed as player                            stop                    else:                        send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."                        stop                else:                    send " &8࿃ &cGracz o podanym nicku jest offline."                    stop

Wytabuj sobie.

 

Drugiej komendy nie zrobię, ponieważ trzeba by było robić duże zmiany w kodzie :]

Odnośnik do komentarza
https://skript.pl/temat/4442-skguilds-dorobienie-2-komend/#findComment-37319
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...