Skocz do zawartości
  • 0

jak zrobić by skript nie działał w customowych światach a w normalnych tak


Pytanie

Witam mam problem bo nie wiem jak zrobić by ten skript działał np world,world_nether,world_end a w customowych np void nie. Od razu mówię najlepiej było by wysłać poprawiony kod bo nie wiem gdzie wstawiać. ( :

 

command /skulls:check [<text>]:
    trigger:
        loop {czaszki::*}:
            send "&8&l[&r&6crsv&eSkulls&r&8&l] &fGracz %loop-index% posiada ☠!"

on death of player:
    "%all players%" contain "%attacker%"
    if {czaszki::%victim%} is set:
        add 100 to attacker's balance
        send "&aGracz &a%attacker% &azabil &aagresywnego gracza &a%victim% &a- &anagroda &a100$" to all players
        clear {czaszki::%victim%}
    else:
        set {czaszki::%attacker%} to 24*60
        remove 100 from ("%attacker%" parsed as player)'s balance
        send attacker title "&f☠" with subtitle "" for 6 seconds
        send "&cGracz &c%attacker% &czabil &cpokojowego &cgracza &c%victim% &c- &ckara &c100$ &ci &cczaszka" to all players
every minute:
    loop {czaszki::*}:
        remove 1 from {czaszki::%loop-index%}
        if {czaszki::%loop-index%} is 0:
            clear {czaszki::%loop-index%}
on join:
    while player is online:
        if {czaszki::%player%} is more than 0:
            set {czaszka::%player%} to "☠"
        else:
            set {czaszka::%player%} to "&f"
        wait 10 second
		
command /skulls:reset [<offlineplayer>]:
	permission: czaszki.reset
	permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is a mistake.
	trigger:
		if arg is set:
			clear {czaszki::%arg 1%}
			send "&8&l[&r&6crsv&eSkulls&r&8&l] &fGracz %arg 1% Nie posiada już czaszki."
			stop
		else:
			send "&7Poprawne uzycie tej komendy:&a /skulls:reset nick"
			stop
		
command /skulls:give [<offlineplayer>]:
	permission: czaszki.give
	permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is a mistake.
	trigger:
		if arg is set:
			set {czaszki::%arg 1%} to 24*60
			send "&8&l[&r&6crsv&eSkulls&r&8&l] &fGracz %arg 1% Otrzymuje czaszke"
			stop
		else:
			send "&7Poprawne uzycie tej komendy:&a /skulls:give nick "
			stop

 

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

wyskakuje error

[09:56:06] [Server thread/INFO]: [Skript] Reloading the config and all scripts...

[09:56:10] [Server thread/INFO]: Loaded 114752 aliases in 4650ms

[09:56:10] [Server thread/ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (J03SpBgM.sk, line 22: if "%player's world%" is not "world" or "world_nether" or "world_end":')

[09:56:10] [Server thread/WARN]: Possible name conflict of variables {czaszki::%loop-index%} and {czaszki::*} (there might be more conflicts). (J03SpBgM.sk, line 25: remove 1 from {czaszki::%loop-index%}')

[09:56:10] [Server thread/WARN]: Possible name conflict of variables {czaszki::%arg 1%} and {czaszki::*} (there might be more conflicts). (J03SpBgM.sk, line 45: clear {czaszki::%arg 1%}')

[09:56:11] [Server thread/INFO]: Loaded 3 scripts with a total of 12 triggers and 9 commands in 0.22 seconds

[09:56:11] [Server thread/INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!

  • 0
[10:10:38] [Server thread/INFO]: [Skript] Reloading the config and all scripts...
[10:10:43] [Server thread/INFO]: Loaded 114752 aliases in 4458ms
[10:10:43] [Server thread/ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (a2frHAuB.sk, line 23: if "%player's world%" is not "world" or "world_nether" or "world_end":')
[10:10:43] [Server thread/WARN]: Possible name conflict of variables {czaszki::%loop-index%} and {czaszki::*} (there might be more conflicts). (a2frHAuB.sk, line 25: remove 1 from {czaszki::%loop-index%}')
[10:10:43] [Server thread/WARN]: Possible name conflict of variables {czaszki::%arg 1%} and {czaszki::*} (there might be more conflicts). (a2frHAuB.sk, line 45: clear {czaszki::%arg 1%}')
[10:10:43] [Server thread/INFO]: Loaded 3 scripts with a total of 12 triggers and 9 commands in 0.59 seconds
[10:10:43] [Server thread/INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!

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ę...