Help with a Reward Skript

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Vain

New Member
Jul 17, 2023
6
0
1
Hello, I am new here and I really need a help:
I want that, every 10 minutes of playtime the players receive 1 "Virtual Currency" Let's call them "Souls" but I don't want that AFK players earn that Soul too, how can I do that?

Code:
every 10 minutes:
    loop all players:
        if %player% is afk:
            send "no gift for you" to loop-player
        else:
            add 1 to {soul.%loop-player%}
            send "{@p} You received 1 soul for playing 10 minutes!" to loop-player
 
Depends how you are collecting data on if the player is AFK.

If you're using variables, such as a list variable ({afk::*}), check if the list contains the player.
If you're using EssentialsX, go through their API.
 
Depends how you are collecting data on if the player is AFK.

If you're using variables, such as a list variable ({afk::*}), check if the list contains the player.
If you're using EssentialsX, go through their API.
How can I do through EssentialsX's API?
 
Got it, you are doing it on purpose.. you are in the wrong place, nursery is not here. Grow up.
I am telling you that you can do it yourself, how would I have learned anything if I didn't find it out myself. I am not gonna spoonfeed you every answer so learn how to take advice
 
Got it, you are doing it on purpose.. you are in the wrong place, nursery is not here. Grow up.
First of all, that's a rude language, so let's stop using it.
Second of all, to use EssentialsX API, you need Skript-Reflect addon. You can then find their javadocs page to find the methods needed.
 
  • Like
Reactions: Goose
First of all, that's a rude language, so let's stop using it.
Second of all, to use EssentialsX API, you need Skript-Reflect addon. You can then find their javadocs page to find the methods needed.
thank you for understanding how to help people instead of writing comments that are rude and unhelpful, the Skript community needs more people like you :emoji_slight_smile: