1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. BaeFell
    Created by BaeFell
    Feb 9, 2017
    Hi everyone,

    Welcome to another Skript Challenge! I did post a poll on the first Skript Challenge, and the vast majority of users who voted, liked Skript Challenges!
    [​IMG]

    So here's the second one! If you have any suggestions for #3 or general improvements, let me know :emoji_slight_smile:

    This Skript Challenge is another number related one! Basically, you must turn numbers into their word versions. Example:
    58654 -> 58 thousand, 6 hundred and 54 OR
    58654 -> fifty-eight thousand, six hundred and fifty-four
    Commas and string formatting isn't important, but extra points for making it pretty

    The rules are as follows (note: rules may change between challenge):
    - Your code must be in [code]<code>[/code] tags so that I can easily read it.
    - You can use addons, but, you're not allowed to use a feature from an addon which does this (don't think any do) and the addon must of been released publicly prior to the creation of this thread. So not, you cannot use a feature like "output {_number} in word form" or whatever.
    - You can use another user's code, but please don't edit your messages. I can see all message history and you'll not be counted at all. Remember: this one is about quality, not just length. So trying to cut variable names from someone elses code will lose points!
    - WebAPI's or using an external source (outside of Skript), to get your result in not allowed. All submissions must actually do the conversions themselves.

    Challenge details (specifics about this challenge):
    - Your code must accept any length of number inputted from 0 to 999 million (if you can easily support higher, go for it).
    - You do not have to message it back to the player
    - It can be a function, command or just a block of code. Just explain where you're getting the input if it's not obvious to me.

    How answers will be judged:
    Unlike others, the...
  2. BaeFell
    Created by BaeFell
    Feb 6, 2017
    Hi everyone,

    After remembering it's Monday and that I hadn't posted the winners of the first Skript Challenge, I've just done it now. Woo! :emoji_grinning:

    I've slightly changed the judgement, because there were a variety of answers and like, only 2 people followed the exact rules :emoji_rolling_eyes:.

    In first place is @it_twit with the shortest length:
    Code (Text):
    1.  
    2. regex replace "(?<=\d)(?=(\d{3})+(?!\d))" with "," in {_integer}
    3.  
    In second place is @Snow-Pyon with the code that got @it_twit first:
    Code (Text):
    1.  
    2. regex replace "(?<=\d)(?=(\d\d\d)+(?!\d))" with "," in {_integer}
    3.  
    In third place is @Sylfare with code that doesn't require any addons but is compact:
    Code (Text):
    1.  
    2. set {_r} to "%{_number}%"
    3. set {_t} to ""
    4. loop round up length of {_r} / 3 times:
    5.     set {_l} to the last 3 characters of {_r}
    6.     set {_r} to the first length of {_r} - 3 characters of {_r}
    7.     if loop-number = 1:
    8.         set {_t} to "%{_l}%%{_t}%"
    9.     else:
    10.         set {_t} to "%{_l}%,%{_t}%"
    11.  
    There is currently no prizes, but @xXAndrew28Xx might have a prize, apparently. I'm looking at getting some sort of medal system or something to reward people.

    Hope you all enjoyed this Skript challenge! If you have an idea for the next one, PM me and I'll see what I can do.

    Thanks,
    BaeFell
  3. BaeFell
    Created by BaeFell
    Feb 6, 2017
    Hi everyone,

    After messing around with the Resource addon, and even ending up PMing 13 random users, I've managed to add a feature which will now send a PM when a resource is approved or denied. The PM is automatically sent by @skUnity, the PM is locked for both approved and denied PM's (as we don't monitor activity on the @skUnity account). The denied PM also includes a link to the Resource Standards.

    The idea behind the automatic PM system is that when you submit a resource, you're told straight away if it was approved or denied, and don't have to keep checking the status of it.

    Future plans:
    - Option to enable/disable this feature
    - Reason as to why your resource was denied
    - Got an idea? Suggest it below.

    If you have any questions, just let me know.

    Thanks,
    BaeFell
  4. itismejoey
    Created by itismejoey
    Feb 2, 2017
    Hello there,

    It is with deep sadness to inform you that I will be stepping down from the skUnity staff team. I have moved on from my previous career, as a freelance graphic/web designer, and started a new career that will take away most of the free time that I used to have. It also comes at a time where I have begun to lose interest in the Minecraft gameplay. I personally never enjoyed playing Minecraft, but instead found a love creating the gameplay for others. Unfortunately, that love has died over the past few months. It is because of those reasons that I have decided to move on from the Minecraft community all together.

    I have met so many awesome people in this community and I still care so much about it. I know that this comes at a time when the forums are undergoing a huge change and shortly after @BaeFell announced me as becoming an admin. Because of the timing, I have agreed to stay on as a support staff member and help out as needed.

    If you have any questions or anything, please feel free to reply or PM me (on here or Discord).

    Thank you.
  5. BaeFell
    Created by BaeFell
    Feb 2, 2017
    Hi everyone,

    It appears that NodeBB does not want to start. I've tried messing around with the code causing the error, but nothing seems to work. If I try to repair NodeBB, then it fails because of the same error. Here's the error for those interested:
    Code (Text):
    1.  
    2. - info: initializing NodeBB ...
    3. - error:  Error: [[error:theme-not-found]]
    4.     at /var/nodebb/src/meta/themes.js:146:21
    5.     at /var/nodebb/node_modules/async/dist/async.js:3694:9
    6.     at /var/nodebb/node_modules/async/dist/async.js:356:16
    7.     at iterateeCallback (/var/nodebb/node_modules/async/dist/async.js:865:24)
    8.     at /var/nodebb/node_modules/async/dist/async.js:840:16
    9.     at /var/nodebb/node_modules/async/dist/async.js:3691:13
    10.     at apply (/var/nodebb/node_modules/async/dist/async.js:21:25)
    11.     at /var/nodebb/node_modules/async/dist/async.js:56:12
    12.     at /var/nodebb/src/meta/themes.js:66:6
    13.     at /var/nodebb/node_modules/async/dist/async.js:1013:9
    14.     at /var/nodebb/node_modules/async/dist/async.js:356:16
    15.     at replenish (/var/nodebb/node_modules/async/dist/async.js:877:25)
    16.     at /var/nodebb/node_modules/async/dist/async.js:886:9
    17.     at eachOfLimit (/var/nodebb/node_modules/async/dist/async.js:913:22)
    18.     at /var/nodebb/node_modules/async/dist/async.js:918:16
    19.     at eachOf (/var/nodebb/node_modules/async/dist/async.js:991:5)
    20.  
    Any answers on fixing it are appreciated. However, please don't just Google it unless you know what you're doing or some basic idea of NodeBB. I've taken a look myself, been through the NodeBB Community Forums too, and nothing works.

    I will be trying to get a Redis database viewer installed and use that to export the data. I'll then make up a quick site for viewing the old forum stuff. Some things might not work, but who know's what will happen! I have no idea how NodeBB saves stuff, so should be fun.

    Thanks,
    BaeFell