Skocz do zawartości
  • 0

coffein pomoz!


Hexagon__

Pytanie

No to ogolnie napisalem taki skript:

on inventory click:
    if inventory name of current inventory of player is "&5&lCOBBLEX":
        cancel event
        if clicked slot is 10:
            if amount of cobblestone in player's inventory > 575:
                remove 576 cobblestone from player
                give dirt to the player
                send "{@tag} &aPrzedmiot wytworzony" to player
            else:
                send "{@tag} &cZa malo przedmiotow!"

ogolnie gdy sie klika w npcta to sie otwiera gui i zrobilem tak ze gdy sie kliknie slot 10 gdy sie ma 576 cobbla to otrzyma sie jakis przedmiot i teraz jest jeden taki problem, po tym gdy sie otwiera gui to normalnie wszystko dziala pisze mi ze mam malo przedmiotow gdy klikne 10 slot w tym gui, ale gdy klikne 2 slot w MOIM inventory nie w gui tylko w MOIM inventory to mi tez pisze ze mam malo przedmiotow ogarnia ktos cos?

CountingDogs

Wstawiam kod w code.

Notatka dodana przez CountingDogs

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/
Udostępnij na innych stronach

  • Odpowiedzi 44
  • Dodano
  • Ostatniej odpowiedzi

Top użytkownicy dla tego pytania

Top użytkownicy dla tego pytania

Rekomendowane odpowiedzi

  • 0
on rightclick on entity:
    if display name of clicked entity is "&6&lCOBBLEX":
        execute player command "cobblex"
   
command /cobblex:
    trigger:
        open chest with 3 rows named "&5&lCOBBLEX" to player
        loop 27 times:
            set slot loop-number - 1 of player's current inventory to black stained glass pane named " "
            set player's current inventory's slot 10 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x stakow cobblestone||&8&m-------------------------"
            set player's current inventory's slot 13 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &6&lPREMIUM" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l12x cobblexow||&8&m-------------------------"
            set player's current inventory's slot 16 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &5&lULTRA" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x cobblex premium||&8&m-------------------------"

mowa o tym skrypcie :) 

CountingDogs

Wstawiam kod w code.

Notatka dodana przez CountingDogs

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-293861
Udostępnij na innych stronach

  • 0

to o czym xD? Bo gdy klikam duzo cpsow w jeden przedmiot co jest w gui to mi do eq to daje i gdy dam tam ten sam przedmiot "o tej samej nazwie lore itp" to normalnie to tam daje ;d

command /cobblex:
    trigger:
        open chest with 3 rows named "&5&lCOBBLEX" to player
        loop 27 times:
        set slot loop-number - 1 of player's current inventory to black stained glass pane named " "
        set player's current inventory's slot 10 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x stakow cobblestone||&8&m-------------------------"
            set player's current inventory's slot 13 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &6&lPREMIUM" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l12x cobblexow||&8&m-------------------------"
        set player's current inventory's slot 16 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &5&lULTRA" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x cobblex premium||&8&m-------------------------"

tak jak teraz? bo to nie dziala

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-293862
Udostępnij na innych stronach

  • 0
command /cobblex:
    trigger:
        open chest with 3 rows named "&5&lCOBBLEX" to player
        loop 27 times:
            set slot loop-number - 1 of player's current inventory to black stained glass pane named " "
            set player's current inventory's slot 10 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x stakow cobblestone||&8&m-------------------------"
            set player's current inventory's slot 13 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &6&lPREMIUM" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l12x cobblexow||&8&m-------------------------"
            set player's current inventory's slot 16 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &5&lULTRA" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x cobblex premium||&8&m-------------------------"

masz tutaj taką komendę, mowa o 3 ostatnich liniujkach czyli tylko z set player's current inventory's slot 10 , 13 oraz 16, to właśnie je masz przesunąć do tyłu

CountingDogs

Wstawiam kod w code.

Notatka dodana przez CountingDogs

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-293869
Udostępnij na innych stronach

  • 0

@CoFFeIN04
ogarnalem:

command /cobblex:
    trigger:
        open chest with 3 rows named "&5&lCOBBLEX" to player
        loop 27 times:
            set slot loop-number - 1 of player's current inventory to black stained glass pane named " "
        set player's current inventory's slot 10 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x stakow cobblestone||&8&m-------------------------"
        set player's current inventory's slot 13 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &6&lPREMIUM" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l12x cobblexow||&8&m-------------------------"
        set player's current inventory's slot 16 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &5&lULTRA" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x cobblex premium||&8&m-------------------------"

on inventory click:
    name of player's current inventory = "&5&lCOBBLEX"
    clicked inventory is not player's inventory
    if index of clicked slot is 10:
        if amount of cobblestone in player's inventory > 575:
            remove 576 cobblestone from player
            give cobblestone named "&5&lCOBBLEX" to the player
            send "{@tag} &aPrzedmiot wytworzony" to player
        else:
            send "{@tag} &cZa malo przedmiotow!"

ale wiesz co, nadal mam ten sam problem czyli moge wyciagac te przedmioty z gui za pomoca klikaniem 5-6 cps i potem szybko kliknac "e" i moge spowrotem wlozyc tam itemek;(

CountingDogs

Wstawiam kod w code.

Notatka dodana przez CountingDogs

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-293887
Udostępnij na innych stronach

  • 0

@CoFFeIN04

teraz jest tak:

on rightclick on entity:
    if display name of clicked entity is "&6&lCOBBLEX":
        execute player command "cobblex"
        
command /cobblex:
    trigger:
        open chest with 3 rows named "&5&lCOBBLEX" to player
        loop 27 times:
            set slot loop-number - 1 of player's current inventory to black stained glass pane named " "
        set player's current inventory's slot 10 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x stakow cobblestone||&8&m-------------------------"
        set player's current inventory's slot 13 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &6&lPREMIUM" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l12x cobblexow||&8&m-------------------------"
        set player's current inventory's slot 16 to cobblestone of unbreaking 1 named "&a&lCOBBLE&2&lX &5&lULTRA" with lore "&8&m-------------------------||&8&l» &eKliknij lewym przyciskiem||&8&l» &eaby zakupic cobblex za cene||&8&l» &6&l9x cobblex premium||&8&m-------------------------"

on inventory click:
    name of player's current inventory = "&5&lCOBBLEX"
    clicked inventory is not player's inventory
    cancel event
    if index of clicked slot is 10:
        if amount of cobblestone in player's inventory > 575:
            remove 576 cobblestone from player
            give cobblestone named "&5&lCOBBLEX" to the player
            send "{@tag} &aPrzedmiot wytworzony" to player
        else:
            send "{@tag} &cZa malo przedmiotow!"

nadal to samo nie dziala

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-294064
Udostępnij na innych stronach

  • 0

@bludis

Chodzi o to ze skript ktory mi Coffein pomogl napisac na "GUI" dziala nie poprawnie, 

Wszystko dziala oprocz tego ze moge wyciagniac jakis przedmiot z gui za pomoca klikaniem 6-7 cps i potem szybko litere "e" na klawiaturze, do tego moge spowrotem moge tam item odlozyc, pomozesz?

Masz go tu:

 

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-294170
Udostępnij na innych stronach

  • 0

@CoFFeIN04

to samo, nic to nie dalo.

@bludis

chodzi o to ze "Wszystko dziala oprocz tego ze moge wyciagniac jakis przedmiot z gui za pomoca klikaniem 6-7 cps i potem szybko litere "e" na klawiaturze, do tego moge spowrotem moge tam item odlozyc, pomozesz?"

skript:

 

Odnośnik do komentarza
https://skript.pl/temat/46627-coffein-pomoz/#findComment-294205
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...