You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`function tagsGUI(p: player, page: integer=1):
create a gui with chest inventory with 6 rows named "Tags":
make gui slots (integers between 0 to 53) with black stained glass pane named "&8"
make gui slots (integers between 10 and 16 and integers between 19 and 25 and integers between 28 and 34 and integers between 37 and 43) with stone button named "&8"
if {_page} is 1:
make gui slot 47 with red dye named "&aNo previous pages"
else:
make gui slot 47 with arrow named "&aPrevious Page":
tagsGUI({_p}, ({_page} - 1))
if size of {reactions::messages::register::%{_category}%::*} > 28:
make gui slot 51 with arrow named "&aNext Page":
tagsGUI({_p}, ({_page} + 1))
else:
make gui slot 51 with red dye named "&aNo more pages"
make gui slot 49 with barrier named "&aBack":
close {_p}'s inventory
set {_start_index} to 1 + (-28 + (28 * {_page}))
set {_end_index} to {_page} * 28
set {_slot} to 10
loop all integers between {_start_index} and {_end_index}:
set {_id} to loop-value
exit loop if {-tags::register::%{_id}%} is not set
showTag({_p}, {_id}, {_slot})
add 1 to {_slot}
if {_slot} = (17, 26, or 35):
add 2 to {_slot}
else if {_slot} = 44:
exit loop
open the created gui to {_p}
function showTag(p: player, id: integer, slot: integer):
edit gui of {_p}:
set {_tag} to name tag named "&x&F&F&1&3&6&9ᴛᴀɢ ᴘʀᴇᴠɪᴇᴡ"
add "&8" and "&x&F&F&1&3&6&9• %colored prefix of {_p}%&r%{-tags::register::%{_id}%::tag}% &r&f%{_p}% &8» %{stats::chatcolor::%{_p}'s uuid%} ? "&f"%Hi" to lore of {_tag}
add "&8" and "&x&F&F&1&3&6&9ʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ᴇǫᴜɪᴘ " to lore of {_tag}
if {_p} has permission "tags.%{-tags::register::%{_id}%::uncolored-tag}%":
make gui slot {_slot} with {_tag}:
setTag({_p}, {_id})
close {_p}'s inventory
send "{@Prefix} You've selected the tag %{-tags::register::%{_id}%::tag}%&f."`
Expected Behavior
To set the slot to a name tag for the tags
Errors / Screenshots
No errors,
Server Information
Server version/platform:
skript-gui version:
Skript version:
Additional Context
The text was updated successfully, but these errors were encountered:
Description
When using
edit gui of player
, nothing happens.Steps to Reproduce
`function tagsGUI(p: player, page: integer=1):
create a gui with chest inventory with 6 rows named "Tags":
make gui slots (integers between 0 to 53) with black stained glass pane named "&8"
make gui slots (integers between 10 and 16 and integers between 19 and 25 and integers between 28 and 34 and integers between 37 and 43) with stone button named "&8"
if {_page} is 1:
make gui slot 47 with red dye named "&aNo previous pages"
else:
make gui slot 47 with arrow named "&aPrevious Page":
tagsGUI({_p}, ({_page} - 1))
if size of {reactions::messages::register::%{_category}%::*} > 28:
make gui slot 51 with arrow named "&aNext Page":
tagsGUI({_p}, ({_page} + 1))
else:
make gui slot 51 with red dye named "&aNo more pages"
make gui slot 49 with barrier named "&aBack":
close {_p}'s inventory
set {_start_index} to 1 + (-28 + (28 * {_page}))
set {_end_index} to {_page} * 28
set {_slot} to 10
loop all integers between {_start_index} and {_end_index}:
set {_id} to loop-value
exit loop if {-tags::register::%{_id}%} is not set
showTag({_p}, {_id}, {_slot})
add 1 to {_slot}
if {_slot} = (17, 26, or 35):
add 2 to {_slot}
else if {_slot} = 44:
exit loop
open the created gui to {_p}
function showTag(p: player, id: integer, slot: integer):
edit gui of {_p}:
set {_tag} to name tag named "&x&F&F&1&3&6&9ᴛᴀɢ ᴘʀᴇᴠɪᴇᴡ"
add "&8" and "&x&F&F&1&3&6&9• %colored prefix of {_p}%&r%{-tags::register::%{_id}%::tag}% &r&f%{_p}% &8» %{stats::chatcolor::%{_p}'s uuid%} ? "&f"%Hi" to lore of {_tag}
add "&8" and "&x&F&F&1&3&6&9ʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ᴇǫᴜɪᴘ " to lore of {_tag}
if {_p} has permission "tags.%{-tags::register::%{_id}%::uncolored-tag}%":
make gui slot {_slot} with {_tag}:
setTag({_p}, {_id})
close {_p}'s inventory
send "{@Prefix} You've selected the tag %{-tags::register::%{_id}%::tag}%&f."`
Expected Behavior
To set the slot to a name tag for the tags
Errors / Screenshots
No errors,
Server Information
Additional Context
The text was updated successfully, but these errors were encountered: