Skocz do zawartości
  • 0

Skrypt na schowek


Lotto

Pytanie

Witam, przerobi mi ktos skrypt na schowek zeby nei dalo sie kopiowac nazywajac itemy?

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 4:
            set {_a} to {_koxy}-4
            remove {_a} of golden apple:1 from the loop-player inventory
            add {_a} to {schowek.%loop-player%.koxy}
            send "&cPosiadasz przy sobie wiecej niz 4 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 the loop-player inventory
            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 3:
            set {_a} to {_perly}-3
            remove {_a} of ender pearl from the loop-player inventory
            add {_a} to {schowek.%loop-player%.perly}
            send "&cPosiadasz przy sobie wiecej niz 3 perly, %{_a}% perel zostaje odlozone do twojego schowka" to loop-player
command /schowek [<text>]:
    trigger:
        if argument 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 "&2    »------&ox  &6Schowek  &2&ox------«"
            send ""
            send "&7» &6/schowek koxy &8- &7wyplaca koxy(%{schowek.%player%.koxy}%)"
            send ""
            send "&7» &6/schowek refile &8- &7wyplaca refile(%{schowek.%player%.refile}%)"
            send ""
            send "&7» &6/schowek perly &8- &7wyplaca perly(%{schowek.%player%.perly}%)"
            send ""
            send "&2    »------&ox  &6Schowek  &2&ox------«"
        if argument is "koxy":
            give {schowek.%player%.koxy} of golden apple:1 to player
            send "&cWyplasiles ze schowka &6%{schowek.%player%.koxy}% &ckoxow"
            set {schowek.%player%.koxy} to 0
        if argument is "refile":
            give {schowek.%player%.refile} of golden apple:0 to player
            send "&cWyplasiles ze schowka &6%{schowek.%player%.refile}% &crefili"
            set {schowek.%player%.koxy} to 0
        if argument is "perly":
            give {schowek.%player%.perly} of ender pearl to player
            send "&8 &cWyplasiles ze schowka &6%{schowek.%player%.perly}% &cperel"
            set {schowek.%player%.perly} to 0

Odnośnik do komentarza
Udostępnij na innych stronach

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

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ę...