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

Problem ze skryptem na limit koxów w eq.


Siakamorki

Rekomendowane odpowiedzi

Opublikowano

Witam.

Mam problem otóż wrzuciłem na serwer skrypt na limit koxów.

I problem polega na tym, że skript nie rozumie jednej linii.

[16:37:35 ERROR]: can't understand this event: 'on inventory close' (DevLimit.sk, line 21: on inventory close:')

Wklejam cały kod skryptu.

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 "&7[&cLove&4HC&7]&8» &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 "&7[&cLove&4HC&7]&8» &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 "&7[&cLove&4HC&7]&8» &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 "&7[&cLove&4HC&7]&8» &c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 10, reszte odlozono do twojego enderchestu."
		stop

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...