Clif Skill Nodamage

From Hercules Wiki
Revision as of 03:26, 13 January 2013 by Mysterious (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Syntax

int clif_skill_nodamage(struct block_list* src, struct block_list* dst, int skill_id, int heal, int fail);

Parameters

  • src - Specifies the source object of the no-damage skill. Can be NULL.
  • dst - Specifies the skill affected (destination) object.
  • skill_id - ID of the skill to display.
  • heal - Heal value, if the skill effect displays HP or SP gain, otherwise skill level.
  • fail - Whether the skill failed or not.

Description

Displays a skill effect on dst from src, and is responsible for screaming the name by src, of a non-damaging skill. If used with incompatible skill, the dst object (ex. player) will only scream the name, but no effect will be shown, likewise if fail is set to 1. heal (skill level) of -1 will disable src from screaming the skill name.

Example

clif_skill_nodamage(&sd->bl, &tsd->bl, AL_HEAL, 12000, 0);

Will make player sd scream 'Heal !!' and show a heal effect of 12,000 HP on player tsd.