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

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

  1. CreeperOverLord7

    Skript doesn't tell apart offline players' name

    If you can make an HTTP GET request with Skript, use the Mojang API to check whether an account with a certain name exists. wiki: https://wiki.vg/Mojang_API#Username_to_UUID example: 1. https://api.mojang.com/users/profiles/minecraft/namehere returns the UUID of the account that has the name...
  2. CreeperOverLord7

    Solved Different variables are seemingly the same

    I managed to fix this, although not sure about exactly what is happening with the {a} and {b} indexes. I tried this with long strings of other characters (like UUIDs), and they seemed to work, so the problem is that the index contains a very large number. The fix was splitting up the numbers...
  3. CreeperOverLord7

    Solved Different variables are seemingly the same

    Skript Version: 2.6.1 Skript Authors: Njol, Mirreski, SkriptLang Team and Contributors Minecraft Version: 1.16.5 (Paper version git-Paper-794) Full Code: # set a and b set {a} to...
  4. CreeperOverLord7

    API JSON Parser 1.0

    Please use skript-json over this if you can Required Addons: SkQuery Tested Versions: PaperSpigot 1.12.2, Skript 2.2-dev36, SkQuery 3.6.0-Lime Parse JSON in Skript with minimal addons. A slow, inefficient, trash parser. Usage: Don't mess with functions named as 'JSON___f___()' Use functions...
  5. CreeperOverLord7

    JSON Parser

    Please use skript-json over this if you can Required Addons: SkQuery Tested Versions: PaperSpigot 1.12.2, Skript 2.2-dev36, SkQuery 3.6.0-Lime Parse JSON in Skript with minimal addons. A slow, inefficient, trash parser. Usage: Don't mess with functions named as 'JSON___f___()' Use functions...
  6. CreeperOverLord7

    Solved Special characters in string

    I am using it to parse a string that can have escaped characters, inside of Skript. Please inform me if there is a way to directly do that. E.g. set {_str} to "hello\nthis is the next line\rafter carriage return\nA double right arrow: \u00BB" broadcast {_str} #output with \ processed as...
  7. CreeperOverLord7

    Solved Special characters in string

    How can I put special character such as \r, \f, \b, etc. in a string? set {_myString} to "\r" send {_myString} # outputs "\r" I want it to output the actual \r (CARRIAGE RETURN) character rather than the literal text "\r", without using skript-mirror if possible. I know that skript has newline...
  8. CreeperOverLord7

    Click Type: 'number key'

    There is a click type in skript called 'number key' https://skriptlang.github.io/Skript/classes.html#clicktype I want to get the actual number pressed (1-9) in an inventory click event, but using the click type expression only gives me that a number key was pressed. E.g. on inventory click...
  9. CreeperOverLord7

    1.14 damage delay problems

    Skript Version (do not put latest): Skript 2.4-beta10 Skript Author: Bensku Minecraft Version: 1.14.4 (Spigot) --- Full Code: From Skellett 1.9.5a: set maximum damage delay of targeted entity to 1 tick Errors on Reload: No errors on reload, the script executes successfully. What's wrong is...
  10. CreeperOverLord7

    Solved Help with Final Damage expression

    Hi! Thread too long for you? Scroll to the bottom and read the last line! Skript Version (do not put latest): 2.2-dev36 Skript Author: Bensku Minecraft Version: 1.12.2 (Note about Skript version: I know that it is old, but in the server that I plan on putting this script in, I cannot update...
  11. CreeperOverLord7

    Parsing item with name?

    Not possible to my knowledge, tried it a lot of times, also you can do what ShaneBee said above. Even if you parse it like "diamond named ""Test""" # (The "" inside the double-quotes is because you are supposed to double them when using inside other double-quotes.)
  12. CreeperOverLord7

    Random numbers

    Try this (I think this is what you mean): function getRandomNumber(length: number) :: number: set {_return} to "" loop {_length} times: set {_return} to "%{_return}%%random integer between 0 and 9%" return {_return} parsed as number
  13. CreeperOverLord7

    Solved Weird inventory contains behaviour

    I can't try anything right now, but I think I have a solution.. Maybe I can just wrap the items in the function around brackets like this: functionName((<item>), (<item>)) I will try later Ooh, great! The 'player has "%{_sell}%" parsed as itemtype' works.
  14. CreeperOverLord7

    Solved Weird inventory contains behaviour

    Uh, oh, whoops, forgot a part.. I will edit the code, there was supposed to be another effect after that :P Heck.. nevermind, you confused me there... @ShaneBee, please look at the full code, the variable is set later :/ Maybe someone could try that code? I'm having no luck getting it to...
  15. CreeperOverLord7

    Solved Weird inventory contains behaviour

    Skript Version: 2.2-dev34 Skript Author: Njol, Mirreski, bensku, TheBentoBox, tim740, Tuke-Nnuke, TheLimeGlass, xXAndrew28Xx, Sashie, RoyCurtis, nfell2009, Syst3ms and Snow-Pyon Minecraft Version: 1.12.2 --- Full Code: command /test [<integer>]: trigger: set {_currency::coal} to...
  16. CreeperOverLord7

    Solved Help, text and time span

    Well, it works, partly. Look at this image: https://gyazo.com/72f7a4048d235ce61fa6cc4ef9f3e0c7 Nevermind, I have found a way to fix this issue. If others are having this problem, use something like this: command /tempban [<offline player>] [<timespan>] [@ <text>]:
  17. CreeperOverLord7

    Solved Help, text and time span

    Hello! I'm having a problem with my skript, so basically, here's the code and the issue: command /tempban [<offline player>] [<timespan>] [<text>]: permission: command.tempban permission message: &cYou do not have permission to perform this action. trigger: if arg 1 is not...
  18. CreeperOverLord7

    Solved How to detect last in a list variable?

    Thanks! It worked! :)
  19. CreeperOverLord7

    Solved How to detect last in a list variable?

    Doesn't work, it says "Cannot clear/delete last element of {warnings.%arg 1%::*}" when I do /sk reload scripts. ;-;
  20. CreeperOverLord7

    Solved How to detect last in a list variable?

    Basically what the title says, is there a way to detect the last number in a list variable? So for example, I have "Line 1" stored in {example::1} and "Line 2" stored in {example::2}, and so on up to 10. Is there a way to make Skript detect the max is 10 and make it use the value somewhere...