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

Prośba o naprawienie skryptu na licznik potworków i animacji.


MadixxD

Rekomendowane odpowiedzi

Opublikowano

Siema mam ten skrypt i:

a) nie dziala animacja (welny nie zmieniaja polozenia),

B) i licznik hooperow sie nie zmienia z sekundami,

 

daje +++duzo

 

 

# Author: Nawo
# contact: [email protected]
# Presentation: https://skript.pl/temat/9866-konkurs-kasyno/
# Launge: Polish

options:
	tag: &8[&6Kasyno&8]  # Przedrostek wiadomosci
	delay: 30  # Czas trwania miedzy rundami
	
	# ilosc skryptowej waluty za dany przedmiot
	gold coins: 10000
	diamond coins: 5000
	emerald coins: 1000
	iron coins: 100
	
	rate: 100 # o ile ma sie zmnieniac stawka

command /casino [<text="null">] [<text>] [<player>]:
	trigger:
		if arg 1 is not "deposit" or "withdraw" or "coins" or "join" or "leave" or "rate" or "placebet" or "kochamkukiego" or "give" or "stats" or "top":
			send "{@tag}"
			send "&8> &6/casino deposit &8- &7depozytuje itemy"
			send "&8> &6/casino withdraw &8- &7wyplaca itemy"
			send "&8> &6/casino coins &8- &7informacje o monetach"
			send "&8> &6/casino join &8- &7dolacza do gry"
			send "&8> &6/casino leave &8- &7wychodzi z gry"
			send "&8> &6/casino give &8- &7przelewanie monet dla innych graczy"
			send "&8> &6/casino stats &8- &7statystyki"
			send "&8> &6/casino top &8- &7top graczy"
		if arg 1 is "give":
			if arg 2 is set:
				set {_y} to arg 2 parsed as integer
				if arg 3 is set:
					set {_x} to arg-player
					if {casino::player::coins::%player%}+1 > {_y}:
						if {_y} > 0:
							remove {_y} from {casino::player::coins::%player%}
							add {_y} to {casino::player::coins::%{_x}%}
							send "{@tag} &7Podarowales graczowi &6%{_x}% %{_y}% &7monet :)"
							send "{@tag} &7Otrzymales od gracza &6%player% %{_y}% &7monet :)" to {_x}
						else:
							send "{@tag} &7Zabawne :)"
					else:
						send "{@tag} &7Nie posiadasz tyle monet!"
				else:
					send "{@tag} &6/casino give <number> &c<player>"
			else:
				send "{@tag} &6/casino give &c<number> <player>"
		if arg 1 is "stats":
			if arg 2 is set:
				set {_x} to arg 2 parsed as offlineplayer
				send "{@tag}"
				send " "
				send "&7Gracz &6%{_x}%&7:"
				send "&8> &7Wygrane bety: &6%{casino::player::win::%{_x}%}%"
				send "&8> &7Przegrane bety: &6%{casino::player::lost::%{_x}%}%"
				send "&8> &7Ilosc monet: &6%{casino::player::coins::%{_x}%}%"
			else:
				send "{@tag} &6/casino info &c<player>"
		if arg 1 is "top":
			if arg 2 is set:
				if arg 2 is "win" or "lost" or "coins":
					send "{@tag}"
					send " "
					send "&7Top &6%arg 2%"
					set {_num} to size of {casino::player::%arg 2%::*}
					loop {_num} times:
						loop {casino::player::%arg 2%::*}:
							if {_v.%loop-number%} is not set:
								set {_v.%loop-number%} to loop-value
								set {_n.%loop-number%} to loop-index
							if 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 {casino::player::%arg 2%::*}
					loop {_num} times:
						if loop-number is less than or equal to 5:
							send "&8> %loop-number%. &7%{_n.%loop-number%}% &8- &6%{_v.%loop-number%}%"
						set {casino::player::%arg 2%::%{_n.%loop-number%}%} to {_v.%loop-number%}
				else:
					send "{@tag} &6/casino top win &8/ &6lost &8/ &6coins"
			else:
				send "{@tag} &6/casino top win &8/ &6lost &8/ &6coins"
		if arg 1 is "deposit":
			if player's tool is diamond or emerald or iron ingot or gold ingot:
				if player's tool is diamond:
					remove 1 diamond from player's inventory
					add {@ coins} to {casino::player::coins::%player%}
					send "{@tag} &7Doladowales konto o kwote &6{@ coins}"
				if player's tool is emerald:
					remove 1 emerald from player's inventory
					add {@ coins} to {casino::player::coins::%player%}
					send "{@tag} &7Doladowales konto o kwote &6{@ coins}"
				if player's tool is gold ingot:
					remove 1 gold ingot from player's inventory
					add {@ coins} to {casino::player::coins::%player%}
					send "{@tag} &7Doladowales konto o kwote &6{@ coins}"
				if player's tool is iron ingot:
					remove 1 iron ingot from player's inventory
					add {@ coins} to {casino::player::coins::%player%}
					send "{@tag} &7Doladowales konto o kwote &6{@ coins}"
			else:
				send "{@tag} &7Zdepozytowac mozna tylko &3diamond &8/ &2emerald &8/ &egold ingot &8/ &7iron ingot"
		if arg 1 is "withdraw":
			if arg 2 is set:
				if arg 2 is "diamond":
					set {_x} to rounded down ({casino::player::coins::%player%} / {@ coins})
					if {_x} > 0:
						give {_x} of diamond to player
						remove {_x}*{@ coins} from {casino::player::coins::%player%}
						send "{@tag} &7Wyplaciles &6%{_x}% &3diamentow"
					if {_x} < 1:
						send "{@tag} &7Masz zbyt malo pieniedzy!"
				if arg 2 is "emerald":
					set {_x} to rounded down ({casino::player::coins::%player%} / {@ coins})
					if {_x} > 0:
						give {_x} of emerald to player
						remove {_x}*{@ coins} from {casino::player::coins::%player%}
						send "{@tag} &7Wyplaciles &6%{_x}% &2szmaragdow"
					if {_x} < 1:
						send "{@tag} &7Masz zbyt malo pieniedzy!"
				if arg 2 is "gold":
					set {_x} to rounded down ({casino::player::coins::%player%} / {@ coins})
					if {_x} > 0:
						give {_x} of gold ingot to player
						remove {_x}*{@ coins} from {casino::player::coins::%player%}
						send "{@tag} &7Wyplaciles &6%{_x}% &ezlota"
					if {_x} < 1:
						send "{@tag} &7Masz zbyt malo pieniedzy!"
				if arg 2 is "iron":
					set {_x} to rounded down ({casino::player::coins::%player%} / {@ coins})
					if {_x} > 0:
						give {_x} of iron ingot to player
						remove {_x}*{@ coins} from {casino::player::coins::%player%}
						send "{@tag} &7Wyplaciles &6%{_x}% &7srebra"
					if {_x} < 1:
						send "{@tag} &7Masz zbyt malo pieniedzy!"
				if arg 2 is not "diamond" or "emerald" or "iron" or "gold":
					send "{@tag} &6/casino withdraw &3diamond &8/ &2emerald &8/ &egold &8/ &7iron"
			else:
				send "{@tag} &6/casino withdraw &3diamond &8/ &2emerald &8/ &egold &8/ &7iron"
		if arg 1 is "coins":	
			send "{@tag}"
			send " "
			send " &7Posiadasz &6%{casino::player::coins::%player%}% &7monet."
			send " &7Aby doladowac monety mozesz zdepozytowac wybrane przedmioty:"
			send "&8> &3diamond &8- &6{@ coins} monet"
			send "&8> &2emerald &8- &6{@ coins} monet"
			send "&8> &egold &8- &6{@ coins} monet"
			send "&8> &7iron &8- &6{@ coins} monet"
			send " &7Aby zdepozytowac, wez przedmiot do reki i wpisz komende &6/casino deposit"
		if arg 1 is "join":
			if {casino::player::%player%::join} is false:
				set {casino::player::%player%::join} to true
				send "{@tag} &7Zostales dodany do gry"
			else:
				send "{@tag} &7Juz jestes w grze!"
		if arg 1 is "leave":
			if {casino::player::%player%::join} is true:
				set {casino::player::%player%::join} to false
				set {casino::player::%player%::open} to false
				send "{@tag} &7Wyszedles z gry"
				close player's inventory
			else:
				send "{@tag} &7Nie jestes w grze!"
		if arg 1 is "rate":
			if sender is console:
				if arg 2 is "add":
					add {@rate} to {casino::player::%arg-player%::bet}
					send "{@tag} &7Zwiekszyles swoja stawke o &6{@rate}"
					send "{@tag} &7Twoja stawka wynosi teraz &6%{casino::player::%arg-player%::bet}%" to arg-player
					format slot 38 of arg-player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %arg-player%"
					format slot 42 of arg-player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %arg-player%"
				if arg 2 is "remove":
					if {casino::player::%arg-player%::bet} > 0:
						remove {@rate} from {casino::player::%arg-player%::bet}
						send "{@tag} &7Zmniejszyles swoja stawke o &6{@rate}"
						send "{@tag} &7Twoja stawka wynosi &6%{casino::player::%arg-player%::bet}%" to arg-player
						format slot 38 of arg-player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %arg-player%"
						format slot 42 of arg-player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %arg-player%"
					else:
						send "{@tag} &7Stawka nie moze byc mniejsza niz 0!"
		if arg 1 is "placebet":
			if sender is console:
				if {casino::player::%arg-player%::color} is not set:
					if {casino::status} is not "rolling":
						if {casino::player::coins::%arg-player%} > {casino::player::%arg-player%::bet}-1:
							if {casino::player::%arg-player%::bet} > 0:
								remove {casino::player::%arg-player%::bet} from {casino::player::coins::%arg-player%}
								set {_} to arg 2
								replace all "_" with " " in {_}
								set {casino::player::%arg-player%::color} to "%{_}%"
								if {_} is "red wool":
									format slot 27 of arg-player with 1 of red wool named "&aObstawiles" to be unstealable
									format slot 31 of arg-player with 1 of green wool named " " to run "casino placebet green_wool %arg-player%"
									format slot 35 of arg-player with 1 of black wool named " " to run "casino placebet black_wool %arg-player%"
									format slot 38 of arg-player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %arg-player%"
									format slot 42 of arg-player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %arg-player%"
									send "{@tag} &7Postawiles na &cczerwony &7(-&6%{casino::player::%arg-player%::bet}%&7)" to arg-player
								if {_} is "green wool":
									format slot 27 of arg-player with 1 of red wool named " " to run "casino placebet red_wool %arg-player%"
									format slot 31 of arg-player with 1 of green wool named "&aObstawiles" to be unstealable
									format slot 35 of arg-player with 1 of black wool named " " to run "casino placebet black_wool %arg-player%"
									format slot 38 of arg-player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %arg-player%"
									format slot 42 of arg-player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %arg-player%"
									send "{@tag} &7Postawiles na &2zielony &7(-&6%{casino::player::%arg-player%::bet}%&7)" to arg-player
								if {_} is "black wool":
									format slot 27 of arg-player with 1 of red wool named " " to run "casino placebet red_wool %arg-player%"
									format slot 31 of arg-player with 1 of green wool named " " to run "casino placebet green_wool %arg-player%"
									format slot 35 of arg-player with 1 of green wool named "&aObstawiles" to be unstealable
									format slot 38 of arg-player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %arg-player%"
									format slot 42 of arg-player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%arg-player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%arg-player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %arg-player%"
									send "{@tag} &7Postawiles na &0czarny &7(-&6%{casino::player::%arg-player%::bet}%&7)" to arg-player
							else:
								send "{@tag} &7Stawka musi byc wieksza niz 0!" to arg-player
						else:
							send "{@tag} &7Masz zbyt malo pieniedzy! (&6%{casino::player::coins::%arg-player%}%&7)" to arg-player
					else:
						send "{@tag} &7Nie mozna obstawiac w trackie rundy, poczekaj na kolejna runde!" to arg-player
				else:
					send "{@tag} &7Juz obstawiles!" to arg-player
		if arg 1 is "kochamkukiego":
			open chest with 5 rows named "&6Kasyno" to player
			wait 1 tick
			set {_color1} to red wool
			set {_color2} to black wool
			set {_color3} to red wool
			set {_color4} to black wool
			set {_color5} to red wool
			set {_color6} to black wool
			set {_color7} to red wool
			set {_color8} to black wool
			set {_color9} to green wool
			loop 9 times:
				format slot loop-number - 1 of player with 1 of black stained glass pane to be unstealable
				format slot loop-number + 17 of player with 1 of black stained glass pane to be unstealable
				format slot loop-number + 8 of player with 1 of {_color%loop-number%} to be unstealable
			format slot 4 of player with 10 of hopper to be unstealable
			format slot 27 of player with 1 of red wool named "&6Kliknij by obstawic" to run "casino placebet red_wool %player%"
			format slot 31 of player with 1 of green wool named "&6Kliknij by obstawic" to run "casino placebet green_wool %player%"
			format slot 35 of player with 1 of black wool named "&6Kliknij by obstawic" to run "casino placebet black_wool %player%"
			format slot 38 of player with 1 of cactus green named "&6Kliknij by zwiekszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%player%::bet}% || &7Stawka zwieksza sie o &6{@rate}" to run "casino rate add %player%"
			format slot 42 of player with 1 of rose red named "&6Kliknij by zmniejszyc stawke" with lore " &7Aktualnie posiadasz &6%{casino::player::coins::%player%}% &7monet || &7Aktualna stawka: &6%{casino::player::%player%::bet}% || &7Stawka zmniejsza sie o &6{@rate}" to run "casino rate remove %player%"
			set {_random} to random integer between 20 and 28
			set {_time} to {@delay} - 20
			loop {_time} times:
				set {_y} to {_time} - loop-number
				if {casino::player::%player%::open} is true:
					format slot 4 of player with {_y} + 1 of hopper to be unstealable
				play raw sound "note.pling" at player with pitch 1 volume 5
				wait 1 seconds
			play raw sound "note.pling" at player with pitch 2 volume 5
			set {casino::status} to "rolling"
			loop {_random} times:
				if loop-number > 15:
					loop loop-number - 12 times:
						wait 1 tick
				else:
					wait 3 tick
				play raw sound "mob.skeleton.death" at player with pitch 8 volume 0.5
				loop 9 times:
					set {_color%loop-number-2%} to {_color%loop-number-2 + 1%}
					if {casino::player::%player%::open} is true:
						format slot loop-number-2 + 8 of player with 1 of {_color%loop-number-2%} to be unstealable
				set {_color9} to {_color1}
				if {casino::player::%player%::open} is true:
					format slot 17 of player with 1 of {_color9} to be unstealable
			if {casino::player::%player%::color} is set:
				if {casino::player::%player%::color} contains "%{_color5}%":
					if {_color5} is red wool or black wool:
						add {casino::player::%player%::bet} * 2 to {casino::player::coins::%player%}
						send "{@tag} &aWygrales! &7(+&6%{casino::player::%player%::bet} * 2%&7)"
					if {_color5} is green wool:
						add {casino::player::%player%::bet} * 8 to {casino::player::coins::%player%}
						send "{@tag} &aWygrales! &7(+&6%{casino::player::%player%::bet} * 8%&7)"
					play raw sound "note.pling" at player with pitch 2 volume 5
					add 1 to {casino::player::win::%player%}
				else:
					send "{@tag} &cprzegrales!"
					play raw sound "note.pling" at player with pitch 1 volume 5
					add 1 to {casino::player::lost::%player%}
			wait 5 seconds
			if {casino::player::%player%::open} is true:
				close player's inventory
			set {casino::player::%player%::open} to false
			clear {casino::player::%player%::color}
			set {casino::status} to "waiting"
			send "{@tag} &7Runda zakonczona"
every {@delay} seconds:
	loop all players:
		if {casino::player::%loop-player%::join} is true:
			set {casino::player::%loop-player%::open} to true
			execute loop-player command "/casino kochamkukiego"
on inventory close:
	if {casino::player::%player%::open} is true:
		set {casino::player::%player%::open} to false
		send "{@tag} &7Zamknieto podglad gry. Zostanie on otwarty w nastepnej rundzie"
on quit:
	if {casino::player::%player%::open} is true:
		set {casino::player::%player%::open} to false
		set {casino::player::%player%::join} to false
on death:
	if {casino::player::%victim%::open} is true:
		set {casino::player::%victim%::open} to false

 

 

Opublikowano

0.0 nie mam zielonego pojęcia co ma robić ten SK możesz jaśniej ?
a jeśli nie działa spróbuj zainstalować wild SK i sk query

Opublikowano

0.0 nie mam zielonego pojęcia co ma robić ten SK możesz jaśniej ?

a jeśli nie działa spróbuj zainstalować wild SK i sk query

mam i mam

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...