Results 1 to 5 of 5

Thread: DTM Fail

  1. #1
    Join Date
    Dec 2011
    Posts
    164
    Mentioned
    4 Post(s)
    Quoted
    23 Post(s)

    Default DTM Fail

    Simba Code:
    program LongBowMaker;
    {$DEFINE SMART}
    {$i SRL\SRL.simba}
    var
      t: integer;

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Member := True;
      Players[0].Active := True;
      Players[0].Pin := '';
    end;

        Procedure Llamas;
        var
          x, y, Logs, Knife: integer;
        begin
          Logs := DTMFromString('mbQAAAHicY2VgYMhkYWDIBuJyII6BYhdGBgZvRgTtAMRBptxA1UwomB9IomNGLBgMAGphBGo=');
          Knife := DTMFromString('mggAAAHicY2NgYLBlYWAwBGIXFgjbEoitgdiekYHBF4gtgNgSiB2B2A2IYyMjgbqYsGDsgBEHhgAAkUQEKw==');
          InvenKnife := DTMFromString('mggAAAHicY2NgYDjAxMBwEoi3AvF+KD4MxP+A+AMQ8zAzMDAD8W8g+zMQR4SGAHUxYcHYASMODAEA0KoJnA==');
          InvenLog := DTMFromString('mrAAAAHic42BgYEhhY2DIAOIiII4F4igozoGKrWBkYNgCxEuAeBEQrwbiTUA8H0rH2vAATWHCg/EDRgIYBgDftAl5');
          Setangle(0);
          MakeCompass('w');
          x:= MSCX;
          Y := MSCY;
          FindObjCustom(x, y, ['Talk-'], [4141109], 10);
          Mouse(x, y, 3, 3, false);
          WaitOption('ank B', 2000);
          Wait(randomrange(1200, 1600));
          FindDTM(knife, x, y, MSX1, MSY1, MSX2, MSY2);
          Mouse(x,y, 2, 2, true);
          Wait(randomrange(1200, 1600));
          FindDTM(Logs, x, y, MSX1, MSY1, MSX2, MSY2);
          Mouse(x,y, 2, 2, False);
          Wait(randomrange(1200, 1600));
          ChooseOption('All M');
          CloseWindow;
          Wait(randomrange(400,550));
          FindDTM(InvenKnife, x, y, MSX1, MSY1, MSX2, MSY2);
          Mouse(x,y, 2, 2, true);
          Wait(randomrange(100,150));
          FindDTM(InvenLog, y, MSX1, MSY1, MSX2, MSY2);
          Mouse(x,y, 2, 2, true);


          //Chooseoption all;   //Mouse(x,y, 2, 2, false); Chooseoption all. Bye
        end;
        Begin
        smart_server := 91;
        smart_members := false;
        smart_signed :=true;
        smart_superdetail := false;
        SetupSRL;
        DeclarePlayers;
        LoginPlayer;
        Llamas;
        end.
    I've been making my first DTM scripts, and have gotten to this point (Look above) but it appears that there's something wrong with the DTM's. Especially the 3rd Declared one

    InvenKnife := DTMFromString('mggAAAHicY2NgYDjAxMBwEoi3AvF+KD4MxP +A+AMQ8zAzMDAD8W8g+zMQR4SGAHUxYcHYASMODAEA0KoJnA== ');

    When I try to start the script That line is highlighted and this error comes up

    [Error] (27:7): Unknown identifier 'InvenKnife' at line 26
    Compiling failed.

    If anyone knows what the issue is, I'd really appreciate help Thanks!

  2. #2
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    545
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    You have to declare "invenknife" and the other DTMs as integers, just like you did with "knife", "x", "y" and "Logs"

    Like:
    Simba Code:
    var
      x, y, Knife, Log, invenKnife, InvenLog:Integer;
    Last edited by Chris; 01-22-2012 at 09:56 PM.

  3. #3
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Also, make sure you free your DTM's.
    I'm back

  4. #4
    Join Date
    Dec 2011
    Location
    Ontario, Canada
    Posts
    1,735
    Mentioned
    5 Post(s)
    Quoted
    89 Post(s)

    Default

    Yea you have to declare it in variables as an integer. Chris is correct.
    FEEL FREE TO PM ME ABOUT ANYTHING! Will help over Teamviewer...just ask!! "WITH A NEW QUESTION COMES A NEW CHALLENGE"
    Silentcore's AIO Service team !!! Pm me if you want questing done or service done or post on thread ofc

  5. #5
    Join Date
    Dec 2011
    Posts
    164
    Mentioned
    4 Post(s)
    Quoted
    23 Post(s)

    Default

    OHHHH I totally forgot about Declaring them! Thanks Guy!

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
  •