Skocz do zawartości
  • 0

Prosty drop bez gui


dvds

Pytanie

Witam, potrzebuje skryptu na drop bez gui.

/drop na czacie wyświetlają się procenty (wszystko po 1%)

i jak kamiennym kilofem kopie to wypada tylko zelazo, jak żelaznym to lapis diamenty, złoto, redstone, a jak diamentowyn to wszystko + 5 expa do paska gracza procenty wszystko po 1%.  + vip ma 3% więcej dropy.

 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1
4 minuty temu, dvds napisał:

Witam, potrzebuje skryptu na drop bez gui.

/drop na czacie wyświetlają się procenty (wszystko po 1%)

i jak kamiennym kilofem kopie to wypada tylko zelazo, jak żelaznym to lapis diamenty, złoto, redstone, a jak diamentowyn to wszystko + 5 expa do paska gracza procenty wszystko po 1%.  + vip ma 3% więcej dropy.

 

Proszę.

on mine of stone:
	set {_chance} to 4 if player has permission "permisja.vip" else 1
	if player's tool's type is stone pickaxe:
		set {_drops::*} to iron ingot
	else if player's tool's type is iron pickaxe:
		set {_drops::*} to lapis lazuli, diamond, gold ingot and redstone
	else if player's tool's type is diamond pickaxe:
		set {_drops::*} to iron ingot, lapis lazuli, diamond, gold ingot and redstone
	else:
		stop
	loop {_drops::*}:
		chance of {_chance}%:
			drop loop-value at event-block
			drop 5 xp at event-block
			
command /drop:
	executable by: players
	trigger:
		send "          &aDrop:"
		send " &fSztabki żelaza &7- &61%%" to player
		send " &eSztabki złota &7- &61%%" to player
		send " &9Lapis lazuli &7- &61%%" to player
		send " &cRedstone &7- &61%%" to player
		send " &bDiamenty &7- &61%%" to player

 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275760
Udostępnij na innych stronach

  • 0
on mine of stone:
	if player doesn't have permission "vip":
		chance of 99%:
			stop
	else:
		chance of 97%:
			stop
	if player's tool is stone axe or diamond axe:
		drop 1 iron ingot at player
	else if player's tool is iron pickaxe or diamond axe:
		set {_} to 1 or 2 or 3 or 4
		if {_} is 1:
			drop 1 lapis lazuli at player
		else if {_} is 2:
			drop 1 diamond at player
		else if {_} is 3:
			drop 1 gold ingot at player
		else:
			drop 1 redstone at player
	if player's tool is diamond axe:
		drop 5 xp at player

 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275761
Udostępnij na innych stronach

  • 0
11 minut temu, Kormic napisał:

Proszę.


on mine of stone:
	set {_chance} to 4 if player has permission "permisja.vip" else 1
	if player's tool's type is stone pickaxe:
		set {_drops::*} to iron ingot
	else if player's tool's type is iron pickaxe:
		set {_drops::*} to lapis lazuli, diamond, gold ingot and redstone
	else if player's tool's type is diamond pickaxe:
		set {_drops::*} to iron ingot, lapis lazuli, diamond, gold ingot and redstone
	else:
		stop
	loop {_drops::*}:
		chance of {_chance}%:
			drop loop-value at event-block
			drop 5 xp at event-block
			
command /drop:
	executable by: players
	trigger:
		send "          &aDrop:"
		send " &fSztabki żelaza &7- &61%%" to player
		send " &eSztabki złota &7- &61%%" to player
		send " &9Lapis lazuli &7- &61%%" to player
		send " &cRedstone &7- &61%%" to player
		send " &bDiamenty &7- &61%%" to player

 

1 błąd z tą permisją.vip nie dropi nic mi 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275767
Udostępnij na innych stronach

  • 0
Teraz, dvds napisał:

1 błąd z tą permisją.vip nie dropi nic mi 

No cóż, najwidoczniej 'ternary operator' u ciebie nie działa. W takim razie zrobimy to prostym warunkiem.

on mine of stone:
	if player has permission "permisja.vip":
		set {_chance} to 4 
	else:
		set {_chance} to 1
	if player's tool's type is stone pickaxe:
		set {_drops::*} to iron ingot
	else if player's tool's type is iron pickaxe:
		set {_drops::*} to lapis lazuli, diamond, gold ingot and redstone
	else if player's tool's type is diamond pickaxe:
		set {_drops::*} to iron ingot, lapis lazuli, diamond, gold ingot and redstone
	else:
		stop
	loop {_drops::*}:
		chance of {_chance}%:
			drop loop-value at event-block
			drop 5 xp at event-block
			
command /drop:
	executable by: players
	trigger:
		send "          &aDrop:"
		send " &fSztabki żelaza &7- &61%%" to player
		send " &eSztabki złota &7- &61%%" to player
		send " &9Lapis lazuli &7- &61%%" to player
		send " &cRedstone &7- &61%%" to player
		send " &bDiamenty &7- &61%%" to player

 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275768
Udostępnij na innych stronach

  • 0
3 minuty temu, Kormic napisał:

No cóż, najwidoczniej 'ternary operator' u ciebie nie działa. W takim razie zrobimy to prostym warunkiem.


on mine of stone:
	if player has permission "permisja.vip":
		set {_chance} to 4 
	else:
		set {_chance} to 1
	if player's tool's type is stone pickaxe:
		set {_drops::*} to iron ingot
	else if player's tool's type is iron pickaxe:
		set {_drops::*} to lapis lazuli, diamond, gold ingot and redstone
	else if player's tool's type is diamond pickaxe:
		set {_drops::*} to iron ingot, lapis lazuli, diamond, gold ingot and redstone
	else:
		stop
	loop {_drops::*}:
		chance of {_chance}%:
			drop loop-value at event-block
			drop 5 xp at event-block
			
command /drop:
	executable by: players
	trigger:
		send "          &aDrop:"
		send " &fSztabki żelaza &7- &61%%" to player
		send " &eSztabki złota &7- &61%%" to player
		send " &9Lapis lazuli &7- &61%%" to player
		send " &cRedstone &7- &61%%" to player
		send " &bDiamenty &7- &61%%" to player

 

wszystko dobrze, a daloby radę teraz zmienic szanse ze zelazo 6% a zloto 0.1% ? 

Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275771
Udostępnij na innych stronach

  • 0
8 minut temu, dvds napisał:

wszystko dobrze, a daloby radę teraz zmienic szanse ze zelazo 6% a zloto 0.1% ? 

Chłopie... najpierw prosisz o 1% na wszystkie dropy, a teraz każesz zmieniać większość skryptu.

on mine of stone:
	if player has permission "permisja.vip":
		set {_add} to 3
	else:
		set {_add} to 0
	if player's tool's type is stone pickaxe:
		set {_drops::*} to iron ingot
	else if player's tool's type is iron pickaxe:
		set {_drops::*} to lapis lazuli, diamond, gold ingot and redstone
	else if player's tool's type is diamond pickaxe:
		set {_drops::*} to iron ingot, lapis lazuli, diamond, gold ingot and redstone
	else:
		stop
	loop {_drops::*}:
		if loop-value is iron ingot:
			chance of (6 + {_add})%:
				set {_t} to true
		else if loop-value is gold ingot:
			chance of (0.1 + {_add})%:
				set {_t} to true
		else:
			chance of (1 + {_add})%:
				set {_t} to true
		{_t} is set		
		drop loop-value at event-block
		drop 5 xp at event-block
			
command /drop:
	executable by: players
	trigger:
		send "          &aDrop:"
		send " &fSztabki żelaza &7- &66%%" to player
		send " &eSztabki złota &7- &60.1%%" to player
		send " &9Lapis lazuli &7- &61%%" to player
		send " &cRedstone &7- &61%%" to player
		send " &bDiamenty &7- &61%%" to player

 

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/44020-prosty-drop-bez-gui/#findComment-275776
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ę...