Skocz do zawartości
  • 0

Maksymalne Ilosc Koxow i Refili w eq


Pytanie

Siema ostatnio na moim serwerze surivival zauwazyłem ze ludzie maja po 10 koxow i stak refow w eq i klepy sa nie fair i chciałbym to jakos ogarnac i wpadłem na pomysl czy by mi ktos mogł napisac skrypt zeby np Max koxow do eq to 2 KOX i np Max Refili to 6 Dzeki

Odnośnik do komentarza
https://skript.pl/temat/9733-maksymalne-ilosc-koxow-i-refili-w-eq/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on pick up:
	wait 0.1 second
	if amount of enchanted golden apple in player's inventory is greater than 10:
		set {_amount} to amount of enchanted golden apple in player's inventory
		set {_amountend} to {_amount}-10
		set {_add} to "%{_amountend}% enchanted golden apple"
		add "%{_add}%" parsed as item to player's enderchest
		remove all enchanted golden apple from player's inventory
		add 10 enchanted golden apple to player's inventory
		message "&c&lOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 10, reszte odlozono do twojego enderchestu."
	if amount of ender pearl in player's inventory is greater than 10:
		set {_amount} to amount of ender pearl in player's inventory
		set {_amountend} to {_amount}-10
		set {_add} to "%{_amountend}% ender pearl"
		add "%{_add}%" parsed as item to player's enderchest
		remove all ender pearl from player's inventory
		add 10 ender pearl to player's inventory
		message "&c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 10, reszte odlozono do twojego enderchestu."
		stop

on inventory close:
	if amount of enchanted golden apple in player's inventory is greater than 10:
		set {_amount} to amount of enchanted golden apple in player's inventory
		set {_amountend} to {_amount}-10
		set {_add} to "%{_amountend}% enchanted golden apple"
		add "%{_add}%" parsed as item to player's enderchest
		remove all enchanted golden apple from player's inventory
		add 10 enchanted golden apple to player's inventory
		message "&c&lOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 10, reszte odlozono do twojego enderchestu."
	if amount of ender pearl in player's inventory is greater than 10:
		set {_amount} to amount of ender pearl in player's inventory
		set {_amountend} to {_amount}-10
		set {_add} to "%{_amountend}% ender pearl"
		add "%{_add}%" parsed as item to player's enderchest
		remove all ender pearl from player's inventory
		add 10 ender pearl to player's inventory
		message "&c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 10, reszte odlozono do twojego enderchestu."
		stop

Poprzedni skrypt dla osoby zlecającej. Jeżeli gracz osiągnie 10 perełek, czy 10 koxów to odkłada je do enderchesta. Przerób sobie i Voilà.

Odnośnik do komentarza
https://skript.pl/temat/9733-maksymalne-ilosc-koxow-i-refili-w-eq/#findComment-73539
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ę...