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

Limit koxów nie działa


Qubusiek

Rekomendowane odpowiedzi

Opublikowano

Tak jak w temacie, nie działa mi limit koxow. Mam skrypt, na limity przerobiony.
Czyli:
Refile: 25 limit
Perly: 8 limit
* Koxy: 10 limit * - Powiedzmy ze mam 15 koxow. 5 koxow zabiera mi do enderchesta, a z ekwipunku usuwa mi 10 (limit) Czyli w ogole nie dostaje koxow do eq, tylko mi je usuwa, i pokazuje sie tylko wiadomosc: "Osiagnieto limit koxow..."
 oto caly kod mam nadzieje ze ktos pomoze.

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 "&8> &cOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono &e6&c, reszte odlozono do twojego enderchestu."
	if amount of ender pearl in player's inventory is greater than 8:
		set {_amount} to amount of ender pearl in player's inventory
		set {_amountend} to {_amount}-8
		set {_add} to "%{_amountend}% ender pearl"
		add "%{_add}%" parsed as item to player's enderchest
		remove all ender pearl from player's inventory
		add 8 ender pearl to player's inventory
		message "&8> &cOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono &e8&c, reszte odlozono do twojego enderchestu."
	if amount of golden apple in player's inventory is greater than 25:
		set {_amount} to amount of golden apple in player's inventory
		set {_amountend} to {_amount}-25
		set {_add} to "%{_amountend}% golden apple"
		add "%{_add}%" parsed as item to player's enderchest
		remove all golden apple from player's inventory
		add 25 golden apple to player's inventory
		message "&8> &cOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono &e25&c, 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 "&8> &cOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono &e6&c, reszte odlozono do twojego enderchestu."
	if amount of ender pearl in player's inventory is greater than 8:
		set {_amount} to amount of ender pearl in player's inventory
		set {_amountend} to {_amount}-8
		set {_add} to "%{_amountend}% ender pearl"
		add "%{_add}%" parsed as item to player's enderchest
		remove all ender pearl from player's inventory
		add 8 ender pearl to player's inventory
		message "&8> &cOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono &e8&c, reszte odlozono do twojego enderchestu."
	if amount of golden apple in player's inventory is greater than 25:
		set {_amount} to amount of golden apple in player's inventory
		set {_amountend} to {_amount}-25
		set {_add} to "%{_amountend}% golden apple"
		add "%{_add}%" parsed as item to player's enderchest
		remove all golden apple from player's inventory
		add 25 golden apple to player's inventory
		message "&8> &cOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono &e25&c, reszte odlozono do twojego enderchestu."
		stop
		

@topic jak coś to posiadam skQuery, WildSkript. A gdy wpisuje /sk reload limity.sk - to nie wyskakuje zaden blad..

Opublikowano

Podaj;
 

  • Jaki masz silnik serwera:
    Zaktualizuj te dodatki oraz plugin skript do najnowszej wersji 2.2 poprawionej.

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano

@topic Usun limit refili, miesza sie to z koxami.

 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...