Skocz do zawartości
  • 0

Dark Orbit - Zbroja Blokada


Nieaktywny

Pytanie

Robie serwer dark orbit i chce zablokować zdejmowanie zbroji próbowałem z on click: if clicked entity is helmet or chestplate itd... ale to tylko na ppm działa a normalnie się da przez ekwipunek a blokowanie inventory to wyskakuje error że się nie da do tego eventu kodu dać :/ Jakieś rady ?

Odnośnik do komentarza
https://skript.pl/temat/10117-dark-orbit-zbroja-blokada/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

działa tak w połowie czyli klikam hełm to on się kopiuje :(

EDIT: postanowiłem pomyśleć i przerobiłem twój skrypt na taki:

On inventory click:
    If helmet or Chestplate or leggings or boots of player is diamond helmet or diamond chestplate or diamond leggings or diamond boots:
        equip player with diamond helmet or diamond chestplate or diamond leggings or diamond boots
        cancel event

EDIT 2: yyy jednak nie działa

On inventory click:
    If helmet or Chestplate or leggings or boots of player is diamond helmet or diamond chestplate or diamond leggings or diamond boots:
        equip player with diamond helmet or diamond chestplate or diamond leggings or diamond boots
        cancel event
    If helmet or Chestplate or leggings or boots of player is iron helmet or iron chestplate or iron leggings or iron boots:
        equip player with iron helmet or iron chestplate or iron leggings or iron boots
        cancel event
    If helmet or Chestplate or leggings or boots of player is gold helmet or gold chestplate or gold leggings or gold boots:
        equip player with gold helmet or gold chestplate or gold leggings or gold boots
        cancel event

 

całe eq gdy klikam jest zablokowane :/ nie tylko zbroja

 

Edytowane przez Nieaktywny
Edycja -.-
Odnośnik do komentarza
https://skript.pl/temat/10117-dark-orbit-zbroja-blokada/#findComment-75754
Udostępnij na innych stronach

  • 0


On any move:
Equip player with all diamond armor
Remove diamond helmet from player
Remove diamond chestplate from player
Remove diamond leggings from player
Remove diamond boots from player
Equip player with all diamond armor

Odnośnik do komentarza
https://skript.pl/temat/10117-dark-orbit-zbroja-blokada/#findComment-75764
Udostępnij na innych stronach

  • 0

Sposób 1:

on inventory click:
	slot is 100 #do 103
	cancel the event

Sposób 2: #Taby mi się zryły... Nie chce mi się poprawiać xD

on inventory close:
	loop all items in the player's inventory:
    loop-item is diamond helmet or diamond chestplate or diamond leggins or diamond boots #czos chyba takiego xD 
    remove loop-item from the player
	equip player with all diamond armour

Sposób 3:

on drop a diamond boots: 
	cancel event

Nic nie testowane, więc jeśli nic ci nie działa, to napisz mi błędy :P

Odnośnik do komentarza
https://skript.pl/temat/10117-dark-orbit-zbroja-blokada/#findComment-75766
Udostępnij na innych stronach

  • 0

wziąłem ten twój drogi sposób i tak go przerobiłem nie pomyślalem o evencie inventory close

On inventory close:
    If {Statek2.%player%} is true:
        wait a tick
        loop all items:
            if loop-item is diamond helmet or diamond chestplate or diamond leggings or diamond boots:
                remove loop-item from player
        wait a tick
        equip player with diamond helmet
        equip player with diamond chestplate
        equip player with diamond leggings
        equip player with diamond boots
    If {Statek3.%player%} is true:
        wait a tick
        loop all items:
            if loop-item is iron helmet or iron chestplate or iron leggings or iron boots:
                remove loop-item from player
        wait a tick
        equip player with iron helmet
        equip player with iron chestplate
        equip player with iron leggings
        equip player with iron boots
    If {Statek4.%player%} is true:
        wait a tick
        loop all items:
            if loop-item is gold helmet or gold chestplate or gold leggings or gold boots:
                remove loop-item from player
        wait a tick
        equip player with gold helmet
        equip player with gold chestplate
        equip player with gold leggings
        equip player with gold boots

 

I śmiga :) łap plusa

Odnośnik do komentarza
https://skript.pl/temat/10117-dark-orbit-zbroja-blokada/#findComment-75779
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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