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

Szukam skryptu na blokadę tnt o danej godzinie


lukazs001

Rekomendowane odpowiedzi

Opublikowano

O danej godzinie NIE DA RADY, a raczej nie w skrypcie (na pewno wiekszosc osob, ci tak tutaj powie, pewnie @Palladin sie popisze i moze napisze w tej danej godzinie, ale watpie xD)

w pluginie da sie latwo :v

 

Calkowite wylaczenie, serio takiego prostego nie potrafisz xD

//kodzik w jakies 30-40 sekund

variables:
        {tnt} = true

on place of tnt:
	if {tnt} is false:
		cancel event
		send "&6nie mozesz tego zrobic, tnt jest off!"
		stop
	else:
		stop
		
command /tnt [<text>]:
	trigger:
		if arg-1 is "off":
			set {tnt} to false
			send "wylaczyles tnt"
			stop
		if arg-1 is "on":
			set {tnt} to true
			send "wlaczyles tnt"
			stop
		if arg-1 is not set:
			send "dost. arg. = /tnt on|off"
			stop
		if arg-1 is not "off" or "on":
			send "dost. arg. = /tnt on|off"
			stop

 

 

JAVA <3

 

Opublikowano


options:

start: 8 #od której tnt ma byc wlaczone

stop: 18 #od ktorej ma byc wylaczane

 

on load:

if {tnt} is not set:

set {tnt} to true

 

every 60 second:

set {_time} to "%hour%" parsed as number

if {tnt} is false:

if {_time} is equal to {@start}:

set {tnt} to true

stop

if {tnt} is true:

if {_time} is equal to {@stop}:

set {tnt} to false

stop

 

on explode:

if {tnt} is false:

cancel event

stop

 

on place of tnt:

if {tnt} is false:

cancel event

send "&4TNT OFF!"

stop

Opublikowano
options:
	start: 8  #od której tnt ma byc wlaczone
	stop: 18  #od ktorej ma byc wylaczane
	
on load:
	if {tnt} is not set:
		set {tnt} to true

every 60 second:
	set {_time} to "%hour%" parsed as number
	if {tnt} is false:
		if {_time} is equal to {@start}:
			set {tnt} to true
			stop
	if {tnt} is true:
		if {_time} is equal to {@stop}:
			set {tnt} to false
			stop
			
on explode:
	if {tnt} is false:
		cancel event
		stop
		
on place of tnt:
	if {tnt} is false:
		cancel event
		send "&4TNT OFF!"
		stop

mhmm, no tak a ja bylem pewien, ze nie da sie zrobic lol :v

Returns the interesting part of the date. Remember - This is system time!

WildSkript does not have Period (AM/PM), and SkriptPlus does not have milliseconds!
[Example:

set {_time} to "%hour%:%minutes%"]
[
WildSkript SkriptPlus
Patterns:    
year
month
day
hour
minute[s]
second[s]
millisecond[s]
period
http://skunity.com/search?search=hour]

 

 

JAVA <3

 

Opublikowano

Wszystko się da

Taki pewny jestes?

 

Zrob 3 liniową skrzynie (open chest with 3 rows to player), i zrób aby nie miała bugów.

Zrób aby o danej godzinie wykonywała sie komenda, zrób aby przy np: 30 graczach, wykonywała sie komenda.

To wszystko w skrypcie byś się głowił kilka godzin, w pluginie to kilka linijek :v

 

@Edit o i prosze, zrob aby wither, creeper lub tnt, robily wieksze eksplozje, o albo zrób, aby tnt nie robiło wgl eksplozji proszeee,

a nie, zapomnialem, przeciez nie ma takiego eventu

 

@Edit2 o albo prosze! napisz /otchlan w gui pls pls pls!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

albo ten, no, wymiany w gui, (ma nie polegac na tym samym co tradesk)

 

 

JAVA <3

 

Opublikowano

Otchłań da się zrobić bo sam to mam ale wiadomo ze w pl wszystko latfiej się da zrobić ale jak ktoś chce to zrobi

Otchłań da się zrobić bo sam to mam ale wiadomo ze w pl wszystko latfiej się da zrobić ale jak ktoś chce to zrobi

Opublikowano

Otchłań da się zrobić bo sam to mam ale wiadomo ze w pl wszystko latfiej się da zrobić ale jak ktoś chce to zrobi

Otchłań da się zrobić bo sam to mam ale wiadomo ze w pl wszystko latfiej się da zrobić ale jak ktoś chce to zrobi

"latfiej"? :v Kup sobie słownik.

 

Otchłani sie nie da, nie da sie zbierac itemow z ziemi do gui (skrzynki z rowsami)

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

 

Nie no, przez Ciebie zaraz będę tracił 4 godziny mojego życia xD

 

// Edit

#Skrzynia bez bugów:

command /gui:
    trigger:
        set {in-menu.%player%} to true
        open chest with 3 rows named "&6&lNazwa" to player
        wait 3 ticks
        format slot 0 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 1 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 2 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 3 of player with 1 of glowstone named "blablabla" to be unstealable
        stop

on inventory close:
    if {in-menu.%player%} is true:
        delete {in-menu.%player%}
        stop

# Sprawdzając zmienną {in-menu.%player%} możemy odczytać, czy gracz ma otwarte to właśnie GUI. Więc można dostosować wszystko tak, aby GUI się nie bugowało.
# Komenda o danej godzinie przy min. 30 graczach:

options:
        h: 18 # <-- o której godzinie ma być ta komenda

every 60 seconds:
    set {_h} to "%hour%" parsed as number
    if {_h} is equal to {@h}:
        if {done} is not set:
            set {done} to true
            set {_currentonline} to number of all players
            if {_currentonline} is greater or equal to 30:
                execute server command "/komenda"
            wait 3600 seconds
            delete {done}
            stop
# Duża eksplozja creepera:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains creeper:
            create an explosion of force 10 at the event-location
        stop

#Brak explozji TNT:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains primedtnt:
            cancel event
        stop

#Eksplozja withera:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains wither:
            create an explosion of force 10 at the event-location
        stop

Mam pisać dalej otchłań i wymienianie? XDD

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Opublikowano

@1361622928-U485574.pngEntify

 

Nie no, przez Ciebie zaraz będę tracił 4 godziny mojego życia xD

 

// Edit

#Skrzynia bez bugów:

command /gui:
    trigger:
        set {in-menu.%player%} to true
        open chest with 3 rows named "&6&lNazwa" to player
        wait 3 ticks
        format slot 0 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 1 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 2 of player with 1 of glowstone named "blablabla" to be unstealable
        format slot 3 of player with 1 of glowstone named "blablabla" to be unstealable
        stop

on inventory close:
    if {in-menu.%player%} is true:
        delete {in-menu.%player%}
        stop

# Sprawdzając zmienną {in-menu.%player%} możemy odczytać, czy gracz ma otwarte to właśnie GUI. Więc można dostosować wszystko tak, aby GUI się nie bugowało.
# Komenda o danej godzinie przy min. 30 graczach:

options:
        h: 18 # <-- o której godzinie ma być ta komenda

every 60 seconds:
    set {_h} to "%hour%" parsed as number
    if {_h} is equal to {@h}:
        if {done} is not set:
            set {done} to true
            set {_currentonline} to number of all players
            if {_currentonline} is greater or equal to 30:
                execute server command "/komenda"
            wait 3600 seconds
            delete {done}
            stop
# Duża eksplozja creepera:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains creeper:
            create an explosion of force 10 at the event-location
        stop

#Brak explozji TNT:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains primedtnt:
            cancel event
        stop

#Eksplozja withera:

on explode:
    loop all entities in radius 2 of event-location:
        set {_loop::*} to loop-entities
        if {_loop::*} contains wither:
            create an explosion of force 10 at the event-location
        stop

Mam pisać dalej otchłań i wymienianie? XDD

mozesz napisac otchlan xD

 

 

JAVA <3

 

Opublikowano

Mam na to plugin, możesz włączyć, wyłączyć tnt kiedy chcesz. Ustawić możesz również automatyczne włączanie i wyłączanie np. od 14 do 22 jest tnt włączone.

Dodatek: Tnt możesz stawiać np od 50 poziomu Y

Chcesz ten plugin? Pisz pw ;)

Szukam osób, które chcą stworzyć ze mną serwer, więcej informacji na priv

Opublikowano

@1361622928-U485574.pngEntify

 

Izi... xD:

 

 

 

command /otchlan-otworz:
    trigger:
        loop all entities in all worlds:
            loop-entity is an item
            set {items::*} to loop-entity
            kill loop-entity
        stop

command /otchlan:
    trigger:
        set {_size} to size of {items::*}
        set {amountofpages} to rounded {_size}/30
        open chest with 4 rows named "&6&lOtchlan &8>> &a1/%{amountofpages}%" to player
        wait 3 ticks
        set {otchlan.%player%} to true
        set {_current} to 0
        loop 27 times:
            {_current} is less or equal to 27
            format slot {_current} of player with {items::%{_current}%} to run [give %{items::%{_current}%}% to player]->[unformat slot %{_current}% of player]
            add 1 to {_current}
        format slot 31 of player with wooden plank named "<< &aPoprzednia" to be unstealable
        format slot 32 of player with wooden plank named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open 2%"
        stop #teraz wegorz patrzcie... XDD sorry, musialem
        
command /otchlan-open [<number>]:
    trigger:
        if number-argument is set:
            if number-argument is less or equal to {amountofpages}:
                set {_page} to number-argument
                set {_current} to "%([{_page}-1]*27)+1%" parsed as number
                loop 27 times:
                    {_current} is less or equal to 27*{_page}
                    format slot {_current} of player with {items::%{_current}%} to run [give %{items::%{_current}%}% to player]->[unformat slot %{_current}% of player]
                    add 1 to {_current}
                format slot 31 of player with wooden planks named "<< &aPoprzednia" to close then run "wykonaj %player% otchlan-open %{_page}-1%"
                format slot 32 of player with wooden planks named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open %{_page}+1%"
                stop

command /wykonaj [<player>] [<text>]:
    executable by: console
    trigger:
        execute player-argument command "%text-argument%"
        stop

 

 

 

PS. Przykro mi to mówić, ale raczej zrobiłem błędy. ;c Testujecie na własną odpowiedzialność!

PPS. Ale jakąś bazę do nadpisywania macie :DDD

 

// Edit

 

Najlepsza linijka skryptu tygodnia:

set {_current} to "%([{_page}-1]*27)+1%" parsed as number

XDDDD

 

// Edit 2

 

#Brain overcheated

 

// Edit 3

 

Nie korzystałem z żadnych kalkulatorów xD

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Opublikowano

@1361622928-U485574.pngEntify

 

Izi... xD:

 

 

 

command /otchlan-otworz:
    trigger:
        loop all entities in all worlds:
            loop-entity is an item
            set {items::*} to loop-entity
            kill loop-entity
        stop

command /otchlan:
    trigger:
        set {_size} to size of {items::*}
        set {amountofpages} to rounded {_size}/30
        open chest with 4 rows named "&6&lOtchlan &8>> &a1/%{amountofpages}%" to player
        wait 3 ticks
        set {otchlan.%player%} to true
        set {_current} to 0
        loop 27 times:
            {_current} is less or equal to 27
            format slot {_current} of player with {items::%{_current}%} to run [give %{items::%{_current}%}% to player]->[unformat slot %{_current}% of player]
            add 1 to {_current}
        format slot 31 of player with wooden plank named "<< &aPoprzednia" to be unstealable
        format slot 32 of player with wooden plank named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open 2%"
        stop #teraz wegorz patrzcie... XDD sorry, musialem
        
command /otchlan-open [<number>]:
    trigger:
        if number-argument is set:
            if number-argument is less or equal to {amountofpages}:
                set {_page} to number-argument
                set {_current} to "%([{_page}-1]*27)+1%" parsed as number
                loop 27 times:
                    {_current} is less or equal to 27*{_page}
                    format slot {_current} of player with {items::%{_current}%} to run [give %{items::%{_current}%}% to player]->[unformat slot %{_current}% of player]
                    add 1 to {_current}
                format slot 31 of player with wooden planks named "<< &aPoprzednia" to close then run "wykonaj %player% otchlan-open %{_page}-1%"
                format slot 32 of player with wooden planks named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open %{_page}+1%"
                stop

command /wykonaj [<player>] [<text>]:
    executable by: console
    trigger:
        execute player-argument command "%text-argument%"
        stop

 

 

 

PS. Przykro mi to mówić, ale raczej zrobiłem błędy. ;c Testujecie na własną odpowiedzialność!

PPS. Ale jakąś bazę do nadpisywania macie :DDD

 

// Edit

 

Najlepsza linijka skryptu tygodnia:

set {_current} to "%([{_page}-1]*27)+1%" parsed as number

XDDDD

 

// Edit 2

 

#Brain overcheated

 

// Edit 3

 

Nie korzystałem z żadnych kalkulatorów xD

Jest kilka bledow, poza tym otchlan polega na otwieraniu, jezeli w otchlani uzbiera sie np; cala skrzynia :v

 

 

JAVA <3

 

Opublikowano

@1361622928-U485574.pngEntify

 

Tak, są błędy. Już naprawiam :v

 

// Edit

 

Poprawione kilka błędów:

 

Skrypt nie jest jeszcze gotowy. Pozostają w zasadzie 2 niezrobione rzeczy. Jak ktoś będzie chętny na otrzymanie całego skryptu, proszę o PW.

 

 

 

command /otchlan-otworz:
    trigger:
        loop all entities in all worlds:
            loop-entity is an item
            set {items::*} to loop-entity
            kill loop-entity
        stop

command /otchlan:
    trigger:
        set {_size} to size of {items::*}
        set {amountofpages} to rounded {_size}/30
        open chest with 4 rows named "&6&lOtchlan &8>> &a1/%{amountofpages}%" to player
        wait 3 ticks
        set {otchlan.%player%} to true
        set {_current} to 0
        loop 27 times:
            {_current} is less or equal to 27
            format slot {_current} of player with {items::%{_current}+1%} to run [give %{items::%{_current}+1%}% to player]->[unformat slot %{_current}% of player]
            add 1 to {_current}
        format slot 31 of player with wooden plank named "<< &aPoprzednia" to be unstealable
        format slot 32 of player with wooden plank named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open 2%"
        stop #teraz wegorz patrzcie... XDD sorry, musialem
       
command /otchlan-open [<number>]:
    trigger:
        if number-argument is greater than 0:
            if number-argument is less or equal to {amountofpages}:
                set {_page} to number-argument
                set {_current-helper} to {_page}-1
                set {_current} to {_current-helper}*27
                add 1 to {_current}
                set {_currentslot} to 0
                loop 27 times:
                    {_current} is less or equal to 27*{_page}
                    format slot {_currentslot} of player with {items::%{_current}%} to run [give %{items::%{_current}%}% to player]->[unformat slot %{_current}% of player]->[remove {items::%{_current}%} from {items::*}]
                    add 1 to {_current}
                    add 1 to {_currentslot}
                format slot 31 of player with wooden planks named "<< &aPoprzednia" to close then run "wykonaj %player% otchlan-open %{_page}-1%"
                format slot 32 of player with wooden planks named "&aNastepna >>" to close then run "wykonaj %player% otchlan-open %{_page}+1%"
                stop
            else:
                send "&cNie mozna tego otworzyc." to player

command /wykonaj [<player>] [<text>]:
    executable by: console
    trigger:
        execute player-argument command "%text-argument%"
        stop

 

 

 

Jest kilka bledow, poza tym otchlan polega na otwieraniu, jezeli w otchlani uzbiera sie np; cala skrzynia :v

 

 

Ona się otwiera komendą '/otchlan-otworz', a GUI otwieramy komenda /otchlan

A strony w GUI przewijamy używając << Poprzednia i Nastepna >>

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...