View Single Post
  #4  
Old 09-10-2006, 07:26 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Omini
I want a script to read the log (F2) and if it reads it starting off with...

"PM: received from"

...it triggers an action.
It doesn't need to be a requesttext(); since requesttext() is for asking the server for things.

Stefan could probably incorporate functionality for reading from the log window though. If you're looking to detect PMs, there are actual script functions for doing so clientside:
PHP Code:
function onPM(obj)
{
  echo(
format("PM received from %s"obj.account));

Reply With Quote