Search results

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  1. Dave

    Get potion effect duration

    You can try MirrorUtils https://forums.skunity.com/resources/mirrorutils.706/ (you need skript-mirror) and use the following syntax: duration of [potion] [effect] %potiontype% (on|of) %players% duration of speed of player
  2. Dave

    On place of a modifiable list of blocks

    wrong usage of variables for list you need to use ''::*}'' and the end of the variable for multiples elements in it example on load: set {blocks::*} to all blocks stop on unload: delete {blocks::*} stop on place: if {blocks::*} contains event-block: #do stuff...
  3. Dave

    Is MySQL even possible on 1.12.2 spigot?

    I made this example in less than 3 minutes, but I think this will work script options: $ init com.mysql.jdbc.Driver $ db url jdbc:mysql://localhost:3306/yourdatabase $ db username youruser # default is 'root' $ db password yourpssword on load: # create a table update...
  4. Dave

    Solved Scoreboard / Sidebar

    you're welcome1!!
  5. Dave

    Solved Scoreboard / Sidebar

    The scoreboard starts from 0 = 1 to 8 = 9 Addon: SkRayFall https://forums.skunity.com/resources/skrayfall.259/ on join: wipe player's sidebar wait 1 tick set name of sidebar of player to "&6&lOP Prison" create id score "&dTokens: &3%{Tokens.%player's uuid%}%" in sidebar of player...
  6. Dave

    TeamSkript

    remove ur ts3 credentials from the code RIGHT NOW
  7. Dave

    Backpack

    it works for me function openBackpack(p: player): wait 1 tick open chest with 1 row named "Backpack" to {_p} loop 9 times: set slot (loop-number -1) of {_p}'s current inventory to {backpack.%{_p}%.%loop-number -1%} on rightclick: if player's tool is chest...
  8. Dave

    Solved Strange console error when attempting to write YAML Files?

    code? also, i dont recommend u to use wildskript, its a really bad addon
  9. Dave

    how to use variables on wait {gg} second

    you can XD, just change <timespan> to <integer> and will work without problems wait arg-2 minutes
  10. Dave

    Detecting a gui slot

    try using skquery-lime by limeglass, its rlly weird tbh
  11. Dave

    Skript crashes when using Skematic

    Use regenerators based on ID from Skellet, take this thread as example https://forums.skunity.com/threads/reseting-prison-mines.11684/#post-50021
  12. Dave

    Detecting a gui slot

    wtf, skript version? skquery version? server version? but, is there any error on load or something else?
  13. Dave

    Detecting a gui slot

    no, im not
  14. Dave

    Detecting a gui slot

    I did an error, i fixed example https://gyazo.com/6de2c1aa64c8c1c7590ab5424a617ac7 command /x: trigger: wait 1 tick open chest with 2 row named "&c&lSpell forge" to player set slot 13 of player's current inventory to torch named "&fTorch" on inventory click: if...
  15. Dave

    Detecting a gui slot

    Wrong usage, u forget '':'' and tab (4 spaces) if {_spellforgeitem} = "&fTorch": send "%{_spellforgeitem}%"
  16. Dave

    Detecting a gui slot

    don't use ''lore'' to detecting items, just the name of clicked item dont use player's cursor, too, i think doesnt work propertly i changed these values and it works set {_spellforgeitem} to clicked item # (instead of player's cursor) if {_spellforgeitem} = "&fTorch": #instead of ''name of...
  17. Dave

    Detecting a gui slot

    ye but dont use ''if lore...'' because detecting lore always results in error, doesnt works correctly, just use: if name of is/contains, if clicked item/slot, if etc is/contains
  18. Dave

    Detecting a gui slot

    no, vanilla gui works with inventory clicks on inventory click: if inventory name.... cancel event # if u wanna make the item unstealable #do stuff I recommend u to use Vanilla guis cuz its way better (confirmed) than SkQuery. You dont even need to use ''wait...'' in vanilla guis
  19. Dave

    Detecting a gui slot

    you're using ''format slot'' from skquery that doesnt works correctly, also you're using ''to close'' at the end so inventory clicks actions doesnt works, change it to ''to be unstealable'' or a better way is using vanilla format slot set slot <int> of <target>'s current inventory to [amount]...
  20. Dave

    Detecting a gui slot

    Correcty way command /mpsf: permission: minepvp.spellforge permission message: &cYou are not in the right lobby/game to do this! trigger: wait 1 tick open chest with 3 rows named "&c&lSpell Forge" to player wait 1 tick format slot 0 of player...