Difference between revisions of "Clif Emotion"

From Hercules Wiki
Jump to: navigation, search
(Created page with "==Syntax== void '''clif_emotion'''(struct block_list *bl,int type); ==Parameters== * '''bl''' - Pointer to a block list, which identifies the game object, which shows the em...")
 

Latest revision as of 03:25, 13 January 2013

Contents

Syntax

void clif_emotion(struct block_list *bl,int type);

Parameters

  • bl - Pointer to a block list, which identifies the game object, which shows the emotion.
  • type - Indicates, which emotion the game object uses (see e_* constants in db/const.txt for all possible values).

Description

Notifies all clients in bl's area (including bl itself, if it identifies a player), that bl is using an emotion. Causes each client to display an emotion above bl's head, depending on type.

Example

clif_emotion(&sd->bl, 9);

This would show a (...) emotion above the head of given player. All players in his or her vicinity would be able to see this as well.