Skocz do zawartości
  • 0

Skrypt na "różdżki"


Pytanie

Cześć potrzebuje skryptu na coś takiego: Po wpisaniu komendy /magia gracz otrzymuje patyk którym jak zaatakuje innego gracza to zaatakowany gracz dostaje effekt spowolnienia na 10s oraz jest effect particle np jakiś niebieskich. patyka można używać raz na 20s . Bardzo proszę o pomoc!! z góry dzieki

Edytowane przez placki
Odnośnik do komentarza
https://skript.pl/temat/37702-skrypt-na-r%C3%B3%C5%BCd%C5%BCki/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on load:
	createCooldown("patyk", 20 seconds)

command /magia [<text>]:
	trigger:
		if {bMagic::magicStick::%player%} is not set:
			set {bMagic::magicStick::%player%} to true
		if {bMagic::magicStick::%player%} is true:
			give stick named "&3Magiczny patyk" to player
			send "Otrzymales magiczny patyk!"
			set {bMagic::magicStick::%player%} to false
			stop
		send "Odebrales juz swoj patyk!"

on damage of player:
	if attacker's tool is stick named "&3Magiczny patyk":
		if getCooldown(attacker, "patyk"):
			apply slowness 2 to the victim for 10 second
			setCooldown(attacker, "patyk")
			stop
		send "Nastepny raz patyku mozesz uzyc za: %getCooldownTime(player, ""patyk"")%"

Wymaga AxCooldown.

Odnośnik do komentarza
https://skript.pl/temat/37702-skrypt-na-r%C3%B3%C5%BCd%C5%BCki/#findComment-239376
Udostępnij na innych stronach

  • 0
4 godziny temu, LjayPL789 napisał:

on load:
	createCooldown("patyk", 20 seconds)

command /magia [<text>]:
	trigger:
		if {bMagic::magicStick::%player%} is not set:
			set {bMagic::magicStick::%player%} to true
		if {bMagic::magicStick::%player%} is true:
			give stick named "&3Magiczny patyk" to player
			send "Otrzymales magiczny patyk!"
			set {bMagic::magicStick::%player%} to false
			stop
		send "Odebrales juz swoj patyk!"

on damage of player:
	if attacker's tool is stick named "&3Magiczny patyk":
		if getCooldown(attacker, "patyk"):
			apply slowness 2 to the victim for 10 second
			setCooldown(attacker, "patyk")
			stop
		send "Nastepny raz patyku mozesz uzyc za: %getCooldownTime(player, ""patyk"")%"

Wymaga AxCooldown.

Nie umiem odnaleźć AxCooldown  

3 godziny temu, placki napisał:

Nie umiem odnaleźć AxCooldown  

jeśli AxCooldown   jest tutaj: 

to go znalazłem lecz skrypt i tak nie działa podczas przeładowywania jest ponad 14 błędów o to one:

[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 6: if {bMagic::magicStick::%player%} is not set:')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 7: set {bMagic::magicStick::%player%} to true')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 8: if {bMagic::magicStick::%player%} is true:')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 9: give stick named "&3Magiczny patyk" to player')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 10: send "Otrzymales magiczny patyk!"')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 11: set {bMagic::magicStick::%player%} to false')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 12: stop')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 13: send "Odebrales juz swoj patyk!"')
[18:03:06 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 5: trigger:')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 17: if getCooldown(attacker, "patyk"):')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 18: apply slowness 2 to the victim for 10 second')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 19: setCooldown(attacker, "patyk")')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 20: stop')
[18:03:06 ERROR]: indentation error: expected 8 spaces, but found '____->' [-> = tab, _ = space, ? = other whitespace] (1.sk, line 21: send "Nastepny raz patyku mozesz uzyc za: %getCooldownTime(player, ""patyk"")%"')
[18:03:06 ERROR]: Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
[18:03:06 WARN]: Possible name conflict of variables {pl::%loop-index%} and {pl::*} (there might be more conflicts). (cos.sk, line 32: replace all loop-value with {_pl::%loop-index%} in {_return}')
[18:03:06 INFO]: Loaded 2 scripts with a total of 2 triggers and 1 command in 0.04 seconds
[18:03:06 INFO]: [Skript] Encountered 14 errors while reloading the config and all scripts!

Proszę o pomoc!!

HeezQ

Łączę posty

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37702-skrypt-na-r%C3%B3%C5%BCd%C5%BCki/#findComment-239389
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ę...