Skocz do zawartości
  • 0

Skrzynie (Drop)


KrychaMC09

Pytanie

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Teraz, KrychaMC09 napisał:

Da sie zrobic tak ze po zakonczeniu animacji skrzyn wydropi ten item ktory byl jako ostatni w slocie 4?

Rozumiem, że jakiś plugin dodaje animację w skrzyni, tak?

Jeżeli tak to da się to zrobić, ale będzie to okropnie wykonane, gdyż będzie bazowało na delayu.

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/43867-skrzynie-drop/#findComment-274781
Udostępnij na innych stronach

  • 0
1 minutę temu, KrychaMC09 napisał:

zakonczeniu animacji skrzyn

jeśli animacja jest ze skryptu to raczej będzie to proste, jeśli z pluginu może być nieco trudniej, aczkolwiek jeśli mija konkretny czas od rozpoczęcia losowania do zakończenia to raczej da radę lub on inventory close

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/43867-skrzynie-drop/#findComment-274782
Udostępnij na innych stronach

  • 0
14 minut temu, Kormic napisał:

Rozumiem, że jakiś plugin dodaje animację w skrzyni, tak?

Nie skript

 

13 minut temu, CoFFeIN04 napisał:

jeśli animacja jest ze skryptu to raczej będzie to proste, jeśli z pluginu może być nieco trudniej, aczkolwiek jeśli mija konkretny czas od rozpoczęcia losowania do zakończenia to raczej da radę

Skript

xAxee

Łączę posty

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/43867-skrzynie-drop/#findComment-274784
Udostępnij na innych stronach

  • 0
11 minut temu, CoFFeIN04 napisał:

to go pokaż

Cytat

n rightclick:
    if event-block is chest:
        if {zelazna::%event-block%} is true:
            cancel event				
            if name of player's tool is "&7Klucz do &6legendarnej &7skrzyni":				
                remove 1 tripwire hook named "&7Klucz do &6legendarnej &7skrzyni" with lore " " and " &8� &7Brakuje ci kluczy? Zakup je na: &eGameHard.pl" from player's inventory
                open chest with 1 rows named "&7Otwieranie &6 legendarnej skrzyni" to player
                wait 1 ticks
                loop 54 times:
                    set slot loop-number - 1 of player's current inventory to black stained glass pane named "&6&lGame&f&lHard.PL"
                loop 10 times:
                    wait 0.7 seconds
                    chance of 20%:
                        set player's current inventory's slot 4 to diamond helmet of protection 4 and unbreaking 3 named "&7Helm &e4/3" with lore "||&7Szansa: &e20%%"
                    chance of 25%:
                        set player's current inventory's slot 4 to diamond chestplate of protection 4 and unbreaking 3 named "&7Klata &e4/3" with lore "||&7Szansa: &e25%%"
                    chance of 23%:
                        set player's current inventory's slot 4 to diamond leggings of protection 4 and unbreaking 3 named "&7Spodnie &e4/3" with lore "||&7Szansa: &e23%%"
                    chance of 20%:
                        set player's current inventory's slot 4 to diamond boots of protection 4 and unbreaking 3 named "&7Buty &e4/3" with lore "||&7Szansa: &e20%%"
                    chance of 27%:
                        set player's current inventory's slot 4 to diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 named "&7Miecz &e5/3/2" with lore "||&7Szansa: &e27%%"
                    chance of 30%:
                        set player's current inventory's slot 4 to diamond sword of knockback 2 named "&7Miecz &eKnockBack 2" with lore "||&7Szansa: &e30%%"
                    chance of 35%:
                        set player's current inventory's slot 4 to bow of punch 2 named "&7Luk &ePunch 2" with lore "||&7Szansa: &e35%%"
                    chance of 35%:
                        set player's current inventory's slot 4 to 16 diamond named "&7Diamenty x&e16" with lore "||&7Szansa: &e35%%"
                    chance of 30%:
                        set player's current inventory's slot 4 to 16 emerald named "&7Emeraldy x&e16" with lore "||&7Szansa: &e30%%"
                    chance of 40%:
                        set player's current inventory's slot 4 to 16 iron ingot named "&7Zelazo x&e16" with lore "||&7Szansa: &e40%%"
                    chance of 40%:
                        set player's current inventory's slot 4 to 16 gold ingot named "&7Zloto x&e16" with lore "||&7Szansa: &e40%%"
                    chance of 45%:
                        set player's current inventory's slot 4 to 16 lapis named "&7Lapiz x&e16" with lore "||&7Szansa: &e45%%"
                    chance of 5%:
                        set player's current inventory's slot 4 to 4 tnt named "&7TNT x&e4" with lore "||&7Szansa: &e5%%"
                    chance of 15%:
                        set player's current inventory's slot 4 to 8 golden apple  named "&7Zlote Jablka x&e8" with lore "||&7Szansa: &e15%%"
                    chance of 10%:
                        set player's current inventory's slot 4 to 1 enchanted golden apple named "&7Enchantowane Zlote Jablka x&e1" with lore "||&7Szansa: &e10%%"
                    chance of 25%:
                        set player's current inventory's slot 4 to 12 ender pearl named "&7Perly x&e12" with lore "||&7Szansa: &e25%%"
                    chance of 7%:
                        set player's current inventory's slot 4 to paper named "&7Coinsy &e1k" with lore "&7Szansa: &e7%%"
                    wait 1 tick
                chance of 20%:
                    set player's current inventory's slot 4 to diamond helmet of protection 4 and unbreaking 3 named "&7Helm &e4/3" with lore "||&7Szansa: &e20%%"
                chance of 25%:
                    set player's current inventory's slot 4 to diamond chestplate of protection 4 and unbreaking 3 named "&7Klata &e4/3" with lore "||&7Szansa: &e25%%"
                chance of 23%:
                    set player's current inventory's slot 4 to diamond leggings of protection 4 and unbreaking 3 named "&7Spodnie &e4/3" with lore "||&7Szansa: &e23%%"
                chance of 20%:
                    set player's current inventory's slot 4 to diamond boots of protection 4 and unbreaking 3 named "&7Buty &e4/3" with lore "||&7Szansa: &e20%%"
                chance of 27%:
                    set player's current inventory's slot 4 to diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 named "&7Miecz &e5/3/2" with lore "||&7Szansa: &e27%%"
                chance of 30%:
                    set player's current inventory's slot 4 to diamond sword of knockback 2 named "&7Miecz &eKnockBack 2" with lore "||&7Szansa: &e30%%"
                chance of 35%:
                    set player's current inventory's slot 4 to bow of punch 2 named "&7Luk &ePunch 2" with lore "||&7Szansa: &e35%%"
                chance of 35%:
                    set player's current inventory's slot 4 to 16 diamond named "&7Diamenty x&e16" with lore "||&7Szansa: &e35%%"
                chance of 30%:
                    set player's current inventory's slot 4 to 16 emerald named "&7Emeraldy x&e16" with lore "||&7Szansa: &e30%%"
                chance of 40%:
                    set player's current inventory's slot 4 to 16 iron ingot named "&7Zelazo x&e16" with lore "||&7Szansa: &e40%%"
                chance of 40%:
                    set player's current inventory's slot 4 to 16 gold ingot named "&7Zloto x&e16" with lore "||&7Szansa: &e40%%"
                chance of 45%:
                    set player's current inventory's slot 4 to 16 lapis named "&7Lapiz x&e16" with lore "||&7Szansa: &e45%%"
                chance of 5%:
                    set player's current inventory's slot 4 to 4 tnt named "&7TNT x&e4" with lore "||&7Szansa: &e5%%"
                chance of 15%:
                    set player's current inventory's slot 4 to 8 golden apple  named "&7Zlote Jablka x&e8" with lore "||&7Szansa: &e15%%"
                chance of 10%:
                    set player's current inventory's slot 4 to 1 enchanted golden apple named "&7Enchantowane Zlote Jablka x&e1" with lore "||&7Szansa: &e10%%"
                chance of 25%:
                    set player's current inventory's slot 4 to 12 ender pearl named "&7Perly x&e12" with lore "||&7Szansa: &e25%%"
                chance of 7%:
                    set player's current inventory's slot 4 to paper named "&7Coinsy &e1k" with lore "&7Szansa: &e7%%"
                give 1 {_item} to player
            else:
                send "&6&lSkrzynie &8� &7Musisz posiadac &eklucz &7w rece do tej skrzyni. Brakuje ci kluczy? Zakup je na &eGameHard.pl"

 

 

Odnośnik do komentarza
https://skript.pl/temat/43867-skrzynie-drop/#findComment-274787
Udostępnij na innych stronach

  • 0

1. Ten skrypt nie zadziała, gdyż zmienna {_item} nie jest nigdzie ustawiona.

2. Jeżeli chcesz aby gracz otrzymywał przedmiot ze slotu nr 4, po prostu ustaw wartość zmiennej {_item} jako 'slot 4 of player's current inventory', a następnie z pomocą tej linijki 'give' daj ten przedmiot graczowi.

Odnośnik do komentarza
https://skript.pl/temat/43867-skrzynie-drop/#findComment-274789
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ę...