Results 1 to 9 of 9

Thread: SolveRewardBox

  1. #1
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default SolveRewardBox

    So I posted this in the Randoms - Bugs thread, and I even debugged some procedures to see if I could find what was up, and no luck. This was posted on an MSI thread earlier today, so I was hoping we could pull together and figure this out as it is rather annoying. It's happened to me quite a few times.
    Quote Originally Posted by noidea View Post
    Ok, how it walks away is - The box opens, the box solver clicks the coins button then does not click the confirm button. It waits several seconds then clicks the box in the inventory. This closes the rewards screen. The mouse tries the click the coins button, but its no longer there, so it clicks the main screen and the character walks away. It then loops this. My character just ran around for several hours doing this. Any suggestions as to what to do to prevent ban?
    If anyone has any accounts with reward boxes in their inventory, please PM them to me if you trust me. I would REALLY like your account if you experienced this problem. So far, all the accounts I've gotten have solved the box perfectly, so that didn't really help me.

    I really don't want to have to try rewriting the whole thing, so hopefully we can get to the bottom of this.

    Thanks in advance,
    Coh3n

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I've got a few I can test with. I've got no problem making it a priority for the night. I'll chat with you on MSN.

    Edit: Tested 2 accounts on 2 different worlds, both solved perfectly with lamp. :/

    Edit2: Everyone, if you see the RewardBox fail to solve, please post what it was trying to select. S far there are reports of it failing with Coins and Costume. I'm going to see if it is anything to do specifically with them.
    Last edited by NCDS; 02-15-2011 at 05:33 AM.

  3. #3
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    What happens if it chooses Costume, but you already have all the pieces to the set? Does the SolveRewardBox procedure detect this and choose something else, or just think it's done and give up?


  4. #4
    Join Date
    May 2007
    Location
    Tasmania, Aus
    Posts
    898
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    what I think happens is that if you start with the box in your inventory the solver works, but if you get it while your running a script after a through a random event of course. I don't know how this works but I 'think' this is what occurs because I have watched the box get solved from login but I haven't seen my characters solve them straight after a random event :/

  5. #5
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    What happens if it chooses Costume, but you already have all the pieces to the set? Does the SolveRewardBox procedure detect this and choose something else, or just think it's done and give up?
    Not sure. I have watched it fail on the costume selection, though. It didn't give me any messages or anything, it just didn't confirm.

    Quote Originally Posted by Sgt Soul View Post
    what I think happens is that if you start with the box in your inventory the solver works, but if you get it while your running a script after a through a random event of course. I don't know how this works but I 'think' this is what occurs because I have watched the box get solved from login but I haven't seen my characters solve them straight after a random event :/
    Well that would explain why every time we try and test separately it works. That doesn't really make much sense though.

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Perhaps its not waiting for the box screen to close..
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Perhaps its not waiting for the box screen to close..
    The problem is it doesn't click confirm to begin with so the window never actually closes. So when it clicks the box again (with the window already open), it detects that it's open and tries to choose the reward; however, once you click the box, the window closes and reopens.

    So I now understand what the problem is, I just can't find why it's happening.

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Simba Code:
    if (not Result) then
      begin
        SRL_Warn('UseRewardBox', 'Could not open Reward Screen', Warn_AllVersions);
        Exit;
      end;
      Wait(Random(100));
      if (not FindBoxOption(B, Index)) then
      begin
        SRL_Warn('UseRewardBox', 'Could not find a usable option.', Warn_AllVersions);
        Exit;
      end;

    Shouldn't accounts be set to false if this happens?

    Search for randoms> Find Box> No Options Found> Exit > Script goes on > Search for Randoms> FOREVER?!

    Doesn't this pretty much result in an infinite loop opening the box and trying to find an option it cant?

    It is a rare occurrence, but should be fixed/failsafed immediately, just last night I had an account opening/scrolling the box menu for FIVE HOURS.

    http://villavu.com/forum/showpost.ph...18&postcount=3

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    If anyone gets any accounts with the reward box could you please PM me. I'm going to rewrite (or at least reorganize) how the box solver works since I can't figure out what would be causing this.

    E: See http://villavu.com/forum/showthread....999#post784999
    Last edited by Coh3n; 03-04-2011 at 03:33 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •