Results 1 to 16 of 16

Thread: I'm currently a pissed off kid.

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

    Default Help: DTMs with Banking

    Solved issue, thanks to all who attempted to help .

    No thanks to those who made fun... ehm, meta?

    ~Nava2
    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

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    This worked for the picture, but try it in game:

    SCAR Code:
    DTM := DTMFromString('78DA635462606058CF8002B2E3F818FE03694' +
           '620FE0F048C2A986A20B23012486B02893D04D4C801893504D428' +
           '0089D5F8D500001C7509FF');

    It has 255 tolerance, so make sure there's not any bows before it or it might detect them instead.
    :-)

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

    Default

    Lets see how it goes... If it works, can I have the DTM file?

    I use a DDTM to get every longbow (u)

    ~Nava2
    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

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

    Default

    Sure, you can have the DTM file if the finding is successful.
    :-)

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

    Default

    No such luck... I DUNNO WTF IS UP WITH IT!

    ~Nava2

    Added code which the DTM is used in. Its in the first post.
    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

  6. #6
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Well, the DTM must not be working. It works fine in the DTM editor for SCAR with your picture. I'll upload the .dtm file for you. Try testing it in-game with the DTM editor.

    http://www.mediafire.com/?hjohe1lmhtg <-- Link to DTM
    :-)

  7. #7
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    umm could be the numbers of the long bows you have covering up the dtm?

  8. #8
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by NiCbaZ View Post
    umm could be the numbers of the long bows you have covering up the dtm?
    I didn't make any subpoints that far up on the DTM, so I don't see how that would be a factor (though it still may be nonetheless).
    :-)

  9. #9
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    if FindDTM(PBow.DTMC, x1, y1, MSX1, MSY1, MSX2, MSY2) then
                 begin
                   Error('Out of (u) bows! :)'); // <- Writes this out and exits. When this proc is run, the script terminates. So why isn't it finding the dtm?
                   exit;
                 end;

    So... if it finds the bow, then exit?
    You want if not ... then I believe
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  10. #10
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Try this one

    SCAR Code:
    DTM := DTMFromString('78DA63AC64606030666240065BB6668269462' +
           '89FB1014838A0AA696DC84255530624F451D52C989580AAA60A48' +
           '98A2AA890C974255530724AC51D5F4F444A0A80100129F0AA3');
    STOP PM'ING ME

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

    Default

    Quote Originally Posted by mixster View Post
    SCAR Code:
    if FindDTM(PBow.DTMC, x1, y1, MSX1, MSY1, MSX2, MSY2) then
                 begin
                   Error('Out of (u) bows! :)'); // <- Writes this out and exits. When this proc is run, the script terminates. So why isn't it finding the dtm?
                   exit;
                 end;

    So... if it finds the bow, then exit?
    You want if not ... then I believe
    Omfg... if thats all it was... I wasted like two hours and I'm going to go and, you know, kill myself.

    Okay, I'm still alive so far, my ddtm might be wrong, checking with a standard DTM that method made .

    Method's DTM doesn't work, it found the Ores in my bank, and then a shark for some reason... :O

    Trying others...

    I got a sinking feeling I'm going to be making an uber complicated withdrawing system... .

    ~Nava2
    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

  12. #12
    Join Date
    Feb 2006
    Location
    With mooncow on the moon
    Posts
    292
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Just so you know you cannot make a bitmap from the image you showed us as it is a .Jpg You need it in a .bmp format for scar to reconise it corectly and get the best results.
    ~ Solemn Wishes

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

    Default

    I THINK I FIGURED IT OUT!!

    FREDDY CAN'T PROGRAM!!!

    ^Jokes

    Uhm, the dtms are too close to ores and some other things in the bank. I'm going to make a function that will search each individual spot and store the ones which agree to variable.

    If anyone figures out a better way, PLEASE TELL ME.

    ~Nava2

    Quote Originally Posted by solemn wishes View Post
    Just so you know you cannot make a bitmap from the image you showed us as it is a .Jpg You need it in a .bmp format for scar to reconise it corectly and get the best results.
    I'm making dtms, and I attached a .png file to make it from, as you are right, the .jpeg is bad quality!

    ~Nava2

    So I wrote this fancy banking procedure, to make sure that the ores etc aren't withdrawn and this is what I get:

    ### Error: Out of (u) bows! [Time Running: 21 Seconds]

    ^ Thats the same error I always get! FAKKK.

    Here is the banking procedure.. maybe its wrong..

    SCAR Code:
    function WithdrawDTM(DTM1: integer; var x, y, Index:integer; UpText: TStringArray; Option: string): boolean;
    var x1, y1: integer;
        BankBox: TBox;
        Found: boolean;
    label Start;
    begin
      if (Index = 0) then
      begin
        Start:
        for Index := 1 to 50 do
        begin
          BankBox := BankIndexToMSBox(Index);
          if FindDTM(DTM1, x1, y1, BankBox.x1 , BankBox.y1, BankBox.x2, BankBox.y2) then
          begin
            MMouse(x1, y1, 4, 4);
            if IsUpTextMultiCustom([UpText]) then
            begin
              Writeln('Found DTM at Bank Slot ' + IntToStr(Index));
              Found := true;
              break;
            end;
          end;
        end;
      end else
      begin
        BankBox := BankIndexToMSBox(Index);
        if FindDTM(DTM1, x1, y1, BankBox.x1, BankBox.y1, BankBox.x2, BankBox.y2) then
        begin
          MMouse(x1, y1, 4, 4);
          if IsUpTextMultiCustom([UpText]) then
          begin
            Writeln('Found DTM at Bank Slot ' + IntToStr(Index));
            Found := true;
          end;
        end else
        begin
          Writeln('DTM Moved, checking bank again.');
          GoTo Start;
        end;
      end;
      Wait(200+random(150));
      if Found then
      begin
        GetMousePos(x, y);
        if (Option <> '') then
        begin
          Mouse(x, y, 0, 0, false);
          Wait(200+random(150));
          ChooseOption(Option);
        end;
        Result := true;
      end else
      begin
        Index := 0;
        Writeln('Could not Find DTM in Bank, Please check your inputted settings.');
      end;
    end;

    Nava2
    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

  14. #14
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Nava.... the edit button isn't broken... you can still edit rather than triple post
    STOP PM'ING ME

  15. #15
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Did you try my fix or not? That out of u bow error is caused by it finding the DTM as you don't have a not, so if it did find it, it would say error and if not, then continue, which is illogical.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

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

    Default

    Sorry Hobbit, it wasn't intentional

    Mix, it wasn't that. DDTM's don't work for some reason. I solved the issue though. Sorry forgot to edit the main post!

    I fixed by writing a banking procedure that doesn't need an individual DTM!

    Nava2
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pissed!
    By Blender in forum NOTA
    Replies: 1
    Last Post: 02-20-2009, 02:09 PM
  2. Getting pissed lol...
    By supersayian2224 in forum OSR Help
    Replies: 4
    Last Post: 06-09-2007, 06:09 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
  •