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.
Pytanie
Sallciq 0
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 SallciqOdnoś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
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ą.