Explanation is a pointer to the current chat of the object. The object can be a player or an NPC. The chat variable is used by the default system to display text. If you for example disable the default system, for example with enablefeatures(), on a player, the variable is useless unless you create a custom system that uses the chat variable.


function onPlayerChats()
  if ( == "/foo") {
   echo("I said '/foo'.");

... Would echo "I said '/foo'." into your F2 menu if you said "/foo" when the onPlayerChats() event triggers.



There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki