Skocz do zawartości
  • 0

BŁĄD SKRYPTU EXCALIBUR


Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

A co ta funkcja tam porabia XD

on death:
    name of attacker's tool is "&e&oExcalibur":
        victim is a player:
            set {_s} to 2nd line of lore of attacker's tool
            set {_k} to subtext of {_s} from character 18 to (the length of {_s})
            set {_k} to {_k} parsed as number
            add 1 to {_k} 
            set the 2nd line of lore of attacker's tool to "&rPlayers Killed: %{_k}%"
on damage:
    name of attacker's tool is "&e&oExcalibur":
        apply strength 6 to attacker for 3 seconds
command /dajmiecz:
    trigger:
        if player can hold 1 diamond sword:
            give 1 of diamond sword named "&e&oExcalibir" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##17" to player
        else:
            drop 1 of diamond sword named "&e&oExcalibur" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##17" at player

 

Odnośnik do komentarza
https://skript.pl/temat/27884-b%C5%82%C4%85d-skryptu-excalibur/#findComment-184780
Udostępnij na innych stronach

  • 0
W dniu 25.06.2018 o 22:07, LuckyPotato napisał:

A co ta funkcja tam porabia XD


on death:
    name of attacker's tool is "&e&oExcalibur":
        victim is a player:
            set {_s} to 2nd line of lore of attacker's tool
            set {_k} to subtext of {_s} from character 18 to (the length of {_s})
            set {_k} to {_k} parsed as number
            add 1 to {_k} 
            set the 2nd line of lore of attacker's tool to "&rPlayers Killed: %{_k}%"
on damage:
    name of attacker's tool is "&e&oExcalibur":
        apply strength 6 to attacker for 3 seconds
command /dajmiecz:
    trigger:
        if player can hold 1 diamond sword:
            give 1 of diamond sword named "&e&oExcalibir" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##17" to player
        else:
            drop 1 of diamond sword named "&e&oExcalibur" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##17" at player

 

Błędy: https://tinypic.pl/98j2lidd98i9

Odnośnik do komentarza
https://skript.pl/temat/27884-b%C5%82%C4%85d-skryptu-excalibur/#findComment-185008
Udostępnij na innych stronach

  • 0

Masz tu trochę poprawioną wersję :)

Testowane na wersji serwera: PaperSpigot 1.8.8

Testowane na pluginach: SkQuery, WildSkript, skRayFall+v1.9.12 i oczywiście Skript

 

variables:
    {stattrack} = 0

on death:
    name of attacker's tool is "&e&oExcalibur":
        victim is a player:
            set {_s} to 2nd line of lore of attacker's tool
            set {_k} to subtext of {_s} from character 18 to (the length of {_s})
            set {_k} to {_k} parsed as number
            add 1 to {_k} 
            set the 2nd line of lore of attacker's tool to "&rPlayers Killed: %{_k}%"

on damage:
    name of attacker's tool is "&e&oExcalibur":
        wait a tick
        remove strength from attacker
        apply strength 6 to attacker for 3 seconds

command /dajmiecz [<text>]:
    trigger:
        player has permission "excalibur.dajmiecz":
            if player can hold 1 diamond sword:
                add 1 to {stattrack}
                give 1 of diamond sword named "&e&oExcalibur" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##%{stattrack}%" to player
            else:
                add 1 to {stattrack}
                drop 1 of diamond sword named "&e&oExcalibur" with lore "&6&oDescription&e&o: &rWlasnosc %displayname of player%||&rPlayers Killed: 0||&rStrange Weapon ##%{stattrack}%" at player
        else:
            send "&4&lBLAD: &cNie masz permisji, aby wykonac to polecenie!"

 

Edytowane przez Vylence
Nieaktywny

formatowanie na ciemnym stylu (╯°□°)╯︵ ┻━┻

Odnośnik do komentarza
https://skript.pl/temat/27884-b%C5%82%C4%85d-skryptu-excalibur/#findComment-185099
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ę...