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%} parsed as item
set slot 13 of {_gui} to {Amulet2::%player%} parsed as item
set slot 15 of {_gui} to {Amulet3::%player%} parsed as item
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":
if clicked slot is 11 or 13 or 15:
send "tak" to player
else:
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}
send "%{Amulet1::%player%}%"
Menu(player)
i zamiast nazwy itemu to wysyła mi "<none>" próbowałem też "send "%Amulet1::player%" ale i tak wyświetla "<none>"
Pytanie
TheVloryn6336 0
mam taki oto 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%} parsed as item set slot 13 of {_gui} to {Amulet2::%player%} parsed as item set slot 15 of {_gui} to {Amulet3::%player%} parsed as item 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": if clicked slot is 11 or 13 or 15: send "tak" to player else: 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} send "%{Amulet1::%player%}%" Menu(player)
i zamiast nazwy itemu to wysyła mi "<none>" próbowałem też "send "%Amulet1::player%" ale i tak wyświetla "<none>"
Odnośnik do komentarza
Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi