• Visit Rebornbuddy
  • "Profile completed" with a <while condition="true">

    Discussion in 'Archives' started by dcone, Jan 29, 2015.

    1. dcone

      dcone New Member

      Joined:
      Nov 19, 2014
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      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: Jan 29, 2015
    2. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Without a log and your profile no one will ever be able to help you.
       
    3. Tinytox

      Tinytox Member

      Joined:
      Nov 5, 2014
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      18
      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: Jan 30, 2015
    4. dcone

      dcone New Member

      Joined:
      Nov 19, 2014
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      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.
       
    5. Tinytox

      Tinytox Member

      Joined:
      Nov 5, 2014
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      18
      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: Feb 1, 2015

    Share This Page