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] Zaawansowany skrypt


Rekomendowane odpowiedzi

Opublikowano

Witam poszukuje bardziej zaawansowanego skryptu ktory widzialem na 1 serwerze a mianowicie. Teleport w losowe miejsce ale taki inny w sesie ze: jest blok muzyczny i na nim guzik. Po kliknie na guzik wyskakuje wiadomosc: Wyszukiwanie losowych koordynatow i wyrzuca wysoko do gory na 30 kratek w gore i jak 30 kratek wyrzuci to nie spada sie na dol tylko teleportuje w jakis tam koordynaty i gdy przeteleportuje to wyskakuje wiadomosc: Wyszukano koordynaty [x-kordy] [y-kordy] Umialby ktos takiego zrobic? nie musi akurat 30 kratek wyrzucac w gore moze mniej lub wiecej.

Opublikowano

Witam poszukuje bardziej zaawansowanego skryptu ktory widzialem na 1 serwerze a mianowicie. Teleport w losowe miejsce ale taki inny w sesie ze: jest blok muzyczny i na nim guzik. Po kliknie na guzik wyskakuje wiadomosc: Wyszukiwanie losowych koordynatow i wyrzuca wysoko do gory na 30 kratek w gore i jak 30 kratek wyrzuci to nie spada sie na dol tylko teleportuje w jakis tam koordynaty i gdy przeteleportuje to wyskakuje wiadomosc: Wyszukano koordynaty [x-kordy] [y-kordy] Umialby ktos takiego zrobic? nie musi akurat 30 kratek wyrzucac w gore moze mniej lub wiecej.

raczej skryptu takiego nie znajdziesz może plugin lecz wątpię ;d

Opublikowano

Znów Ty hehe :D

 

Ok to tak, piszę skrypty na swój serwer RPG aktualnie i spodobał mi się ten pomysł postaram się takie coś napisać dla nas obu.

 

Najwcześniej za 2dni się okaże czy dam radę

TEMAT


 


Opublikowano

Znów Ty hehe :D

 

Ok to tak, piszę skrypty na swój serwer RPG aktualnie i spodobał mi się ten pomysł postaram się takie coś napisać dla nas obu.

 

Najwcześniej za 2dni się okaże czy dam radę

Jeżeli by Ci się takie coś udało to ja również bardzo bym prosił ;)

Opublikowano

Coś takiego?
Autor: SizzXd

 

options:
    xMin: -1500
    xMax: 1500
    zMin: -1500
    zMax: 1500
    yMin: 70
    yMax: 255
    world: world
#--------------------------------------#
# ======== Bloki / MSG / PEX ========= #
#--------------------------------------#     
    # - Bloki na ktorych ma stac przycisk do losowego TP
    #Gabka
    blok1: noteblock
    #Kamien kresu
    blok2: air
    # - Permissions do skryptu
    permissions: pex.stp
    # - Wiadomosc ostrzegajaca przed teleportacja
    danmsg: &9Teleportacja nastapi za chwile!&c Pamietaj, ze mozesz zginac!
    # - Wiadomosc informujaca o teleportacji jak i na jakie koordynaty
    infmsg: &7Zostales przeteleprtoway na %{_targetx}%, %{_targetz}%
    # - Glowny tag skryptu / Przy wiadomosciach
    tag: &7[&cSTP&7]
#--------------------------------------#
# ======= Efekty / Sila / Czas ======= #
#--------------------------------------#   
    #Szybkosc
    efekt1: speed
    sila1: 3
    czas1: 30
	#Mdlosci
    efekt2: nausea
    sila2: 7
    czas2: 8
	#Ciemnosc
    efekt3: blindness
    sila3: 6
    czas3: 6

on rightclick on stone button:
    block behind target block is {@blok1} or {@blok2}:
        if player has permissions "{@permissions}":
            set {_targetx} to a random integer between {@xMin} and {@xMax}
            set {_targetz} to a random integer between {@zMin} and {@zMax}
            send "{@tag} {@danmsg}" to player
            wait 2 seconds
            apply {@efekt1} {@sila1} to the player for {@czas1} seconds
            apply {@efekt2} {@sila2} to the player for {@czas2} seconds
            apply {@efekt3} {@sila3} to the player for {@czas3} seconds
            send "{@tag} {@infmsg}" to player
            execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%"
            stop

26_unnamed.png

Opublikowano

Coś takiego powinno działać

(@AsherTivi przerobione od niego) tylko dodane to co chciałeś ^_^

options:
xMin: -1500
xMax: 1500
zMin: -1500
zMax: 1500
yMin: 70
yMax: 255
world: world
#--------------------------------------#
# ======== Bloki / MSG / PEX ========= #
#--------------------------------------# 
# - Bloki na ktorych ma stac przycisk do losowego TP
#Gabka
blok1: noteblock
#Kamien kresu
blok2: air
# - Permissions do skryptu
permissions: pex.stp
# - Wiadomosc ostrzegajaca przed teleportacja
danmsg: &9Teleportacja nastapi za chwile!&c Pamietaj, ze mozesz zginac!
# - Wiadomosc informujaca o teleportacji jak i na jakie koordynaty
infmsg: &7Zostales przeteleprtoway na %{_targetx}%, %{_targetz}%
# - Glowny tag skryptu / Przy wiadomosciach
tag: &7[&cSTP&7]
#--------------------------------------#
# ======= Efekty / Sila / Czas ======= #
#--------------------------------------# 
#Szybkosc
efekt1: speed
sila1: 3
czas1: 30
    #Mdlosci
efekt2: nausea
sila2: 7
czas2: 8
    #Ciemnosc
efekt3: blindness
sila3: 6
czas3: 6
# - Wywala gracza w górę
push the player upwards at speed 20

on rightclick on stone button:
block behind target block is {@blok1} or {@blok2}:
if player has permissions "{@permissions}":
set {_targetx} to a random integer between {@xMin} and {@xMax}
set {_targetz} to a random integer between {@zMin} and {@zMax}
send "{@tag} {@danmsg}" to player
wait 2 seconds
apply {@efekt1} {@sila1} to the player for {@czas1} seconds
apply {@efekt2} {@sila2} to the player for {@czas2} seconds
apply {@efekt3} {@sila3} to the player for {@czas3} seconds
send "{@tag} {@infmsg}" to player
execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%"
 
stop

­

Bez nazwy-2.png

Opublikowano

Serio... Prosty skrypt :D Jbc. piszcie pw tylko ja piszę skrypty w zamian za cuś :) 

33eHdSv.png

"Apetytu nie mam, nie muszę dużo zjeść
A na przykład twoja łydka przypomina kurzą pierś
Usiądź gdzieś nad miską, naprawdę to banał
Po prostu się skup i tnij poniżej kolana"

Opublikowano

Ja napisalem prosbe o skrypt i teraz wszyscy go chca ? ... Moglbys by mi ktos ten wyzej wytabowac? bardzo bym prosil. Moze zadziala :) ja bym sobie tylko poprzerabial na blok muzyczny itp.

Opublikowano

dobra juz mi jedna osoba wytabowala ale skrypt nie dziala. Logi z consolki:

[12:26:00 ERROR]: [skript] 'push the player upwards at speed 20' is not an entry (like 'name : value') (tp.sk, line 41: push the player upwards at speed 20')
[12:26:00 ERROR]: [skript] Can't compare a block with ('noteblock' or 'air') (tp.sk, line 44: block behind target block is {@blok1} or {@blok2}:')
Opublikowano

Znalazłem to na moim dysku jeszcze, ale to wykorzystuje kTools [skrypt z prostymi zasobami]

options:
	xMin: -9000 #Minimum X
	xMax: 9000 #Maximum X
	zMin: -9000 #Minimum Z
	zMax: 9000 #Maximum Z
	world: world #Nazwa Świata
	loop: 20

on rightclick on stone button:
	if block behind target is noteblock:
		2 blocks bottom target is sponge:
                        push player upwards at speed 20
			loop {@loop} times:
				set {_targetx} to a random integer between {@xMin} and {@xMax}
				set {_targetz} to a random integer between {@zMin} and {@zMax}
				execute console command "/getlocation %{_targetx}% 63 %{_targetz}% {@world}"
				set {_destination} to {ktools.location}
				set {_light} to light level at {_destination}
				if the block 1 below the block at {_destination} is not water:
					execute console command "/tp %player% %{_targetx}% 256 %{_targetz}%"
					stop loop
				if {_light} is less than 4:
					execute console command "/tp %player% %{_targetx}% 256 %{_targetz}%"
					stop loop 

kTools:

#kTools - A Skript Library
#Version 1.1
#Written by TenzorMatic
#With Several Helpful Contributions from DemonPenguin
command /getint <integer> [<text="int">]:
	description: Converts input to an integer, which is set to {ktools.%arg-2%}
	usage: /getint <text to convert> [<variable name>]
	trigger:
		clear {ktools.%text-arg%}
		set {ktools.%text-arg%} to arg-integer

command /getnum <number> [<text="num">]:
	description: Converts input to an num, which is set to {ktools.%arg-2%}
	usage: /getnum <text to convert> [<variable name>]
	trigger:
		clear {ktools.%text-arg%}
		set {ktools.%text-arg%} to arg-number

command /getmaterial <material>[ to <text="material">]:
	description: Converts input to a material, which is set to {ktools.%arg-2%}
	usage: /getmaterial <text to convert>[ to <variable name>]
	aliases: /getitem
	trigger:
		clear {ktools.%text arg%}
		set {ktools.%text arg%} to arg-material
		
command /getitemtype <itemtype>[ to <text="material">]:
	description: Converts input to an itemtype, which is set to {ktools.%arg-2%}
	usage: /getitemtype <text to convert>[ to <variable name>]
	aliases: /getitems, /getmaterials
	trigger:
		clear {ktools.%text arg%}
		set {ktools.%text arg%} to arg 1

command /getplayer <player> [<text="player">]:
	description: Converts input to a player, which is set to {ktools.%arg-2%}
	trigger:
		clear {ktools.%text-arg%}
		set {ktools.%text-arg%} to arg-player

command /getlocation <integer> <integer> <integer> [<text="%player's world%">][ to <text="location">]:
	description: Converts input to a location object, which is set to {ktools.%arg-text-2%}
	usage: /getlocation <x> <y> <z> [<world=player's world>][ to <variable name="ktools.location">]
	trigger:
		clear {ktools.%text-arg-2%}
		if x coord of {ktools.%arg-text-1%.origin} is .5:
			if y coord of {ktools.%arg-text-1%.origin} is .5:
				if z coord of {ktools.%arg-text-1%.origin} is .5:
					set {_destinationx} to the block arg-1 east of the block at {ktools.%arg-text-1%.origin}
					set {_destinationy} to the block arg-2 above the block at {_destinationx}
					set {ktools.%text-arg-2%} to location of the block arg-3 south of the block at {_destinationy}
					#send "{ktools.%text-arg-2%} set to %{ktools.%text-arg-2%}%"
					exit trigger
		send "Origin is not set. Use /setorigin in game to fix."

command /getblock <integer> <integer> <integer> [<text="%player's world%">][ to <text="block">]:
	description: Converts input to a block object, which is set to {ktools.%arg-text-2%}
	usage: /getblock <x> <y> <z> [<world=player's world>][ to <variable name="ktools.block">]
	trigger:
		clear {ktools.%text-arg-2%}
		if x coord of {ktools.%arg-text-1%.origin} is .5:
			if y coord of {ktools.%arg-text-1%.origin} is .5:
				if z coord of {ktools.%arg-text-1%.origin} is .5:
					set {_destinationx} to the block arg-1 east of the block at {ktools.%arg-text-1%.origin}
					set {_destinationy} to the block arg-2 above the block at {_destinationx}
					set {ktools.%text-arg-2%} to the block arg-3 south of the block at {_destinationy}
					#send "{ktools.%text-arg-2%} set to %{ktools.%text-arg-2%}%"
					exit trigger
		send "Origin is not set. Use /setorigin in game to fix."

command /getchunk <integer> <integer> <integer> [<text="%player's world%">][ to <text="chunk">]:
	description: Converts input to a chunk object, which is set to {ktools.%arg-text-2%}
	usage: /getchunk <x> <y> <z> [<world=player's world>][ to <variable name="ktools.chunk">]
	trigger:
		clear {ktools.%text-arg-2%}
		if x coord of {ktools.%arg-text-1%.origin} is .5:
			if y coord of {ktools.%arg-text-1%.origin} is .5:
				if z coord of {ktools.%arg-text-1%.origin} is .5:
					set {_destinationx} to the block arg-1 east of the block at {ktools.%arg-text-1%.origin}
					set {_destinationy} to the block arg-2 above the block at {_destinationx}
					set {ktools.%text-arg-2%} to chunk of location of the block arg-3 south of the block at {_destinationy}
					#send "{ktools.%text-arg-2%} set to %{ktools.%text-arg-2%}%"
					exit trigger
		send "Origin is not set. Use /setorigin in game to fix."

command /setorigin:
	description: Gets the origin location of the current world. Must be used once before location/block/chunk commands can be used for that world. Origin is set to {ktools.%world%.origin}.
	trigger:
		set {_currentlocation} to location of player
		set {_relative.x} to rounded down the x coord of {_currentlocation}
		set {_relative.y} to rounded down the y coord of {_currentlocation}
		set {_relative.z} to rounded down the z coord of {_currentlocation}
		set {_destinationx} to the block {_relative.x} west of the block at {_currentlocation}
		set {_destinationy} to the block {_relative.y} below the block at {_destinationx}
		set {ktools.%player's world%.origin} to location of the block {_relative.z} north of the block at {_destinationy}
		send "{ktools.%player's world%.origin} origin set to %{ktools.%player's world%.origin}%"
Opublikowano

Czyli musze wgrac skrypt na ktools aby dzialal ten losowy ? Jesli tak to mozna ktoolsa ukrocic ? bo widze ze on tylko get location wykorzystuje reszty nie i np z ktolsa wywalilc all tylko get location zostawic

Opublikowano

Pizdziec zara mnie trafi dalej nie dziala:

[13:24:01 ERROR]: [skript] indentation error: expected 3 tabs, but found 24 spaces (teleportiktools.sk, line 12: push player upwards at speed 20')
[13:24:01 ERROR]: [skript] 'noteblock' is not an entity type (teleportiktools.sk, line 10: if block behind target is noteblock:')
Opublikowano

omg i teraz nikt nie potrafi pomoc. Moze zamiast noteblocka dajcie : Jukebox - PS.wydaje mi sie ze oni maja jukeboxa bo jest dziura na gorze xD moja pomylka bo wam chyba inaczej napisalem

Opublikowano

Tak, wtedy to Jukebox - robiony z diamentu, nie redstone.

options:
	xMin: -9000 #Minimum X
	xMax: 9000 #Maximum X
	zMin: -9000 #Minimum Z
	zMax: 9000 #Maximum Z
	world: world #Nazwa Świata
	loop: 20

on rightclick on stone button:
	if block behind is 84:
		2 blocks bottom target is sponge:
			loop {@loop} times:
				set {_targetx} to a random integer between {@xMin} and {@xMax}
				set {_targetz} to a random integer between {@zMin} and {@zMax}
				execute console command "/getlocation %{_targetx}% 63 %{_targetz}% {@world}"
				set {_destination} to {ktools.location}
				set {_light} to light level at {_destination}
				if the block 1 below the block at {_destination} is not water:
					execute console command "/tp %player% %{_targetx}% 256 %{_targetz}%"
					stop loop
				if {_light} is less than 4:
					execute console command "/tp %player% %{_targetx}% 256 %{_targetz}%"
					stop loop
Opublikowano

nosz k***a mac zaraz tak przeklinac zaczne ze ........................

[14:44:40 ERROR]: [skript] Can't compare a block with an integer (lostp.sk, line 10: if block behind is 84:') 

ZNOWU KURWA NIE DZIALA !!!!

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...