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

    add arg-3 to {coins::bal::%arg-2%} is not working for me ;( help

    How are you using the command? What's the error? What is displayed? I can't tell anything from "is not working"... :emoji_rolling_eyes: I missed that you can also use number (= parsed as number) - not only an integer.
  2. Nikd0

    Solved Teleport many players around a location

    Nope. Have you read the example? The random block is picked for each person individually.
  3. Nikd0

    Get the variable with the highest value?

    I would recommend you to use arrays: {votes::%player%} loop {votes::*}: if {_best} is not set: set {_best} to {votes::%loop-index%} set {_bestplayer} to "%loop-index%" continue if {votes::%loop-index%} > {_best}: set {_best} to {votes::%loop-index%}...
  4. Nikd0

    Compare with dropped item

    You can try debugging. Put this into the loop: broadcast "%loop-entity%" (You can use also "send" of course.) You'll get all the entities' names in the chat. Then you can compare it with your code.
  5. Nikd0

    Solved Night Time

    There is nothing like "players sleeping". However, you can count players in the bed using a variable: on bed enter: add 1 to {inbed} on bed leave: remove 1 from {inbed} Then, you can get the number of sleeping players from the variable: at 18:00: if {inbed} >= 2: #do your...
  6. Nikd0

    add arg-3 to {coins::bal::%arg-2%} is not working for me ;( help

    You can't add text to a variable. Only an integer: set {antal.%arg-2%} to arg-3 parsed as integer (You can add text only into a text list/array - add "sth" to {myvar::*})
  7. Nikd0

    Solved Teleport many players around a location

    Use this code: loop blocks in radius %your integer radius% around %your location%: add location of loop-block to {_blocks::*} set {_b} to random element of {_blocks::*}
  8. Nikd0

    Solved Skript minigame need code for arena start

    insert after line 16: if {dg.players.%arg 2%} = 2: execute console comand "yourcommand start %arg-2%" #or copy and paste the code 'set {dgstart.arena.%arg 2%} to true' etc. here Pokud něco vkládáš na skUnity, doporučil bych radši i texty přeložit. Pro ostatní to bude lepší ;) I hope...
  9. Nikd0

    What is wrong with this skript?

    I would not recommend this cause it may be shorter and easier, but if you use the condition, you can easily customize messages etc.
  10. Nikd0

    Error with mysql in SkQuery (1.12.2)

    I have also tried using skQuery MySQL recently and found out that it is WAY better to use skript-db. https://github.com/btk5h/skript-db It is easy to use. An example of usage: on load: set {sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"...
  11. Nikd0

    What is wrong with this skript?

    Where did you find or who told you to use do nothing?! Just remove the condition! trigger: if sender is console: if arg-1 is "ultimanianpickaxe": give arg-2 1 diamond chestplate of protection 4 and thorns 2 with hidden enchants flag named "&7Ultimanian...
  12. Nikd0

    Gui not working?! wutt?! With TUske

    Probably? make gui slot 0 with diamond to close then run: send "help"
  13. Nikd0

    Solved CustomItems plugin and give

    I don't think something like this is possible, but I know a way, how to do the same thing, different. First, create a temporary command/event command to set your item into a variable: on command "/myitem": cancel event set {diamondnugget} to player's held item Then, clear this command...
  14. Nikd0

    Click on Sign?

    First, try just the event on right click on a sign: Then, try debugging. Maybe the line != what you've written. You can try some of these: send "%line 1 of event-block%" #... line 1 of event-block is "&6Buy Sharpness" send "a" line 2 of event-block is "&d45 &6Coins" send "b"
  15. Nikd0

    MySQL - CLOSE

    Skript version: 2.5.1 (MC version 1.13.2) Full code: script options: $ init com.mysql.jdbc.Driver $ db url jdbc:mysql://**** $ db username **** $ db password **** command /test <text>: trigger: set {_result::*} to objects in column "coins" from result of query...
  16. Nikd0

    Detecting Players Location

    there are no event-blocks in the event, there is no player in the event! wouldn't it be easier to make a region and then: loop all players: if loop-player is in region "your_region": #... you can also make on enter "your_region": #...
  17. Nikd0

    Solved Loop Variable

    What about this? send "&4&l[SYSTEM] Ok message." to {party.%{Ownerofparty.%player%}%.list::%loop-index%} So it would be: add {_drops::*} to inventory of {party.%{Ownerofparty.%attacker%}%.list::%loop-index%}
  18. Nikd0

    Can't Loop Barrier Block

    If you have fixed your problem, mark your thread as solved.
  19. Nikd0

    Code doesn't work )):

    If I were you, I would not create variable {blockplaced::%location of block at loop-block%} and instead of it asked the skript: if {blockOwner::%location of event-block%} is set: Then I would recommend you to make a list of locations, then it's easy to clear: on place: set...
  20. Nikd0

    :)

    :)