Skocz do zawartości
  • 0

Ktoś niech mi pomoże ze skryptem do pvp


Pytanie

Ktoś to naprawi?

Logi:

Spoiler

[20:56:06] [Server thread/INFO]:     Linia: on first join:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 47: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 50: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia: on join:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 51: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 54: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia: on death of player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 55: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if attacker is player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 56: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:         if victim is online:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 59: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%attacker%} > {punkty::%victim%}:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 63: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%player%} is 0:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 47: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if {punkty::%player%} is not set
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 48: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:         set {punkty::%player%} to {@punkty}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 51: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if {punkty::%player%} is not set
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 52: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:         set {punkty::%player%} to {@punkty}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 53: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:  
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 55: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if attacker is player
[20:56:06] [Server thread/INFO]:     Linia:     if attacker is player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 56: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:         if victim is online
[20:56:06] [Server thread/INFO]:     Linia:         if victim is online:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 57: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:             add 1 to {zabicia::%attacker%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 58: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:             add 1 to {smierci::%victim%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 59: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:             if {punkty::%attacker%} > {punkty::%victim%}
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%attacker%} > {punkty::%victim%}:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 60: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 add 10 to {punkty::%attacker%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 61: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 remove 20 from {punkty::%victim%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 62: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 set death message to "Gracz &a%attacker% &8(&e+10&8) &6zabil gracza &a%victim% &7(&e-20&8)"
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 63: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:             if {punkty::%player%} is 0
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%player%} is 0:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 64: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 send "&cMasz juz &40 punktow&c! Nie mozesz wiecej stracic"

Dodatki:

skRayFall, Skellett, WildSkript, SKQuery

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 minutę temu, FixeQ napisał:

Ktoś to naprawi?

Logi:

  Pokaż ukrytą zawartość

[20:56:06] [Server thread/INFO]:     Linia: on first join:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 47: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 50: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia: on join:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 51: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 54: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia: on death of player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 55: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:     if attacker is player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 56: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:         if victim is online:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 59: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%attacker%} > {punkty::%victim%}:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 63: (pvp.sk)
[20:56:06] [Server thread/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.
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%player%} is 0:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 47: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if {punkty::%player%} is not set
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 48: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:         set {punkty::%player%} to {@punkty}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 51: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if {punkty::%player%} is not set
[20:56:06] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 52: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:         set {punkty::%player%} to {@punkty}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 53: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:  
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 55: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:     if attacker is player
[20:56:06] [Server thread/INFO]:     Linia:     if attacker is player:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 56: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:         if victim is online
[20:56:06] [Server thread/INFO]:     Linia:         if victim is online:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 57: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:             add 1 to {zabicia::%attacker%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 58: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:             add 1 to {smierci::%victim%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 59: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:             if {punkty::%attacker%} > {punkty::%victim%}
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%attacker%} > {punkty::%victim%}:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 60: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 add 10 to {punkty::%attacker%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 61: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 remove 20 from {punkty::%victim%}
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 62: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 set death message to "Gracz &a%attacker% &8(&e+10&8) &6zabil gracza &a%victim% &7(&e-20&8)"
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 63: (pvp.sk)
[20:56:06] [Server thread/INFO]:     Can't understand this structure:             if {punkty::%player%} is 0
[20:56:06] [Server thread/INFO]:     Linia:             if {punkty::%player%} is 0:
[20:56:06] [Server thread/INFO]:  
[20:56:06] [Server thread/INFO]: Linia 64: (pvp.sk)
[20:56:06] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[20:56:06] [Server thread/INFO]:     Linia:                 send "&cMasz juz &40 punktow&c! Nie mozesz wiecej stracic"

Dodatki:

skRayFall, Skellett, WildSkript, SKQuery

Dodatki które mam

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332856
Udostępnij na innych stronach

  • 0
skRayFall, Skellett, WildSkript, SKQuery

A do czego to potrzebne?

skrayfall moze do scoreboarda, reszta zabytek

skellet, chyba jakies hologramy? sa w skbee

wildskript- 2014 byl 9 lat temu

skquery- poza villagerami nic nie jest z niego potrzebne

on first join:
    if {punkty::%player%} is not set:
        set {punkty::%player%} to {@punkty}

Można zamienić na

variables:
	{punkty::%player%} = {@punkty}

Automatycznie jezeli taka zmienna nie bedzie istniec przy graczu to sie utworzy

Tak samo on join mozna wyrzucic

Co do błedów:

if {punkty::%player%} is 0:

linijka 18

%player% sie nie uzywa w evencie on damage/death

Te addony wyrzuć do kosza, moze one ci daja jakies errory, bo ja przetestowalem i nic mi nie wyskoczylo poza tym 1

Poprawiony kod: 

Edytowane przez Fendi
Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332858
Udostępnij na innych stronach

  • 0
23 godziny temu, Fendi napisał:
skRayFall, Skellett, WildSkript, SKQuery

A do czego to potrzebne?

skrayfall moze do scoreboarda, reszta zabytek

skellet, chyba jakies hologramy? sa w skbee

wildskript- 2014 byl 9 lat temu

skquery- poza villagerami nic nie jest z niego potrzebne

on first join:
    if {punkty::%player%} is not set:
        set {punkty::%player%} to {@punkty}

Można zamienić na

variables:
	{punkty::%player%} = {@punkty}

Automatycznie jezeli taka zmienna nie bedzie istniec przy graczu to sie utworzy

Tak samo on join mozna wyrzucic

Co do błedów:

if {punkty::%player%} is 0:

linijka 18

%player% sie nie uzywa w evencie on damage/death

Te addony wyrzuć do kosza, moze one ci daja jakies errory, bo ja przetestowalem i nic mi nie wyskoczylo poza tym 1

Poprawiony kod: 

Ale nadal 4 błędy

Ps. Usunąłem Skellet, WildSkript i skQuery. skRayFall będzie potrzebny do scoreboarda

Spoiler

[21:01:10] [Server thread/INFO]: Linia 47: (pvp.sk)
[21:01:10] [Server thread/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.
[21:01:10] [Server thread/INFO]:     Linia: on first join:
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: Linia 48: (pvp.sk)
[21:01:10] [Server thread/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.
[21:01:10] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: Linia 9: (pvp.sk)
[21:01:10] [Server thread/INFO]:     Can't understand the value '{@punkty}'
[21:01:10] [Server thread/INFO]:     Linia: {punkty::%player%}: {@punkty}
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: Linia 48: (pvp.sk)
[21:01:10] [Server thread/INFO]:     Can't understand this structure:     if {punkty::%player%} is not set
[21:01:10] [Server thread/INFO]:     Linia:     if {punkty::%player%} is not set:
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: Linia 49: (pvp.sk)
[21:01:10] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[21:01:10] [Server thread/INFO]:     Linia:         set {punkty::%player%} to {@punkty}
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: Linia 50: (pvp.sk)
[21:01:10] [Server thread/INFO]:     invalid line - all code has to be put into triggers
[21:01:10] [Server thread/INFO]:     Linia:  
[21:01:10] [Server thread/INFO]:  
[21:01:10] [Server thread/INFO]: [Skript] Napotkano 4 błędów podczas przeładowywania pvp.sk! (304ms)

 

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332890
Udostępnij na innych stronach

  • 0

to co dales wczesniej to chyba nie jest caly skrypt, pokaz caly

W tym skrypcie co ci wyslalem nie dalem nigdzie on first join

Scoreboarda polecam zrobic w pluginie TAB https://github.com/NEZNAMY/TAB

Edytowane przez Fendi
Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332891
Udostępnij na innych stronach

  • 0
options:
    punkty: 1000

variables:
    {gracze.walka} = 0
    {czas.walka} = 0
    {odliczanie} = 0
    {spawn.start} = 0
    {punkty::%player%} = {@punkty}
    
on break:
    cancel event

every 1 second:
    if {odliczanie} is higher than 0:
        reset the titles of all players
        remove 1 from {odliczanie}
        send title "Walka rozpocznie się za" with subtitle "%{odliczanie}%" to all players for 1 seconds
    if {gracze.walka} is 2:
        set {odliczanie} to 10
        if {odliczanie} is 0:
            send title "Walka rozpoczęta" with subtitle "Baw się dobrze i wygraj!" to all players for 3 seconds
    

every 1 minute:
    execute console command "/time set day"

command /walka [<text>]:
    aliases: walka, pvp
    trigger:
        if arg 1 is "start":
            add 1 to {gracze.walka}
            if {gracze.walka} is 1:
                execute console command "/tp %player% 143 -60 -142"
                send title "&bOczekiwanie na graczy" to player for 10 minutes
            else:
                execute console command "/tp %player% -128 -60 148"
            if {gracze.walka} is higher than 2:
                set the gamemode of the player to spectator
                execute console command "/tp %player% -43 -36 57"
        
command /wyjdz:
    trigger:
        execute console command "/tp %player% 32 62 552"
        remove 1 from {gracze.walka}
        

on death of player:
    attacker is player
    victim is online
    add 1 to {zabicia::%attacker%}
    add 1 to {smierci::%victim%}
    if {punkty::%attacker%} > {punkty::%victim%}:
        add 10 to {punkty::%attacker%}
        remove 20 from {punkty::%victim%}
        set death message to "Gracz &a%attacker% &8(&e+10&8) &6zabil gracza &a%victim% &7(&e-20&8)"
    if {punkty::%attacker%} is 0:
        send "&cMasz juz &40 punktow&c! Nie mozesz wiecej stracic" to attacker

0 errorow w tym u mnie

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332895
Udostępnij na innych stronach

  • 0
28 minut temu, Fendi napisał:
options:
    punkty: 1000

variables:
    {gracze.walka} = 0
    {czas.walka} = 0
    {odliczanie} = 0
    {spawn.start} = 0
    {punkty::%player%} = {@punkty}
    
on break:
    cancel event

every 1 second:
    if {odliczanie} is higher than 0:
        reset the titles of all players
        remove 1 from {odliczanie}
        send title "Walka rozpocznie się za" with subtitle "%{odliczanie}%" to all players for 1 seconds
    if {gracze.walka} is 2:
        set {odliczanie} to 10
        if {odliczanie} is 0:
            send title "Walka rozpoczęta" with subtitle "Baw się dobrze i wygraj!" to all players for 3 seconds
    

every 1 minute:
    execute console command "/time set day"

command /walka [<text>]:
    aliases: walka, pvp
    trigger:
        if arg 1 is "start":
            add 1 to {gracze.walka}
            if {gracze.walka} is 1:
                execute console command "/tp %player% 143 -60 -142"
                send title "&bOczekiwanie na graczy" to player for 10 minutes
            else:
                execute console command "/tp %player% -128 -60 148"
            if {gracze.walka} is higher than 2:
                set the gamemode of the player to spectator
                execute console command "/tp %player% -43 -36 57"
        
command /wyjdz:
    trigger:
        execute console command "/tp %player% 32 62 552"
        remove 1 from {gracze.walka}
        

on death of player:
    attacker is player
    victim is online
    add 1 to {zabicia::%attacker%}
    add 1 to {smierci::%victim%}
    if {punkty::%attacker%} > {punkty::%victim%}:
        add 10 to {punkty::%attacker%}
        remove 20 from {punkty::%victim%}
        set death message to "Gracz &a%attacker% &8(&e+10&8) &6zabil gracza &a%victim% &7(&e-20&8)"
    if {punkty::%attacker%} is 0:
        send "&cMasz juz &40 punktow&c! Nie mozesz wiecej stracic" to attacker

0 errorow w tym u mnie

A fajny skrypt?

 

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332898
Udostępnij na innych stronach

  • 0

Taki o, wgrac plugin z takimi samymi opcjami bylo by szybciej niż to pisać

Ja mam bez addonow

Wywal skrayfalla, a scoreboard zrob sobie w pluginie TAB, moze on ci cos psuje

Odnośnik do komentarza
https://skript.pl/temat/55044-kto%C5%9B-niech-mi-pomo%C5%BCe-ze-skryptem-do-pvp/#findComment-332899
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ę...