Skocz do zawartości
  • 0

Upgrade itemow - Skrypt na ulepszanie przedmiotow


Pytanie

on click on entity:
    if name of clicked entity contains "Kowal":
        if player's tool is any sword:
            if (random integer between 1 and 2) is 1:
                if lore of player's tool contains "&aObrazenia":
                    set {_lore} to ("%uncoloured lore of player's tool%".replace("Obrazenia: +", "") parsed as integer)
                    set {_dodaj} to {_lore}+2
                    set lore of player's tool to "&aObrazenia: +%{_dodaj}%"
                    send "Od teraz Twoj przedmiot zadaje +%{_dodaj}% dmg!"
                    stop
                set lore of player's tool to "&aObrazenia: +2"
                send "&6&lGothic&e&lmc &cOd teraz Twoj przedmiot zadaje +2 dmg!"
                stop
            send "&6&lGothic&e&lmc &cTwoj item sie spalil!"
        send "Twoim przedmiotem w rece musi byc jakikolwiek miecz!"

on damage:
    if attacker is player:
        if player's tool is any sword:
            if lore of player's tool contains "&aObrazenia:":
                set {_lore} to ("%uncoloured lore of player's tool%".replace("Obrazenia: +", "") parsed as integer) 
                set {_currentDamage} to (player's damage + {_lore})
                set player's damage to {_lore}

Skrypt nie wyświetla wiadomości oraz nie zwieksza obrazen miecza, nie "spala" itemów, czyli go nie usuwa. Lore dziala, po przeladowaniu skryptu nic nie wywala. Z góry dzięki za pomoc.

Edytowane przez Sallciq
Odnośnik do komentarza
https://skript.pl/temat/37716-upgrade-itemow-skrypt-na-ulepszanie-przedmiotow/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on damage:
    if attacker is player:
        if player's tool is any sword:
            if lore of player's tool contains "&aObrazenia:":
                set {_lore} to ("%uncoloured lore of player's tool%".replace("Obrazenia: +", "") parsed as integer) 
                set {_currentDamage} to (damage + {_lore})
                set damage to {_currentDamage}

 

Odnośnik do komentarza
https://skript.pl/temat/37716-upgrade-itemow-skrypt-na-ulepszanie-przedmiotow/#findComment-239449
Udostępnij na innych stronach

  • 0
18 minut temu, xAxee napisał:

on damage:
    if attacker is player:
        if player's tool is any sword:
            if lore of player's tool contains "&aObrazenia:":
                set {_lore} to ("%uncoloured lore of player's tool%".replace("Obrazenia: +", "") parsed as integer) 
                set {_currentDamage} to (damage + {_lore})
                set damage to {_currentDamage}

 

Nadal nie zmienia damage broni ;/

Odnośnik do komentarza
https://skript.pl/temat/37716-upgrade-itemow-skrypt-na-ulepszanie-przedmiotow/#findComment-239452
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ę...