Skocz do zawartości
  • 0

Skrypt na kolekcje


Pytanie

Hejka, byłby w tanie ktoś napisać skrypt na kolekcje?

 

Polega to na tym, że pod komendą /kolekcja wyświetla się gui z płytami muzycznymi, w gui płyta miałaby lore 0/1 i gracz klikając w daną płyte oddałby takową w zamian za $$$. Po oddaniu płyty lore zmienia się na 1/1 i nie można ponownie oddać już tego przedmiotu.

 

jeśli znacie może jakiś plugin który by na to pozwolił to też piszcie :D

daje <3 

Odnośnik do komentarza
https://skript.pl/temat/57164-skrypt-na-kolekcje/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

on join:
  if {sell1::%player's uuid%} is not set:
    set {sell1::%player's uuid%} to 0

command /kolekcja:
  trigger:
    set {kolekcja} to a new chest inventory with 3 rows named "&4&lKolekcja"
    loop 27 times:
      set slot (loop-number - 1) of {kolekcja} to black glass pane named " "
    set slot 13 of {kolekcja} to disc pigstep named "&a&lPłyta Pigstep" with lore "&7Jednorazowe użycie" and "&a%{sell1::%player's uuid%}%/1"
    show {kolekcja} to player
         
         
on inventory click:
  if name of event-inventory is "&4&lKolekcja":
    cancel event
    if index of event-slot is 13:
      if {sell1::%player's uuid%} is 0:
        if player has disc pigstep:
          close player's inventory
          remove disc pigstep from player's inventory
          send "&a&lOddano płytę za 100$" to player
          add 100 to {pieniadze::%player's uuid%}
          set {sell1::%player's uuid%} to 1
        else:
          send "&4&lNie posiadasz tej płyty!" to player
      else:
        send "&4&lOddałeś już tą płytę &71/1" to player





(WERSJA TESTOWANA: 1.20.1 Dodatki (niektóre są nie potrzebne raczej): sk, skquery, skript-reflect, skbee, skellett

Edytowane przez F1re
Odnośnik do komentarza
https://skript.pl/temat/57164-skrypt-na-kolekcje/#findComment-341017
Udostępnij na innych stronach

  • 0

występują błędy:
 

[20:39:05 INFO]: [37m[[33mSkript[37m] [0mReloading [33mkolekcja.sk[0m...
[20:39:05 INFO]: [1m[33mLine 1:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37mon join:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 2:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m  if {sell1::%player's uuid%} is not set:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 5:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37mcommand /kolekcja:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 6:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m  trigger:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 8:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m    loop 27 times:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 14:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37mon inventory click:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 15:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m  if name of event-inventory is "&4&lKolekcja":[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 17:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m    if index of event-slot is 13:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 18:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m      if {sell1::%player's uuid%} is 0:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 19:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m        if player has disc pigstep:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 25:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m        else:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[33mLine 27:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [93m    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.[0m
[20:39:05 INFO]: [33m    Line: [37m      else:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 2:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:   if {sell1::%player's uuid%} is not set[0m
[20:39:05 INFO]: [33m    Line: [37m  if {sell1::%player's uuid%} is not set:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 3:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m    set {sell1::%player's uuid%} to 0[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 5:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Required entry 'trigger' is missing[0m
[20:39:05 INFO]: [33m    Line: [37mcommand /kolekcja:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 6:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:   trigger[0m
[20:39:05 INFO]: [33m    Line: [37m  trigger:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 7:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m    set {kolekcja} to a new chest inventory with 3 rows named "&4&lKolekcja"[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 8:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:     loop 27 times[0m
[20:39:05 INFO]: [33m    Line: [37m    loop 27 times:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 9:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m      set slot (loop-number - 1) of {kolekcja} to black glass pane named " "[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 10:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m    set slot 13 of {kolekcja} to disc pigstep named "&a&lPłyta Pigstep" with lore "&7Jednorazowe użycie" and "&a%{sell1::%player's uuid%}%/1"[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 11:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m    show {kolekcja} to player[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 12:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m         [0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 13:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m         [0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 15:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:   if name of event-inventory is "&4&lKolekcja"[0m
[20:39:05 INFO]: [33m    Line: [37m  if name of event-inventory is "&4&lKolekcja":[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 16:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m    cancel event[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 17:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:     if index of event-slot is 13[0m
[20:39:05 INFO]: [33m    Line: [37m    if index of event-slot is 13:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 18:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:       if {sell1::%player's uuid%} is 0[0m
[20:39:05 INFO]: [33m    Line: [37m      if {sell1::%player's uuid%} is 0:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 19:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:         if player has disc pigstep[0m
[20:39:05 INFO]: [33m    Line: [37m        if player has disc pigstep:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 20:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          close player's inventory[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 21:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          remove disc pigstep from player's inventory[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 22:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          send "&a&lOddano płytę za 100$" to player[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 23:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          add 100 to {pieniadze::%player's uuid%}[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 24:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          set {sell1::%player's uuid%} to 1[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 25:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:         else[0m
[20:39:05 INFO]: [33m    Line: [37m        else:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 26:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m          send "&4&lNie posiadasz tej płyty!" to player[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 27:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    Can't understand this structure:       else[0m
[20:39:05 INFO]: [33m    Line: [37m      else:[0m
[20:39:05 INFO]:  
[20:39:05 INFO]: [1m[91mLine 28:[0m[37m (kolekcja.sk)[0m
[20:39:05 INFO]: [91m    invalid line - all code has to be put into triggers[0m
[20:39:05 INFO]: [33m    Line: [37m        send "&4&lOddałeś już tą płytę &71/1" to player[0m

 

Nicku

Wrzuciłem logi w blok kodu

Notatka dodana przez Nicku

Odnośnik do komentarza
https://skript.pl/temat/57164-skrypt-na-kolekcje/#findComment-341029
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ę...