PDA

View Full Version : Lich & StormFront



bac240sx
02-17-2011, 10:13 AM
Trying my hand at writing Lich scripts and ran into a couple of questions that neither Google or the API seemed to be able to answer:

1. Is there a way to have a Lich script add to or remove names/strings from StormFront's highlighting list?

2. Relatedly, is there a way to have Lich initiate a StormFront script? The following doesn't work (although it seems to output correctly):



fput "\.scriptname var1 var2"

Tillmen
02-17-2011, 11:14 AM
The short answer is no.

The long answer, you can use a Lich script to create and xml file to import into Stormfront as highlights. And you could possibly use Windows API to find the Stormfront window and enter text in the command prompt.

Stormfront is connected to Lich locally on your computer, and Lich is connected to the game, so when Lich sends commands to the game, Stormfront never sees them. When Lich sends something to Stormfront, it looks like it came from the game, so it can't start a script.

bac240sx
02-17-2011, 04:35 PM
Thanks for the quick reply! Writing to an XML file would probably suit my needs just as well. How do I tell Lich to create/write to the XML file?

Actually, it it's easier, is there a script on the repository you know of that already does this that I can go poking around in?

Greminty
02-17-2011, 07:32 PM
Well, you could setup a script in stormfront that waited for a specific type of input and then ran a script based on that. Use something along the lines of this: http://gemstone.kthanks.com/catchtext.txt

Instead of "Soandso says", make it some special string like ".;." that you'll send from Lich. Then instead of echoing at the end, just have it "put .%word%".

I think that might work. Then, if you like, have any script you plan on calling this way restart this master script when it's done.