Results 1 to 14 of 14

Thread: Making own uptext for projectrs06

  1. #1
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default Making own uptext for projectrs06

    Hi guys, I have looked at a few tutorials. I'm searching for a simple, but effective method in getting the uptext characters a couple methods look like they'll take ages and I don't have too much time
    Thank you guys

  2. #2
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    If you know if any of the current fonts we have match with the old font then it's quite simple.

    Check this out:

    http://villavu.com/forum/showthread.php?t=60451

  3. #3
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    If you know if any of the current fonts we have match with the old font then it's quite simple.

    Check this out:

    http://villavu.com/forum/showthread.php?t=60451
    Doesn't work, is there any newer tutorial? I've searched around for some and that's the one i came across too.

  4. #4
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Blakebn2011 View Post
    Doesn't work, is there any newer tutorial? I've searched around for some and that's the one i came across too.
    It does work. I've used it...

  5. #5
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    It does work. I've used it...
    Yup my mistake, your no the only one who said it works.
    Ok, I've made my charset I didnt load it into the script though- and i think i'm using a function from scar..
    Last edited by Syntax; 01-10-2013 at 10:18 AM.

  6. #6
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Blakebn2011 View Post
    Yup my mistake, your no the only one who said it works.
    Ok, I've made my charset I didnt load it into the script though- and i think i'm using a function from scar..
    Fair enough, make sure it is all the same height and joins properly.

  7. #7
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Fair enough, make sure it is all the same height and joins properly.
    1 pixel space between each and same height. Could you share your function for adding the text to the script.
    Thank you.

  8. #8
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    You could make a script that automatically types each letter to the chatbox and then saves that letter to your fonts folder and then presses backspace before typing another letter. I used to do this in rsc but don't have the script anymore I think :/
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  9. #9
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by Blakebn2011 View Post
    1 pixel space between each and same height. Could you share your function for adding the text to the script.
    Thank you.
    http://villavu.com/forum/showthread.php?t=94612

    thats a snippet I made to find font in a certain area.

  10. #10
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    The tutorial telling people how to create your own uptext does not help much.. because once you create it chances are you have no idea how to include it into your script which the tut does not explain -.-

  11. #11
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    The tutorial telling people how to create your own uptext does not help much.. because once you create it chances are you have no idea how to include it into your script which the tut does not explain -.-
    Yeah man, that's pretty much my problem, I got the text I just need to implement it into my script.
    Been looking for scripts with it in the Other Section. Haven't found any so I gave up :/

  12. #12
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Once you have the folder with all the chars you need to load the font in the mainloop

    Simba Code:
    LoadFont(Fontname, True);

  13. #13
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Once you have the folder with all the chars you need to load the font in the mainloop

    Simba Code:
    LoadFont(Fontname, True);
    So then how do we use the uptext? lol

  14. #14
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    So then how do we use the uptext? lol
    Once you've loaded it you need to find the uptext. I used a box to find it,

    Simba Code:
    (*
    GetAbilityName
    ~~~~~~~~~~~~

    .. code-block:: pascal

        function GetAbilityName(Slot : Integer);

    Returns the text of an abilities name in the hotbar

    .. note::

      by Xtrapsp

    .. others::
      Olly
      JJ
      Dynamite

    Example:

    .. code-block:: pascal

    *)


    function GetAbilityName(Slot: Integer) : string;
    var
      Ability : String;
      Box, B : Tbox;
      i: Integer;
      P: TPoint;
      cArr: TPointArray;
      ResultTPA: String;

      begin
      Box := AbilitySlotToBox(Slot);
        Writeln('found Slot');
        Writeln(Box);
        MMouse(randomRange(Box.x1, Box.x2), randomRange(Box.y1, Box.y2), 0, 0);
        wait(100+Random(1000));
       begin
          Result := 'Undefined'; // Setting Result to equal nothing
          if (findColorsSpiralTolerance(MSCX,MSCY,cArr,1774603,MSX1,MSY1,MSX2,MSY2,0)) then
          begin
            B := GetTPABounds(cArr);
            SMART_DrawBoxEx(True,False,B,clyellow);
            wait(100);
            Result := GetTextAtExWrap(B.x1,B.y1,B.x2,B.y1+20,1,4,0,3111603,1,UpChars);

            Writeln('Result: ' + Result);
          end;
      end;
    end;

    What this does is select and ability, find the title of it and print it.

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
  •