View Full Version : Weird delay in labels
arthurviolence
12-12-2015, 04:55 AM
Hey,
On old scripts, sometimes the bot seems to freeze when checking labels, its really weird, he just stands there, even if the label has no script running on it.
I'm not sure if I'm being 100% clear here but I'm sure someone has experienced this
Oscagi
12-12-2015, 11:54 AM
arthurviolence Check in lua if the script have DelayWalker(Time) or wait(Time) change it or delete, but if it is a checker, it will do it fast, and maybe u get a error.(if u delete)
arthurviolence
12-17-2015, 11:23 AM
What happens is honestly really weird, its usually like this:
CheckHardcore
GoHardcore
Walk
Walk
Walk
SkipHardcore
Gohardcore is just a label, it has no actions, but the bot will delay for 4~5 seconds in it.
DarkstaR
12-17-2015, 11:13 PM
If the bot is delaying for a label, it is because a script is processing label events and hasn't yet flushed it's queue.
So if you have a script handling labels, even if it doesn't care about that specific label, and the script is doing a wait(5000), that script is completely unable to get the label event until the wait is done. The walker, in turn, will wait for all label events to be processed by scripts. It can't/doesn't know/care if the script needs to process that specific label. It just needs to wait until the script has received the event.
arthurviolence
12-18-2015, 12:26 AM
If the bot is delaying for a label, it is because a script is processing label events and hasn't yet flushed it's queue.
So if you have a script handling labels, even if it doesn't care about that specific label, and the script is doing a wait(5000), that script is completely unable to get the label event until the wait is done. The walker, in turn, will wait for all label events to be processed by scripts. It can't/doesn't know/care if the script needs to process that specific label. It just needs to wait until the script has received the event.
Thats most likely what is happening, I will try to sort the issue then.
arthurviolence
12-18-2015, 08:04 PM
Reducing script delays and using
module:Delay()
in my modules helped immensely reducing waiting times.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.