NDOIN

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search

[Main] [Lua Examples]

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Object Functions & Examples

NpcSpeech()

Params
say - string to say
speechtype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log.
Returns
bool - true if valid false if not
Causes the object to speak with overhead chat, making the object "talk". Does not play a sound. See PlayObjectSound(...) to play a sound.

Example

 CODE EXAMPLE BLOCK

NpcSpeechToUser()

Params
say - string to say
saytype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log
gameobject - target user
Causes the object to speak with overhead chat, making the object "talk" to a specific user.

Notes: Does not play a sound. See PlayObjectSound(...) to play a sound..

Example

 CODE EXAMPLE BLOCK