on inventory click:
event-inventory is not player's inventory
if name of event-inventory is "Akcje":
cancel event
if clicked slot is 12:
Otworz(player)
if clicked slot is 14:
set {_gui} to chest inventory with 3 rows named "Ekwipunek"
set {_nr} to 0
loop 36 times:
set slot {_nr} of {_gui} to black glass pane named "&3..."
add 1 to {_nr}
set slot 11 of {_gui} to air
set slot 13 of {_gui} to air
set slot 15 of {_gui} to air
set slot 11 of {_gui} to {Amulet1::%player%}
set slot 13 of {_gui} to {Amulet2::%player%}
set slot 15 of {_gui} to {Amulet3::%player%}
set slot 22 of {_gui} to green glass pane named "&azapisz"
close {_g}'s inventory
open {_gui} to player
on inventory click:
event-inventory is not player's inventory
if name of event-inventory is "Ekwipunek":
cancel event
if clicked slot is 22:
set {Amulet1::%player%} to slot 11 of {_gui}
set {Amulet2::%player%} to slot 13 of {_gui}
set {Amulet3::%player%} to slot 15 of {_gui}
i chciał bym zrobić tak żeby można było wkładać i wyciągać itemy z 11 13 i 15 slotu
Pytanie
TheVloryn6336 0
Mam taki kod
on inventory click: event-inventory is not player's inventory if name of event-inventory is "Akcje": cancel event if clicked slot is 12: Otworz(player) if clicked slot is 14: set {_gui} to chest inventory with 3 rows named "Ekwipunek" set {_nr} to 0 loop 36 times: set slot {_nr} of {_gui} to black glass pane named "&3..." add 1 to {_nr} set slot 11 of {_gui} to air set slot 13 of {_gui} to air set slot 15 of {_gui} to air set slot 11 of {_gui} to {Amulet1::%player%} set slot 13 of {_gui} to {Amulet2::%player%} set slot 15 of {_gui} to {Amulet3::%player%} set slot 22 of {_gui} to green glass pane named "&azapisz" close {_g}'s inventory open {_gui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "Ekwipunek": cancel event if clicked slot is 22: set {Amulet1::%player%} to slot 11 of {_gui} set {Amulet2::%player%} to slot 13 of {_gui} set {Amulet3::%player%} to slot 15 of {_gui}
i chciał bym zrobić tak żeby można było wkładać i wyciągać itemy z 11 13 i 15 slotu
Odnośnik do komentarza
Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi