Skocz do zawartości
  • 0

Problem z skryptem.


Sallciq
 Udostępnij

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 "Od teraz Twoj przedmiot zadaje +2 dmg!"
                stop
            send "Twoj item sie spalil!"
        send "Twoim przedmiotem w rece musi byc jakikolwiek miecz!"

on damage:
    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 wywala:    mPEdSbs.png

Edytowane przez HeezQ
HeezQ

Wstawiam na obraz bezpośredni

Notatka dodana przez HeezQ

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...