Skocz do zawartości
  • 0

Arena oraz losowy spawn na niej


Baroszek

Pytanie

Cześć, czy ktoś pomoże z napisaniem w skripcie areny która trwa np. 5min. Przenosisz się na nią przez tabliczkę do terenu lobby który ustawisz komendą.

A potem gdy zacznie się arena przenosi na wyznaczone miejsce np kwadrat który zaznaczasz worldeditem i ustawiaja sie tam losowe respawny , po śmierci gracza on się znowu respi się w losowym miejscu na arence tak przez czas trwania areny czyli 5minut.

 

Niewiem czy dostatecznie wyjaśniłem o co mi chodzi :)

Wiem że jest to już zaawansowane ale czekam na odważnych którzy się tego podejmą :)

 

Ps. Te arenki to tak po 10 osób. 

Edytowane przez Baroszek
Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0

A co Cię zainteresowało za to ? :) Nie jestem jakiś bogaty ale możemy pomyśleć:)

Niestety dzikoysk nie ma czasu ale stwierdził że takie coś lepiej w pluginie zrobić będzie bardziej wydajne.

Ale jak to ma być kilka aren po 10-15 osób to powiedział że skrypt też da radę. 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Więc chciałbym aby arenka trwałą 5 min aby można było dołączyć przez tabliczkę na której jest tam nazwa tej areny i ile osób online.

Do tego to co stworzyłeś jest na jedną arenkę a chciałbym żeby mozna było kilka. Nie ma niestety miejsca ustawienia lobby tzn jak skonczy się arena tam gdzie Cię tepnie.

Co do reszty to nie wiem jak dokładnie ustawić bo nie działa i jakbyś zrobił to proszę mały poradnik do tego :)

I tak dostaniesz likę za starania ale czekam dalej :)

A więc tak poniżej błąd z konsoli :)

[20:48:10 INFO]: [Skript] Reloading arena.sk...[20:48:10 ERROR]: indentation error: expected 1 tab, but found 2 tabs (arena.sk, line 7: if line 2 is "&3lobby":')[20:48:10 ERROR]: indentation error: expected 1 tab, but found 3 tabs (arena.sk, line 8: execute player command "arena join"')[20:48:10 ERROR]: indentation error: expected 1 tab, but found 2 tabs (arena.sk, line 9: if line 2 is "&3lobby" or "&3spawn":')[20:48:10 ERROR]: indentation error: expected 1 tab, but found 3 tabs (arena.sk, line 10: execute player command "arena spawn"')[20:48:10 ERROR]: indentation error: expected 1 tab, but found 2 tabs (arena.sk, line 11: if line 2 is "&3leave":')[20:48:10 ERROR]: indentation error: expected 1 tab, but found 3 tabs (arena.sk, line 12: execute player command "arena leave"')[20:48:11 ERROR]: 'if line 1' is not an entity type (arena.sk, line 6: if line 1 is "&2PowerArena"')[20:48:11 ERROR]: The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%. (arena.sk, line 17: send "&{@logo}%&4Grasz dalej!"')[20:48:11 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 32: send "%{@logo}%&6Do��czy�e� do areny!"')[20:48:12 ERROR]: Can't understand this expression: ('random between 1' and {index.number.%the player%}) (arena.sk, line 37: set {_random.number} to random between 1 and {index.number.%player%}')[20:48:12 ERROR]: 'gracz' is not an entity type (arena.sk, line 42: if {@sk.PA.czy.admin} is "gracz":')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 49: send "%{@logo}%&4Ju� jeste� na arenie!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 59: send "%{@logo}%&4Wyszed�e� za Areny!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 68: send "%{@logo}%&4Zosta�e� przeteleportowany na spawn!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 79: send "%{@logo}%Zmieniono pozycj� spawnu!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 82: send "%{@logo}%Zapisano pozycj� spawnu!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 84: send "%{@logo}%&4Nie masz praw do tego!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 97: send "%{@logo}%&4Zmieniono pozycje respawnu numer %{_numerek.%player%}%"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 100: send "%{@logo}%&4ZZapisano pozycje respawnu numer %{_numerek.%player%}%"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 103: send "%{@logo}%Musisz poda� numerek"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 105: send "%{@logo}%&4Nie masz praw do tego!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 121: send "%{@logo}%&4B��d!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 124: send "%{@logo}%&4Nie masz praw do tego!"')[20:48:12 ERROR]: The command doesn't have a 3rd argument (arena.sk, line 134: if arg 3 is set:')[20:48:12 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (arena.sk, line 137: else:')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 143: send "%{@logo}%&4Nie masz praw do tego!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 167: Broadcast "%{@logo}%&4Koniec Areny!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 169: send "%{@logo}%&4Arena ju� trwa!"')[20:48:12 ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 171: send "%{@logo}%&4Nie masz praw do tego!"')[20:48:13 INFO]: [Skript] Encountered 29 errors while reloading arena.sk!
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

https://code.skript.pl/QbnduQDp/

linijka 1:

&2PowerArena

linijka 2(dołanaczasz):

&3join

lub linijka 2 tak(do lobby):

&3lobby

albo można jeszcze linijke 2 tak(wychodzisz z areny):

&3leave

 

Dodałem nową wersję:

https://code.skript.pl/DidpY7YH/

Nie testowana, bo nie mam czasu i tyle. W teorii nawet nie powinienem sie tym teraz bawić, bo mam za dużo rzeczy do zrobienia, ale najwyżej pośpię trochę mniej ;P

Wszystko powinieneś wyczytać ze skryptu, więc poradnika nie robiłem. Wystarczy odrobina chęci, albo wpisanie komend /arena

Edytowane przez Ewald
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Błąd :((

Żadna komenda nie działa jak ją wpisze to wyswietlaja się komendy z pomocy.

[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 4 tabs (arena.sk, line 8: if line 3 is set:')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 5 tabs (arena.sk, line 9: set {_name.of.arena} to arg 3 parsed as text')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 5 tabs (arena.sk, line 10: set {_jest} to false')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 5 tabs (arena.sk, line 11: loop {arens.list::*}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 6 tabs (arena.sk, line 12: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 6 tabs (arena.sk, line 13: set {_jest} to true')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 6 tabs (arena.sk, line 14: exit loop')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 5 tabs (arena.sk, line 15: if {_jest} is true:')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 6 tabs (arena.sk, line 16: execute player command "arena join %{_name.of.arena}%"')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 5 tabs (arena.sk, line 17: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 6 tabs (arena.sk, line 18: send "{@logo}&4Podana nazwa areny jest niewÄżËaÄżËciwa!"')[20:15:36] [Server thread/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. (arena.sk, line 49: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/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. (arena.sk, line 122: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 149: set {sk.PA.poprawnosc.%player%} to true')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 150: if player have permission "Power.arena.admin":')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 151: if arg 2 is "lista":')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 152: if arg 3 is set:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 153: set {_name.of.arena} to arg 3')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 154: set {_jest} to false')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 155: loop {arens.list::*}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 156: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 157: set {_jest} to true')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 158: exit loop')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 159: if {_jest} is true:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 160: send "Lista respawnÄżËw na arenie %{_name.of.arena}%:"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 161: loop {sk.PA.respawn.%{_name.of.arena}%.list::*}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 10 tabs (arena.sk, line 162: set {_nr.respawn} to loop-value')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 10 tabs (arena.sk, line 163: set {_nr.index} to loop-index')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 10 tabs (arena.sk, line 164: send "%{_nr.index}%) %{_nr.respawn}%"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 165: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 9 tabs (arena.sk, line 166: send "{@logo}&4arena !"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 167: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 168: send "{@logo}&4Musisz podaÄżË nazwÄżË areny!"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 169: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 170: send "{@logo}&4BÄżËÄżËd!"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 171: execute player command "arena"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 172: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 173: send "{@logo}&4Nie masz praw do tego!"')[20:15:36] [Server thread/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. (arena.sk, line 148: if arg 1 is "respawn":')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 180: set {sk.PA.poprawnosc.%player%} to true')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 181: if arg 2 is "Lista"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 182: if arg 3 is "areny" or "arens":')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 183: send "Oto lista aren:"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 184: loop {arens.list::*}:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 185: set {_index} to loop-index')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 186: set {_value} to loop-value')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 8 tabs (arena.sk, line 187: send "%{_index}%) %{_value}%"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 188: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 7 tabs (arena.sk, line 189: send "{@logo} dostÄżËpne listy to: areny lub respawn"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 5 tabs (arena.sk, line 190: else:')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 191: send "{@logo} &4BÄżËÄżËd!"')[20:15:36] [Server thread/ERROR]: indentation error: expected 4 tabs, but found 6 tabs (arena.sk, line 192: execute player command "arena"')[20:15:36] [Server thread/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. (arena.sk, line 179: if arg 1 is "respawn":')[20:15:36] [Server thread/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. (arena.sk, line 207: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/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. (arena.sk, line 280: if loop-value is {_name.of.arena}:')[20:15:36] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (arena.sk, line 19: else:')[20:15:36] [Server thread/ERROR]: The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%. (arena.sk, line 29: send "&{@logo}%&4Grasz dalej!"')[20:15:36] [Server thread/ERROR]: '§6[§4PowerArena§6]' is not an entity type (arena.sk, line 53: send "%{@logo}%&6DoÄżËÄżËczyÄżËeÄżË do areny!"')[20:15:36] [Server thread/ERROR]: Can't understand this expression: ('random between 1' and {index.number.%the player%}) (arena.sk, line 59: set {_random.number} to random between 1 and {index.number.%player%}')[20:15:36] [Server thread/ERROR]: The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%. (arena.sk, line 60: loop {sk.PA.respawn.%{%player%.arena}%.%list::*}:')[20:15:36] [Server thread/ERROR]: 'gracz' is not an entity type (arena.sk, line 64: if {@sk.PA.czy.admin} is "gracz":')[20:15:36] [Server thread/ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (arena.sk, line 138: send "{@logo}&4Musisz podaÄżË nazwÄżË areny!')[20:15:36] [Server thread/ERROR]: Can't understand this condition/effect: "&6[&4PowerArena&6] Arena %arg 3% nie istnieje!" (arena.sk, line 214: "{@logo} Arena %arg 3% nie istnieje!"')[20:15:36] [Server thread/ERROR]: Can't understand this condition/effect: set {_name.of.aren} (arena.sk, line 277: set {_name.of.aren}')[20:15:37] [Server thread/ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (arena.sk, line 313: send "&4/arena remove &cnazwa &6- usuwa arenÄżË')[20:15:37] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 59 errors while reloading [0;33;22marena.sk[m![m
Odnośnik do komentarza
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ę...