Dawid_PL 2 Opublikowano 14 października 2014 Udostępnij Opublikowano 14 października 2014 Witam. Czy może mi ktoś napisać mały skrypt na zmianę komendy /warp sklep na komendę /sklep i dodanie wiadomosci zostales przeteleportowany do sklepu i czas oczekiwania 5 sekund oraz wiadomosc ze zostales przeteleportowany do sklepu za 5s itp. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 DamianMMC 84 Opublikowano 14 października 2014 Udostępnij Opublikowano 14 października 2014 (edytowane) command /sklep: trigger: send "Zosatniesz przeleportowany za 5.." wait 1 second send "Zosatniesz przeleportowany za 4.." wait 1 second send "Zosatniesz przeleportowany za 3.." wait 1 second send "Zosatniesz przeleportowany za 2.." wait 1 second send "Zosatniesz przeleportowany za 1.." wait 1 second send "Teleportacja..." make player execute command "/warp sklep"Kod drugi jest z anulowaniem teleportacji gdy gracz sie ruszy, tylko ze ona jest bardzo dokladna i zadziala nawet przy ruszeniu myszką.command /sklep: trigger: send "Zosatniesz przeleportowany za 5.." set {_a} to location of player wait 1 second if {_a} is location of player: set {_a} to location of player send "Zosatniesz przeleportowany za 4.." set {_a} to location of player wait 1 second if {_a} is location of player: set {_a} to location of player send "Zosatniesz przeleportowany za 3.." set {_a} to location of player wait 1 second if {_a} is location of player: set {_a} to location of player send "Zosatniesz przeleportowany za 2.." set {_a} to location of player wait 1 second if {_a} is location of player: set {_a} to location of player send "Zosatniesz przeleportowany za 1.." set {_a} to location of player wait 1 second if {_a} is location of player: set {_a} to location of player send "Teleportacja..." make player execute command "/warp sklep" else: send "Ruszyles sie!" else: send "Ruszyles sie!" else: send "Ruszyles sie!" else: send "Ruszyles sie!" else: send "Ruszyles sie!" Edytowane 14 października 2014 przez DamianMMC Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Adamek 182 Opublikowano 14 października 2014 Udostępnij Opublikowano 14 października 2014 Po ciul tak?tak deczko lepiej:command /sklep: trigger: set {_index} to 5 set {teleportblock::%player%} to true loop 5 times: if {_a} is location of player: set {_a} to location of player set {teleportblock::%player%} to true send "Zosatniesz przeleportowany za %{_index}%.." set {_a} to location of player remove 1 from {_index} wait 1 second else: set {teleportblock::%player%} to false send "Ruszyles sie!" stop send "Zostales przeteleportowany!" make player execute command "/warp sklep" set {teleportblock::%player%} to false on join: set {teleportblock::%player%} to false stop Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Dawid_PL 2 Opublikowano 15 października 2014 Autor Udostępnij Opublikowano 15 października 2014 da rade dodac permisje i zrobic ze to komende wywoluje konsola ? Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 DamianMMC 84 Opublikowano 15 października 2014 Udostępnij Opublikowano 15 października 2014 Options: msg1: &aZostaniesz przeleportowany za&6 msg2: &cRuszyles sie! msg3: &aZostales przeteleportowany! msg4: &cAktualnie jestes podczas teleportacji! msg5: &cNie masz pozwolenia by korzystac z tego warpa! permisja: warp.sklepcommand /sklep: trigger: if player has permission "{@permisja}": if {teleportblock::%player%} is false: set {_index} to 5 set {teleportblock::%player%} to true set {_a} to location of player loop 5 times: if {_a} is location of player: set {_a} to location of player set {teleportblock::%player%} to true send "{@msg1} %{_index}%.." set {_a} to location of player remove 1 from {_index} wait 1 second else: set {teleportblock::%player%} to false send "{@msg2}" stop send "{@msg3}" execute console command "/warp sklep %player%" set {teleportblock::%player%} to false else: send "{@msg4}" else: send "{@msg5}" on join: set {teleportblock::%player%} to false stopTrochę poprawiona wersja skryptu @up + options, permisje ("warp.sklep" - możliwosc zmiany w options) Dawid_PL 1 Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 Dawid_PL 2 Opublikowano 17 października 2014 Autor Udostępnij Opublikowano 17 października 2014 Options: msg1: &aZostaniesz przeleportowany za&6 msg2: &cRuszyles sie! msg3: &aZostales przeteleportowany! msg4: &cAktualnie jestes podczas teleportacji! msg5: &cNie masz pozwolenia by korzystac z tego warpa! permisja: warp.sklepcommand /sklep: trigger: if player has permission "{@permisja}": if {teleportblock::%player%} is false: set {_index} to 5 set {teleportblock::%player%} to true set {_a} to location of player loop 5 times: if {_a} is location of player: set {_a} to location of player set {teleportblock::%player%} to true send "{@msg1} %{_index}%.." set {_a} to location of player remove 1 from {_index} wait 1 second else: set {teleportblock::%player%} to false send "{@msg2}" stop send "{@msg3}" execute console command "/warp sklep %player%" set {teleportblock::%player%} to false else: send "{@msg4}" else: send "{@msg5}" on join: set {teleportblock::%player%} to false stopTrochę poprawiona wersja skryptu @up + options, permisje ("warp.sklep" - możliwosc zmiany w options) Dzięki ci bardzo Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
Dawid_PL 2
Witam. Czy może mi ktoś napisać mały skrypt na zmianę komendy /warp sklep na komendę /sklep i dodanie wiadomosci zostales przeteleportowany do sklepu i czas oczekiwania 5 sekund oraz wiadomosc ze zostales przeteleportowany do sklepu za 5s itp.
Odnośnik do komentarza
Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi