Results 1 to 12 of 12

Thread: Getting in game text and making it a variable

  1. #1
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default Getting in game text and making it a variable

    Anyone? I don't know how I could look in a specific spot and return what is says in a variable (I need to return a in-game number as a string/integer, but probably as a string to be used in conjunction with a "case" statement).


    Thanks in advance!



    PS- is there a function to tell you what world your in?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    GetTextAt?

    Not sure how to use it, but I think it's what you're looking for
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Sorry, I forgot to add something to my post - the Initial value is UNKNOWN


    I think thats it though, thanks.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    u trying to buy sumthing? and see the price?
    if so...i use this

    SCAR Code:
    text := GetNumbers(GetTextAtEx(18, 415, 7, SmallChars, False, False, 0, 0, 0, 50, False, tr_allChars));
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Wait, does that make it an integer? Because if it does, I wub you
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  6. #6
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    if you want the price of something, PM me, I'll show you a nifty little procedure I made for finding values
    Interested in C# and Electrical Engineering? This might interest you.

  7. #7
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    mine gets all of it..then takes the number and makes it the var
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #8
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dan cardin's returns it as a string only.

    To make it an integer you can use StrToInt(text);

    Likewise, there is IntToStr and BoolToStr etc.

  9. #9
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if you want to get what world your in, click on friends tab and grab the text from World <num>

  10. #10
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    woah! if it finds 35 then itll turn into a string...and then text< 20wouldnt work!?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  11. #11
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    StrToInt?

  12. #12
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Thank you guys, its really helping.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Making items in the text box
    By GreatKhan in forum OSR Help
    Replies: 1
    Last Post: 11-23-2008, 06:12 PM
  3. Help with my mini text based game, values reset
    By Rs-Gp-4U in forum C/C++ Help and Tutorials
    Replies: 3
    Last Post: 05-06-2008, 04:21 PM
  4. Find text in game chat.
    By Kosaki in forum OSR Help
    Replies: 9
    Last Post: 01-06-2008, 02:07 PM
  5. Making Masks of Text
    By dudesareus in forum OSR Help
    Replies: 2
    Last Post: 05-19-2007, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •