Results 1 to 5 of 5

Thread: I want to make a font. And then Text Finding functions with it. Help me.

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Edit: Figured it out! ! Woo Woo!

    I've got numbers 0-9 and I've made masks of them. Now I want to make something like
    SCAR Code:
    FindText(WatText:String;x1,y1,x2,y2:Integer;):Boolean;

    Someone please explain the process?

    Hmm is it really this easy?
    SCAR Code:
    function FindNPCChatText(txt: string; Action: fnct_ActionOptions): Boolean;
    var
      tx, ty, S: Integer;
    begin
      Result := False;
      if txt = '' then
      begin
        srl_Warn('FindNPCChatText', 'txt is empty', warn_AllVersions);
        Exit;
      end;
      S := CreateBitmapMaskFromText(txt, NPCChars);
      if FindBitmapMaskTolerance(S, tx, ty, 9, 348, 523, 471, 50, 10) then
      begin
        Result := True;
        case Action of
          Move: MMouse(tx, ty + 2, Random(Length(txt) * 5), 4);
          ClickLeft: Mouse(tx, ty + 2, Random(Length(txt) * 5), 4, True);
          ClickRight: Mouse(tx, ty + 2, Random(Length(txt) * 5), 4, False);
        end;
      end;
      FreeBitmap(S);
    end;


    What would I replace
    CreateBitmapMaskFromText(txt, NPCChars);
    NPCChars with? Where would I place my bitmaps?
    Last edited by YoHoJo; 12-08-2009 at 11:50 PM.

  2. #2
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Scars function will always be at least two times as fast as it isn't done through scar script and done in a real programing language.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Um What? Confusing sentence there...

  4. #4
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    I think he basically saying : "program in a different language cuz scar is slow".

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Totally offtopic. I'm making a script for SCAR for runescape .

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
  •