Conditions

#61

Just some feedback. Questing conditions are working great for daily quests. Just some different training places with quest acception/returning scripts :smiley:

2 Likes

#62

Can you add the stop condition selection?
image

I need it to stop a skill use condition created as needed.

0 Likes

#63

thanks for adding the “Start bot” action!

i assumed, that i can add multiple then-actions.
unfortunately this is not the case.
that means, i cannot do such as this:
if (Botting time (minutes) >= 60) { Stop bot; Start bot; }
the only i can do sth like this:
if (Botting time (minutes) >= 60) { Stop bot; }
that means, 1 then-action per N if-conditions.

is there any way to change/improve that?

if not, could you maybe add the negatives of “Botting” and “Botting time (minutes)”?
means:
“Not botting time (minutes)”
and
“Not botting”

then i would be able to create two conditions like this:
if (Botting && Botting time (minutes) >= 60) { Stop bot; }
if (Not botting && Not botting time (minutes) > 0) { Start bot; }
to restart the loop i am trying to get.

regards

EDIT:

sorry ryan! my bad. i havent recognized, that i am able to multi-select inside of the then-box. ignore everything i wrote in this post before.

adding multiple then-actions works very well.
unfortunately the bot wont start anyway after it got stopped by a condition.

example:
the following condition not work properly.
if (Botting && Botting time (minutes) >= 60) { Stop bot; Wait (ms) (5000); Start bot; }
i tried that before without the Wait (ms) (5000);
even with that Wait it just stops the bot, but doesnt start it afterwards at all.

EDIT2:

got it. it’s related to the Botting condition.

works not:
if (Botting && Botting time (minutes) >= 60) { Stop bot; Wait (ms) (5000); Start bot; }

works:
if (Botting time (minutes) >= 60) { Stop bot; Wait (ms) (5000); Start bot; }

could you explain me why?

EDIT3:

without that Botting condition it stops and starts the bot again, even when it got already stopped manually. that means, this Botting time (minutes) condition triggers all the time. it doesn’t matter if its botting or not.

“Botting Time” at the statistics tab is always “0 minutes” when the bot is stopped. its really curious that this condition gets triggered then.

0 Likes

#64

You can’t restart the bot since the condition check function is called when botting. If you are not botting then it’s handled in another thread. This is to prevent disconnects when casting skills if the bot is enabled. If it were to only handle conditions outside of botting/tracing it could be trying to cast multiple skills at the same time.

0 Likes

#65

well, i am able to restart it:

if (Botting time (minutes) >= 1) { Stop bot; Start bot; }

the only issue here is, that this condition even triggers when the bot is stopped - right after 1 minute.

0 Likes

#66

There’s not really a way to do it. Why do you need to restart the bot?

0 Likes

#67

this works! i am doing it this way right now :slight_smile: i need it to restart my stall-loop.

bot is at its stall position in town.

  1. go to guild storage
  2. take several items from it
  3. store gold in it
  4. go back to the stall position
  5. open the stall

after 60 minutes the condition triggers a stop + start bot and its looping the steps on top
works very well now. i’m almost happy.
the only issue which is left: the condition even triggers when i stopped the bot although it just checks if the botting time is >= 60 and this cannot be true when the bot is stopped.

but this is just a hint. never mind. ignore it if this “bug” doesnt annoy you

1 Like

#68

You could do like:

  1. Botting time > 60m -> stop bot.
  2. Time elapsed > 1 -> start bot.

It shouldn’t start the bot if it’s already started. That could restart it if you needed a different way.

0 Likes

#69

its not about starting the bot when its already started :slight_smile:
its about prevent starting the bot when it was not stopped by a condition right before

1 Like

#70

if (Time Elapsed (seconds) == 1) { Chat general ( Test ); }

what should i expect from this ?

0 Likes

#71

If time elapsed is exactly 1 second it will send a general chat message. Probably useless.

0 Likes

#72

So when this “Time” starts and elapses exactly ?

+How can i send chat message every second ?

0 Likes

#73

You should use greater than. It’s unset when you first login so it will trigger immediately like I said earlier. After the condition triggers then it will be set to the current time.

0 Likes

#74

@Ryan Why doesn’t the training area change without returning to town?

0 Likes

#75

In the UI?

0 Likes

#76

hmm yes

0 Likes

#77

I’m doing it this way
if (Not attacked (minutes) == 5) { Stop bot; Change script ( E:/phBot Testing/b.txt ); Start bot; }

but he does not see the new field of education before he returns to the town, and he does not go there.

0 Likes

#78

It’s just not updating in the UI. It is in the bot though.

0 Likes

#79

but then he does not go to the new field of education, he has to go back to the town, is it possible to go to the new education area without going back to town?

0 Likes

#80

Nope. I could maybe add path finding for that.

0 Likes