Skocz do zawartości
  • 0

Co mogę polepszyć w tym skrypcje?


Pytanie

Tak jak w temacie o to skrypt 

 

variables:
	{g::%player%} = true
	{d::%player%} = false
	{ww::%player%} = false
	{gsz::%player%} = false

command /zagraj [<player>]:
	trigger:
		arg 1 is not set:
			send "&cWybierz pierw gracza!"
		arg 1 is set:
			set {w::%player%} to true
			send "&aZostalo wyslane zaproszenie do gry!"
			send "&c%player% zaprosil cie do gry! Jesli chcesz dolaczyc" to arg 1
			send "&cwpisz /dolacz %player%" to arg 1

command /dolacz [<player>]:
	trigger:
		arg 1 is not set:
			send "&cNapisz pierw nick gracza!"
		arg 1 is set:
			{w::%arg 1%} = true:
				send "&aPotwierdzenie zostalo wyslane czekaj na rozpoczenie gry"
				send "&cZaproszenie zostalo przyjete przez %player%!" to arg 1
				send "&cNapisz teraz /rozpocznij %player% aby rozpoczac" to arg 1
				set {gsz::%player%} to true
				set {gsz::%arg 1%} to true
			{w::%arg 1%} = false:
				send "&c ten gracz nie wyslal do ciebie zaproszenia!"

command /rozpocznij [<player>]:
	trigger:
		arg 1 is not set:
			send "&cNapisz pierw nick gracza!"
		arg 1 is set:
			{gsz::%player%} = true:
				{gsz::%arg 1%} = true:
					send "&aZaczyna sie gra..."
					send "&aZaczyna sie gra..." to arg 1
					wait 2 second
					send "&aRzucasz kostkami..."
					send "&aPrzeciwnik rzuca kostkami..." to arg 1
					set {_11::%player%} to random integer between 1 and 6
					set {_12::%player%} to random integer between 1 and 6
					wait 4 second
					send "&aWylosowales: &c%{_11::%player%}%, %{_12::%player%}%"
					send "&aPrzeciwnik juz rzucil! Teraz twoja kolej!" to arg 1
					send "&aRzucasz kostkami..." to arg 1
					send "&aPrzeciwnik rzuca kostkami..."
					set {_11::%arg 1%} to random integer between 1 and 6
					set {_12::%arg 1%} to random integer between 1 and 6
					wait 4 second
					send "&aWylosowales: &c%{_11::%arg 1%}%, %{_12::%arg 1%}%" to arg 1
					send "&aTrwa liczenie punktow!" to arg 1
					send "&aPrzeciwnik juz rzicil! Trwa liczenie punktow!"
					wait 2 second
					if {_11::%player%} + {_12::%player%} > {_11::%arg 1%} + {_12::%arg 1%}:
						send "&6WTGRALES! DOSTAJESZ 150$!!"
						send "&0Przegrales!" to arg 1
						set {g::%player%} to true
						set {d::%player%} to false
						set {w::%player%} to false
						set {gsz::%player%} to false
						set {g::%arg 1%} to true
						set {d::%arg 1%} to false
						set {w::%arg 1%} to false
						set {gsz::%arg 1%} to false
					if {_11::%player%} + {_12::%player%} < {_11::%arg 1%} + {_12::%arg 1%}:
						send "&0Przegrales!"
						send "&6WYGRALES! DOSTAJESZ 150$!!" to arg 1
						set {g::%player%} to true
						set {d::%player%} to false
						set {w::%player%} to false
						set {gsz::%player%} to false
						set {g::%arg 1%} to true
						set {d::%arg 1%} to false
						set {w::%arg 1%} to false
						set {gsz::%arg 1%} to false
					if {_11::%player%} + {_12::%player%} = {_11::%arg 1%} + {_12::%arg 1%}:
						send "&3zremisowales dostajesz 50$!"
						send "&3zremisowales dostajesz 50$!" to arg 1
						set {g::%player%} to true
						set {d::%player%} to false
						set {w::%player%} to false
						set {gsz::%player%} to false
						set {g::%arg 1%} to true
						set {d::%arg 1%} to false
						set {w::%arg 1%} to false
						set {gsz::%arg 1%} to false


command /lotto [<text>]:
	trigger:
		player has permission "mk12.lotto":
			arg 1 is "reload":
				set {g::%player%} to true
				set {d::%player%} to false
				set {w::%player%} to false
				set {gsz::%player%} to false
				send "&cPoprawnie zreloudowano!"

 

Odnośnik do komentarza
https://skript.pl/temat/26768-co-mog%C4%99-polepszy%C4%87-w-tym-skrypcje/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...