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

[Pytanie] Jak przerobić skrypt?


Rekomendowane odpowiedzi

Opublikowano

Siemanko mam problem bo skrypt automatycznie pobiera najnowsza wersje a już mnie to powoli wnerwia bo nie chciał bym za każdym razem jak wyjdzie nowa wersja skryptu aby była pobierana usunie mi ktoś to aby nie pobierało nowych wersji i aby nie sprawdzało bieżącej wersji ?

#Wersja: 1.4#
#Nie usuwaj linijki wyzej, inaczej automatyczne aktualizacje nie będą działać!!
command /wystaw [<number>] [<number>]:
	permission: aukcja.wystaw
	permission message: &cNie masz do tego uprawnien
	trigger:
		if arg 1 is set:
			if {aukcja::Status} is not set:
				if player's tool is not air:
					if {aukcja::Blacklist::Player::%player%} is not set:
						if {aukcja::Blacklist::Item::%type of player's tool%} is not set:
							if arg 1 is greater or equal to 0:
								set {aukcja::Cena} to arg 1
								set {aukcja::Item} to player's tool
								set {aukcja::Item::Name} to name of player's tool
								if {aukcja::Item::Name} is not set:
									set {aukcja::Item::Name} to "&fBrak"
								remove {aukcja::Item} from player
								set {aukcja::Sprzedajacy} to player
								set {aukcja::Kupujacy} to "&fBrak"
								set {aukcja::Item::Lore} to lore of {aukcja::Item}
								if {aukcja::Item::Lore} is "":
									set {aukcja::Item::Lore} to "&fBrak"
								set {aukcja::Item::Durability} to durability of {aukcja::Item}
								set {aukcja::Status} to true
								set {aukcja::Item::Stack} to max stack size of {aukcja::Item}
								if {aukcja::Item::Stack} is equal to 1:
									set {aukcja::Item::Stack} to "&fNie"
								if {aukcja::Item::Stack} is greater than 1:
									if {aukcja::Item::Stack} is equal to 16:
										set {aukcja::Item::Stack} to "&fTak, 16"
									if {aukcja::Item::Stack} is equal to 64:
										set {aukcja::Item::Stack} to "&fTak, 64"
								if arg 2 is set:
									if arg 2 is greater or equal to 0:
										set {aukcja::KupTeraz::Status} to arg 2
									else:
										send "&cCena kup teraz nie moze byc wieksza niz 0"
										stop
								if arg 2 is not set:
									set {aukcja::KupTeraz::Status} to "&fNie"
								broadcast "================"
								broadcast "       &6Aukcja&f:"
								broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
								broadcast "&6Przedmiot: &2%{aukcja::Item}%"
								if {aukcja::Item::Name} is not "&fBrak":
									broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
								if {aukcja::Item::Lore} is not "&fBrak":
									broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
								broadcast "&6Cena: &2%{aukcja::Cena}%"
								broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
								broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
								if {aukcja::Kupujacy} is not "&fBrak":
									broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
								broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
								broadcast "&6Do konca aukcji: &260 sekund"
								broadcast "================"
								create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 30 seconds
								wait 30 second
								broadcast "================"
								broadcast "       &6Aukcja&f:"
								broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
								broadcast "&6Przedmiot: &2%{aukcja::Item}%"
								if {aukcja::Item::Name} is not "&fBrak":
									broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
								if {aukcja::Item::Lore} is not "&fBrak":
									broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
								broadcast "&6Cena: &2%{aukcja::Cena}%"
								broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
								broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
								if {aukcja::Kupujacy} is not "&fBrak":
									broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
								broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
								broadcast "&6Do konca aukcji: &230 sekund"
								broadcast "================"
								create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 10 seconds
								wait 10 second
								broadcast "================"
								broadcast "       &6Aukcja&f:"
								broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
								broadcast "&6Przedmiot: &2%{aukcja::Item}%"
								if {aukcja::Item::Name} is not "&fBrak":
									broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
								if {aukcja::Item::Lore} is not "&fBrak":
									broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
								broadcast "&6Cena: &2%{aukcja::Cena}%"
								broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
								broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
								if {aukcja::Kupujacy} is not "&fBrak":
									broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
								broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
								broadcast "&6Do konca aukcji: &220 sekund"
								broadcast "================"
								create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 10 seconds
								wait 10 second
								broadcast "================"
								broadcast "       &6Aukcja&f:"
								broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
								broadcast "&6Przedmiot: &2%{aukcja::Item}%"
								if {aukcja::Item::Name} is not "&fBrak":
									broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
								if {aukcja::Item::Lore} is not "&fBrak":
									broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
								broadcast "&6Cena: &2%{aukcja::Cena}%"
								broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
								broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
								if {aukcja::Kupujacy} is not "&fBrak":
									broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
								broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
								broadcast "&6Do konca aukcji: &210 sekund"
								broadcast "================"
								create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 5 seconds
								wait 5 second
								broadcast "================"
								broadcast "&6Aukcja konczy sie za: &25 sekund"
								broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
								broadcast "================"
								create timed bar with text "&6Kupujacy: &2%{aukcja::Kupujacy}%" to all players for 5 seconds
								wait 5 second
								broadcast "================"
								broadcast "&6Aukcja &4ZAKONCZONA"
								broadcast "&6Aukcje wygral: &2%{aukcja::Kupujacy}%"
								broadcast "================"
								create timed bar with text "&6Aukcje wygral: &2%{aukcja::Kupujacy}%" to all players for 15 seconds
								if {aukcja::Kupujacy} is "&fBrak":
									give {aukcja::Item} to player
									clear {aukcja::Cena}
									clear {aukcja::Item}
									clear {aukcja::Item::Name}
									clear {aukcja::Sprzedajacy}
									clear {aukcja::KupTeraz}
									clear {aukcja::Item::Lore}
									clear {aukcja::KupTeraz::Status}
									clear {aukcja::Item::Durability}
									clear {aukcja::Item::Stack}
									set {aukcja::Status} to false
									wait 30 second
									clear {aukcja::Status}
									stop
								else:
									if {aukcja::KupTeraz} is set:
										if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
											set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
											set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
											broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
											loop all players:
												play raw sound "random.levelup" at loop-player with pitch 1 volume 5
										give {aukcja::Item} to {aukcja::Kupujacy}
										add {aukcja::KupTeraz::Status} to player's account
										remove {aukcja::KupTeraz::Status} from {aukcja::Kupujacy}'s account
										clear {aukcja::Cena}
										clear {aukcja::Item}
										clear {aukcja::KupTeraz::Status}
										clear {aukcja::KupTeraz}
										clear {aukcja::Item::Lore}
										clear {aukcja::Item::Stack}
										clear {aukcja::Item::Name}
										clear {aukcja::Item::Durability}
										if {aukcja::Pkt::%player%} is not set:
											set {aukcja::Pkt::%player%} to 0
										add 1 to {aukcja::Pkt::%player%}
										clear {aukcja::Sprzedajacy}
										set {aukcja::Kupujacy} to "&fBrak"
										set {aukcja::Status} to false
										wait 30 second
										clear {aukcja::Status}
										stop			
									else:
										if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
											set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
											set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
											broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
											loop all players:
												play raw sound "random.levelup" at loop-player with pitch 1 volume 5
										give {aukcja::Item} to {aukcja::Kupujacy}
										add {aukcja::Cena} to player's account
										remove {aukcja::Cena} from {aukcja::Kupujacy}'s account
										clear {aukcja::Cena}
										clear {aukcja::Item}
										clear {aukcja::Item::Lore}
										clear {aukcja::KupTeraz::Status}
										clear {aukcja::KupTeraz}
										clear {aukcja::Item::Stack}
										clear {aukcja::Item::Durability}
										clear {aukcja::Item::Name}
										if {aukcja::Pkt::%player%} is not set:
											set {aukcja::Pkt::%player%} to 0
										add 1 to {aukcja::Pkt::%player%}
										clear {aukcja::Sprzedajacy}
										set {aukcja::Kupujacy} to "&fBrak"
										set {aukcja::Status} to false
										wait 30 second
										clear {aukcja::Status}
										stop
							else:
								send "&cCena nie moze byc mniejsza niz 0"
								stop
						else:
							send "&cNie mozesz wystawic tego przedmiotu na aukcje"
							stop
					else:
						send "&cNie mozesz wystawiac przedmiotow na aukcje"
						stop
				else:
					send "&cMusisz trzymac przedmiot w rece"
					stop
			if {aukcja::Status} is false:
				send "&cMusisz odczekac 30 sekund od zakonczenia ostatniej aukcji"
				stop
			if {aukcja::Status} is true:
				send "&cAukcja juz trwa"
				stop
		else:
			send "&cMusisz podac cene przedmiotu"
			stop
command /podbij [<number>]:
	permission: aukcja.podbij
	permission message: &cNie masz do tego uprawnien
	trigger:
		if {aukcja::Status} is true:
			if {aukcja::KupTeraz} is not set:
				if arg 1 is set:
					if arg 1 is greater or equal to 1:
						if player's balance is greater or equal to {aukcja::Cena}+arg 1:
							if player is {aukcja::Sprzedajacy}:
								send "&cNie mozesz podbic wlasnej aukcji"
								stop
							else:
								set {aukcja::Cena} to {aukcja::Cena}+arg 1
								set {aukcja::Kupujacy} to player
								broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
								stop
						else:
							send "&cNie masz tyle kasy"
							stop
					else:
						send "&cNie mozesz podbic o mniej niz 1"
						stop
				if arg 1 is not set:
					if player's balance is greater or equal to {aukcja::Cena}+1:
						if player is {aukcja::Sprzedajacy}:
							send "&cNie mozesz podbic wlasnej aukcji"
							stop
						else:
							set {aukcja::Cena} to {aukcja::Cena}+1
							set {aukcja::Kupujacy} to player
							broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
							stop
					else:
						send "&cNie masz tyle kasy"
						stop
			else:
				send "&cKtos kupil ten przedmiot przez opcje Kup Teraz"
				stop
		if {aukcja::Status} is false:
			send "&cNie trwa rzadna aukcja"
			stop
		if {aukcja::Status} is not set:
			send "&cNie trwa rzadna aukcja"
			stop
command /aukcja [<text>]:
	permission: aukcja.info
	permission message: &cNie masz do tego uprawnien
	trigger:
		if arg 1 is not set:
			if {aukcja::Status} is true:
				send "&6Aukcja&f:"
				send "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
				send "&6Przedmiot: &2%{aukcja::Item}%"
				send "&6Cena: &2%{aukcja::Cena}%"
				send "&6Kupujacy: &2%{aukcja::Kupujacy}%"
				send "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
				send "&6Autor: &2GrimoN"
			else:
				send "&cNie ma rzadnej aukcji"
				send "&6Autor: &2GrimoN"
		if arg 1 is "top" or "top10":
			set {_num} to size of {aukcja::Pkt::*}
			loop {_num} times:
				loop {aukcja::Pkt::*}:
					{_v.%loop-number%} is not set:
						set {_v.%loop-number%} to loop-value
						set {_n.%loop-number%} to loop-index
					loop-value is greater than {_v.%loop-number%}:
						set {_v.%loop-number%} to loop-value
						set {_n.%loop-number%} to loop-index
				remove {_v.%loop-number%} from {aukcja::Pkt::*}
			loop {_num} times:
				loop-number is less than or equal to 10:
					send "%loop-number%. &6%{_n.%loop-number%}% &4(&2%{_v.%loop-number%}%&4)"
				set {aukcja::Pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
			{_num} is less than 10:
				set {_r} to {_num}
				loop 10 - {_num} times:
					add 1 to {_r}
					send "%{_r}%. &fPusto"
			if {aukcja::Rekordzistwa} is not set:
				set {aukcja::Rekordzistwa} to "&fBrak"
			send "&6Rekordzista podbic jest: &2&l%{aukcja::Rekordzistwa}% &6podbil on cene do: &2&l%{aukcja::Rekordowa::Stawka}%"
			stop
		if arg 1 is "pokaz" or "show":
			if {aukcja::Status} is true:
				set {_type} to type of {aukcja::Item}
				set {_lore} to lore of {aukcja::Item}
				set {_name} to name of {aukcja::Item}
				if {_name} is not set:
					if {_lore} is "":
						open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
						format slot 4 of player with 1 of {_type} to be unstealable
					else:
						open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
						format slot 4 of player with 1 of {_type} with lore "%{_lore}%" to be unstealable
				else:
					if {_lore} is not "":
						open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
						format slot 4 of player with 1 of {_type} named "%{_name}%" with lore "%{_lore}%" to be unstealable
					else:
						open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
						format slot 4 of player with 1 of {_type} named "%{_name}%" to be unstealable
			else:
				send "&cNie trwa rzadna aukcja"
				stop
					
				
command /aukcjaadmin [<text>] [<text>] [<text>]:
	permission: aukcja.admin
	permission message: &cNie masz do tego uprawnien
	aliases: aa, aadmin, aukcjaa
	trigger:
		if arg 1 is "playerblacklist" or "pbl":
			if arg 2 is "add" or "dodaj":
				if arg 3 is set:
					set {_player} to arg 3 parsed as player
					if {aukcja::Blacklist::Player::%{_player}%} is not set:
						set {aukcja::Blacklist::Player::%{_player}%} to true
						broadcast "&4[Aukcje]&6Gracz &2%{_player}% &6zostal dodany na czarna liste."
						stop
					else:
						send "&cTen gracz jest juz na czarnej liscie"
						stop
				else:
					send "&cMusisz podac nick gracza, ktorego chcesz dodac na czarna liste"
					stop
			if arg 2 is "usun" or "remove":
				if arg 3 is set:
					set {_player} to arg 3 parsed as player
					if {aukcja::Blacklist::Player::%{_player}%} is true:
						clear {aukcja::Blacklist::Player::%{_player}%}
						send "&6Gracz &2%{_player}%&6 zostal usuniety z czarnej listy."
						stop
					else:
						send "&cTego gracza nie ma na czarnej liscie"
						stop
				else:
					send "&cMusisz podac nick gracza, ktorego chcesz usunac z czarnej listy"
					stop
		if arg 1 is "itemblacklist" or "ibl":
			if arg 2 is "add" or "dodaj":
				if player's tool is air:
					send "&cNie mozna dodac powietrza na czarna liste"
					stop
				else:
					set {_item} to type of player's tool
					if {aukcja::Blacklist::Item::%{_item}%} is not set:
						set {aukcja::Blacklist::Item::%{_item}%} to true
						send "&6Przedmiot &2%{_item}% &6zostal dodany na czarna liste"
						stop
					else:
						send "&cTen przedmiot jest juz dodany na czarna liste"
						stop
			if arg 2 is "usun" or "remove":
				if player's tool is air:
					send "&cNie mozna usunac powietrza z czarnej listy"
					stop
				else:
					set {_item} to type of player's tool
					if {aukcja::Blacklist::Item::%{_item}%} is true:
						clear {aukcja::Blacklist::Item::%{_item}%}
						send "&6Przedmiot &2%{_item}% &6zostal usuniety z czarnej listy"
						stop
					else:
						send "&cTego przedmiotu nie ma na czarnej liscie"
						stop
command /kupteraz:
	permission: aukcja.kupteraz
	permission message: &cNie masz do tego uprawnien
	trigger:
		if {aukcja::Status} is true:
			if {aukcja::KupTeraz} is not set:
				if {aukcja::KupTeraz::Status} is "&fNie":
					send "&cNie ma ceny Kup Teraz"
					stop
				else:
					if player's balance is greater or equal to {aukcja::KupTeraz::Status}:
						if player is {aukcja::Sprzedajacy}:
							send "&cNie mozesz kupic wlasnej aukcji"
							stop
						else:
							set {aukcja::Kupujacy} to player
							set {aukcja::KupTeraz} to player
							broadcast "&2%player% &6uzyl opcji Kup Teraz"
							stop
					else:
						send "&cNie masz tyle kasy"
						stop
			else:
				send "&cKtos juz uzyl opcji Kup Teraz"
				stop
		else:
			send "&cNie trwa rzadna aukcja"
			stop
on skript start:
	clear {aukcja::Cena}
	clear {aukcja::Item}
	clear {aukcja::Item::Name}
	clear {aukcja::Sprzedajacy}
	set {aukcja::Kupujacy} to "&fBrak"
	clear {aukcja::Status}
	clear {aukcja::KupTeraz}
	clear {aukcja::KupTeraz::Status}
	if {aukcja::Rekordowa::Stawka} is not set:
		set {aukcja::Rekordowa::Stawka} to 0
on skript stop:
	clear {aukcja::Cena}
	clear {aukcja::Item}
	clear {aukcja::Item::Name}
	clear {aukcja::Sprzedajacy}
	set {aukcja::Kupujacy} to "&fBrak"
	clear {aukcja::Status}

	
on load:
	set {_version} to content of file "plugins/Skript/scripts/%script%.sk"
	set {_v} to index of "##" in {_version}
	set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
	set {_v3} to index of "##" in {_v2}
	set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
	set {_version} to result of connect to "http://pastebin.com/raw.php?i=9zcFK7nu"
	set {_v} to index of "##" in {_version}
	set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
	set {_v3} to index of "##" in {_v2}
	set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
	{version} is not {version.new}:
		download "http://pastebin.com/raw.php?i=9zcFK7nu" to "plugins/Skript/scripts/%script%.sk"
		execute console command "sk reload %script%.sk"
		stop

Jeżeli mój post podoba ci się wciśnij: napispng_wpwaara.png Dzięki

Opublikowano
on load:
	set {_version} to content of file "plugins/Skript/scripts/%script%.sk"
	set {_v} to index of "##" in {_version}
	set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
	set {_v3} to index of "##" in {_v2}
	set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
	set {_version} to result of connect to "http://pastebin.com/raw.php?i=9zcFK7nu"
	set {_v} to index of "##" in {_version}
	set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
	set {_v3} to index of "##" in {_v2}
	set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
	{version} is not {version.new}:
		download "http://pastebin.com/raw.php?i=9zcFK7nu" to "plugins/Skript/scripts/%script%.sk"
		execute console command "sk reload %script%.sk"
		stop

Usun to i bedzie ok :P

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...