#Skript Afk Pool Help

8 messages · Page 1 of 1 (latest)

rugged citrus
#

Does anyone know how to make it so when someone is in a certain area it will give them a certain item? EX: Afk pool: afk token every 15 minutes

polar cradle
#

Region events, while loops and variables

rugged citrus
#

skript

polar cradle
#

It’s simple, add a player to list when they enter the region of your AFK pool and add smth to their inventory or Wtv using a while loop and then remove them when they exit the region

rugged citrus
#

`region {afkpool} = cuboid(835851, 115, 21997692, 835855, 121, 21997698)
players in afkpool: []

on enter of player:
if player's location is in {afkpool}:
add player to players in afkpool
while player is in {afkpool}:
wait 5 seconds
give diamond to player
remove player from players in afkpool`

polar cradle
#

Error(s)?