on inventory click:
name of player's current inventory = "&8» &7&lSKLEP - BLOKI ¹"
clicked inventory is not player's inventory
cancel event
if clicked slot is 51:
execute player command "/sklep bloki2"
if clicked slot is 10:
set {_buy1} to (substring of (line 2 of clicked slot's lore) from characters 20 to (length of (line 2 of player's clicked slot's lore) - 5)) parsed as integer
set {_buy64} to (substring of (line 3 of clicked slot's lore) from characters 20 to (length of (line 3 of clicked slot's lore) - 5)) parsed as integer
set {_sell1} to (substring of (line 4 of clicked slot's lore) from characters 25 to (length of (line 4 of clicked slot's lore) - 5)) parsed as integer
set {_sell64} to (substring of (line 5 of clicked slot's lore) from characters 25 to (length of (line 5 of clicked slot's lore) - 5)) parsed as integer
send "1x%{_buy1}% 64x%{_buy64}% - 1x%{_sell1}% 64x%{_sell64}%"
siema, mam cos takiego i chcialbym zeby te zmienne ustawialy sie na odpowiednią wartość z lore kliknietego itemu z gui, lecz no nie dziala mi (zadnych errorów przy reloadzie)
Pytanie
the_kakus 9
on inventory click: name of player's current inventory = "&8» &7&lSKLEP - BLOKI ¹" clicked inventory is not player's inventory cancel event if clicked slot is 51: execute player command "/sklep bloki2" if clicked slot is 10: set {_buy1} to (substring of (line 2 of clicked slot's lore) from characters 20 to (length of (line 2 of player's clicked slot's lore) - 5)) parsed as integer set {_buy64} to (substring of (line 3 of clicked slot's lore) from characters 20 to (length of (line 3 of clicked slot's lore) - 5)) parsed as integer set {_sell1} to (substring of (line 4 of clicked slot's lore) from characters 25 to (length of (line 4 of clicked slot's lore) - 5)) parsed as integer set {_sell64} to (substring of (line 5 of clicked slot's lore) from characters 25 to (length of (line 5 of clicked slot's lore) - 5)) parsed as integer send "1x%{_buy1}% 64x%{_buy64}% - 1x%{_sell1}% 64x%{_sell64}%"siema, mam cos takiego i chcialbym zeby te zmienne ustawialy sie na odpowiednią wartość z lore kliknietego itemu z gui, lecz no nie dziala mi
(zadnych errorów przy reloadzie)
Odnośnik do komentarza
https://skript.pl/temat/46444-guiiiii/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi