#how do i make an afk system for every 5 mins it adds a custom item

1 messages · Page 1 of 1 (latest)

midnight sandal
#

idk what you mean by 'adds a custom item' but you can check the location of all players every minute and compare it to their old location
if its the same as their old location you can set a timestamp - if that timestamp is 5 minutes or greater then you can mark them as afk (assuming you're not going for the box/gen afk bound approach)

strong elbow
#

look

#

@midnight sandal

#

like give this to them every 5 or 10 mins

midnight sandal
#

so whats the problem

strong elbow
#

i wanna give players this every 5 mins

midnight sandal
#

use a periodical

strong elbow
#

what it do?

midnight sandal
#

it runs code periodically
so if you wanted to give all players an item every 5 minutes you'd use that event

strong elbow
#

can u just send me the skript?

midnight sandal
#

no

#

i'm here to help you make it

strong elbow
#

pls

midnight sandal
#

no

#

its like two lines

#

you'll learn more if you make it

strong elbow
#

alr ig

strong elbow
#

@midnight sandal

#

i have a question

midnight sandal
#

yes?

strong elbow
#

how do i add a skript to a room

#

i have the afk skript

midnight sandal
#

room as in bound?

#

like an area where you detect where the player enters and leaves?

strong elbow
#

yes i need to add the afk skript to it idk how

midnight sandal
#

create a bound with skbee (https://github.com/ShaneBeee/SkBee/wiki/Bounds) (you can put this into an on script load)
then u can check when the player enters or exits the bound

GitHub

SkBee is a Skript addon that aims to add more useful elements to Skript. - ShaneBeee/SkBee