Skocz do zawartości
  • 0

Skrypt na skrzynki


Wojtas532

Pytanie

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on rightclick:
    if player has a chest named "&6Szkatulka Testowa":
        remove 1 chest named "&6Szkatulka Testowa" from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
            stop
        send "Szkatulka byla pusta!"
        stop

@Wojtas532

Edytowane przez Ixidi
Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-108715
Udostępnij na innych stronach

  • 0
1 godzinę temu, Ixidi napisał:

on rightclick:
    if player has a chest named "&6Szkatulka Testowa":
        remove 1 chest named "&6Szkatulka Testowa" from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
            stop

 

A jak zrobic ze gdy bedzie pusta pojawia sie komunikat Szkatulka byla pusta?

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-108723
Udostępnij na innych stronach

  • 0
Dnia 20.01.2017 o 13:07, Ixidi napisał:

on rightclick:
    if player has a chest named "&6Szkatulka Testowa":
        remove 1 chest named "&6Szkatulka Testowa" from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
            stop
        send "Szkatulka byla pusta!"
        stop

@Wojtas532

Dlaczego jak klikne np dirtem prawym to otwiera mi te skrzynki???

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-108835
Udostępnij na innych stronach

  • 0

Ehh jak dasz If player's tool is chest named "&6Szkatulka Testowa": to bedzie dzialac na 100% bo jesli dasz If player has to sprawdza czy ma w ekwipunku, a If player's tool is to sprawdza czy przedmiot w rece gracza to.

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-108950
Udostępnij na innych stronach

  • 0

Teraz to w ogóle nie działa 

on rightclick:
    if player have 1 chest named "&6Szkatulka Mlodego Podroznika":
        remove 1 chest named "&6Szkatulka Mlodego Podroznika" from the player
        chance of 100%:
            give player 1 298 of protection 1 named "&6Zbroja Mlodego Podroznika"
            stop
        chance of 100%:
            give player 1 299 of protection 1 named "&6Zbroja Mlodego Podroznika"
            stop
        chance of 100%:
            give player 1 300 of protection 1 named "&6Zbroja Mlodego Podroznika"
            stop
        chance of 100%:
            give player 1 301 of protection 1 named "&6Zbroja Mlodego Podroznika"
            stop
        chance of 100%:
            give player 1 268 of sharpness 2 named "&6Ostrze Wiedzy"
            stop
        chance of 001%:
            give player 1 diamond sword of sharpness 10 named "&dOstrze Szczescia"
            stop
            cancel event

on rightclick:
     if player have 1 chest named "&e&lSkrzynia Parkourowca":
        remove 1 chest named "&e&lSkrzynia Parkourowca" from the player
        chance of 001%:
            give player 1 diamond sword of sharpness 34 named "&aZakazony Miecz"
            stop
        chance of 1%:
            give player 1 diamond chestplate of protection 18 named "&6Zbroja Sapera"
            stop
        chance of 1%:
            give player 1 312 of protection 18 named "&6Zbroja Sapera"
            stop
        chance of 1%:
            give player 1 diamond boots of protection 18 named "&6Zbroja Sapera"
            stop
        chance of 1%:
            give player 1 diamond helmet of protection 18 named "&6Zbroja Sapera"
            stop
        chance of 005%:
            give player 1 book named "&9Kawalek Rdzenia"
            stop
        chance of 000001%: 
            give player 1 anvil of fortune 50 named "&5Kowadlo Kowala"
            stop
        chance of 3%:
            give player 1 175 of unbreaking 10 named "&5Sloneczna Moneta Szczescia"
            stop
        chance of 12%:
            give player 1 175 of unbreaking 10 named "&3Moneta"
            stop
        chance of 37%:
            give player 1 dirt named "&2Nagroda Pocieszenia"
            stop
        chance of 00005%
        give player 32 chest named "&e&lSkrzynia Parkourowca"
        stop
    send "&2Szkatulka byla pusta!"
    stop

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109792
Udostępnij na innych stronach

  • 0

A może teraz ?

options:
	logo: &8[&6szkatulka&8]

on rightclick:
    if player's tool is chest named "&6Szkatulka Testowa":
        remove 1 chest named "&6Szkatulka Testowa" from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
			send "{@logo} &cZdobyłeś diamentowy miecz sharp. 7!"
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
			send "{@logo} &cZdobyles diamentowy kilof wyd. 7!"
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
			send "{@logo} &cZdobyles diamentowy helm prot 6!"
            stop
        chance of 25%:
            give player 1 diamond chestplate of protection 6
			send "{@logo} &cZdobyles diamentowa klate prot 6!"
            stop
		send "{@logo} &cSzkatulka byla pusta!"
		stop

Raczej działa :D

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109800
Udostępnij na innych stronach

  • 0
4 godziny temu, HeezQ napisał:

A może teraz ?


options:
	logo: &8[&6szkatulka&8]

on rightclick:
    if player's tool is chest named "&6Szkatulka Testowa":
        remove 1 chest named "&6Szkatulka Testowa" from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
			send "{@logo} &cZdobyłeś diamentowy miecz sharp. 7!"
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
			send "{@logo} &cZdobyles diamentowy kilof wyd. 7!"
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
			send "{@logo} &cZdobyles diamentowy helm prot 6!"
            stop
        chance of 25%:
            give player 1 diamond chestplate of protection 6
			send "{@logo} &cZdobyles diamentowa klate prot 6!"
            stop
		send "{@logo} &cSzkatulka byla pusta!"
		stop

Raczej działa :D

Tylko chcialbym aby bylo bez tego logo, a 2 gatunki skrzynek &6Skrzynia Parkourowca i &e&lSkrzynia Nowego Gracza

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109845
Udostępnij na innych stronach

  • 0
on rightclick:
	if player's tool is chest named "&6Skrzynia Parkourowca":
		remove 1 chest named "&6Skrzynia Parkourowca" from the player
		chance of 25%:
			give player 1 diamond sword of sharpness 7
			send "&cZdobyłeś diamentowy miecz sharp. 7!"
			stop
		chance of 25%:
			give player 1 diamond pickaxe of efficiency 7
			send "&cZdobyles diamentowy kilof wyd. 7!"
			stop
		chance of 25%:
			give player 1 diamond helmet of protection 6
			send "&cZdobyles diamentowy helm prot 6!"
			stop
		chance of 25%:
			give player 1 diamond chestplate of protection 6
			send "&cZdobyles diamentowa klate prot 6!"
			stop
		send "&cSzkatulka byla pusta!"
		stop
	if player's tool is chest named "&e&lSkrzynia Nowego Gracza ":
		remove 1 chest named "&e&lSkrzynia Nowego Gracza " from the player
		chance of 25%:
			give player 1 diamond sword of sharpness 7
			send "&cZdobyłeś diamentowy miecz sharp. 7!"
			stop
		chance of 25%:
			give player 1 diamond pickaxe of efficiency 7
			send "&cZdobyles diamentowy kilof wyd. 7!"
			stop
		chance of 25%:
			give player 1 diamond helmet of protection 6
			send "&cZdobyles diamentowy helm prot 6!"
			stop
		chance of 25%:
			give player 1 diamond chestplate of protection 6
			send "&cZdobyles diamentowa klate prot 6!"
			stop
		send "&cSzkatulka byla pusta!"
		stop

 

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109846
Udostępnij na innych stronach

  • 0
9 minut temu, SirGeorge napisał:

on rightclick:
	if player's tool is chest named "&6Skrzynia Parkourowca":
		remove 1 chest named "&6Skrzynia Parkourowca" from the player
		chance of 25%:
			give player 1 diamond sword of sharpness 7
			send "&cZdobyłeś diamentowy miecz sharp. 7!"
			stop
		chance of 25%:
			give player 1 diamond pickaxe of efficiency 7
			send "&cZdobyles diamentowy kilof wyd. 7!"
			stop
		chance of 25%:
			give player 1 diamond helmet of protection 6
			send "&cZdobyles diamentowy helm prot 6!"
			stop
		chance of 25%:
			give player 1 diamond chestplate of protection 6
			send "&cZdobyles diamentowa klate prot 6!"
			stop
		send "&cSzkatulka byla pusta!"
		stop
	if player's tool is chest named "&e&lSkrzynia Nowego Gracza ":
		remove 1 chest named "&e&lSkrzynia Nowego Gracza " from the player
		chance of 25%:
			give player 1 diamond sword of sharpness 7
			send "&cZdobyłeś diamentowy miecz sharp. 7!"
			stop
		chance of 25%:
			give player 1 diamond pickaxe of efficiency 7
			send "&cZdobyles diamentowy kilof wyd. 7!"
			stop
		chance of 25%:
			give player 1 diamond helmet of protection 6
			send "&cZdobyles diamentowy helm prot 6!"
			stop
		chance of 25%:
			give player 1 diamond chestplate of protection 6
			send "&cZdobyles diamentowa klate prot 6!"
			stop
		send "&cSzkatulka byla pusta!"
		stop

 

Najzwyczajniej skopiowane ode mnie -,- 

Masz tutaj moją wersję :)
 

		
on rightclick:
	if player's tool is chest named "&cSkrzynia Parkourowca":
		chance of 25%:
			remove speed from player
			apply speed 2 to player for 120 seconds
			send "&cWygrales: &6SPEED'A 2 MIN."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 25%:
			remove strength from player
			apply strength 2 to player for 120 seconds
			send "&cWygrales: &6SILE 2 MIN."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 25%:
			remove poison from player
			apply poison 2 to player for 15 seconds
			send "&cWygrales:&6 TRUCIZNA 15 SEK."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 15%:
			give player 2 133 named "&cSkrzynia Parkourowca"
			wait 10 tick
			kick player due to "&cWyrzucono, bo wygrales to!%nl%&4Dostales dodatkowo 2 skrzynie parkourowca!%nl%&9Wejdz ponownie na serwer! :)"
			remove 1 emerald block named "&6Tajemnicza Skrzynia" from player
			stop
		send "&cSkrzynia byla pusta! :("
		remove 1 emerald block named "&cSkrzynia Parkourowca" from player
		stop
	if player's tool is chest named "&6Skrzynia Nowego Gracza":
		chance of 25%:
			remove speed from player
			apply speed 2 to player for 120 seconds
			send "&cWygrales: &6SPEED'A 2 MIN."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 25%:
			remove strength from player
			apply strength 2 to player for 120 seconds
			send "&cWygrales: &6SILE 2 MIN."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 25%:
			remove poison from player
			apply poison 2 to player for 15 seconds
			send "&cWygrales:&6 TRUCIZNA 15 SEK."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 15%:
			give player 2 133 named "&6Skrzynia Nowego Gracza"
			wait 10 tick
			kick player due to "&cWyrzucono, bo wygrales to!%nl%&4Dostales dodatkowo 2 &6Skrzynie Nowego Gracza!%nl%&9Wejdz ponownie na serwer! :)"
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		send "&cSkrzynia byla pusta! :("
		remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
		stop

2 skrzynie:
- &6Skrzynia Nowego Gracza
- &cSkrzynia Parkourowca

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109847
Udostępnij na innych stronach

  • 0
Teraz, HeezQ napisał:

Najzwyczajniej skopiowane ode mnie -,- 

Masz tutaj moją wersję :)
 


		
on rightclick:
	if player's tool is chest named "&cSkrzynia Parkourowca":
		chance of 25%:
			remove speed from player
			apply speed 2 to player for 120 seconds
			send "&cWygrales: &6SPEED'A 2 MIN."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 25%:
			remove strength from player
			apply strength 2 to player for 120 seconds
			send "&cWygrales: &6SILE 2 MIN."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 25%:
			remove poison from player
			apply poison 2 to player for 15 seconds
			send "&cWygrales:&6 TRUCIZNA 15 SEK."
			remove 1 emerald block named "&cSkrzynia Parkourowca" from player
			stop
		chance of 15%:
			give player 2 133 named "&cSkrzynia Parkourowca"
			wait 10 tick
			kick player due to "&cWyrzucono, bo wygrales to!%nl%&4Dostales dodatkowo 2 skrzynie parkourowca!%nl%&9Wejdz ponownie na serwer! :)"
			remove 1 emerald block named "&6Tajemnicza Skrzynia" from player
			stop
		send "&cSkrzynia byla pusta! :("
		remove 1 emerald block named "&cSkrzynia Parkourowca" from player
		stop
	if player's tool is chest named "&6Skrzynia Nowego Gracza":
		chance of 25%:
			remove speed from player
			apply speed 2 to player for 120 seconds
			send "&cWygrales: &6SPEED'A 2 MIN."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 25%:
			remove strength from player
			apply strength 2 to player for 120 seconds
			send "&cWygrales: &6SILE 2 MIN."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 25%:
			remove poison from player
			apply poison 2 to player for 15 seconds
			send "&cWygrales:&6 TRUCIZNA 15 SEK."
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		chance of 15%:
			give player 2 133 named "&6Skrzynia Nowego Gracza"
			wait 10 tick
			kick player due to "&cWyrzucono, bo wygrales to!%nl%&4Dostales dodatkowo 2 &6Skrzynie Nowego Gracza!%nl%&9Wejdz ponownie na serwer! :)"
			remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
			stop
		send "&cSkrzynia byla pusta! :("
		remove 1 emerald block named "&6Skrzynia Nowego Gracza" from player
		stop

2 skrzynie:
- &6Skrzynia Nowego Gracza
- &cSkrzynia Parkourowca

Skoro chciał 2 skrzynki i to było dobrze zrobione (sam podesłał) to skorzystałem, coś się stało że użyłem tego kodu który mógłbym napisać w minutę ?

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109848
Udostępnij na innych stronach

  • 0
54 minuty temu, SirGeorge napisał:

Skoro chciał 2 skrzynki i to było dobrze zrobione (sam podesłał) to skorzystałem, coś się stało że użyłem tego kodu który mógłbym napisać w minutę ?

Nie, lecz moja wersja jest lepsza :) Dziękuję - Do widzenia 

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-109854
Udostępnij na innych stronach

  • 0

on rightclick:
    if player's tool is chest named "&6Skrzynia Parkourowca":
        remove 1 chest named "&6Skrzynia Parkourowca" from the player
        chance of 00005%:
            give player 1 anvil named "&b&lMetal Kowala"
            send "&bZdobyłeś &b&lMetal Kowala!!!"
            stop
        chance of 0009%:
            give player 1 diamond sword of sharpness 32 named "&elOstrze Parkourowca"
            send "&bZdobyles &e&lOstrze Parkourowca! Gratulacje!"
            stop
        chance of 13%:
            give player 1 clay named "&8&lGlina"
            send "&bZdobyłeś &7&lGline&b!"
            stop
        chance of 008%:
            give player 1 diamond sword of sharpness 18 named "&7Srebrzysty Miecz"
            send "&bZdobyłeś &7Srebrzysty Miecz!"
            stop
        send "&2Szkatulka byla pusta!"
        stop
on rightclick:
    if player's tool is chest named "&e&lSkrzynia Nowego Gracza ":
        remove 1 chest named "&e&lSkrzynia Nowego Gracza " from the player
        chance of 25%:
            give player 1 diamond sword of sharpness 7
            send "&cZdobyłeś diamentowy miecz sharp. 7!"
            stop
        chance of 25%:
            give player 1 diamond pickaxe of efficiency 7
            send "&cZdobyles diamentowy kilof wyd. 7!"
            stop
        chance of 25%:
            give player 1 diamond helmet of protection 6
            send "&cZdobyles diamentowy helm prot 6!"
            stop
        chance of 25%:
            give player 1 diamond chestplate of protection 6
            send "&cZdobyles diamentowa klate prot 6!"
            stop
        send "&cSzkatulka byla pusta!"
        stop

Powie ktoś dlaczego działa tylko skrzynka parkourowca?

Odnośnik do komentarza
https://skript.pl/temat/15941-skrypt-na-skrzynki/#findComment-110052
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ę...