#Skript randomly runs on itself

1 messages · Page 1 of 1 (latest)

cyan fractal
#

I invite Elias_4638 to a duel and 2-5 minutes later it tries to accept the duel, but since theres no request it tries inviting me to the duel.

#

I literally sit there afk the whole time

#

i figured out the wait has something to do with this

                    wait 4.02 minutes
                    if {1v1::Time1::Large} < now:
                        send "&7[&a1v1&7] &aDraw in 1 minute!" to player
                        send "&7[&a1v1&7] &aDraw in 1 minute!" to arg-1
                    wait 1.02 minutes

but i don't know why its opening a gui since it's seperate

crystal temple
#

Go through your code and add debug statements so you can follow the flow and know exactly whats going on up until the gui opens

cyan fractal
#

i did

#

i cant figure it out

crystal temple
cyan fractal
#

i added debug text though

crystal temple
#

So then you know that the delay is 100% the cause of issue?

cyan fractal
#

no i just know thats whats causing the delay

#

because when i set it to seconds instead of minutes the gui opens up in 5 seconds instead of 5 minutes

#

but i cant figure out how thats related because they're in completely separate lines

crystal temple
#

Cool so then continue debugging and figure out what leads up to that and why, and then try and think of a viable solution

#

If that first condition doesnt pass then the stop is never ran, so then the second if runs

cyan fractal
#

someone helped me tysm for your help

#

is fixed now

sudden sable
#

just disable your skript