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

[Problem] Skrypt Lobby :/


Rekomendowane odpowiedzi

Opublikowano

Witam

Pobralem sobie skrypt PLobby lecz po wgraniu wszystkiego dostaje bledy :(.

Czy moglby ktos zerknac i ewentualnie poprawic byl bym bardzo wdzieczny.

Z gory dziekuje!

[uzywam najnowsza wersje skript oraz inne pluginy ktore wymaga skrypt]

55204326542976912187.png

 

 

Skrypt:

#▒.▀▀. .░░ .▀▀. .▀▀▄ .▀▀▄ .░░. 
#▒.▄▄. .░░ .░░. .▀▀▄ .▀▀▄ .▄▄. 
#▒.░░░ ▀▀▀ ▀▀▀▀ ▀▀▀░ ▀▀▀░ ▄▄▄. 
# © PLobby
# [Parrot]

#--------------------------#
#           Opcje          #
#--------------------------#

options:
#   Tag wyswietlany przed kazda wiadomoscia
	tag: &7[&6*&7] 
#   Wiadomosc o braku uprawnien
	per: &cNie masz uprawnien!
#   Blok wyrzutni
	blok: redstone block
#   Kordynat y po ktorego przekroczeniu zostajemy teleportowani na spawn
	y: 50
	
variables:
	{rekord-graczy} = 0

#--------------------------#
#      Update-Checker      #
#--------------------------#

on script load:
	set {_v} to "1.1"
	set {_vp} to text from url "http://pastebin.com/raw.php?i=ETmzd21U"
	if "%{_v}%" is not "%{_vp}%":
		broadcast " "
		broadcast " "
		broadcast "&4Nowa wersja skryptu &bP&6Lobby &4zostala wydana!"
		broadcast "&4Pobierz ja na &6http://pastebin.com/raw.php?i=JiUtvUn6"
		broadcast " "
		broadcast " "
	
#--------------------------#
#         Wyrzutnie        #
#--------------------------#

on walking on {@blok}:
	if {skocznia.%player%} is set:
		if {skocznia.%player%} is "1":
			if player has permission "plobby.skocznia":
				push player upwards at speed 10
				wait 1 second
				push player forward at speed 10
				send "{@tag} Lec! :D"
			else:
				send "{@tag} {@per}"
		else:
			send "{@tag} Musisz wlaczyc skocznie komenda /skocznie"
	else:
		set {skocznia.%player%} to "1"
command /skocznie:
	trigger:
		if {skocznie.%player%} is "1":
			set {skocznie.%player%} to "0"
			send "{@tag} Skocznie wylaczone!"
		else if {skocznie.%player%} is "0":
			set {skocznie.%player%} to "1"
			send "{@tag} Skocznie wlaczone!"
		else:
			set {skocznie.%player%} to "1"
			send "{@tag} Skocznie wlaczone!"

#--------------------------#
#         Blokady          #
#--------------------------#	
		
on break:
	if player don't have permission "plobby.budowanie":
		cancel event
		send "{@tag} {@per}"
on place:
	if player don't have permission "plobby.budowanie":
		cancel event
		send "{@tag} {@per}"
on xp spawn:
	cancel event
on pick up:
	if player don't have permission "plobby.pick":
		cancel event
on drop:
	if player don't have permission "plobby.drop":
		cancel event
on any movement:
	if player's y coordinate is smaller than {@y}:
		teleport player to spawn
		
#--------------------------#
#        ScoreBoard        #
#--------------------------#

on server ping:
	set {max} to "%max player count%"
	
command /sb:
	trigger:
		display board named "&l%player%" to player
		make score "&aAktualnie:" in board of player to 6
		make score "&f%number of players%/%{max}%" in board of player to 5
		make score "&d" in board of player to 4
		make score "&aRekord graczy:" in board of player to 3
		make score "%{rekord-graczy}%" in board of player to 2
		make score "&f" in board of player to 1
		make score "&cMilej gry!" in board of player to 0
		move display of player to "sidebar"
		
#--------------------------#
#    Wejscie na serwer     #
#--------------------------#

on join:
	execute player command "/sb"
	remove clock named "&eGracze: &aON" from player
	remove clock named "&eGracze: &cOFF" from player
	remove bone named "&aZwierzeta" from player
	remove gold ingot named "&eEfekty &e&lVIP" from the player
	give clock named "&eGracze: &aON" to the player
	set {plobby.widocznosc.%player%} to 1 
	give gold ingot named "&eEfekty &e&lVIP" to the player
#	give bone named "&aZwierzeta" to player
	apply speed 2 to the player for 999 days
	apply jump boost 2 to the player for 999 days
	
#--------------------------#
#         Ukrywanie        #
#--------------------------#

on rightclick with clock:
	if name of player's tool is "&eGracze: &cOFF":
		reveal all players to player
		set name of player's tool to "&eGracze: &aON"
		send "{@tag} Gracze zostali pokazani!"
		stop
	else:
		hide all players from player
		set name of player's tool to "&eGracze: &cOFF"
		send "{@tag} Gracze zostali ukryci!"
		stop

#--------------------------#
#          Efekty          #
#--------------------------#

on rightclick with gold ingot:
	if name of player's tool is "&eEfekty &e&lVIP":
		if player has permission "plobby.vip":
			show "s;1;i;351:1;n;&7Efekt: &4Serca;c;efekt %player% serca;s;2;i;51;n;&7Efekt: &6Ogien;c;efekt %player% ogien;s;3;i;25;n;&7Efekt: &1Nut;c;efekt %player% nuty;s;4;i;351:4;n;&7Efekt: &3M&ea&bg&ei&6a;c;efekt %player% magia;s;5;i;331;n;&7Efekt: &cRedstone;c;efekt %player% redstone;s;6;i;351:1;n;&7Efekt: &1K&2o&3l&4o&5r&6y;c;efekt %player% kolory;s;7;i;373;n;&7Efekt: &5Wiedzma;c;efekt %player% wiedzma;s;10;i;116:1;n;&7Efekt: &6Enchant;c;efekt %player% enchant;s;11;i;10;n;&7Efekt: &cLava;c;efekt %player% lava;s;12;i;160;n;&7Efekt: &8Dym;c;efekt %player% dym;s;13;i;91;n;&7Efekt: &4Zly;c;efekt %player% zly;s;18;i;399;n;&4Usun efekty;c;efekt %player% nic;" with 2 row named "{@tag} &7Efekty &6&lVIP" to player
		else:
			send "{@tag} {@per}"
command /efekt <player> <text>:
	trigger:
		if sender is console:
			set {efekt.%argument 1%} to "%argument 2%"
every 1 seconds:
	loop all players:
		if {efekt.%loop-player%} is "serca":
			play 20 of effect "heart" with data 1 at loop-player
		if {efekt.%loop-player%} is "ogien":
			play 50 of effect "flame" with data 0 at loop-player
		if {efekt.%loop-player%} is "nuty":
			play 20 of effect "note" with data 1 at loop-player
		if {efekt.%loop-player%} is "magia":
			play 100 of effect "mobSpell" with data 1 at loop-player
		if {efekt.%loop-player%} is "redstone":
			play 200 of effect "reddust" with data 0 at loop-player
		if {efekt.%loop-player%} is "kolory":
			play 200 of effect "reddust" with data 1 at loop-player
		if {efekt.%loop-player%} is "wiedzma":
			play 100 of effect "witchMagic" with data 0 at loop-player
		if {efekt.%loop-player%} is "enchant":
			play 50 of effect "enchantmenttable" with data 0 at loop-player
		if {efekt.%loop-player%} is "lava":
			play 20 of effect "lava" with data 0 at loop-player
		if {efekt.%loop-player%} is "dym":
			play 50 of effect "cloud" with data 0 at loop-player
		if {efekt.%loop-player%} is "zly":
			play 20 of effect "angryVillager" with data 0 at loop-player
			
#--------------------------#
#         Statuly          #
#--------------------------#
			
command /st <entity type> <text> <text> <text>:
#              typ         nazwa  typ     co ma robic polecenie
#             moba         moba  polecenia (jak komeda to jaka komenda jak serwer to na jaki serwer)
	trigger:
		if player has permission "plobby.st":
			if arg 1 is set:
				if arg 2 is set:
					if arg 3 is "serwer" or "komenda":
						if arg 4 is set:
							set {_t} to argument 1
							spawn {_t} at the target block
							set name of spawned entity to "%arg 2%"
							apply slowness 100 to the spawned entity for 999 days
							apply resistance 100 to the spawned entity for 999 days
							apply jump boost 150 to the spawned entity for 999 days
							set {st.statua.typ.%arg 2%} to arg 3
							set {st.statua.polecenie.%arg 2%} to arg 4
							send "{@tag} Statula utworzona!"
						else:
							send "{@tag} Nie wpisales serwera docelowego / komedy!"
					else:
						send "{@tag} Niepoprawny typ polecenia! Musi byc serwer lub komenda!"
				else:
					send "{@tag} Nie wpisales nazwy moba!"
			else:
				send "{@tag} Nie wpisales nazwy moba!"
		else:
			send "{@tag} {@per}"

on rightclick on a entity:
	if {st.statua.typ.%name of clicked entity%} is "komenda":
		execute player command "/%{st.statua.polecenie.%name of clicked entity%}%"
	else:
		send "{@tag} Funkcjonalnosc bunnge zostala tymczasowo wylaczona."
		
#--------------------------#
#         Zwierzeta        #
#--------------------------#

on rightclick with bone:
	if name of player's tool is "&aZwierzeta":
		if player has permission "plobby.zwierzeta":
			send "{@tag} Juz wkrotce!"
		else:
			send "{@tag} {@per}"
			
#--------------------------#
#       Rekord graczy      #
#--------------------------#

every 1 minute:
	{rekord-graczy} is smaller than number of players:
		broadcast "&7[&6*&7] Ustanowilismy nowy rekord graczy! Poprzedni wynik: &6%{rekord-graczy}%&7, nowy rekord: &6%number of players%&7! Dziekujemy!"
		set {rekord-graczy} to "%number of players%"
	loop all players:
		execute loop-player command "/sb"
			
#---------------- Koniec ---------------- #

Bledy:

[10:47:15] [Skript] Reloading the config and all scripts...
[10:47:15] Loaded a total of 11504 english aliases
[10:47:15] '"sidebar"' is not a types.displayslot (spawneffects.sk, line 115: move display of player to "sidebar"')
[10:47:16] 'effect "heart" with data 1 at player' is not an entity type (spawneffects.sk, line 167: play 20 of effect "heart" with data 1 at player')
[10:47:16] 'effect "flame" with data 0 at player' is not an entity type (spawneffects.sk, line 169: play 50 of effect "flame" with data 0 at player')
[10:47:16] 'effect "note" with data 1 at player' is not an entity type (spawneffects.sk, line 171: play 20 of effect "note" with data 1 at player')
[10:47:16] 'effect "mobSpell" with data 1 at player' is not an entity type (spawneffects.sk, line 173: play 100 of effect "mobSpell" with data 1 at player')
[10:47:16] 'effect "reddust" with data 0 at player' is not an entity type (spawneffects.sk, line 175: play 200 of effect "reddust" with data 0 at player')
[10:47:16] 'effect "reddust" with data 1 at player' is not an entity type (spawneffects.sk, line 177: play 200 of effect "reddust" with data 1 at player')
[10:47:16] 'effect "witchMagic" with data 0 at player' is not an entity type (spawneffects.sk, line 179: play 100 of effect "witchMagic" with data 0 at player')
[10:47:16] 'effect "enchantmenttable" with data 0 at player' is not an entity type (spawneffects.sk, line 181: play 50 of effect "enchantmenttable" with data 0 at player')
[10:47:16] 'effect "lava" with data 0 at player' is not an entity type (spawneffects.sk, line 183: play 20 of effect "lava" with data 0 at player')
[10:47:16] 'effect "cloud" with data 0 at player' is not an entity type (spawneffects.sk, line 185: play 50 of effect "cloud" with data 0 at player')
[10:47:16] 'effect "angryVillager" with data 0 at player' is not an entity type (spawneffects.sk, line 187: play 20 of effect "angryVillager" with data 0 at player')
[10:47:16] 'colured' is not a type (spawneffects.sk, line 204: set name of spawned entity to "%colured arg 2%"')
[10:47:16] Loaded 1 script with a total of 15 triggers and 4 commands in 1.17 seconds
[10:47:16] [Skript] Encountered 13 errors while reloading the config and all scripts!

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...