Results 1 to 6 of 6

Thread: Getting uptext

  1. #1
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default Getting uptext

    What is the most reliable way to get the uptext. In my herb lore script I'm making, one of the biggest problems I am having is the function "IsUpTextMultiCustom" fails to find the text sometimes. Especially when the area the text is at is not a uniform color. I was thinking of making a fail safe that examines the item and gets the chat text to check if it is the correct item, but this will slow the script down a whole lot. The function fails quite often. So what would be the best way to go about this?
    Not scripting for RS anymore, sorry. Banned too many times.
    MY SCRIPTS

  2. #2
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default

    anybody?
    Not scripting for RS anymore, sorry. Banned too many times.
    MY SCRIPTS

  3. #3
    Join Date
    Nov 2011
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Normally I just use
    if IsUptext then

  4. #4
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Simba Code:
    If IsUpText('Objects UpText');
    :/



    ^^

  5. #5
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe UpText results are highly dependent on the background of the Uptext, which can fail often if the text background are messy. One silly thing you can try is to change camera angles so that you get a background that gives better uptext detection.

    Anyway, are you detecting drops or inventory items? If inventory items the best way is still DTM.

  6. #6
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Try this:
    Simba Code:
    if (WaitUpText('uptext', millisecond_wait)) then
      WriteLn('Success.');

    I am 99% sure that UpText does not fail if the area is not a proper color due to the way the text recognition is in Simba.

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
  •