Results 1 to 6 of 6

Thread: Deposit need cases?

  1. #1
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default Deposit need cases?

    Since i'm a
    SCAR Code:
    case
    freak i thought that the function Deposit could use some cases.
    Just an idea

    SCAR Code:
    {*******************************************************************************
    procedure Deposit(slot, toslot, thetype: Integer);
    by: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
    Description: Deposits from Slot to ToSlot.
                 Type 2 = All, Type 1 = one-by-one.
    *******************************************************************************}


    procedure Deposit(Slot, ToSlot, TheType: Integer);
    var
      i,n: Integer;
    begin
      if (BankScreen) then
      begin
        for i:= Slot to ToSlot do
        begin
          if ExistsItem(i) then
          begin
            Case TheType of
            1:begin
               MouseItem(I, True);
               Wait(50+random(50));
              end;
            2:begin
              n:=0;
              MouseItem(I, False);
              if (ChooseOption('All')) then
              begin
                Wait(100+random(100));
                repeat
                  n:=n+1;
                  Wait(40);
                  if not ExistsItem(i) then
                    break;
                until n>50;
              end;
            end;
          end;
        end;
      end;
    end;

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Deposit(Slot, ToSlot, TheType: Integer);
    var
      i,n: Integer;
    begin
      if (BankScreen) then
      for i:= Slot to ToSlot do
      if ExistsItem(i) then
      case TheType of

        1 : begin
              MouseItem(I, True);
              Wait(50+random(50));
            end;

        2 : begin
              n:=0;
              MouseItem(I, False);
              if (ChooseOption('All')) then
              begin
                Wait(100+random(100));
                while N > 50 do
                begin
                  Inc(N);
                  Wait(40);
                  if not ExistsItem(i) then
                    break;
                end;
              end;
            end;
      end;
    end;

    Just had to do that...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    SCAR Code:
    procedure Deposit(Slot, ToSlot, TheType: Integer);
    var
      i,n: Integer;
    begin
      if (BankScreen) then
      for i:= Slot to ToSlot do
      if ExistsItem(i) then
      case TheType of

        1 : begin
              MouseItem(I, True);
              Wait(50+random(50));
            end;

        2 : begin
              MouseItem(I, False);
              if (ChooseOption('All')) then
              begin
                Wait(100+random(100));
                For N := 0 To 49 Do
                  if not ExistsItem(i) then
                    break
                  else
                    Wait(40);
                end;
              end;
            end;
      end;
    end;

    Just had to do that...

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    lolz. Ty dudes!

  5. #5
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    The developers have already designed a new Deposit using variants
    Hup Holland Hup!

  6. #6
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    SCAR Code:
    Procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);

    Var
       DepositX: Boolean;
       All: Variant;
       I, T, x, y: Integer;

    Begin
      If Not BankScreen Then
        Exit;
      DepositX := False;
      Case VarType(vType) Of
        3: Begin
             DepositX := Not InIntArray([1, 5, 10], vType);
             If vType = 1 Then
               All := False
             Else
               All := True;
           End;
        11: All := vType;
      End;
      For I := 1 To 28 Do
      Begin
        If Not ExistsItem(I) Then
          Continue;
        MouseItem(I, Not All);
        If DepositX Then
        Begin
          ChooseOption('Store X');
          T := GetSystemTime;
          While (Not FindColor(x, y, 8388608, MCX1, MCY1, MCX2, MCY2)) And (GetSystemTime - T < 3000) Do
            Wait(100);
          TypeSend(vType);
        End Else If VarType(vType) = 3 Then
          ChooseOption('Store ' + vType)
        Else
          ChooseOption('Store All');
        T := GetSystemTime;
        While ExistsItem(I) And (GetSystemTime - T < 2000) Do
          Wait(50);
      End;
    End;



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Deposit Bank..
    By faster789 in forum OSR Help
    Replies: 7
    Last Post: 05-24-2008, 11:05 PM
  2. deposit to bank..
    By faster789 in forum OSR Help
    Replies: 2
    Last Post: 04-20-2008, 08:39 PM
  3. Deposit Box(er?)
    By whatsthat in forum OSR Help
    Replies: 22
    Last Post: 12-20-2007, 09:53 PM

Posting Permissions

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