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

Skrypt lub plugin na limit itemów w eq


Rekomendowane odpowiedzi

Opublikowano

nie w QUI tylko GUI.

Nigdzie takiego nie ma oprocz przerobionego z internetu, przerabial knugi.

#przerabiane przez knugi
options:
        tag: &6Schowek
every 10 second:
	loop all players:
		set {_koxy} to number of golden apple:1 in the loop-player's inventory
		set {_refile} to number of golden apple:0 in the loop-player's inventory
		set {_perly} to number of ender pearl in the loop-player's inventory
		if {_koxy} is more than 6:
			set {_a} to {_koxy}-6
			remove {_a} of golden apple:1 from loop-player
			add {_a} to {schowek.%loop-player%.koxy}
			send "&cPosiadasz przy sobie wiecej niz 6 koxow, %{_a}% koxow zostaje odlozone do twojego schowka" to loop-player
		if {_refile} is more than 32:
			set {_a} to {_refile}-32
			remove {_a} of golden apple:0 from loop-player
			add {_a} to {schowek.%loop-player%.refile}
			send "&cPosiadasz przy sobie wiecej niz 32 refile, %{_a}% refili zostaje odlozone do twojego schowka" to loop-player
		if {_perly} is more than 16:
			set {_a} to {_perly}-16
			remove {_a} of ender pearl from loop-player
			add {_a} to {schowek.%loop-player%.perly}
			send "&cPosiadasz przy sobie wiecej niz 16 perly, %{_a}% perel zostaje odlozone do twojego schowka" to loop-player
command /schowek [<text>]:
	trigger:
		if arg-1 is not set:
			if {schowek.%player%.koxy} is not set:
				set {schowek.%player%.koxy} to 0
			if {schowek.%player%.refile} is not set:
				set {schowek.%player%.refile} to 0
			if {schowek.%player%.perly} is not set:
				set {schowek.%player%.perly} to 0
			send "&8&l&m-----------[&e &eSCHOWEK &8&l&m]-----------"
			send "&7» &6/schowek koxy &8- &7wyplaca koxy (Posiadasz: %{schowek.%player%.koxy}%)"
			send "&7» &6/schowek refile &8- &7wyplaca refile (Posiadasz: %{schowek.%player%.refile}%)"
			send "&7» &6/schowek perly &8- &7wyplaca perly (Posiadasz: %{schowek.%player%.perly}%)"
			send "&8&l&m-----------[&e &eSCHOWEK &8&l&m]-----------"
			stop
		if arg-1 is "koxy":
			if {schowek.%player%.koxy} is larger than 0:
				if number of golden apple:1 in the player's inventory is larger than or equal to 6:
					send "{@tag} Nie mozesz wyplacic koxow, gdyz masz ich juz limit w ekwipunku."
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 6 - number of golden apple:1 in player's inventory
				if {_a} is larger than {schowek.%player%.koxy}:
					set {_a} to {schowek.%player%.koxy}
				set player's current inventory's slot 4 to golden apple:1 named "&6Wyplac koxy." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6koxow.||&6Posiadasz: &3%{schowek.%player%.koxy}%"
				stop
			send "{@tag} Musisz miec koxy w schowku, aby moc je wyplacic!"
			stop
		if arg-1 is "refile":
			if {schowek.%player%.refile} is larger than 0:
				if number of golden apple:0 in the player's inventory is larger than or equal to 32:
					send "{@tag} Nie mozesz wyplacic refili, gdyz masz ich juz limit w ekwipunku!"
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 32 - number of golden apple:0 in player's inventory
				if {_a} is larger than {schowek.%player%.refile}:
					set {_a} to {schowek.%player%.refile}
				set player's current inventory's slot 4 to golden apple:0 named "&6Wyplac refile." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6refili.||&6Posiadasz: &3%{schowek.%player%.refile}%"
				stop
			send "{@tag} Musisz miec refile w schowku, aby moc je wyplacic!"
			stop
		if arg-1 is "perly":
			if {schowek.%player%.perly} is larger than 0:
				if number of ender pearl in the player's inventory is larger than or equal to 16:
					send "{@tag} Nie mozesz wyplacic perel, poniewaz masz ich juz limit w ekwipunku."
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 16 - number of ender pearl in player's inventory
				if {_a} is larger than {schowek.%player%.perly}:
					set {_a} to {schowek.%player%.perly}
				set player's current inventory's slot 4 to ender pearl named "&6Wyplac perly." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6perel.||&6Posiadasz: &3%{schowek.%player%.perly}%"
				stop
			send "{@tag} Musisz miec perly w schowku, aby moc je wyplacic!"
			stop
on inventory click:
	if "%inventory name of player's current inventory%" contains "Schowek":
		if slot is smaller than 0:
			stop
		cancel event
		set {_lore::*} to lore of player's current inventory's slot slot split at "||"
		set {_amount} to uncoloured {_lore::2}
		replace all "* wyplacic " and " perel." and " refili." and " koxow." in {_amount} with ""
		set {_amount} to {_amount} parsed as integer
		if player's current inventory's slot slot is golden apple:0:
			remove {_amount} from {schowek.%player%.refile}
			send "&7» &6Wyplaciles %{_amount}% refili"
		if player's current inventory's slot slot is golden apple:1:
			remove {_amount} from {schowek.%player%.koxy}
			send "&7» &6Wyplaciles %{_amount}% koxow"
		if player's current inventory's slot slot is ender pearl:
			remove {_amount} from {schowek.%player%.perly}
			send "&7» &6Wyplaciles %{_amount}% perel."
		set {_i} to "%{_amount}% %type of player's current inventory's slot slot%" parsed as item type
		give {_i} to player
		close player's inventory

 

 

JAVA <3

 

Opublikowano

options:
    limitkoxow: 4
    limitref: 19
    limitper: 3
on eat of 322:0:
    wait 7 ticks
    if player has {@limitref} 322:0:
        send "&2&lZabrano refy poniewaz miales ich zbyt duzo!" to player
        loop 128 times:
            if player has {@limitref} 322:0:
                remove 1 322:0 from player's inventory
                add 1 to {schowek::refy::%player%}
On rightclick holding a ender pearl:
    wait 7 ticks
    if player has {@limitper} ender pearl:
        send "&2&lZabrano perly poniewaz miales ich zbyt duzo!" to player
        loop 64 times:
            if player has {@limitper} ender pearl:
                remove 1 ender pearl from player's inventory
                add 1 to {schowek::perly::%player%}
        stop
on eat of 322:1:
    wait 7 ticks
    if player has {@limitkoxow} 322:1:
        send "&2&lZabrano koxy poniewaz miales ich zbyt duzo!" to player
        loop 128 times:
            if player has {@limitkoxow} 322:1:
                remove 1 322:1 from player's inventory
                add 1 to {schowek::koxy::%player%}
        
        
on join:
    if {schowek::koxy::%player%} is not set:
        set {schowek::koxy::%player%} to 0
        set {schowek::perly::%player%} to 0
        set {schowek::refy::%player%} to 0
command /schowek [<text>]:
    trigger:
        if arg is not set:
            wait 1 tick
            open chest with 1 rows named "&6&lSchowek" to player
            format slot 3 of player with 1 of 368 named "&2&lPosiadasz &6&l%{schowek::perly::%player%}%&2&l perly!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek perly"]
            format slot 4 of player with 1 of 368:1 named "&2&lPosiadasz &6&l%{schowek::koxy::%player%}%&2&l koxy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek koxy"]
            format slot 5 of player with 1 of 322 named "&2&lPosiadasz &6&l%{schowek::refy::%player%}%&2&l refy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek refy"]
        if arg is "koxy":
            if {schowek::koxy::%player%} is greater than 0:
                give {schowek::koxy::%player%} of 322:1 to player
                set {schowek::koxy::%player%} to 0
        if arg is "refy":
            if {schowek::refy::%player%} is greater than 0:
                give {schowek::refy::%player%} of 322 to player
                set {schowek::refy::%player%} to 0
        if arg is "perly":
            if {schowek::perly::%player%} is greater than 0:
                give {schowek::perly::%player%} of 368 to player
                set {schowek::perly::%player%} to 0
        
                
              

Opublikowano

on eat of 322:0:

    wait 7 ticks

    if player has 19 322:0:

        send "&2&lZabrano refy poniewaz miales ich zbyt duzo!" to player

        loop 128 times:

            if player has 19 322:0:

                remove 1 322:0 from player's inventory

                add 1 to {schowek::refy::%player%}

On rightclick holding a ender pearl:

    wait 7 ticks

    if player has 3 ender pearl:

        send "&2&lZabrano perly poniewaz miales ich zbyt duzo!" to player

        loop 64 times:

            if player has 3 ender pearl:

                remove 1 ender pearl from player's inventory

                add 1 to {schowek::perly::%player%}

        stop

on eat of 322:1:

    wait 7 ticks

    if player has 4 322:1:

        send "&2&lZabrano koxy poniewaz miales ich zbyt duzo!" to player

        loop 128 times:

            if player has 4 322:1:

                remove 1 322:1 from player's inventory

                add 1 to {schowek::koxy::%player%}

        

        

on join:

    if {schowek::koxy::%player%} is not set:

        set {schowek::koxy::%player%} to 0

        set {schowek::perly::%player%} to 0

        set {schowek::refy::%player%} to 0

command /schowek [<text>]:

    trigger:

        if arg is not set:

            if target block is chest or ender chest or anvil or dropper or crafting table or dispenser:

                if distance between target block and player is greater than 6:

                    wait 1 tick

                    open chest with 1 rows named "&6&lSchowek" to player

                    format slot 3 of player with 1 of 368 named "&2&lPosiadasz &6&l%{schowek::perly::%player%}%&2&l perly!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek perly"]

                    format slot 4 of player with 1 of 368:1 named "&2&lPosiadasz &6&l%{schowek::koxy::%player%}%&2&l koxy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek koxy"]

                    format slot 5 of player with 1 of 322 named "&2&lPosiadasz &6&l%{schowek::refy::%player%}%&2&l refy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek refy"]

                else:

                    send "&cNie mozesz otwierac gui dropu patrzac sie na skrzynke, enderchest, kowadlo itp."

            else:

                wait 1 tick

                open chest with 1 rows named "&6&lSchowek" to player

                format slot 3 of player with 1 of 368 named "&2&lPosiadasz &6&l%{schowek::perly::%player%}%&2&l perly!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek perly"]

                format slot 4 of player with 1 of 368:1 named "&2&lPosiadasz &6&l%{schowek::koxy::%player%}%&2&l koxy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek koxy"]

                format slot 5 of player with 1 of 322 named "&2&lPosiadasz &6&l%{schowek::refy::%player%}%&2&l refy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek refy"]

        if arg is "koxy":

            if {schowek::koxy::%player%} is greater than 0:

                give {schowek::koxy::%player%} of 322:1 to player

                set {schowek::koxy::%player%} to 0

        if arg is "refy":

            if {schowek::refy::%player%} is greater than 0:

                give {schowek::refy::%player%} of 322 to player

                set {schowek::refy::%player%} to 0

        if arg is "perly":

            if {schowek::perly::%player%} is greater than 0:

                give {schowek::perly::%player%} of 368 to player

                set {schowek::perly::%player%} to 0

Testowałeś na localhoscie? Bo cos mysle ze wyrzuci błąd.

 

Poza tym, tutaj jest event, 

on rightclick
on eat

Wiec slaby ten schowek ;v

 

 

JAVA <3

 

Opublikowano

 

on eat of 322:0:

    wait 7 ticks

    if player has 19 322:0:

        send "&2&lZabrano refy poniewaz miales ich zbyt duzo!" to player

        loop 128 times:

            if player has 19 322:0:

                remove 1 322:0 from player's inventory

                add 1 to {schowek::refy::%player%}

On rightclick holding a ender pearl:

    wait 7 ticks

    if player has 3 ender pearl:

        send "&2&lZabrano perly poniewaz miales ich zbyt duzo!" to player

        loop 64 times:

            if player has 3 ender pearl:

                remove 1 ender pearl from player's inventory

                add 1 to {schowek::perly::%player%}

        stop

on eat of 322:1:

    wait 7 ticks

    if player has 4 322:1:

        send "&2&lZabrano koxy poniewaz miales ich zbyt duzo!" to player

        loop 128 times:

            if player has 4 322:1:

                remove 1 322:1 from player's inventory

                add 1 to {schowek::koxy::%player%}

        

        

on join:

    if {schowek::koxy::%player%} is not set:

        set {schowek::koxy::%player%} to 0

        set {schowek::perly::%player%} to 0

        set {schowek::refy::%player%} to 0

command /schowek [<text>]:

    trigger:

        if arg is not set:

            if target block is chest or ender chest or anvil or dropper or crafting table or dispenser:

                if distance between target block and player is greater than 6:

                    wait 1 tick

                    open chest with 1 rows named "&6&lSchowek" to player

                    format slot 3 of player with 1 of 368 named "&2&lPosiadasz &6&l%{schowek::perly::%player%}%&2&l perly!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek perly"]

                    format slot 4 of player with 1 of 368:1 named "&2&lPosiadasz &6&l%{schowek::koxy::%player%}%&2&l koxy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek koxy"]

                    format slot 5 of player with 1 of 322 named "&2&lPosiadasz &6&l%{schowek::refy::%player%}%&2&l refy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek refy"]

                else:

                    send "&cNie mozesz otwierac gui dropu patrzac sie na skrzynke, enderchest, kowadlo itp."

            else:

                wait 1 tick

                open chest with 1 rows named "&6&lSchowek" to player

                format slot 3 of player with 1 of 368 named "&2&lPosiadasz &6&l%{schowek::perly::%player%}%&2&l perly!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek perly"]

                format slot 4 of player with 1 of 368:1 named "&2&lPosiadasz &6&l%{schowek::koxy::%player%}%&2&l koxy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek koxy"]

                format slot 5 of player with 1 of 322 named "&2&lPosiadasz &6&l%{schowek::refy::%player%}%&2&l refy!" with lore "&2&lKliknij aby wyplacic!" to run [make player execute command "schowek refy"]

        if arg is "koxy":

            if {schowek::koxy::%player%} is greater than 0:

                give {schowek::koxy::%player%} of 322:1 to player

                set {schowek::koxy::%player%} to 0

        if arg is "refy":

            if {schowek::refy::%player%} is greater than 0:

                give {schowek::refy::%player%} of 322 to player

                set {schowek::refy::%player%} to 0

        if arg is "perly":

            if {schowek::perly::%player%} is greater than 0:

                give {schowek::perly::%player%} of 368 to player

                set {schowek::perly::%player%} to 0

Testowałeś na localhoscie? Bo cos mysle ze wyrzuci błąd.

 

Poza tym, tutaj jest event, 

on rightclick
on eat

Wiec slaby ten schowek ;v

 

Tak wszystko dobrze dziala.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...