PDA

View Full Version : Parsing LNET



Kaelozim
09-29-2010, 08:53 PM
I've poked around the API list looking for a way to parse lnet messages, private or otherwise. My final goal is to create interactivity for some scripts over "secure" lich private channel. :help:
Any ideas?

Tillmen
09-29-2010, 09:19 PM
LNet chats are visible to scripts in the same way game lines are. You can send chats from a script with something like this:

LNet.send_message(hash={'type'=>'private', 'to'=>'Jerk'}, 'test')

LNet.send_message(hash={'type'=>'channel', 'channel'=>'LNet'}, 'test')

DaCapn
09-29-2010, 09:40 PM
Look into the crosscharcom script on the repo.

Kaelozim
09-30-2010, 06:21 PM
Ok, and is there a hard-coded buffer that I can analyze for lnet chat?

Deathravin
09-30-2010, 06:33 PM
crosscharcom is great for systems on the same computer, but not so great coordinating characters across the country.