nie dziala mi on inventory click: w funkcji log: "can't understand this section: on inventory click"
function setBuyAmount(n: number, i: text, p: player) :
open a new chest inventory with 3 rows named "&7Wybierz ilosc" to {_p}
set slot 10 of {_p}'s inventory to lime stained glass pane named "&a+1"
set slot 11 of {_p}'s inventory to lime stained glass pane named "&a+10"
set slot 12 of {_p}'s inventory to lime stained glass pane named "&a+100"
set slot 13 of {_p}'s inventory to {_i} named "&7%{_i}%" with lore "&7Wybrana ilosc: &8%{_setAmount::%{_p}%}%" and "&7Cena: %( {_n} * {_setAmount::%{_p}%} )%"
on inventory click:
if name of event-inventory is "&7Wybierz ilosc":
if index of event-slot is 10:
set slot 13 of {_p}'s inventory to {_i} named "&7%{_i}%" with lore "&7Wybrana ilosc: &8%{_setAmount::%{_p}%}%"
add 1 to {_setAmount::%{_p}%}
if index of event-slot is 11:
set slot 13 of {_p}'s inventory to {_i} named "&7%{_i}%" with lore "&7Wybrana ilosc: &8%{_setAmount::%{_p}%}%"
add 10 to {_setAmount::%{_p}%}
if index of event-slot is 12:
set slot 13 of {_p}'s inventory to {_i} named "&7%{_i}%" with lore "&7Wybrana ilosc: &8%{_setAmount::%{_p}%}%"
add 100 to {_setAmount::%{_p}%}