Skocz do zawartości
  • -2

MysteryBoxy


lightereq

Pytanie

witam napisze ktoś skrypt że jak wpiszemy /mysterybox wyswietlaja nam sie komendy, /mysterybox all <ilosc> daje wszystkim mysteryboxy tyle ile wpiszemy i /mysterybox give <nick> <ilosc daje grazczowi jednemu. Dostajemy Skrzynke i gdy ją połozymy i otworzymy to w skrzynce będą 2 Itemy które będą losowane np. albo 2 bacony i 32 kaktusy albo 3 Diamentowe bloki i jakiś blok daje przykład !!

Odnośnik do komentarza
https://skript.pl/temat/28846-mysteryboxy/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • -1

Bledy:

[10:29:01 INFO]: [Skript] Reloading mystery.sk...
[10:29:01 WARN]: 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. (mystery.sk, line 8: if arg 1 is "give":')
[10:29:01 WARN]: 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. (mystery.sk, line 9: if arg 2 is not set:')
[10:29:01 WARN]: 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. (mystery.sk, line 12: if arg 3 set:')
[10:29:01 WARN]: 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. (mystery.sk, line 13: loop all players:')
[10:29:01 WARN]: 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. (mystery.sk, line 16: else:')
[10:29:01 WARN]: 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. (mystery.sk, line 17: if arg 3 is set:')
[10:29:01 ERROR]: '3 set' is not a type (mystery.sk, line 12: if arg 3 set:')
[10:29:01 ERROR]: There's no loop that matches 'loop-player' (mystery.sk, line 14: give %arg-3% chest named "&9Mystery&1Box" to loop-player')
[10:29:01 ERROR]: '%arg-2%' is not an entity type (mystery.sk, line 18: give %arg-3% chest named "&9Mystery&1Box" to %arg-2%')
[10:29:01 INFO]: [Skript] Encountered 3 errors while reloading mystery.sk!

Skrypt:

command /mysterybox [<text>] [<text>] [<integer>]:
    permission: m.give
    permission message: &cBrak dostępu!
    trigger:
        if arg 1 is not set:
            send "&9MysteryBox"
            send "&9/mysterybox &7<give> &7<all/nick> &7<ilosc>"
            if arg 1 is "give":
            if arg 2 is not set:
            send "&cPoprawne użycie: &9/mysterybox &7<give> &7<all/nick> &7<ilosc>"
            if arg 2 is "all":
                if arg 3 set:
                loop all players:
                give %arg-3% chest named "&9Mystery&1Box" to loop-player
           
            else:
            if arg 3 is set:
            give %arg-3% chest named "&9Mystery&1Box" to %arg-2% 
on place:
    if player's tool is chest named "&9Mystery&1Box":
        cancel event
        set {_number.%player%} to random integer between 1 and 4
        if {_number.%player%} is 1:
            give 1 dirt to player
            send "1"
        if {_number.%player%} is 2:
            give 1 dirt to player
            send "2"
        if {_number.%player%} is 1:
            give 1 dirt to player
            send "3"
        if {_number.%player%} is 1:
            give 1 dirt to player
            send "4"
               

 

Odnośnik do komentarza
https://skript.pl/temat/28846-mysteryboxy/#findComment-190687
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ę...