Results 1 to 14 of 14

Thread: Dtm request

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Dtm request

    Can someone make me a working Camelot Teleport Spellbook symbol dtm?

    Thanks
    ~DeSnob

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the spell book is constant colors. You would not require a dtm, just simple color finding in a certain area.
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Mind showing me how findcolor works, i don't know all of the parts.
    Also, how do i gather points(x, y) in a Smart window?

    Thanks,
    ~DeSnob

  4. #4
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    same way you gather points on a regular screen. Look in my dummy curser for a detailed way to do it (tbh i think i just used co-ords/getcolor).

    You can simply make a box around the cast, and serach for the color of when it is able to be casted. so something like....

    SCAR Code:
    findcolor(x, y, colorhere, box1, box2, box3, box4);

    use an if..then statement with it and your smooth sailing.
    “Ignorance, the root and the stem of every evil.”

  5. #5
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    Mind showing me how findcolor works, i don't know all of the parts.
    Also, how do i gather points(x, y) in a Smart window?
    Open SCAR > Hit F1 > Ctrl + F > FindColor, that should help.

    When you say gather points, do you mean the coordinates? Or if you're talking about the x, y in FindColor you would do something like this:
    SCAR Code:
    if FindColor(x, y, Color, MIX1, MIY1, MIX2, MIY2) then
    begin
      Wait(80 + Random(500));
      Writeln('Found Color!');
      MMouse(x, y, 4, 4);
      if IsUpText('UpText') then
        Mouse(x, y, 0, 0, True);
    end;

    Of course you can play with it a bit, but that would move the mouse to the color you want, and if hte UpText is correct, it would click.

    I hope I helped.

    EDIT: Ninja'd!
    Last edited by Coh3n; 07-05-2009 at 10:01 AM.

  6. #6
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I made one with a bitmap for you. (i think they are faster in new Scar)

    SCAR Code:
    program New;
    {.include SRL\SRL.Scar}

    Var
       X, Y, Camelot: Integer;

    Procedure LoadBmp;
    Begin
      Camelot := BitmapFromString(10, 8, 'beNpjYOhvO9XQdsDTJyHHp+' +
           'MPGAAZOX7dnCwODAwMLW0nGBiYgFwGBhcHBxACMnzcOIGCQNkpSy6' +
           '6OOnGuOWaGLi4a8SCUYC/bpEPSwJI77ybPLwGQBEFfkWYLEgBEAFl' +
           'k1mOsDCwANkCPCoMLAwgJOrgxBrEw6MAlE1POcYi1CkDlNJN2LD/K' +
           'RA5MHoBuSwMKkBZBgkOBpYDQAVAE4DWgfQCDWABUg0M+AEAOS0zEQ' +
           '==');
    end;



    Procedure CamelotTele;
    Begin
      LoadBmp;
      If FindBitmapIn(Camelot, X, Y, MIX1, MIX2, MIY1, MIY2) Then
      Begin
        MMouse(X, Y, 1, 1);
        If IsUpTextMultiCustom(['Cast Camelot Teleport, Camelot Teleport, melot, eleport']) Then
        Begin
          Mouse(X, Y, 0, 0, True);
          Writeln('Casted Spell : Camelot Teleport');
        End;
      End;
    End;

    begin
      FreeBitmap(Camelot);
    end.

  7. #7
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You free it when you don't load it. Lulz.

  8. #8
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks all, i used color finding, but now i'm going to use bitmap finding as it may be more accurate

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    Thanks all, i used color finding, but now i'm going to use bitmap finding as it may be more accurate
    Use both. Use one as a failsafe.

  10. #10
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    If you need any help with DTMs at a later date, refer to my tut. I won't post a link because it will get moved to the correct section - currently in Un-sorted Tuts.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  11. #11
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can. It should redirect or something like that .

  12. #12
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Meh, all it takes is a search
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  13. #13
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  14. #14
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I know how to make a dtm, just wasn't able for this.

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
  •