Skocz do zawartości
  • 0

Pomocy z efektami!


Ytaru

Pytanie

Witam mam taki skrypt 

command /efekty [<text>]:
        trigger:
                open chest with 5 rows named "&5&k||| &a&lEFEKTY &5&K|||" to player
                wait 1 ticks
                format slot 10 of player with 1 274 named "&8>> &c&lHaste I &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 20 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect HasteI"]
                format slot 19 of player with 1 257 named "&8>> &c&lHaste II &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 32 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect HasteII"]
                format slot 28 of player with 1 278 named "&8>> &c&lHaste III &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 64 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect HasteIII"]    
                format slot 12 of player with 1 353 named "&8>> &c&lSpeed I &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 16 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SpeedI"]    
                format slot 21 of player with 1 353 named "&8>> &c&lSpeed II &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 32 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SpeedII"]
                format slot 30 of player with 1 353 named "&8>> &c&lSpeed III &8<<" with lore "&8» &cCzas trwania&7: 5 minut||&8» &cKoszt&7: 64 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SpeedIII"]    
                format slot 14 of player with 1 399 named "&8>> &c&lSkok I &8<<" with lore "&8» &cCzas trwania&7: 1 minuta||&8» &cKoszt&7: 16 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SkokI"]
                format slot 23 of player with 1 399 named "&8>> &c&lSkok II &8<<" with lore "&8» &cCzas trwania&7: 1 minuta||&8» &cKoszt&7: 32 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SkokII"]    
                format slot 32 of player with 1 399 named "&8>> &c&lSkok III &8<<" with lore "&8» &cCzas trwania&7: 1 minuta||&8» &cKoszt&7: 48 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SkokIII"]
                format slot 16 of player with 1 276 named "&8>> &c&lSila I &8<<" with lore "&8» &cCzas trwania&7: 3 minuty||&8» &cKoszt&7: 64&8x&74 szmaragdy||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect SilaI"]    
                format slot 25 of player with 1 381 named "&8>> &c&lWIDZENIE W CIEMNOSCI &8<<" with lore "&8» &cCzas trwania&7: 5 minuty||&8» &cKoszt&7: 16 szmaragdow||&8» &aKliknij, aby zakupic efekt!" to run [make player execute "ieffect DzienI"]
        
command /ieffect [<text>]:
    trigger:
        if arg-1 is "HasteI":
            if player don't have 20 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 20 388 from player
                remove haste from player
                apply haste potion of tier 1 to the player for 5 minutes
                
        if arg-1 is "HasteII":
            if player don't have 32 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 32 388 from player
                remove haste from player
                apply haste potion of tier 2 to the player for 5 minutes
                
        if arg-1 is "HasteIII":
            if player don't have 64 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 64 388 from player
                remove haste from player
                apply haste potion of tier 3 to the player for 5 minutes
                
        if arg-1 is "SpeedI":
            if player don't have 16 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 16 388 from player
                remove speed from player
                apply speed potion of tier 1 to the player for 5 minutes
                
        if arg-1 is "SpeedII":
            if player don't have 32 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 32 388 from player
                remove speed from player
                apply speed potion of tier 2 to the player for 5 minutes
                
        if arg-1 is "SpeedIII":
            if player don't have 64 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 64 388 from player
                remove speed from player
                apply speed potion of tier 3 to the player for 5 minutes
                
        if arg-1 is "SkokI":
            if player don't have 16 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 16 388 from player
                remove jump from player
                apply jump potion of tier 3 to the player for 1 minutes
                
        if arg-1 is "SkokII":
            if player don't have 32 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 32 388 from player
                remove jump from player
                apply jump potion of tier 4 to the player for 1 minutes
                
        if arg-1 is "SkokIII":
            if player don't have 48 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 48 388 from player
                remove jump from player
                apply jump potion of tier 5 to the player for 1 minutes
                
        if arg-1 is "SilaI":
            if player don't have 256 388:
                send "&8» &4Nie stac Cie na to!"
                stop
            else:
                send "&8» &aPomyslnie zakupiles efekt!"
                remove 256 388 from player
                remove strength from player
                apply strength potion of tier 1 to the player for 3 minutes
                
                

i nie chce mi dzialac tzn dziala ale tylko gdy emeraldy mam lapie jak mam w eq to nie dziala naprawi ktos ?

Odnośnik do komentarza
https://skript.pl/temat/31309-pomocy-z-efektami/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Przepraszam pana., nie uzywa sie juz format slot, ta opcja jest bardzo zbugowana. użyj coś takiego:

command /komenda:
	trigger:
		open chest with 1 rows named "&cNazwa" to player
		set player's current inventory's slot 0 to diamond pickaxe named "&cKliknij, by kupic haste na 60sek!" with lore "Haste 1! Koszt 64 emeraldy!"

on inventory click:
	if inventory name of current inventory of player contains "&cNazwa":
		cancel event
		if clicked slot is 0:
			if player have 64 emerald:
				remove 64 emerald from player
				apply haste of tier 1 to the player for 60 second
			else:
				send "&cNie posiadasz 64 emeraldow!"

 

Odnośnik do komentarza
https://skript.pl/temat/31309-pomocy-z-efektami/#findComment-203873
Udostępnij na innych stronach

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

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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