Skocz do zawartości
  • 0

Problem z skryptem


JaTuTylkoYT

Pytanie

Siema, mam problem ze skryptem. Mianowicie gdy klikam w ikonki w gui moge je zabierac i nie odpala sie komenda. Dziala tylko jedynie gdy mam range gracz na startowym kicie

 

kod skryptu:

variables:
    czas.start.%player% = 0
    czas.vip.%player% = 0
    czas.svip.%player% = 0
    czas.yt.%player% = 0
    
every 1 seconds:
    loop all players:
        if {czas.start.%loop-player%} is less than 2:
            set {czas.start.%loop-player%} to "teraz"
        if {czas.vip.%loop-player%} is less than 2:
            set {czas.vip.%loop-player%} to "teraz"
        if {czas.svip.%loop-player%} is less than 2:
            set {czas.svip.%loop-player%} to "teraz"
        if {czas.yt.%loop-player%} is less than 2:
            set {czas.yt.%loop-player%} to "teraz"
            
command /kits [<text>]:
    trigger:
        arg 1 is not set:
            execute player command "/kit"
        arg 1 is set:
            execute player command "/kit"
            
command /kit:
    trigger:
        if player have permission "whitehc.kitgracz":
            open chest with 1 rows named "&7Zestawy" to player
            format slot 0 of player with 1 of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
            format slot 1 of player with 1 of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
            format slot 2 of player with 1 of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]
        if player have permission "whitehc.kitvip":
            open chest with 1 rows named "&7Zestawy" to player
            format slot 0 of player with 1 of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
            format slot 1 of player with 1 of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]
            format slot 2 of player with 1 of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]
            format slot 3 of player with 1 of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
            format slot 4 of player with 1 of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]
        if player have permission "whitehc.kitsvip":
            open chest with 1 rows named "&7Zestawy" to player
            format slot 0 of player with 1 of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
            format slot 1 of player with 1 of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]        
            format slot 2 of player with 1 of diamond helmet named "&8» &aSVIP" to close then run [execute player command "/dajkita svip"]    
            format slot 3 of player with 1 of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]    
            format slot 4 of player with 1 of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
            format slot 5 of player with 1 of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]
        if player have permission "whitehc.kitsponsor":
            open chest with 1 rows named "&7Zestawy" to player
            format slot 0 of player with 1 of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
            format slot 1 of player with 1 of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]        
            format slot 2 of player with 1 of diamond helmet named "&8» &aSVIP" to close then run [execute player command "/dajkita svip"]    
            format slot 3 of player with 1 of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]    
            format slot 4 of player with 1 of tnt named "&8» &aSponsor" to close then run [execute player command "/dajkita sponsor"]    
            format slot 5 of player with 1 of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
            format slot 6 of player with 1 of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]
            
command /dajkita [<text>]:
    trigger:
        if argument 1 is "start":
            if player has permission "whitehc.kitdajgracz":
                if {czas.start.%player%} is "teraz":
                    open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
                    set slot 0 of current inventory of player to diamond helmet of protection 4, unbreaking 3
                    set slot 1 of current inventory of player to diamond chestplate of protection 4, unbreaking 3
                    set slot 2 of current inventory of player to diamond leggings of protection 4, unbreaking 3
                    set slot 3 of current inventory of player to diamond boots of protection 4, unbreaking 3
                    set slot 4 of current inventory of player to diamond sword of sharpness 5, fire aspect 2
                    set slot 5 of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3
                    set slot 6 of current inventory of player to diamond axe of efficiency 5, unbreaking 3
                    set slot 7 of current inventory of player to 20 enchanted golden apple
                    set slot 8 of current inventory of player to 40 golden apple
                    set {czas.start.%player%} to 10800
                    send "&8» &7Odebrales zestaw &eyt"
                    loop 10800 times:
                        wait 1 real seconds
                        remove 1 from {czas.start.%player%}
                else:
                    send "&8» &7Ten zestaw jest dostepny za &c%{czas.start.%player%}% &7sekund"
            else:
                send "&8» &7Nie masz uprawnien!"

 

jak cos tu nie jest jeszcze cale zrobione bo dla testu robilem 

Edytowane przez xNightPower_
Nieaktywny

Umieszczam kod w code.

Odnośnik do komentarza
https://skript.pl/temat/43239-problem-z-skryptem/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
10 minut temu, PanMaruda napisał:
  • wersja Skripta
  • wersja serwera
  • silnik serwera
  • wersja skQuery

Skript 2.5 ten na 1.8.8 zapomniałem nicku tego typa

Wersja serwera 1.8.8

Silnik spigot

skquery lime

Edytowane przez JaTuTylkoYT
Odnośnik do komentarza
https://skript.pl/temat/43239-problem-z-skryptem/#findComment-270510
Udostępnij na innych stronach

  • 0
12 minut temu, JaTuTylkoYT napisał:

Skript 2.5 ten na 1.8.8 zapomniałem nicku tego typa

Matocolotoe.

12 minut temu, JaTuTylkoYT napisał:

skquery lime

Z tego co mi wiadomo, to SkQuery Lime jest z forku na wersję 1.9+.

Odnośnik do komentarza
https://skript.pl/temat/43239-problem-z-skryptem/#findComment-270513
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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