Conditions

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

2 Likes

Can you add the stop condition selection?
image

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

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.

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.

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.

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

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

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.

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

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

what should i expect from this ?

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

So when this ā€œTimeā€ starts and elapses exactly ?

+How can i send chat message every second ?

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.

@Ryan Why doesnā€™t the training area change without returning to town?

In the UI?

hmm yes

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.

Itā€™s just not updating in the UI. It is in the bot though.

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?

Nope. I could maybe add path finding for that.