Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
Sorry for that I did but this time if i put a item on the 50. slot and close menu then open menu it is showing in first empty slot how can i fix it?Man you need to replace %rows% with your chest rows -,-
command /chest:
trigger:
open chest with 6 row named "Chest" to player
wait 5 ticks
while inventory name of player's current inventory is "Chest":
set {_x} to 0
loop 6*9 times:
if slot {_x} of current inventory of player is empty:
set slot {_x} of current inventory of player to {chest.%player%::%loop-number%}
add 1 to {_x}
if {_x} > 54:
stop
stop
on inventory close:
if inventory name of player's current inventory is "Chest":
loop 6*9 times:
set {chest.%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
Here you go. I fixed it up and removed the un-needed while loop. Or are you trying to make a global shared chest?Sorry for that I did but this time if i put a item on the 50. slot and close menu then open menu it is showing in first empty slot how can i fix it?
Edit: I did this but it is so laggy
code_language.skript:command /chest: trigger: open chest with 6 row named "Chest" to player wait 5 ticks while inventory name of player's current inventory is "Chest": set {_x} to 0 loop 6*9 times: if slot {_x} of current inventory of player is empty: set slot {_x} of current inventory of player to {chest.%player%::%loop-number%} add 1 to {_x} if {_x} > 54: stop stop on inventory close: if inventory name of player's current inventory is "Chest": loop 6*9 times: set {chest.%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
command /chest:
trigger:
open "CHEST" with 6 row named "&4&lChest" to player
loop integers between 0 and inventory size of player's current inventory times:
if slot loop-number of current inventory of player is empty:
set slot loop-number of current inventory of player to {chest::%player%::slot::%loop-number%}
on inventory close:
if inventory name of player's current inventory is "&4&lChest":
loop integers between 0 and inventory size of event-inventory times:
set {chest::%player%::slot::%loop-number%} to slot loop-number of event-inventory
I want this skript for personal chest. Latest Bensku's edit errors:Here you go. I fixed it up and removed the un-needed while loop. Or are you trying to make a global shared chest?
Needs Bensku's edit dev-25 or higher as it contains the fixes I add for the inventory close event.code_language.skript:command /chest: trigger: open "CHEST" with 6 row named "&4&lChest" to player loop integers between 0 and inventory size of player's current inventory times: if slot loop-number of current inventory of player is empty: set slot loop-number of current inventory of player to {chest::%player%::slot::%loop-number%} on inventory close: if inventory name of player's current inventory is "&4&lChest": loop integers between 0 and inventory size of event-inventory times: set {chest::%player%::slot::%loop-number%} to slot loop-number of event-inventory
[19:25:44 ERROR]: 'integers between 0 and <...>' can only accept a single number, not more (sandik.sk, line 4: loop integers between 0 and inventory size of player's current inventory times:')
[19:25:44 ERROR]: 'integers between 0 and <...>' can only accept a single number, not more (sandik.sk, line 9: loop integers between 0 and inventory size of event-inventory times:')
Sorry, remove the word times at the endI want this skript for personal chest. Latest Bensku's edit errors:
code_language.skript:[19:25:44 ERROR]: 'integers between 0 and <...>' can only accept a single number, not more (sandik.sk, line 4: loop integers between 0 and inventory size of player's current inventory times:') [19:25:44 ERROR]: 'integers between 0 and <...>' can only accept a single number, not more (sandik.sk, line 9: loop integers between 0 and inventory size of event-inventory times:')
Fixes for SkellettProxy and adds server switch event
code_language.skript:[on] (skellett[ ][(cord|proxy)]|bungee[ ][cord]) [player] switch server[s] [on] (skellett[ ][(cord|proxy)]|bungee[ ][cord]) [player] server[s] switch
This version needs SkellettProxy 1.3.2 in order to run!
Here is a function that makes creating scoreboards simple.Can you give me an example of Stylish Scoreboard? Your example script code was to hard to understand because it using variables, looping, and there is no documents stating on how to use it. For example, how to create scoreboards, creating multiple scoreboards, showing a certain scoreboard to a player, how to create lines on the scoreboard, how to set a text on the scores/line. Your SimpleBoard script is just one scoreboard, and you can't anything else without editing the config. Please help
function createBoard(p: player, t: text, size: integer = 15):
add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*}
if stylish scoreboard "%{_t}%-%{_p}%" does not exist:
create new stylish scoreboard named "%{_t}%-%{_p}%"
loop {_size} times:
create a new id based score "%{_p}%Slot%loop-number%" with text "%{_d::%loop-number%}%" slot loop-number for stylish scoreboard "%{_t}%-%{_p}%"
function deleteBoard(p: player, t: text):
loop 15 times:
delete the id based score "%{_p}%Slot%loop-number%" in stylish scoreboard "%{_t}%-%{_p}%"
delete stylish scoreboard "%{_t}%-%{_p}%"
function setSlot(p: player, board: text, slot: integer, t: text):
add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*}
if {_slot} is between 1 and 15:
set text of id "%{_p}%Slot%{_slot}%" to "%{_d::%{_slot}%}%%{_t}%"
function updateBoard(p: player):
setSlot({_p}, "Test", 1, "&c&lThis is slot 1")
setSlot({_p}, "Test", 15, "&c&lThis is slot 15")
setSlot({_p}, "Test", 5, "&c&lThis is slot 5")
on join:
createBoard(player, "Test", 15) #Creates a board with 15 slots named "Test"
set title of stylish scoreboard "Test-%player%" to "&dLol"
set stylish scoreboard of player to "Test-%player%"
while player is online:
updateBoard(player)
wait a second
on quit:
deleteBoard(player)
Make the username of the PLAYER the skin you want.@LimeGlass
How would I change the skin of a player disguise?
Example:
set {_d} to new disguise with type PLAYER with user name "&4Cool Name"
disguise next as {_d}
I'd like to make a zombie disguise as a player with the player's skin.
set {_d} to new disguise with type PLAYER with user name "SkyTheKidRS"
disguise next entity as {_d}
set {_e} to entity of disguise {_d}
set display name of {_e} to "&4Cool name"
Make the username of the PLAYER the skin you want.
Then set it's display name.
code_language.skript:set {_d} to new disguise with type PLAYER with user name "SkyTheKidRS" disguise next entity as {_d} set {_e} to entity of disguise {_d} set display name of {_e} to "&4Cool name"
set {_d} to new disguise with type PLAYER with user name "TheDiamondCart"
disguise next entity as {_d}
set {_e} to entity of disguise {_d}
set display name of {_e} to "&4VerloreneSeele"
spawn 1 of zombie at {_loc}
What does this do differently than a normal scoreboard?Here is a function that makes creating scoreboards simple.
and here is an example code using it:code_language.skript:function createBoard(p: player, t: text, size: integer = 15): add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*} if stylish scoreboard "%{_t}%-%{_p}%" does not exist: create new stylish scoreboard named "%{_t}%-%{_p}%" loop {_size} times: create a new id based score "%{_p}%Slot%loop-number%" with text "%{_d::%loop-number%}%" slot loop-number for stylish scoreboard "%{_t}%-%{_p}%" function deleteBoard(p: player, t: text): loop 15 times: delete the id based score "%{_p}%Slot%loop-number%" in stylish scoreboard "%{_t}%-%{_p}%" delete stylish scoreboard "%{_t}%-%{_p}%" function setSlot(p: player, board: text, slot: integer, t: text): add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*} if {_slot} is between 1 and 15: set text of id "%{_p}%Slot%{_slot}%" to "%{_d::%{_slot}%}%%{_t}%"
code_language.skript:function updateBoard(p: player): setSlot({_p}, "Test", 1, "&c&lThis is slot 1") setSlot({_p}, "Test", 15, "&c&lThis is slot 15") setSlot({_p}, "Test", 5, "&c&lThis is slot 5") on join: createBoard(player, "Test", 15) #Creates a board with 15 slots named "Test" set title of stylish scoreboard "Test-%player%" to "&dLol" set stylish scoreboard of player to "Test-%player%" while player is online: updateBoard(player) wait a second on quit: deleteBoard(player)
[06:20:53 INFO]: [Skellett] Enabling Skellett v1.9.1
[06:20:53 INFO]: [Skellett] config.yml not found, generating a new config!
[06:20:53 INFO]: [Skellett] CustomEvents.yml not found, generating a new config!
[06:20:53 INFO]: [Skellett] SkellettProxy.yml not found, generating a new file!
[06:20:53 INFO]: [Skellett] MySQL.yml not found, generating a new file!
[06:20:53 INFO]: [Skellett] Syntax.yml not found, generating a new file!
[06:20:53 INFO]: [Skellett] SyntaxToggles.yml not found, generating a new file!
[06:20:53 WARN]: org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2480
[06:20:53 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57)
[06:20:53 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226)
[06:20:53 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169)
[06:20:53 WARN]: at com.gmail.thelimeglass.Skellett.onEnable(Skellett.java:186)
[06:20:53 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316)
[06:20:53 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:368)
[06:20:53 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:410)
[06:20:53 WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:438)
[06:20:53 WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:372)
[06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:519)
[06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:493)
[06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:453)
[06:20:53 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:337)
[06:20:53 WARN]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:643)
[06:20:53 WARN]: at java.lang.Thread.run(Thread.java:745)
[06:20:53 WARN]: Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
in "<string>", position 2480
[06:20:53 WARN]: at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
[06:20:53 WARN]: at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
[06:20:53 WARN]: at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
[06:20:53 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
[06:20:53 WARN]: ... 14 more
[06:20:55 INFO]: [Skellett] Registered 1 Effects, 0 Conditions, 1 Expressions and 2 Events
[06:20:55 INFO]: [Skellett] Has been enabled!
1.7 is long unsupported for Spigot. I don't think Skript supports it.There is a problem
This server is running Thermos | https://github.com/CyberdyneCC/Thermos | 1.7.10-R0.1-SNAPSHOT | 1.7.10-1614.58 (MC: 1.7.10)
Hope to repair! I really need this
Code:[06:20:53 INFO]: [Skellett] Enabling Skellett v1.9.1 [06:20:53 INFO]: [Skellett] config.yml not found, generating a new config! [06:20:53 INFO]: [Skellett] CustomEvents.yml not found, generating a new config! [06:20:53 INFO]: [Skellett] SkellettProxy.yml not found, generating a new file! [06:20:53 INFO]: [Skellett] MySQL.yml not found, generating a new file! [06:20:53 INFO]: [Skellett] Syntax.yml not found, generating a new file! [06:20:53 INFO]: [Skellett] SyntaxToggles.yml not found, generating a new file! [06:20:53 WARN]: org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 2480 [06:20:53 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) [06:20:53 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) [06:20:53 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) [06:20:53 WARN]: at com.gmail.thelimeglass.Skellett.onEnable(Skellett.java:186) [06:20:53 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [06:20:53 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:368) [06:20:53 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:410) [06:20:53 WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:438) [06:20:53 WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:372) [06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:519) [06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:493) [06:20:53 WARN]: at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:453) [06:20:53 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:337) [06:20:53 WARN]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:643) [06:20:53 WARN]: at java.lang.Thread.run(Thread.java:745) [06:20:53 WARN]: Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 2480 [06:20:53 WARN]: at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) [06:20:53 WARN]: at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) [06:20:53 WARN]: at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) [06:20:53 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) [06:20:53 WARN]: ... 14 more [06:20:55 INFO]: [Skellett] Registered 1 Effects, 0 Conditions, 1 Expressions and 2 Events [06:20:55 INFO]: [Skellett] Has been enabled!
Normal? Like full scoreboards http://skunity.com/search?search=full+scoreboards# vs Stylish scoreboards?What does this do differently than a normal scoreboard?
How do I cancel the event on left click on a Citizens NPC?
on damage of npc:
cancel event
on damage of npc:
if id of npc event-citizen is 1:
cancel event
code_language.skript:on damage of npc: cancel event
code_language.skript:on damage of npc: if id of npc event-citizen is 1: cancel event
Message to everyone else reading this:
1.12 Info: The latest version of Skellett works fine in 1.12