Results 1 to 3 of 3

Thread: Scripting for other game Can any1 help me with DTMs?

  1. #1
    Join Date
    Jul 2012
    Location
    Estonia, dont try to find it from the map its a cave!
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Question Scripting for other game Can any1 help me with DTMs?

    Hi, can any1 help me with DTMs finding the item on other game im stuck with atm.
    {$I SRL/SRL.Simba}
    var
    Plus5, x, y: integer;

    begin
    Plus5:= DTMFromString('mbQAAAHicY2VgYLjFCsF3kegWJgaGTiBuB+ JGKL5wdg/DyeO7GC5cOMFw59oJhts3LjPwA/WjY0YsGAwAIWoTYg==');
    SetupSRL;
    if FindDTM(Plus5, X, Y, MSX1, MSY1, MSX2, MSY2) then
    begin
    writeln('Found DTM "plus5"');
    MMouse(x, y, 0, 0);
    end;
    end.

    as I dont have no prev. programming exp idk whats wrong but.
    this is what I get > Warning! You passed a wrong xe to a finder function: 764. The client has a width of 596, thus the xe is out of bounds. Setting the value to 595 (w-1) for now.
    Successfully executed.

    any1 mind helping me with it?
    also wondering how does the press mouse hold mouse release mouse function works any help with this1 too?
    im trying to script for other game and clickmouse did the trick but seems like the 3rd button wants longer click or hold it for a sec.


    I dont have any prev. programming exp.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    MSX1, MSY1, MSX2, MSY2
    This is the Main Screen box solely for the official RS.
    You should change it to what you want the script to find the DTM in. (GetClientDimensions, then w - 1, h - 1 to search the whole client)

    It's simply HoldMouse(), then wait() for whatever long you want, then ReleaseMouse().

  3. #3
    Join Date
    Jul 2012
    Location
    Estonia, dont try to find it from the map its a cave!
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    that helped thnx alot

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
  •