Skocz do zawartości
  • 0

Skrypt - auto repair


Szymon21xxPL
 Udostępnij

Pytanie

on damage:
if victim has permissions "bcs.restore":
wait 5 ticks
 
if victim's helmet is leather cap:
repair victim's helmet slot
if victim's chestplate is leather chestplate:
repair victim's chestplate slot
if victim's leg is leather pants:
repair victim's leg slot
if victim's boots is leather boots:
repair victim's boots slot
if victim's helmet is diamond helmet:
repair victim's helmet slot
if victim's chestplate is diamond chestplate:
repair victim's chestplate slot
if victim's leg is diamond leggings:
repair victim's leg slot
if victim's boots is diamond boots:
repair victim's boots slot
if victim's helmet is golden helmet:
repair victim's helmet slot
if victim's chestplate is golden chestplate:
repair victim's chestplate slot
if victim's leg is golden leggings:
repair victim's leg slot
if victim's boots is golden boots:
repair victim's boots slot
if victim's helmet is chain helmet:
repair victim's helmet slot
if victim's chestplate is chain chestplate:
repair victim's chestplate slot
if victim's leg is chain leggings:
repair victim's leg slot
if victim's boots is chain boots:
repair victim's boots slot
if victim's helmet is iron helmet:
repair victim's helmet slot
if victim's chestplate is iron chestplate:
repair victim's chestplate slot
if victim's leg is iron leggings:
repair victim's leg slot
if victim's boots is iron boots:
repair victim's boots slot
 
Tak wygląda mój skript na automatyczną naprawe zbroi. Ale jest mały problem, ponieważ chciałbym też zrobić taki sam na naprawe miecza i nie wiem jak go zrobić :(
Wydaję mi się, że jest to na 2 minuty roboty, więc prosze kogoś o pomoc ;c
 
Wydaje mi się, że powinno wyglądać to tak :
 
on hit:
if attacker has permissions "bcs.restore":
wait 5 ticks
 
if attacker's sword is wooden sword:
repair attacker's sword slot
 
Lecz niestety ten sposób nie działa, więc proszę o poprawienie w nim moich błędów, z góry dziękuje :)
 
Odnośnik do komentarza
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Co do tego co wkleiłeś, można krócej:

on damage:    victim has permission "costam":        repair victim's helmet        repair victim's chestplate        repair victim's leggins        repair victim's boots#albo moze (zamiast tych "repair ...")        repair victim's armor
Co do miecza:

on damage:    attacker has permission "costam":        attacker's tool is any sword:            set the damage of attacker's tool to 0
Powinno zadziałać...

Edit: Proszę, nie double-, triple- i multipostuj bo ktoś ci wlepi warna, a pewnie tego nie chcesz.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Co do tego co wkleiłeś, można krócej:

on damage:    victim has permission "costam":        repair victim's helmet        repair victim's chestplate        repair victim's leggins        repair victim's boots#albo moze (zamiast tych "repair ...")        repair victim's armor
Co do miecza:

on damage:    attacker has permission "costam":        attacker's tool is any sword:            set the damage of attacker's tool to 0
Powinno zadziałać...

Edit: Proszę, nie double-, triple- i multipostuj bo ktoś ci wlepi warna, a pewnie tego nie chcesz.

 

Nie dziala, ta komenda jest jakas zaklęta ;(

Odnośnik do komentarza
Udostępnij na innych stronach

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