Page 1 of 1

This seems to work well for script waiting for chatlog line

Posted: July 19th, 2004, 6:49 am
by rortiz
This is what appears in the swgchatlog

"07/16/04 09:10:51 AM XXX tells you, '\#f4ef1dbuffmind\#.'...."

'Wait for Musicbuff request

LogLine = XUScriptHost.WaitForLogFileText(LogFile,"buffmind",1000)

If InStr(LogLine,"buffmind") > 0 then

buffmind

End If

To split out the target name use

TargetName= Split(LogLine, " ")(3)

you then can build a var like TargetCommand

TargetCommand = "/target " & TargetName

doCommand(TargetCommand)

The doCommand sub is in the autohunter script.

So far this works....

Anyway still working on the script, when I get done i will post it

Posted: July 19th, 2004, 12:28 pm
by wyvernx
Have you looked at drdeath's scripts for autohunting?



He had some fancy code to look at the mob levels by the FFXXXX color generated in the log too.


They might be still on the old forum, let me check.

Posted: July 19th, 2004, 1:56 pm
by rortiz
You mean this line?

Target = mid(cstr(LogLine),22,InStr(LogLine,"tells") - 22)

This would also work. Should be faster to.

Posted: July 19th, 2004, 2:39 pm
by wyvernx
no, drdeath wrote some swg scripts to auto-hunt monsters.

Nice scripts btw.