Skocz do zawartości
  • 0

Problem z INVSEE


NotDanix

Pytanie

 

Witam mam problem z komendą poniżej, ponieważ podczas sprawdzania kogokolwiek wyświetla się komunikat "An internal error occurred while attempting to perform this command."

command /sprawdz [<player>]:
    executable by: players
    permission: sprawdz.graczy
    permission message: &4Nie posiadasz dostępu do tej komendy.
    usage: "&cUżycie:: &6/sprawdz <gracz>"
    trigger:
        set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
        open {_gui} to player
        set {inspectingPlayers::%player%} to true
        set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
        set {_num} to 0
        loop 36 times:
            set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot 37 of {_gui} to arg-1's cursor slot
        set slot 41 of {_gui} to arg-1's helmet
        set slot 42 of {_gui} to arg-1's chestplate
        set slot 43 of {_gui} to arg-1's leggings
        set slot 44 of {_gui} to arg-1's boots

on inventory click:
    if {inspectingPlayers::%player%} is set:
        cancel event

on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

 

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

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
W dniu 27.01.2024 o 20:16, Hiri12 napisał:

Nie jestem pewien co może być tu źle ale mam pytanie: czy inne skrypty ci działają? Bo wiem że taki błąd wyświetla się kiedy masz zła wersję skripta która nie działa.

działać, działają. Ale jak mają już coś napisać na chacie to wywala taki błąd

 

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340361
Udostępnij na innych stronach

  • 0
W dniu 28.01.2024 o 02:26, CoFFeIN04 napisał:

Ustawiaj sloty przed otwarciem GUI

a mógłbyś mi to zrobić? bo aktualnie mnie w domu nie ma a wracam dopiero za 2 dni, a fajnie bybyło mieć już to gotowe

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340362
Udostępnij na innych stronach

  • 0
5 godzin temu, makstale napisał:

Zobacz jeszcze w konsoli, bo często obok tego błędu wyświetla się dokładniejszy opis. Z gui np. miałem ten błąd jak nazwa inventory była za długa.

[14:40:02 INFO]: [Skript] Line 169: (Danix.sk)
[14:40:02 INFO]:     There are multiple command senders in an on click event. You must define which command sender to use.
[14:40:02 INFO]:     Line: send "&cRzucanego TNT możesz używać tylko główną ręką!"

Może i nie ten skrypt, ale treść errora jest. Poniżej wklejam errory z INVSEE których jest dość sporo...

 

[14:43:34 INFO]: [Skript] Reloading Danix.sk...
[14:43:34 INFO]: Line 179: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: command /sprawdz [<player>]:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 184: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:     trigger:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 190: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:         loop 36 times:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 199: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: on inventory click:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 200: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:     if {inspectingPlayers::%player%} is set:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 203: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: on inventory close:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 179: (Danix.sk)
[14:43:34 INFO]:     Required entry 'trigger' is missing
[14:43:34 INFO]:     Line: command /sprawdz [<player>]:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 180: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     executable by: players
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 181: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     permission: sprawdz.graczy
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 182: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     permission message: &4Nie posiadasz dostępu do tej komendy.
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 183: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     usage: "&cUżycie:: &6/sprawdz <gracz>"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 184: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:     trigger
[14:43:34 INFO]:     Line:     trigger:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 185: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 186: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         open {_gui} to player
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 187: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {inspectingPlayers::%player%} to true
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 188: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 189: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {_num} to 0
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 190: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:         loop 36 times
[14:43:34 INFO]:     Line:         loop 36 times:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 191: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:             set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 192: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:             add 1 to {_num}
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 193: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 37 of {_gui} to arg-1's cursor slot
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 194: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 41 of {_gui} to arg-1's helmet
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 195: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 42 of {_gui} to arg-1's chestplate
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 196: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 43 of {_gui} to arg-1's leggings
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 197: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 44 of {_gui} to arg-1's boots
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 200: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:     if {inspectingPlayers::%player%} is set
[14:43:34 INFO]:     Line:     if {inspectingPlayers::%player%} is set:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 201: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         cancel event
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 204: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     {inspectingPlayers::%player%} is set
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 205: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     clear {inspectingPlayers::%player%}

 

 

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340371
Udostępnij na innych stronach

  • 0
7 minut temu, NotDanix napisał:
[14:40:02 INFO]: [Skript] Line 169: (Danix.sk)
[14:40:02 INFO]:     There are multiple command senders in an on click event. You must define which command sender to use.
[14:40:02 INFO]:     Line: send "&cRzucanego TNT możesz używać tylko główną ręką!"

Może i nie ten skrypt, ale treść errora jest. Poniżej wklejam errory z INVSEE których jest dość sporo...

 

[14:43:34 INFO]: [Skript] Reloading Danix.sk...
[14:43:34 INFO]: Line 179: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: command /sprawdz [<player>]:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 184: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:     trigger:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 190: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:         loop 36 times:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 199: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: on inventory click:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 200: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line:     if {inspectingPlayers::%player%} is set:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 203: (Danix.sk)
[14:43:34 INFO]:     Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[14:43:34 INFO]:     Line: on inventory close:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 179: (Danix.sk)
[14:43:34 INFO]:     Required entry 'trigger' is missing
[14:43:34 INFO]:     Line: command /sprawdz [<player>]:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 180: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     executable by: players
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 181: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     permission: sprawdz.graczy
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 182: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     permission message: &4Nie posiadasz dostępu do tej komendy.
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 183: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     usage: "&cUżycie:: &6/sprawdz <gracz>"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 184: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:     trigger
[14:43:34 INFO]:     Line:     trigger:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 185: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 186: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         open {_gui} to player
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 187: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {inspectingPlayers::%player%} to true
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 188: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 189: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set {_num} to 0
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 190: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:         loop 36 times
[14:43:34 INFO]:     Line:         loop 36 times:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 191: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:             set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 192: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:             add 1 to {_num}
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 193: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 37 of {_gui} to arg-1's cursor slot
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 194: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 41 of {_gui} to arg-1's helmet
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 195: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 42 of {_gui} to arg-1's chestplate
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 196: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 43 of {_gui} to arg-1's leggings
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 197: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         set slot 44 of {_gui} to arg-1's boots
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 200: (Danix.sk)
[14:43:34 INFO]:     Can't understand this structure:     if {inspectingPlayers::%player%} is set
[14:43:34 INFO]:     Line:     if {inspectingPlayers::%player%} is set:
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 201: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:         cancel event
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 204: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     {inspectingPlayers::%player%} is set
[14:43:34 INFO]:  
[14:43:34 INFO]: Line 205: (Danix.sk)
[14:43:34 INFO]:     invalid line - all code has to be put into triggers
[14:43:34 INFO]:     Line:     clear {inspectingPlayers::%player%}

 

 

Aktualizacja: Po zainstalowaniu najnowszego Skript'a z githuba wszelkie skrypty wysyłające coś na chacie zaczeły działać i faktycznie wysyłają nie wywalając żadnego errora, ale wspomniane INVSEE w dalszym ciągu nie działa /:

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340372
Udostępnij na innych stronach

  • 0
8 minut temu, NotDanix napisał:

Aktualizacja: Po zainstalowaniu najnowszego Skript'a z githuba wszelkie skrypty wysyłające coś na chacie zaczeły działać i faktycznie wysyłają nie wywalając żadnego errora, ale wspomniane INVSEE w dalszym ciągu nie działa /:

Ale błędy dotyczące invsee nadal takie same? Bo on Ci wykrywa błędy na liniach gdzie ich teoretycznie nie ma.

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340373
Udostępnij na innych stronach

  • 0
2 minuty temu, NotDanix napisał:

tak

Podeślesz jeszcze raz kod, bo zakładam że coś zmieniałeś i nie jest taki sam jak ten na samej gorze. Poza tym piszesz o invsee, a komende masz /sprawdz. Jest to to samo?

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340392
Udostępnij na innych stronach

  • 0
3 minuty temu, Fendi napisał:

Podeślesz jeszcze raz kod, bo zakładam że coś zmieniałeś i nie jest taki sam jak ten na samej gorze. Poza tym piszesz o invsee, a komende masz /sprawdz. Jest to to samo?

kod jest ten sam, komenda jest do sprawdzania czyjegoś ekwipunku a więc INVSEE, tylko napieram na to abym widział również zbroje i drugą rękę

 

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340393
Udostępnij na innych stronach

  • 0
3 minuty temu, NotDanix napisał:

kod jest ten sam, komenda jest do sprawdzania czyjegoś ekwipunku a więc INVSEE, tylko napieram na to abym widział również zbroje i drugą rękę

 

Zatem 2 głupie błędy

command /sprawdz [<player>]:
    executable by: players
    permission: sprawdz.graczy
    permission message: &4Nie posiadasz dostępu do tej komendy.
    usage: "&cUżycie:: &6/sprawdz <gracz>"
    trigger:
        set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
        set {inspectingPlayers::%player%} to true
        set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
        set {_num} to 0
        loop 36 times:
            set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot 37 of {_gui} to arg-1's cursor slot
        set slot 41 of {_gui} to arg-1's helmet
        set slot 42 of {_gui} to arg-1's chestplate
        set slot 43 of {_gui} to arg-1's leggings
        set slot 44 of {_gui} to arg-1's boots
        open {_gui} to player
on inventory click:
    if {inspectingPlayers::%player%} is set:
        cancel event

on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

1. Gui otwiera się po zakonczeniu wszystkich setów.

2. Złe taby zostały umieszone w skrypcie

image.png.c9c1eea007bd447aa09c2b0a5d0644af.png

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340394
Udostępnij na innych stronach

  • 0
7 minut temu, Fendi napisał:

Zatem 2 głupie błędy

command /sprawdz [<player>]:
    executable by: players
    permission: sprawdz.graczy
    permission message: &4Nie posiadasz dostępu do tej komendy.
    usage: "&cUżycie:: &6/sprawdz <gracz>"
    trigger:
        set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
        set {inspectingPlayers::%player%} to true
        set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
        set {_num} to 0
        loop 36 times:
            set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot 37 of {_gui} to arg-1's cursor slot
        set slot 41 of {_gui} to arg-1's helmet
        set slot 42 of {_gui} to arg-1's chestplate
        set slot 43 of {_gui} to arg-1's leggings
        set slot 44 of {_gui} to arg-1's boots
        open {_gui} to player
on inventory click:
    if {inspectingPlayers::%player%} is set:
        cancel event

on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

1. Gui otwiera się po zakonczeniu wszystkich setów.

2. Złe taby zostały umieszone w skrypcie

image.png.c9c1eea007bd447aa09c2b0a5d0644af.png

Nie mogę wyjmowac nic z czyjegoś ekwipunku, byłbyś w stanie to szybko przerobić?

 

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340396
Udostępnij na innych stronach

  • 0
9 minut temu, NotDanix napisał:

Nie mogę wyjmowac nic z czyjegoś ekwipunku, byłbyś w stanie to szybko przerobić?

 

command /sprawdz [<player>]:
    executable by: players
    permission: sprawdz.graczy
    permission message: &4Nie posiadasz dostępu do tej komendy.
    usage: "&cUżycie:: &6/sprawdz <gracz>"
    trigger:
        set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
        set {inspectingPlayers::%player%} to arg 1
        set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
        set {_num} to 0
        loop 36 times:
            set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot 37 of {_gui} to arg-1's offhand tool
        set slot 41 of {_gui} to arg-1's helmet
        set slot 42 of {_gui} to arg-1's chestplate
        set slot 43 of {_gui} to arg-1's leggings
        set slot 44 of {_gui} to arg-1's boots
        open {_gui} to player
on inventory click:
    if {inspectingPlayers::%player%} is ("%player%" parsed as player):
        cancel event
on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

Nie testowałem ale chyba powinno działać.

6 minut temu, NotDanix napisał:

a i drugiej łapki nie ma, nie pokazuje się co sie w niej ma

Z tym jest zawsze jakiś wylew, ale jakoś zrobiłem ,zobacz czy dobrze działa.

Jak działa licze na like

Edytowane przez Fendi
Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340398
Udostępnij na innych stronach

  • 0
1 minutę temu, Fendi napisał:
command /sprawdz [<player>]:
    executable by: players
    permission: sprawdz.graczy
    permission message: &4Nie posiadasz dostępu do tej komendy.
    usage: "&cUżycie:: &6/sprawdz <gracz>"
    trigger:
        set {_gui} to chest inventory with 6 rows named "&eInspekcja gracza &a%arg 1%"
        set {inspectingPlayers::%player%} to arg 1
        set slot 53 of {_gui} to book named "&eInformacje" with lore "&eŻycie: &a%health of arg 1%%nl%&eJedzenie: &a%hunger of arg 1%"
        set {_num} to 0
        loop 36 times:
            set slot {_num} of {_gui} to slot {_num} of arg-1's inventory
            add 1 to {_num}
        set slot 37 of {_gui} to arg-1's offhand tool
        set slot 41 of {_gui} to arg-1's helmet
        set slot 42 of {_gui} to arg-1's chestplate
        set slot 43 of {_gui} to arg-1's leggings
        set slot 44 of {_gui} to arg-1's boots
        open {_gui} to player
on inventory click:
    if {inspectingPlayers::%player%} is ("%player%" parsed as player):
        cancel event
on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

Nie testowałem ale chyba powinno działać.

Z tym jest zawsze jakiś wylew, ale jakoś zrobiłem ,zobacz czy dobrze działa.

Jak działa licze na like

Działa, lecz nie mogę wyjmować przedmiotów z czyjegoś EQ, no i fajnie jakby one się nie kopiowały, po prostu jak wyjmę to znika tej osobie z EQ. I jak by się dało to fajne byłoby to abym widział kogoś EQ "live" czyli jak coś podniesie to od razu to widze

Odnośnik do komentarza
https://skript.pl/temat/56958-problem-z-invsee/#findComment-340399
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ę...