Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Przeróbka skryptu Cloud Boots


Blumsky

Rekomendowane odpowiedzi

Opublikowano

Witam chciał bym, żeby ktoś mi przerobił skrypt na cloud boots. Chciał bym aby podczas pvp, czyli jak jakiś gracz walnie drugiego to przez 20 sekund efekty cloud bootsów nie działały. Macie tutaj cały kod ----------> https://pastebin.com/X81aJdKL

Opublikowano

@Blumsky

 

Powinno działać ^^

 

every 20 seconds:
	loop all players:
		if {atak.%loop-player} is true:
			set {atak.%loop-player%} to false
		else:
			stop

every 1 second:      
    loop all players:
        if boots of loop-player is diamond boots named "&bCloud boots!":
			if {atak.%loop-player%} is false:
				apply jump boost 5 to the loop-player for 1 seconds
				apply speed 2 to the loop-player for 1 seconds
			else:
				stop

command /buty:
    permission: tinycore.core
    trigger:
        give diamond boots named "&bCloud boots!" to player

on damage:
    if attacker is player:
        set {atak.%victim%} to true

on damage:
    if boots of victim is diamond boots named "&bCloud boots!":
		if {atak.%player%} is false:
			damage cause is fall
			set {_a} to location of victim
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
			cancel event
		else:
			stop
 
on jump:
    if boots of player is diamond boots named "&bCloud boots!":
		if {atak.%loop-player%} is false:
			set {_a} to location of player
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
		else:
			stop
 
on skript load:
    register new shaped recipe for diamond boots named "&bCloud boots!" using 133, 133, 133, 133, 313, 133, 133, 397:1, 133

 

Opublikowano
1 minutę temu, AlexsanderARG napisał:

@Blumsky

 

Powinno działać ^^

 


every 20 seconds:
	loop all players:
		if {atak.%loop-player} is true:
			set {atak.%loop-player%} to false
		else:
			stop

every 1 second:      
    loop all players:
        if boots of loop-player is diamond boots named "&bCloud boots!":
			if {atak.%loop-player%} is false:
				apply jump boost 5 to the loop-player for 1 seconds
				apply speed 2 to the loop-player for 1 seconds
			else:
				stop

command /buty:
    permission: tinycore.core
    trigger:
        give diamond boots named "&bCloud boots!" to player

on damage:
    if attacker is player:
        set {atak.%victim%} to true

on damage:
    if boots of victim is diamond boots named "&bCloud boots!":
		if {atak.%player%} is false:
			damage cause is fall
			set {_a} to location of victim
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
			cancel event
		else:
			stop
 
on jump:
    if boots of player is diamond boots named "&bCloud boots!":
		if {atak.%loop-player%} is false:
			set {_a} to location of player
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
		else:
			stop
 
on skript load:
    register new shaped recipe for diamond boots named "&bCloud boots!" using 133, 133, 133, 133, 313, 133, 133, 397:1, 133

 

nie trzeba sprawdzac co sekunde czy gracza ma zalozone butki, jak mozna sprawdzic najpierw sprawdzic przy "on jump" czy gracz ma butki i jak ma to dajesz mu bonusiki

4Headzik

Opublikowano
2 minuty temu, AlexsanderARG napisał:

@Blumsky

 

Powinno działać ^^

 


every 20 seconds:
	loop all players:
		if {atak.%loop-player} is true:
			set {atak.%loop-player%} to false
		else:
			stop

every 1 second:      
    loop all players:
        if boots of loop-player is diamond boots named "&bCloud boots!":
			if {atak.%loop-player%} is false:
				apply jump boost 5 to the loop-player for 1 seconds
				apply speed 2 to the loop-player for 1 seconds
			else:
				stop

command /buty:
    permission: tinycore.core
    trigger:
        give diamond boots named "&bCloud boots!" to player

on damage:
    if attacker is player:
        set {atak.%victim%} to true

on damage:
    if boots of victim is diamond boots named "&bCloud boots!":
		if {atak.%player%} is false:
			damage cause is fall
			set {_a} to location of victim
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
			cancel event
		else:
			stop
 
on jump:
    if boots of player is diamond boots named "&bCloud boots!":
		if {atak.%loop-player%} is false:
			set {_a} to location of player
			spawn 15 of particle fireworks Spark offset by 1, 1, 1 at {_a}
			spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
			spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
			spawn 15 of particle instant Spell offset by 1, 1, 1 at {_a}
			spawn 15 of particle Spell offset by 1, 1, 1 at {_a}
		else:
			stop
 
on skript load:
    register new shaped recipe for diamond boots named "&bCloud boots!" using 133, 133, 133, 133, 313, 133, 133, 397:1, 133

 

Wyktyło mi 27 errorów. Podaćci teamspeaka prywata czy publika

Opublikowano
1 minutę temu, AlexsanderARG napisał:

@Blumsky

 

Obojętnie możesz też dać tutaj błędy

 

@renexo

 

To już było w kodzie

Masz teamspeaka ?? jak tak to wejdz  na sbot.pl i kanał » Kanał publiczny #1 (0/∞)

  • Amove zmienił(a) tytuł na Przeróbka skryptu Cloud Boots

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...