SRL Archive - OSR Help

Getting uptext


bud_wis_er_420

2012-01-10 21:47:10

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?

bud_wis_er_420

2012-01-13 03:34:13

anybody?

loser69

2012-01-13 03:46:11

Normally I just use
if IsUptext then

Mat

2012-01-13 16:34:21

If IsUpText('Objects UpText');
:/

Er1k

2012-01-14 08:16:11

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.

RISK

2012-01-14 08:28:14

Try this:
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.