generated from Jaysyn/ModuleTemplate
17 lines
441 B
Plaintext
17 lines
441 B
Plaintext
/*
|
|
| script: oc_echo
|
|
| author: gsmithcat@yahoo.com
|
|
| date: 6/28/02
|
|
| called: OnSpawn
|
|
| behavior: This script sets up an NPC to listen to anything said by a PC. The
|
|
| event handler for this is in oc_echo.
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
//using "**" listens to all text
|
|
//the 777 is arbitrary and can be any number you like
|
|
SetListenPattern(OBJECT_SELF, "**", 777);
|
|
SetListening(OBJECT_SELF, TRUE); //be sure NPC is listening
|
|
}
|