Results 1 to 6 of 6

Thread: Deposit all... please? 0.o

  1. #1
    Join Date
    Jun 2009
    Location
    The Netherlands
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Deposit all... please? 0.o

    Hey all,

    I'm working on a superheater right now which is coming along pretty well so far, I'm now working on the banking procedure but I hit some sort of bug...
    CODE:

    SCAR Code:
    if FindDTM(Ore1DTM, x, y, MIX1, MIY1, MIX2, MIY2) then
      begin
          Mouse(x, y, 10, 10, False);
          Wait(100+random(100));
          ChooseOption('Deposit-All');
        end;

    It is supposed to bank left over ores, but instead its right clicking and then moving the mouse away to close the choose option screen.
    I tested with 'Deposit-(All/X,10,5 and 1)' but only 'Deposit-1' worked.

    The weird thing is that the same piece of code works just fine when choosing the option 'Withdraw-all'.

    Did I hit a bug of some sort? or is it my own fault :P

    Current Project:

    ChompieChopper - Early stages.

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Try something like ChooseOption('All');
    Are you sure it is ChooseOption that is failing? Does it click the ore?

  3. #3
    Join Date
    Mar 2008
    Location
    In a cave
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well tbh, ChooseOption('All'); mostly picks option 'All but one' still beats me why though...
    A Chinese wiseman once said: "Shu ciu!", it was considered very smart, but now people know it means: "Something stinks here!"
    FalBuggySmelter v.1.31
    [Updated on the 1st of March 2010]
    RimmBugger BETA V1.8

  4. #4
    Join Date
    Jun 2009
    Location
    The Netherlands
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ChooseOption('All'); works fine, should be changed in Banks.scar because ChooseOption('Deposit-All') is used there.

    I have no idea why it's not clicking Deposit-All 0o.

    Current Project:

    ChompieChopper - Early stages.

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Try
    SCAR Code:
    WaitOption('-All', 300);
    instead of
    SCAR Code:
    Wait(100+random(100));
    ChooseOption('Deposit-All');

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Jun 2009
    Location
    The Netherlands
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I will, when rev 36 is officially released so people without the latest dev release can run the script. I'm definitely switching after the release though

    Current Project:

    ChompieChopper - Early stages.

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
  •