Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: Scripting Error

  1. #26
    Join Date
    Nov 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Hmm, where do you exactly bank? I really hope someone else helps you out, else I gotta try to make it myself first .

    Does it opens the bank?

    Might try to replace the

    Simba Code:
    MouseItem(false)

    To

    Simba Code:
    Mouse(x, y, 5, 5, False);

    I'm not sure which DTM you are using for Pure Essence or normal ones, this one works for normal

    Normal Essence.

    Code:
    DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
    Will get Pure essence, so will edit mypost after it.

    Pure Essence DTM.
    Code:
    DTMFromString('m/AEAAHictc7NBoBQEIbh0110ByUiKpFS6TaSSH9ExJHuvvcwi7Rod4ZnMZ+ZMa5SKkWJGg3aD5NXKJAhgQ/vxfQBQkSIZTbHjgsaJw7JNswYMaBHJyasMnfInpY798cymguORXbL5ud/3z9QpBDB');
    I tried the Script, for me it wont even open the bank nor Deposit all the items...

    Nevermind forgot I had to be in safe mode lol
    Last edited by Failure; 01-01-2012 at 01:25 PM.

  2. #27
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    First when you receive an error like unknown identifier that means you have declared it in your var
    X,Y:integer;

    You would replace x or y with with the variable name you using.

    Second. For your banking use this
    BankTab(1);
    WithDraw(0,0,28);
    This will withdraw 28 items from you first bank slot in your fist bank tab.
    I will post a better reply when I get on pc

  3. #28
    Join Date
    Nov 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Simba Code:
    Mouse(x, y, 5, 5, False);
      Wait(50+random(300));
      ChooseOption('All');
    It took the item out for me fine, you might have to update the DTM.

  4. #29
    Join Date
    Dec 2011
    Posts
    327
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Failure and Cruizing.
    I wanted a more complex withdrawing system but I suck at coding and need a lot of help.
    I'll test it out now, hopefully it works. Then all I have to worry about is the walking.
    Simba Code:
    Procedure Banking;
    var
    EssDTM: Integer;
    x, y:Integer;
    begin;
      if not openbanknpc then exit;
      begin
      OpenBankNpc;
      DepositAll;
      end;
    begin
      EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
      If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
      begin
      WriteLn('Found the essence DTM');
      Mouse(x, y, 5, 5, False);
      Wait(50+random(300));
      ChooseOption('All');
    end;
     end;
    FreeDTM(EssDTM);
     end;

    This is my latest version with all your changes. I'm using it in Varrock West Bank.
    It opens the bank, deposits all and then just says: Successfully executed.
    Without finding the ess or even right clicking it.
    Last edited by Deadly Serious; 01-01-2012 at 08:41 PM.

  5. #30
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Quote Originally Posted by Deadly Serious View Post
    Thanks Failure and Cruizing.
    I wanted a more complex withdrawing system but I suck at coding and need a lot of help.
    I'll test it out now, hopefully it works. Then all I have to worry about is the walking.
    Simba Code:
    Procedure Banking;
    var
    EssDTM: Integer;
    x, y:Integer;
    begin;
      if not openbanknpc then exit;
      begin
      OpenBankNpc;
      DepositAll;
      end;
    begin
      EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
      If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
      begin
      WriteLn('Found the essence DTM');
      Mouse(x, y, 5, 5, False);
      Wait(50+random(300));
      ChooseOption('All');
    end;
     end;
    FreeDTM(EssDTM);
     end;

    This is my latest version with all your changes. I'm using it in Varrock West Bank.
    It opens the bank, deposits all and then just says: Successfully executed.
    Without finding the ess or even right clicking it.
    first thing i see is this

    Simba Code:
    if not openbanknpc then exit;
      begin
      OpenBankNpc;
      DepositAll;
      end;

    i would do

    Simba Code:
    if not openbanknpc then
      begin
      exit;
      end else
      OpenBankNpc;
      DepositAll;
      end;
    and for this the first begin is not needed
    Simba Code:
    begin
      EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
      If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
      begin
      WriteLn('Found the essence DTM');
      Mouse(x, y, 5, 5, False);
      Wait(50+random(300));
      ChooseOption('All');
    end;
     end;
    FreeDTM(EssDTM);
     end;
    Again i would do it like so...
    Simba Code:
    EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
      If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
      begin
      WriteLn('Found the essence DTM');
      Mouse(x, y, 5, 5, False);
      Wait(50+random(300));
      ChooseOption('All');
     end;
    FreeDTM(EssDTM);
     end;

    it all seems ok for me just a extra begin you didn't need
    let me know how it goes

  6. #31
    Join Date
    Dec 2011
    Posts
    327
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Edit: Watched another one of Yoho's tuts and it worked It was 4 years old but I thought I may as well give it a crack.
    Now all I need to do is to get it to walk.
    Last edited by Deadly Serious; 01-02-2012 at 02:03 AM.

Page 2 of 2 FirstFirst 12

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
  •