Atrinik Server  4.0
Macros
Interface timeout definitions

Macros

#define INTERFACE_TIMEOUT_CHARS   50
 
#define INTERFACE_TIMEOUT_SECONDS   5
 
#define INTERFACE_TIMEOUT_INITIAL   5
 
#define INTERFACE_TIMEOUT_MAX   60 * 5
 
#define INTERFACE_TIMEOUT(ret)
 

Detailed Description

Settings for interface timeout, a setting which makes NPC stop movement certain amount of time when they respond to player's message.

The length of the message affects the timeout value.

Macro Definition Documentation

#define INTERFACE_TIMEOUT (   ret)
Value:
((long) (((double) MAX(INTERFACE_TIMEOUT_CHARS, \
#define INTERFACE_TIMEOUT_CHARS
Definition: define.h:1561
#define INTERFACE_TIMEOUT_SECONDS
Definition: define.h:1565
#define INTERFACE_TIMEOUT_INITIAL
Definition: define.h:1569

Calculates number of seconds for the interface timeout.

Definition at line 1578 of file define.h.

#define INTERFACE_TIMEOUT_CHARS   50

After this many characters in the message, for each X characters, INTERFACE_TIMEOUT_SECONDS will be added to the timeout, where X = the value of this constant.

Definition at line 1561 of file define.h.

#define INTERFACE_TIMEOUT_INITIAL   5

Initial number of seconds for the timeout.

Definition at line 1569 of file define.h.

#define INTERFACE_TIMEOUT_MAX   60 * 5

Maximum number of seconds the NPC may stop moving for, regardless of message length.

Definition at line 1574 of file define.h.

#define INTERFACE_TIMEOUT_SECONDS   5
See Also
INTERFACE_TIMEOUT_CHARS

Definition at line 1565 of file define.h.