#how do I make a afk room

1 messages · Page 1 of 1 (latest)

half vault
#

what part is confusing you

copper harness
#

The scripting

#

I tried so much and it won't work

half vault
#

well what do you have

copper harness
#
on region enter:
    if event-region = "afk" parsed as region:
        set {afk::%player's uuid%} to true
        while {afk::%player's uuid%} = true:
            send action bar "&d&lYou are afk" to player
            wait 1 tick
            
on region exit:
    if event-region = "afk" parsed as region:
        set {afk::%player's uuid%} to false
#

It's not working

half vault
#

be more specific

copper harness
#

Wdym

half vault
#

what part isnt working

copper harness
#

Idk

half vault
#

then figure out where its breaking

#

add broadcasts to check which code is executed

copper harness
#

I suck at doing skript

half vault
#

so?

copper harness
#

So idk what to do

copper harness
#

I also have this one

#
on region enter: afk
  wait 1 tick
  while player is in region "afk":
    wait 5 minutes
    give player 1 of tripwire hook named "AFK Key"
    wait 1 tick```
half vault
#

on region enter: afk why the afk

copper harness
#

The rg is named afk

#

Idk

half vault
#

thats not how that works

copper harness
#

Oh

#

Do I remove it?

half vault
#

ye

copper harness
#

Ok

#
on region enter:
  wait 1 tick
  while player is in region "afk":
    wait 5 minutes
    give player 1 of tripwire hook named "AFK Key"
    wait 1 tick```
#

?

half vault
#

i dont think while player is in region "afk": is a thing either

copper harness
#

Ok

#
on region enter: afk
  wait 1 tick
    wait 5 minutes
    give player 1 of tripwire hook named "AFK Key"
    wait 1 tick```
half vault
#

nope

#

still need a check

#

just gotta find the right way to do it

copper harness
#

?

half vault
#

you need the while loop

copper harness
#

Where

half vault
#

...

#

where you had it

copper harness
#

There was no while loop

half vault
#

...

half vault
copper harness
#

I need to keep it?

half vault
#

yes

copper harness
#

You told me to remove it

half vault
#

no

copper harness
#
on region enter:
  wait 1 tick
  while player is in region "afk":
    wait 5 minutes
    give player 1 of tripwire hook named "AFK Key"
    wait 1 tick```
half vault
#

i said you are making up syntax

copper harness
#

What do I remove

half vault
#

nothing

copper harness
#

Ok

half vault
#

you need to fix the while loop

copper harness
#

What do I need to put

half vault
#

look back at your other code

copper harness
#

Ok

half vault
#

you had a working thing there

copper harness
#
on region enter:
    if event-region = "afk" parsed as region:
        set {afk::%player's uuid%} to true
        while {afk::%player's uuid%} = true:
            send action bar "&d&lYou are afk" to player
            wait 1 tick
            
on region exit:
    if event-region = "afk" parsed as region:
        set {afk::%player's uuid%} to false
half vault
#

why are you sending it

copper harness
#

Idk

#

What do I need to change

half vault