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?
loser69
2012-01-13 03:46:11
Normally I just use
if IsUptext then
If IsUpText('Objects UpText');
:/
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.
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.