|
Post by xwxjncoxwx on Feb 27, 2006 13:24:27 GMT -5
checkhere = "There are no party members."
currentline = FFXI.chat_GetNewestLineNumber() test = FFXI.chat_GetLine(currentline) if test == checkhere then Control.control_SendString("Refresh Ready") else Control.control_SendString(checkhere) Control.control_SendString(test) end
The "if test == checkhere then " does not work even when they are the exact same.. how do you compair strings? Am i missing something ?? I just want to to message me when my refresh drops...
|
|
|
Post by xwxjncoxwx on Feb 27, 2006 14:11:07 GMT -5
if test == "There are no party members.1"
That fixed it.. for some reason in the log file it adds that to the end ?? strange?
|
|
|
Post by TinyTerror on Feb 27, 2006 14:13:36 GMT -5
You can also check for substrings. This is useful when the text has some garbage in there that might not equate properly using lua's operators.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Feb 27, 2006 16:17:07 GMT -5
Perfect use for string.find().
Use:string.find(subject,"Search pattern")
|
|