SoulzNate Posted January 5, 2023 Share Posted January 5, 2023 I need a skript that gives a player gains a heart every 30 min of afk in the afk region Link to comment Share on other sites More sharing options...
LunarBurn1 Posted January 12, 2023 Share Posted January 12, 2023 I believe this is what you are looking for afk.sk Link to comment Share on other sites More sharing options...
LunarBurn1 Posted January 12, 2023 Share Posted January 12, 2023 options: server: Server #Add your server name here afkworld: World #World to receive the reward in afkcooldown: 30 minutes #Cooldown between receiving the reward xcoords1: -130 #first x coordinates ycoords1: 59 #Y coordinates zcoords1: -63 #First z coordinates xcoords2: -136 #Second x coordinates zcoords2: -57 #Second z coordinates afkitem: stone #Reward item every {@afkcooldown}: loop all players in world "{@afkworld}": if loop-player's x coordinate is between {@xcoords1} and {@xcoords2}: if loop-player's y coordinate is {@ycoords1}: if loop-player's z coordinate is between {@zcoords1} and {@zcoords2}: give loop-player {@afkitem} send "{@server} &f>> &aYou have recieved 1 {@afkitem}!" to loop-player This is the skript if you aren't comfortable downloading unknown files lol Link to comment Share on other sites More sharing options...
ES63 Posted January 13, 2023 Share Posted January 13, 2023 10 hours ago, LunarBurn101 said: options: server: Server #Add your server name here afkworld: World #World to receive the reward in afkcooldown: 30 minutes #Cooldown between receiving the reward xcoords1: -130 #first x coordinates ycoords1: 59 #Y coordinates zcoords1: -63 #First z coordinates xcoords2: -136 #Second x coordinates zcoords2: -57 #Second z coordinates afkitem: stone #Reward item every {@afkcooldown}: loop all players in world "{@afkworld}": if loop-player's x coordinate is between {@xcoords1} and {@xcoords2}: if loop-player's y coordinate is {@ycoords1}: if loop-player's z coordinate is between {@zcoords1} and {@zcoords2}: give loop-player {@afkitem} send "{@server} &f>> &aYou have recieved 1 {@afkitem}!" to loop-player This is the skript if you aren't comfortable downloading unknown files lol You could do this: every 30 minutes: loop all players: if "%region of loop-player%" is "region name": give loop-player 1 stone send "&cYou now have one stone" Tell me if it doesn't work Player Stats IGN - ES63 Rank - Pro ---------------------- Server Stats RascalPVP - Owner RandKits - Owner DoodySim - Owner ----------------------- do that ^^^^ i will heart back (i promise) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now