What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

"Profile completed" with a <while condition="true">

dcone

New Member
Joined
Nov 19, 2014
Messages
29
Reaction score
0
Not sure why, but rebornbuddy stopped a profile prematurely even though I have a <while condition="true"> tag present. Hasn't done this previously. I have Quack installed, but it has not been running. Reason for stopping the bot was "Profile completed".

I've been using this profile for quite sometime now, and this hasn't happened before
 
Last edited:
Edit: Before I get your hopes up:
I don't really know what I'm talking about, there's a a pretty probable chance that I'm 100% incorrect, in fact, thinking on it more, The idea of While conditions = true, logically sounds like it serves to do the exact opposite of what I wrote below, and, in theory, should be unnecessary in an ordinary circumstance, (profiles function fine without while true), which, again, makes the following post just make me look ignorant, logically speaking, functionally the intent is probably to keep the script live until the conditions are once again being met. That being said I still found the following to be accurate in my experiences...

TL;DR
You probably can't trust this post and I'm an idiot. That is all.

Not sure why, but rebornbuddy stopped a profile prematurely even though I have a <while condition="true"> tag present. Hasn't done this previously. I have Quack installed, but it has not been running. Reason for stopping the bot was "Profile completed".

I've been using this profile for quite sometime now, and this hasn't happened before

Don't quote me on it, but in my limited experience, this happens if your conditionals are all false, and the bot has no actions to take. so like..


You have 400 lightning shards:
Code:
While true:
           If I have under 100 lightning shards, go gather lightning shards.
The conditional fails to trigger because it is false, the only if statement provided is false, the task is complete.

If you had the same situation, per se, and you had something like:

Code:
else: gather water shards

Then the script doesn't have a condition to fail. Of course, doing this would be stupid, because it wouldn't stop trying to gather water shards when you had 9999 of them, and perhaps it doesn't make sense in your script, obviously, I'm just trying to convey my experience, best of luck with it.

TL;DR: Chances are your conditions are returning FALSE, so the script doesn't try to persist, I mean, it is "While condition = true", if the condition is false, it shouldn't try to persist, right?
I had this issue with "If time is between" tags, I assume for the same reason.
 
Last edited:
TL;DR: Chances are your conditions are returning FALSE, so the script doesn't try to persist, I mean, it is "While condition = true", if the condition is false, it shouldn't try to persist, right?
I had this issue with "If time is between" tags, I assume for the same reason.

I think this was the problem, thanks! I'm using multiple "while(if time is between)" tags for unspoiled nodes with "gather(loop=1)" inside. I think it was just looping too much with nothing to do after it had already gathered the unspoiled node.
 
I think this was the problem, thanks! I'm using multiple "while(if time is between)" tags for unspoiled nodes with "gather(loop=1)" inside. I think it was just looping too much with nothing to do after it had already gathered the unspoiled node.

no problem, hope it fixed it, I was up really late that night, and I was pretty out of it, so after I wrote the initial bit, I started doubting myself, and realized if I was wrong, I was going to sound like a blithering idiot. xD

Either way, glad you got it working :P

To be honest, The concept of "While condition is true" seems like it would just be an inherent thing in programming and scripting. "While condition is false" seems like it serves little purpose most of the time, and scripts typically run as if "While condition is true" was specified anyhow, Think about it, here's a good example.

Code:
	<If Condition="not IsOnMap(153)">
		<TeleportTo Name="Quarrymill" AetheryteId="5" />
	</If>

In this example, I don't specify any "While condition is true", including in the rest of the profile. The condition being if I'm on any map other than South Shroud. However, I don't need to specify to only do this while the conditions are true, because it's inherent that I want it to only do it when I tell it to do what I said.

This could just be my failure to understand but, the concept of it is like:

"Hey when I tell you to do stuff, then do what I told you to do."
This is exactly how RB works by default as far as I'm aware, so the While true tag must have some more significant function, that, or the profile defaults it to true anyways.
 
Last edited:
Back
Top