Skocz do zawartości
  • 0

Cooldown, pomocy!


Sallciq

Pytanie

Mam tutaj kawałek skryptu i potrzebuje, aby po kliknieciu lewym był cooldown 3 sekund do ponownego uzycia. Takze prosze o zalozenie permissi. Dziękuje.

Jestem zielony ;-;

command /KosturMagaWave:
    trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        message "<aqua>Otrzymales kostur!"
        message "<aqua>lewy klawisz strzal!"
        message "<aqua>prawy klawisz zmiana zaklecia!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        wait 1 second
    permission: OP
    usage: /Eye
    description: gives you a Blood Eye

on leftclick:
    tool of player is a blaze rod
    name of tool of player is "&cKostur Maga &7[fala ognia]"
    {dragonwand.spell.%player%} is 2:
        loop blocks from the block in front of player to the block 50 horizontal in front of player:
            play mob spawner flames at loop-block
        light target of player on fire
        damage target of player by 1

 

Edytowane przez HeezQ
HeezQ

Wstawiam w code

Notatka dodana przez HeezQ

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

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
22 godziny temu, Sallciq napisał:

Mam tutaj kawałek skryptu i potrzebuje, aby po kliknieciu lewym był cooldown 3 sekund do ponownego uzycia. Takze prosze o zalozenie permissi. Dziękuje.

Jestem zielony ;-;


command /KosturMagaWave:
    trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        message "<aqua>Otrzymales kostur!"
        message "<aqua>lewy klawisz strzal!"
        message "<aqua>prawy klawisz zmiana zaklecia!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        wait 1 second
    permission: OP
    usage: /Eye
    description: gives you a Blood Eye

on leftclick:
    tool of player is a blaze rod
    name of tool of player is "&cKostur Maga &7[fala ognia]"
    {dragonwand.spell.%player%} is 2:
        loop blocks from the block in front of player to the block 50 horizontal in front of player:
            play mob spawner flames at loop-block
        light target of player on fire
        damage target of player by 1

 

command /KosturMagaWave:
    permission: OP
    usage: /Eye
    description: gives you a Blood Eye
	trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        send "&3Otrzymales kostur!"
        send "&3Lewym przyciskiem myszy atakujesz!"
        send "&3Prawym przyciskiem myszy zmieniasz moc!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
    	if {dragonwand::spell::%player%} is true:
        	set {dragonwand::spell::%player%} to false
			loop blocks from the block in front of player to the block 50 horizontal in front of player:
            	play mob spawner flames at loop-block
        		light target of player on fire
        		damage target of player by 1
			wait 3 seconds
			set {dragonwand::spell::%player%} to true
			stop
		else if {dragonwand::spell::%player%} is false:
			send "&7Poczekaj chwile, zanim znow uzyjesz!"
			stop

Coś takiego?

Edytowane przez HeezQ
HeezQ

Poprawiam cytat

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237891
Udostępnij na innych stronach

  • 0

Teraz to mi nie działa zaklecie ;/

21 godzin temu, CountingDogs napisał:

command /KosturMagaWave:
    permission: OP
    usage: /Eye
    description: gives you a Blood Eye
	trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        send "&3Otrzymales kostur!"
        send "&3Lewym przyciskiem myszy atakujesz!"
        send "&3Prawym przyciskiem myszy zmieniasz moc!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
    	if {dragonwand::spell::%player%} is true:
        	set {dragonwand::spell::%player%} to false
			loop blocks from the block in front of player to the block 50 horizontal in front of player:
            	play mob spawner flames at loop-block
        		light target of player on fire
        		damage target of player by 1
			wait 3 seconds
			set {dragonwand::spell::%player%} to true
			stop
		else if {dragonwand::spell::%player%} is false:
			send "&7Poczekaj chwile, zanim znow uzyjesz!"
			stop

Coś takiego?

command /KosturMagaWave:
    permission: kostury
    trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        send "&3Otrzymales kostur!"
        send "&3Lewym przyciskiem myszy atakujesz!"
        send "&3Prawym przyciskiem myszy zmieniasz moc!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
        if {dragonwand::spell::%player%} is true:
    set {dragonwand::spell::%player%} to false
    loop blocks from the block in front of player to the block 50 horizontal in front of player:
    play mob spawner flames at loop-block
    light target of player on fire
    amage target of player by 1
    wait 3 seconds
    set {dragonwand::spell::%player%} to true
    stop
    else if {dragonwand::spell::%player%} is false:
    send "&7Poczekaj chwile, zanim znow uzyjesz!"
    stop

https://pasteboard.co/IYat25U.png

takie cos mi wyrzuca

 

HeezQ

Łączę posty x3; wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237892
Udostępnij na innych stronach

  • 0
21 godzin temu, Sallciq napisał:

https://pasteboard.co/IYat25U.png

takie cos mi wyrzuca

 

 

21 godzin temu, Sallciq napisał:

command /KosturMagaWave:
    permission: kostury
    trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        send "&3Otrzymales kostur!"
        send "&3Lewym przyciskiem myszy atakujesz!"
        send "&3Prawym przyciskiem myszy zmieniasz moc!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
        if {dragonwand::spell::%player%} is true:
    set {dragonwand::spell::%player%} to false
    loop blocks from the block in front of player to the block 50 horizontal in front of player:
    play mob spawner flames at loop-block
    light target of player on fire
    amage target of player by 1
    wait 3 seconds
    set {dragonwand::spell::%player%} to true
    stop
    else if {dragonwand::spell::%player%} is false:
    send "&7Poczekaj chwile, zanim znow uzyjesz!"
    stop

 

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
        if {dragonwand::spell::%player%} is true:
    		set {dragonwand::spell::%player%} to false
    		loop blocks from the block in front of player to the block 50 horizontal in front of player:
    			play mob spawner flames at loop-block
    			light target of player on fire
    			damage target of player by 1
    		wait 3 seconds
    		set {dragonwand::spell::%player%} to true
    		stop
    	else if {dragonwand::spell::%player%} is false:
    		send "&7Poczekaj chwile, zanim znow uzyjesz!"
    		stop

 

Edytowane przez HeezQ
HeezQ

Poprawiam cytat

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237895
Udostępnij na innych stronach

  • 0
3 minuty temu, CountingDogs napisał:

 


on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
        if {dragonwand::spell::%player%} is true:
    		set {dragonwand::spell::%player%} to false
    		loop blocks from the block in front of player to the block 50 horizontal in front of player:
    			play mob spawner flames at loop-block
    			light target of player on fire
    			damage target of player by 1
    		wait 3 seconds
    		set {dragonwand::spell::%player%} to true
    		stop
    	else if {dragonwand::spell::%player%} is false:
    		send "&7Poczekaj chwile, zanim znow uzyjesz!"
    		stop

 

https://pasteboard.co/IYaxL7e.png teraz tak ;/

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237896
Udostępnij na innych stronach

  • 0
21 godzin temu, CountingDogs napisał:

Musisz wytabować dobrze.

tylko ze skript mówi, aby tabować na płasko, a potem nie działa

21 godzin temu, CountingDogs napisał:

Musisz wytabować dobrze.

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]"
    if {dragonwand::spell::%player%} is true:
    set {dragonwand::spell::%player%} to false
    loop blocks from the block in front of player to the block 50 horizontal in front of player:
    play mob spawner flames at loop-block
    light target of player on fire
    damage target of player by 1
    wait 3 seconds
    set {dragonwand::spell::%player%} to true
    stop
    else if {dragonwand::spell::%player%} is false:
    send "&7Poczekaj chwile, zanim znow uzyjesz!"
    stop

tak mi kazał wytabować a i tak nie dziala

 

Edytowane przez HeezQ
HeezQ

Łączę posty; wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237899
Udostępnij na innych stronach

  • 0
21 godzin temu, CountingDogs napisał:

Na końcu drugiej linijki brakuje :

https://pasteboard.co/IYaFF1v.png

21 godzin temu, CountingDogs napisał:

Bo teraz musisz odpowiednio wytabować.
Tam jest napisane odpowiednia ilość spacji. 4 spacje = 1 tab.

juz chyba wytabowalem kod wygląda tak:

command /KosturMagaWave:
    permission: kostury
    trigger:
        give player 1 blaze rod of sharpness 8 named "&cKostur Maga &7[fala ognia]"
        send "&3Otrzymales kostur!"
        send "&3Lewym przyciskiem myszy atakujesz!"
        send "&3Prawym przyciskiem myszy zmieniasz moc!"
        execute console command "ppo %player% add flame feet"
        execute console command "ppo %player% add flame feet"

on leftclick:
    if name of player's tool is "&cKostur Maga &7[fala ognia]":
    if {dragonwand::spell::%player%} is true:
    set {dragonwand::spell::%player%} to false
    loop blocks from the block in front of player to the block 50 horizontal in front of player:
    play mob spawner flames at loop-block
    light target of player on fire
    damage target of player by 1
    wait 3 seconds
    set {dragonwand::spell::%player%} to true
    stop
    else if {dragonwand::spell::%player%} is false:
    send "&7Poczekaj chwile, zanim znow uzyjesz!"
    stop

Logi tak:

https://pasteboard.co/IYaFF1v.png

Edytowane przez HeezQ
HeezQ

Łączę posty; wstawiam w code.

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37383-cooldown-pomocy/#findComment-237906
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ę...