Skocz do zawartości
  • 0

Pufer1337

Pytanie

DAJE NAJ I WSZYSTKO CO SIĘ CHCE XD

 

 

Mam Problem Z Skryptem !

Otóż Zrobiłem skrypta na pomoc w gui . Wszystko działa np gdy jest /Vip w gui i się kliknie to na chacie się wyświetla ale gdy Klikne w np /drop Który też jest zrobiony w gui lecz nie w skrypcie włancza się w gui ale niestety na Tylko 1 sekunde i potym odrazu się wyłoncza ! Pomóżcie pliss !

Oto Text Skryptu!

command /pomoc:
    trigger:
        open chest with 6 rows named "&7Komenda: &a/pomoc" to player
        wait 2 ticks
        format slot 0 of player with 1 of 160:7 named "&8[]" to close
        format slot 1 of player with 1 of 160:7 named "&8[]" to close
        format slot 2 of player with 1 of 160:7 named "&8[]" to close
        format slot 3 of player with 1 of 160:7 named "&8[]" to close
        format slot 4 of player with 1 of 160:7 named "&8[]" to close
        format slot 5 of player with 1 of 160:7 named "&8[]" to close
        format slot 6 of player with 1 of 160:7 named "&8[]" to close
        format slot 7 of player with 1 of 160:7 named "&8[]" to close
        format slot 8 of player with 1 of 160:7 named "&8[]" to close
        format slot 9 of player with 1 of 160:7 named "&8[]" to close
        format slot 10 of player with 1 of 339 named "&a/Vip" with lore "&7Informacje O Randze Vip" to close then run [execute player command "pomocvip"]
        format slot 11 of player with 1 of 339 named "&a/Svip" with lore "&7Informacje o Randze Svip" to close then run [execute player command "pomocsvip"]
        format slot 12 of player with 1 of 339 named "&a/Yt" with lore "&7Informacje o Randze YT" to close then run [execute player command "pomocyt"]
        format slot 13 of player with 1 of 339 named "&a/Yt+" with lore "&7Informacje O Randze YT+" to close then run [execute player command "pomocyt+"]
        format slot 14 of player with 1 of 339 named "&a/gildia" with lore "&7Informacje o Gildiach" to close then run [execute player command "gildia"]
        format slot 15 of player with 1 of 339 named "&a/zestaw" with lore "&7Lista Zestawow" to close then run [execute player command "zestaw"]    #To Jest W Gui
        format slot 16 of player with 1 of 339 named "&a/warp" with lore "&7Lista Warpow" to close then run [execute player command "warp"]    #To Jest W Gui
        format slot 17 of player with 1 of 160:7 named "&8[]" to close
        format slot 18 of player with 1 of 160:7 named "&8[]" to close
        format slot 19 of player with 1 of 160:7 named "&8[]" to close
        format slot 20 of player with 1 of 160:7 named "&8[]" to close
        format slot 21 of player with 1 of 339 named "&a/itemy" with lore "&7Lista Itemow Na Gildie" to close then run [execute player command "itemy"]     #To Jest W Gui
        format slot 22 of player with 1 of 339 named "&a/helpop" with lore "&7Szybki Kontakt Z Administracja Serwera" to close then run [execute player command "helpop"]
        format slot 23 of player with 1 of 339 named "&a/drop" with lore "&7Informacje O Dropie z Stona" to close then run [execute player command "drop"]    #To Jest W Gui
        format slot 24 of player with 1 of 160:7 named "&8[]" to close
        format slot 25 of player with 1 of 160:7 named "&8[]" to close
        format slot 26 of player with 1 of 160:7 named "&8[]" to close
        format slot 27 of player with 1 of 160:7 named "&8[]" to close
        format slot 28 of player with 1 of 160:7 named "&8[]" to close
        format slot 29 of player with 1 of 160:7 named "&8[]" to close
        format slot 30 of player with 1 of 160:7 named "&8[]" to close
        format slot 31 of player with 1 of 160:7 named "&8[]" to close
        format slot 32 of player with 1 of 160:7 named "&8[]" to close
        format slot 33 of player with 1 of 160:7 named "&8[]" to close
        format slot 34 of player with 1 of 160:7 named "&8[]" to close
        format slot 35 of player with 1 of 160:7 named "&8[]" to close
        format slot 36 of player with 1 of 160:7 named "&8[]" to close
        format slot 37 of player with 1 of 160:7 named "&8[]" to close
        format slot 38 of player with 1 of 160:7 named "&8[]" to close
        format slot 39 of player with 1 of 339 named "&4Wlasciciel&8: &cPufer1337" to close
        format slot 40 of player with 1 of 339 named "&7Nasza Strona: &a123190.enmc.pl" to close
        format slot 41 of player with 1 of 339 named "&4Admin&8: &cArgonss" to close
        format slot 42 of player with 1 of 160:7 named "&8[]" to close
        format slot 43 of player with 1 of 160:7 named "&8[]" to close
        format slot 44 of player with 1 of 160:7 named "&8[]" to close
        format slot 45 of player with 1 of 160:7 named "&8[]" to close
        format slot 46 of player with 1 of 160:7 named "&8[]" to close
        format slot 47 of player with 1 of 160:7 named "&8[]" to close
        format slot 48 of player with 1 of 160:7 named "&8[]" to close
        format slot 49 of player with 1 of 160:7 named "&8[]" to close
        format slot 50 of player with 1 of 160:7 named "&8[]" to close
        format slot 51 of player with 1 of 160:7 named "&8[]" to close
        format slot 52 of player with 1 of 160:7 named "&8[]" to close
        format slot 53 of player with 1 of 160:7 named "&8[]" to close
 

Edytowane przez Pufer1337
Odnośnik do komentarza
https://skript.pl/temat/19545-pomoc-w-gui/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

końcówka "to close then run" wykonuje komendę PRZEZ KONSOLĘ.

możesz stworzyć osobne komendy, np:

command /vip <player>:
  	executable by: console
	trigger:
		send "&cInformacje o vipie" to arg-1

a następnie:

command /pomocvip:
	trigger:
		execute console command "vip %player%"

to tylko był przykład, dla zrozumienia.

a wtedy:

format slot 10 of player with 1 of 339 named "&a/Vip" with lore "&7Informacje O Randze Vip" to close then run "pomocvip"

Nie zawsze to "executable by: console" jest potrzebne, ale jeżeli dodam np to executable by: console, to tylko konsola będzie mogła wykonać tę komendę.

Jak napisałem nie zawsze jest to potrzebna, a z poziomu konsoli i tak wykonamy tę komendę.

Mam nadzieje, że zrozumiałeś mój przekaz i to co Ci wytłumaczyłem :P

Odnośnik do komentarza
https://skript.pl/temat/19545-pomoc-w-gui/#findComment-132995
Udostępnij na innych stronach

  • 0
22 godziny temu, ByczekTV napisał:

końcówka "to close then run" wykonuje komendę PRZEZ KONSOLĘ.

możesz stworzyć osobne komendy, np:


command /vip <player>:
  	executable by: console
	trigger:
		send "&cInformacje o vipie" to arg-1

a następnie:


command /pomocvip:
	trigger:
		execute console command "vip %player%"

to tylko był przykład, dla zrozumienia.

a wtedy:


format slot 10 of player with 1 of 339 named "&a/Vip" with lore "&7Informacje O Randze Vip" to close then run "pomocvip"

Nie zawsze to "executable by: console" jest potrzebne, ale jeżeli dodam np to executable by: console, to tylko konsola będzie mogła wykonać tę komendę.

Jak napisałem nie zawsze jest to potrzebna, a z poziomu konsoli i tak wykonamy tę komendę.

Mam nadzieje, że zrozumiałeś mój przekaz i to co Ci wytłumaczyłem :P

w cale nie jest wykonywane przez konsole zalezy co tam wpiszesz

Odnośnik do komentarza
https://skript.pl/temat/19545-pomoc-w-gui/#findComment-133197
Udostępnij na innych stronach

  • 0

owa komenda /vip powinna posiadac przed otwarciem gui wait 5 tick no np wait 5 tick ale moze byc inaczej ale 5 mysle ze biedzie git jak nie to proboj dac wiecej i testuj

przyklad

command /vip:

    wait 5 tick

i tutaj dalej to gui chyba rozumiesz tutaj sie zle pisze ale wiesz oco chodzi z tabami i te sprawy?

        

Odnośnik do komentarza
https://skript.pl/temat/19545-pomoc-w-gui/#findComment-133198
Udostępnij na innych stronach

  • 0
2 minuty temu, TeedPL napisał:

w cale nie jest wykonywane przez konsole zalezy co tam wpiszesz

jest ;)

*wati 1 tick będzie ok

i nie "powinno być" tylko jest to zalecane ;)

PS. Nawet w poradniku od Norbiego dot. GUI jest to zawarte:

  1. close then run "[Komenda]" - zamyka menu, wykonuje komendę WAŻNE! Komenda jest wykonywana przez konsole.
Odnośnik do komentarza
https://skript.pl/temat/19545-pomoc-w-gui/#findComment-133200
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ę...