Results 1 to 2 of 2

Thread: DTM Open door and stair Problem

  1. #1
    Join Date
    May 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Question DTM Open door and stair Problem

    Hello!

    I've just started to learn how to make some scripts but need help.

    I wanted to make the bot use the door at the house and climb down the stair to Hill Giants close to varrock.

    And i looked at the public script JOEbotsGiants to see how to make that.
    I just wanted to have this part of the script but can't make it work:.

    Simba Code:
    program new;
    {$DEFINE SMART}
    {$i SRL\SRL.simba}

    procedure EnterHillG;
    var
    myPath:TPointArray;
    DTM,x,y, cx, cy, Door, LadderIn, Entrance, Dwalk: Integer;
    GetIt: Extended;

          begin
            Door := DTMFromString('mggAAAHicY2NgYIhiZGAoBmIbILYDYg9GiFg0lO0LxEFAbA/FigoSDIoqEgyWFpYMEhISDJoaimAxZqBZ2DAjDgwBADFoBkc=');
              if FindDTMRotated(Door, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, GetIt) then
                begin
                  mouse(x,y,1,1,False);
                  ChooseOption('pen')
                end;

            begin // Ladder Enterer
              LadderIn := DTMFromString('mrAAAAHic42BgYOAHYm4GCGCEYkEgVoRiMSDmgGJxIFaBYn6oHnUBVgYfSyUGDzN5BhV+VgZeXl4wdjUVZYhwlmYgBBgJYBgAALFlBF8=');
              if FindDTMRotated(LadderIn, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, GetIt) then
              begin
                mouse(x,y,1,1,False);
                ChooseOption('limb-down')
              end;
            end;
            FreeDTM(Door);
            FreeDTM(LadderIn);
            end;

                begin
            SetupSRL;
            EnterHillG;
                end.

    I know there is some variables that i do not use, MyPath and so on. But when i took them away i got errors. So i just let them be. But it would be nice if i could get some help with that aswell.

    I wanted to try to learn how DTM works so the Ladder DTM code i've changed to one of my own. But i havent gotten that far when i tried it so i do not know if it works either.

    You start it just outside of the Brass-key-house door and then it should open the door and go downstairs.

    Thanks!

    Dear // Jannemus!

  2. #2
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DTMs are generally used for things that are stationary and do not change (Ex. Items)
    For what you are doing the best method is using Color Finding and a great tool known as Auto Color Aid. I recommend you start here to learn.

    If you need any help or have any issues please let me know

    Edit: Accepted your Skype request let me know when you are back
    Last edited by Based Lord; 07-03-2012 at 02:13 AM.
    Mostly Inactive, School

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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