Difference between revisions of "Npctalk"

From Hercules Wiki
Jump to: navigation, search
(Created page with "==Syntax== *'''npctalk''' <"message">; ==Description== This command will display a message to the surrounding area, as if the NPC running it, was a player talking, that i...")
 

Latest revision as of 08:38, 9 June 2013

Syntax

  • npctalk <"message">;

Description

This command will display a message to the surrounding area, as if the NPC running it, was a player talking, that is, the message, which is prefixed with NPC's display name appears above it's head and in the chat window.

Examples

npctalk "Hello "+strcharinfo(0)+", how are you?";

This will make everyone in the area see the NPC greet the character, who just invoked it.