Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2006, 07:20 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to 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.
__________________



Reply With Quote
  #2  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.