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. B

    Skript autocompact not working

    yes that would work as well, but I suggest putting that line at the very end of the while loop so that all of the lines inside of the loop run first, and then you disable it
  2. B

    Need to cancel player drops every 1 minute

    This code would not work for players who have joined after the canceldrop variable has been turned on. Instead, set a global variable with no players and check for that. every 1 minute: set {cancelDrops} to true wait 10 seconds clear {cancelDrops} on drop: if {cancelDrops} is...
  3. B

    Solved Dye on zombie Spawn

    No problem at all, and I'm glad that I was able to help you out!
  4. B

    Skript autocompact not working

    It's because you have a while statement that is always true, so it is making an infinite loop, which crashes your server. You have set the variable {loop} to 1 just before the while loop, and inside the loop you never change the value. You need to include a line somewhere inside of the loop so...
  5. B

    Solved Get the player to send a random variable

    You are not putting % symbols around the variable, so the skript thinks its just another text. Instead, use this: "/setlore &7Matricola: &a%{_random}%" However, this might result in some items (or in your case guns) having the same "id" so instead you might want to make a global variable and...
  6. B

    Skript autocompact not working

    options: {autocompact::%player%} = 0 This is the error. You are setting it in the options where no players are defined. If you want it to be disabled when a player joins, you need to set that variable to 0 using the "on join" event. Also, there is indentation issues on your skript starting from...
  7. B

    Npc Trade/Shop

    You could always use the ShopKeepers plugin which does exactly what you are looking for AND its much easier to use than with skript
  8. B

    Solved Dye on zombie Spawn

    If nothing else works, you could always set the nbt of that item to red, so it would be something like this: every 15 seconds: loop all players: spawn zombie at looped-player's location set {_boots} to leather boots of protection 5 add "{display:{color:11546150}}"...
  9. B

    Solved Please help me complete my skript.

    why are you trying to alter the inventory of a player after they have closed it? Did you mean to use "on inventory open:"? also, you didn't set the variable {_player} to anything beforehand, so just before the loop it should be like this: set {_number} to 1 loop 54 times: set slot {_player}...
  10. B

    Solved On item receive?

    If you are looking to set the lore of an item that has been already spawned, you can set the lore of that item itself instead of setting it when a player receives it (as there is no event like the one you are describing). However, you could also check all player's inventory every second and if...
  11. B

    Solved Zombie Level System

    You will need to create a custom formula for that. You can set a variable such as {_price} and then set that to 2*{@xpPerLevel} if you want it to go up by 50 each time (as an example).
  12. B

    from highest to lowest with format

    As of currently, there is no method of custom sorting a list as you try to do in the skript, there is only in ascending order or descending order. Here is the new file:
  13. B

    Hiring Looking for someone to skript cutsom teams/scatter/spec for a UHC Server

    @prodcautious if you are still looking for this to be made, shoot me a dm on my discord: BanditEagl3#4375
  14. B

    On shoot: event

    While using the "on shoot" event, using "shooter" would let you specify it. For example: on shoot: if projectile is an arrow: send "you shot an arrow!" to shooter
  15. B

    Solved Zombie Level System

    I think this should work. The skript parser returned no errors, but if something doesn't work lmk. options: xpPerKill: 5 xpPerLevel: 50 on join: if {xp::%player's uuid%} isn't set: set {xp::%player's uuid%} to 0 if {level::%player's uuid%} isn't set: set...
  16. B

    from highest to lowest with format

    Use these examples to help solve your code: set {_leader-board::first} to 17 set {_leader-board::third} to 30 set {_leader-board::second} to 25 set {_leader-board::fourth} to 42 set {_ascending-indices::*} to sorted indices of {_leader-board::*} in ascending order broadcast...
  17. B

    Probleme de variable sur un give

    Try this: every 5 seconds: loop all players: add 10 to {number::%loop-player%} give loop-player {number::%loop-player%} dirt named "dirt"