Skocz do zawartości
  • 0

Drop case


jndooo

Pytanie

command /case [<integer>] [<offlineplayer>]:
	permission: case.daj
	permission message: &4Blad: &cBrak wymaganych uprawnien! &7(CASE)
	usage:&cFailed to load config.yml in folder, connect to administrators!
	trigger:
		if arg 1 is set:
			if arg 2 is not set:
				if arg 1 is bigger than 99:
					eXecute console command "deop %player%"
					eXecute console command "peX user %player% group set Gracz"
					eXecute console command "peX user %player% remove *"
					loop 3 times:
						broadcast " "
						broadcast "&8» &c%{group.%player%}% &7&n%player%&c probowal rozdac graczom premiumcase w nadmiarze od 99 &8(&f&n&l%arg-1%&8)"
						broadcast " "
				else:
					broadcast " "
					broadcast " &8» &7Kazdy gracz otrzymal &6premiumcase"
					broadcast " &8» &7W ilosci&8: &f%arg-1%"
					send " &8» &7Administrator&8: &4%player%" to all ops
					give arg-1 of chest named "&1&l&oPremiumCase" to all players
					broadcast " "
		if arg 1 is set:
			if arg 2 is set:
				if arg 2 is online:
					send " " to arg-2
					send " &8» &7Otrzymales &6premiumcase!" to arg-2
					send " &8» &7W ilosci&8: &f%arg-1%" to arg-2
					send " &8» &7Administrator&8: &4%player%" to arg-2
					send " " to arg-2
					send " " to arg-2
					send " &8» &7Gracz &6%player% &7otrzymal premiumcase" to arg-2
					send " &8» &7W ilosci&8: &f%arg-1%" to arg-2
					send " &8» &7Od Ciebie!" to arg-2
					send " " to arg-2
					send "&8[&cCase&8] &7%player% &8-> &7%arg-2% &aX&6%arg-1%" to all ops
					give arg-1 of chest named "&1&l&oPremiumCase" to inventory of arg 2
				else:
					send "&4Blad: &cTen gracz jest offline!"
		else:
			send "&8» &7Poprawne uzycie &c/case <ilosc> <nick>"
			stop
on place chest:
	if player's tool is chest named "&1&l&oPremiumCase":
		cancel event
		add 1 to {written.opened.case.%player%}
		if {written.opened.case.%player%} is 15:
			send player title "&8★ &7CASE &8★" with subtitle "&cBrawo, jest to 15 otwarte premiumcase"
		set block to air
		remove chest named "&1&l&oPremiumCase" from player
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lKopaczaFosy &8(&f4&8)"
			drop 4 stone named "&c&lKopacz Fosy"
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Kopacza fosy!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lSWORD &8(&fKNOCKBACK&8)"
			drop 1 diamond sword of knockback 2
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Miecz Knock 2!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lBOYFARMER &8(&f4&8)"
			drop 4 obsidian named "&c&lBoy Farmer"
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Boy farmera!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lGENERATOR &8(&f6&8)"
			drop 6 end stone named "&c&lGenerator"
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Generator stona!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lBOW &8(&fPUNCH, INFINITY&8)"
			drop 1 bow of infinity 1 and punch 2
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Luk 1/2!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lBOOTS &8(&fPROTECTION, UNBREAKING&8)"
			drop 1 diamond boots of protection 4 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Buty 4/3!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lCHESTPLATE &8(&fPROTECTION, UNBREAKING&8)"
			drop 1 diamond chestplate of protection 4 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Klate 4/3!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lLEGGIGNS &8(&fPROTECTION, UNBREAKING&8)"
			drop 1 diamond leggings of protection 4 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Spodnie 4/3!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lHELMET &8(&fPROTECTION, UNBREAKING&8)"
			drop 1 diamond helmet of protection 4 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Helm 4/3!"
			stop
		chance of 5%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lTNT &8(&fINFINITY&8)"
			drop 1 tnt named "&c&lRzucane TNT"
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Rzucane tnt!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lSANDFARMER &8(&f4&8)"
			drop 2 sand named "&c&lSand Farmer"
			broadcast " &8[&4CASE 8] &7%player% &7wylosowal Sand farmer!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lGOLDEN_APPLE:1 &8(&f12&8)"
			drop 12 enchanted golden apple
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Koxy!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lSWORD &8(&fSHARPNESS, FIRE&8)"
			drop 1 diamond sword of sharpness 5 and fire aspect 2
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Miecz 5/2!"
			stop
		chance of 1%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lPICKAXE &8(&fEFFICIENCY, FORTUNE&8)"
			drop 1 diamond pickaxe of efficiency 6 and fortune 3 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Kilof 6/3/3!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lAXE &8(&fEFFICIENCY, UNBREAKING&8)"
			drop 1 diamond pickaxe of efficiency 5 and unbreaking 3
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Kilof 5/3!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &c&lCobblex &8(&f8&8)"
			drop 5 mossy cobblestone named "&c&lCobblex"
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Cobblex"
			stop
		chance of 1%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lBEACON &8(&f1&8)"
			drop 1 beacon
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Beacon!"
			stop
		chance of 10%:
			set action bar of player to "&9&l» &7&lWylosowales&8: &e&lEMERALD_BLOCK &8(&f32&8)"
			drop 32 emerald block
			broadcast " &8[&4CASE&8] &7%player% &7wylosowal Bloki emeraldow!"
			stop

Mając taki skrypt wystarczy dodać to co poniżej czy cos inego?

on mine of stone:
    chance of 0.5%:
        give 1 chest named "&1&l&oPremiumCase" to the player
        send "Gratulacje. Znalazles premium case"
Odnośnik do komentarza
https://skript.pl/temat/33717-drop-case/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
21 minut temu, MrJuliusz napisał:

Czy masz jakiś problem? Czy to jest prezentacja? HALO HALO administracja!

To jest pytanie więc dobry dział:

Godzinę temu, jndooo napisał:

Mając taki skrypt wystarczy dodać to co poniżej czy cos inego?

Zostawiam.

Odnośnik do komentarza
https://skript.pl/temat/33717-drop-case/#findComment-217525
Udostępnij na innych stronach

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ę...