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] [Prośba] Edycja skryptu


Rekomendowane odpowiedzi

Opublikowano

Witam,

Czy mógłby ktoś poprawić mój skrypt, tak aby komendy /losuj można było użyć co 8godz?

 

Tutaj skrypt:

options:

#	W pole nagroda wpisac id/nazwe przedmiotu	#
	item1: Diamond
	item2: Emerald
	item3: Nic
	item4: Iron_Ingot
	item5: Gold_Ingot
	item6: Enderpearl
	
#	Item wymagany do losowania	#
	dolos: Emerald
#	Komenda /losuj (nie ma obecnie wiecej komend	#

command /losuj:
	trigger:
		if player has {@dolos}:
			set {randomnumber} to a random integer between 1 and 6
			remove {@dolos} from player
			send "&9[<remove>] &bLosowanie rozpoczelo sie."
			send "&9[<remove>] &bZa kolejnym losem musisz czekac 1min."
			wait 2 seconds
			if {randomnumber} is 1:
				execute console command "give %player% {@item1} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item1}!"
			if {randomnumber} is 2:
				execute console command "give %player% {@item2} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item2}!"
			if {randomnumber} is 3:
				execute console command "give %player% {@item3} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item3}!"
			if {randomnumber} is 4:
				execute console command "give %player% {@item4} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item4}!"
			if {randomnumber} is 5:
				execute console command "give %player% {@item5} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item5}!"p
			if {randomnumber} is 6:
				execute console command "give %player% {@item6} 1"
				send "&9[<remove>] &bGratulacje! Wygrales: {@item6}!"
			stop
		else:
			send "&9[<remove>] &bNie masz: &a{@dolos}&b!"

Za poprawną odpowiedź = LIKE <3

 

sygnatura.png

Opublikowano

Proszę

variables:
	{time} = false
options:

#	W pole nagroda wpisac id/nazwe przedmiotu	#
	item1: Diamond
	item2: Emerald
	item3: Nic
	item4: Iron_Ingot
	item5: Gold_Ingot
	item6: Enderpearl
	
#	Item wymagany do losowania	#
	dolos: Emerald
#	Komenda /losuj (nie ma obecnie wiecej komend	#

command /losuj:
	trigger:
		if player has {@dolos}:
			if {time} is false:
				set {time} to true
				set {randomnumber} to a random integer between 1 and 6
				remove {@dolos} from player
				send "&9[<remove>] &bLosowanie rozpoczelo sie."
				send "&9[<remove>] &bZa kolejnym losem musisz czekac 1min."
				wait 2 seconds
				if {randomnumber} is 1:
					execute console command "give %player% {@item1} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item1}!"
				if {randomnumber} is 2:
					execute console command "give %player% {@item2} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item2}!"
				if {randomnumber} is 3:
					execute console command "give %player% {@item3} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item3}!"
				if {randomnumber} is 4:
					execute console command "give %player% {@item4} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item4}!"
				if {randomnumber} is 5:
					execute console command "give %player% {@item5} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item5}!"p
				if {randomnumber} is 6:
					execute console command "give %player% {@item6} 1"
					send "&9[<remove>] &bGratulacje! Wygrales: {@item6}!"
				wait 28800 seconds
				set {time} to false
				stop
			if {time} is true:
				send "&cMusisz jeszcze poczekac!"
		else:
			send "&9[<remove>] &bNie masz: &a{@dolos}&b!"
Opublikowano

Dzięki. Działa. LIKE

 

Prosiłbym, aby w tym skrypcie ktoś mógł zmienić na to, aby ktoś mógł użyć kodu po 24godz.

options:
#Kody, za które otrzymujemy diament.
    kod1: 588515611
variables:
    {use.%player%}=false
command /kod [<text>]:
    trigger:
        if {use.%player%} is true:
            send "&9[<remove>] &bPoczekaj 24godz. aby ponownie uzyc tego kodu!"
        if {use.%player%} is false:
            arg 1 is empty:
                send "&9[<remove>] &bPoprawne uzycie to: &a/kod <kod>&b"
            arg 1 is "{@kod1}":
                add 1 diamond named "&bZ kodu promocyjnego." to player
                send "&9[<remove>] &bKod &a&l%arg%&b zostal &apomyslnie &bzatwierdzony!"
                set {use.%player%} to true
                wait 24 hours
                set {use.%player%} to false
            else:
                send "&9[<remove>] &bKod &a&l%arg%&b zostal &cblednie &bzatwierdzony!"

 

sygnatura.png

Opublikowano
options:
#Kody, za które otrzymujemy diament.
    kod1: 588515611
variables:
    {use.%player%} = false
command /kod [<text>]:
    trigger:
		if {use.%player%} is true:
			send "&9[<remove>] &bPoczekaj 24godz. aby ponownie uzyc tego kodu!"
		if {use.%player%} is false:
			arg 1 is empty:
				send "&9[<remove>] &bPoprawne uzycie to: &a/kod <kod>&b"
			arg 1 is "{@kod1}":
				add 1 diamond named "&bZ kodu promocyjnego." to player
				send "&9[<remove>] &bKod &a&l%arg%&b zostal &apomyslnie &bzatwierdzony!"
				set {use.%player%} to true
				wait 24 hours
				set {use.%player%} to false
			else:
				send "&9[<remove>] &bKod &a&l%arg%&b zostal &cblednie &bzatwierdzony!"

Działa?

Opublikowano

Ten skrypt wyżej będzie działał, że przez 24/h ale jeżeli dasz reload skryptów serwera, lub restart, to będzie można od nowa.

─────────────────────────────────────────────────────────────────────────────


Moderator to usuwa. EHE...


─────────────────────────────────────────────────────────────────────────────

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...