Results 1 to 2 of 2

Thread: [AeroLib or SRL] Need help using Uptext for Npc's

  1. #1
    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Thumbs up [AeroLib or SRL] Need help using Uptext for Npc's

    I am looking for someone to help me learn how to use Uptext for a thieving bot. I am pretty new to everything other than color bots. If you are willing to help, add my Skype below. I am willing to 'help' you if you can help me.

    Skype : ArizeAOX

    P.S. I had another thread in the Script Request section but I believe it was in the wrong section as I would rather learn than have it created for me. If a moderator see's this, you can delete my other thread if needed.
    Last edited by RTS; 05-11-2017 at 02:41 PM.

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Like I said before, Simba can handle that without an include.

    Here is a function that works on Runique:
    Simba Code:
    1. function getUpText(): string;
    2. const
    3.   col = $0066ff;
    4. var
    5.   bmp, w, h, oldT, newT: integer;
    6.   b: TBox;
    7.   tpa: TPointArray;
    8. begin
    9.   if findColors(tpa, 16777215, 12, 52, 520, 68) then
    10.   begin
    11.     oldT := getImageTarget();
    12.     b := getTPABounds(tpa);
    13.     bmp := bitmapFromClient(b.x1, b.y1, b.x2+1, b.y2+1);
    14.  
    15.     //you probably don't need all of these colors
    16.     fastReplaceColor(bmp, 16777215, col); //pure white
    17.     fastReplaceColor(bmp, 4231423, col); //light orange item text
    18.     fastReplaceColor(bmp, 65280, col);
    19.     fastReplaceColor(bmp, 255, col); //red
    20.     fastReplaceColor(bmp, 65535, col); //yellow?
    21.     fastReplaceColor(bmp, 16776960, col);
    22.     fastReplaceColor(bmp, 16744447, col);
    23.     fastReplaceColor(bmp, 28927, col);
    24.     fastReplaceColor(bmp, 25800, col);
    25.  
    26.     getBitmapSize(bmp, w, h);
    27.  
    28.     try
    29.       setTargetBitmap(bmp);
    30.       result := getTextAtEx(0, 0, w-1, h-1, 0, 4, 4, col, 0, 'upChars07');
    31.     finally
    32.       newT := getImageTarget();
    33.       setImageTarget(oldT);
    34.       freeTarget(newT);
    35.       if bitmapExists(bmp) then freeBitmap(bmp);
    36.     end;
    37.  
    38.   end;
    39. end;
    If you tell us which this RSPS you're talking about, someone might be able to help you further.
    Last edited by Citrus; 05-11-2017 at 03:56 PM.

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
  •