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

[Skrypt] Skrypt na działki


Rekomendowane odpowiedzi

Opublikowano

Cze, pisałem se skrypta na działki, możecie sie pobawić

command /cuboid [<text>] [<text>]:
	aliases: cub, dzialka, dzialki, teren, domek, chata, house, cubek, zolw
	description: Skrypt na dzialki 
	trigger:
		if arg-1 isn't set:
			send "&6&l>> &c&l/Cub zaloz"
			send "&6&l>> &c&l/Cub dodaj <player>"
			send "&6&l>> &c&l/Cub usun"
			send "&6&l>> &c&l/Cub home"
			send "&6&l>> &c&l/Cub wyrzuc"
			send "&6&l>> &c&l/Cub opusc"
			send "&6&l>> &C&L/Cub pvp <on/off>"
		if arg-1 is "zaloz" or "create":
			if {cub.%player%} is false:
				#if distance between {loc.spawn} and location of player is greater than 300+30/2:
				set {froze.%player%} to true
				run player command "//pos1" as op
				run player command "//pos2" as op
				run player command "//expand 10 n" as op
				run player command "//expand 10 s" as op 
				run player command "//expand 10 w" as op
				run player command "//expamd 10 e" as op
				run player command "//expand vert" as op 
				run player command "/rg define %player%" as op
				run player command "/rg addowner %player% %player%" as op
				run player command "/rg setpriority %player% 1" as op                                                                                            
				run player command "/rg flag %player% pvp deny" as op
				run player command "rg flag %player% greeting &cTen teren nalezy do&8: &2%player%'a" as op 
				run player command "rg flag %player% farewell &aOpuszczono teren&c %player%'a" as op 
				set {cub.%player%} to true
				set {loc.%player%} to location of player
				set {froze.%player%} to false
			else:
				if {cub.%player%} is true:
					send "&cMasz juz dzialke!"
					stop
				if distance between {loc.spawn} and location of player isn't greater than 300+30/2:
					send "&cJestes zbyt blisko spawnu!"
					stop
		if arg-1 is "setspawn":
			if player has permission "admin":
				set {loc.spawn} to location of player
				send "&aUstawiono spawn"
				send "&aDzialki moga dzialac!"
				stop
		if arg-1 is "home":
			if {cub.%player%} is true:
				if {combat.%player%} is false:
					set {_index} to 10
					set {_loc} to location of player 
					send "&6&lZostaniesz przeteleportowany za:"
					loop 10 times:
						if {_loc} isn't location of player:
							send "&c&lRuszyles sie! Teleportacja przerwana!"
							stop
						send "&2&l%{_index}%"
						wait 1 seconds
						remove 1 from {_index}
					if {_loc} is location of player:
						teleport player to {loc.%player%}
						show mob spawner flames at the player
						send "&a&lPrzeteleportowano!"
				else:
					if {cub.%player%} isn't true:
						send "&6&l>> &c&lNie masz dzialki!"
						stop
					if {combat.%player%} isn't false:
						send "&c&lJestes podczas walki!"
						stop
		if arg-1 is "usun" or "rozwiaz" or "delete":
			if {cub.%player%} is true:
				send "&c&lNapewno chcesz ja usunac?"
				send "&c&lPotwierdz pod komedna /cub usun okej"
			else:
				send "&c&lNie masz dzialki!"
		if arg-2 is "okej":
			if {cub.%player%} is true:
				run player command "/rg remove %player%" as op
				send "&c&lUsunieto dzialke!"
				set {cub.%player%} to false
				clear {loc.%player%} 
				stop
		if arg-1 is "dodaj" or "add" or "zapros":
			if arg-2 is player:
				if {cub.%player%} is true:
					if {cub.%arg-2%} is false:
						send "&a&lDodales %arg-2% do dzialki!" to player
						add arg-2 to {%player%::*}
						send "&a&l%player% zaprosil cie do dzialki" to {%player%::*}
						run player command "/rg addowner %arg-2%" as op 
						add 1 to  {cub.adds.%player%} 
						set {cub.%arg-2%} to true
						add arg-2 to {players.%player%::*}
						set {loc.%arg-2%} to {loc.%player%}
						stop
					else:
						if {cub.%player%} is false:
							send "&c&lNie masz dzialki!"
							stop
						if {cub.%arg-2%} is true:
							send "&c&lTen gracz ma juz dzialke!"
							stop
		if arg-1 is "wyrzuc":
			if {cub.%player%} is true:
				if arg-2 is set:
					if {players.%player%::*} contains arg-2:
						delete {loc.%arg-2%} 
						set {cub.%arg-2%} to false
						send "&c&lZostales wyrzucony z cuboida %player%'a!" to arg-2
						remove 1 from {cub.adds.%player%}
					else:
						if {cub.%player%} is false:
							send "&6&l>> &c&lNie masz dzialki!" 
							stop
						if {players.%player%::*} contains "%arg-2%":
							send "&6&l>> &c&lTen gracz nie jest dodany do twojej dzialki!"
							stop
						if {%player%.isnt.lider} is true:
							send "&6&l>>&c&l Nie jestes zalozycielem!"
							stop
		if arg-1 is "pvp":
			if arg-2 is "on":
				if {cub.%player%} is true:
					run player command "/rg flag %player% pvp on" as op
					send "&a&lWlaczono pvp"
				if {cub.%player%} is false:
					send "&c&lNie masz dzialki!"
					stop
			if arg-2 is "off":
				if {cub.%player%} is true:
					run player command "/rg flag %player% pvp on" as op
					send "&c&lWylaczono pvp"
					stop
				else:
					send "&c&lNie masz dzialki!"
					stop
						
				
on damage:
	if victim is a player:	
		if attacker is a player:
			send "&c&lWalka trwa! Nie logaj!"
			set {combat.%victim%} to true
			set {combat.%attacker%} to true
			wait 10 real seconds
			send "&a&lKoniec walki! Logaj!"
			set {combat.%victim%} to false
			set {combat.%attacker%} to false
			stop
on disconnect:
	if {combat.%player%} is true:
		kill player
		set {combat.%player%} to false 
		send "&c&lGracz &6%player% jest friksem!"
		stop		
on anymove:
	if {froze.%player%} is true:
		cancel event
	else:
		uncancel event
variables:
	{cub.%player%} = false
	{combat.%player%} = false
	{froze.%player%} = false
	{cub.adds.%player%} = 0
Cytat

 

 

  • Biter. zmienił(a) tytuł na [Skrypt] Skrypt na działki
Opublikowano
					loop 10 times:
						if {_loc} isn't location of player:
							send "&c&lRuszyles sie! Teleportacja przerwana!"
							stop

ehh, tak trudno zrobic zmienna "teleport::%player%", i w on move sprawdzac czy jest true, jesli tak to cos robi?

 

nie polecam skryptu

 

Aktualnie interesuję się javą, powoli ogarniam java swing i awt, czasem bawię się HTML.

Opublikowano
3 minuty temu, ˈyøøniks napisał:

					loop 10 times:
						if {_loc} isn't location of player:
							send "&c&lRuszyles sie! Teleportacja przerwana!"
							stop

ehh, tak trudno zrobic zmienna "teleport::%player%", i w on move sprawdzac czy jest true, jesli tak to cos robi?

 

nie polecam skryptu

Napisałem temat, jeśli ktoś się zainteresuje to sobie go przerobi.

Nie będę uwzględniał oraz pisał na temat popełnionych błędów.

 

//Tak wgl. to tam nie ma błędu xD 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...