Skip to content

function attackPlayerMagic (client-side)

Available since version: 0.1.3

Note

The victim will receive damage calculated damage by the game.

This function is used to force npc to magic attack the other npc.

Declaration

bool attackPlayerMagic(int attackerId, int victimId, int spellId)

Parameters

  • int attackerId: the attacker id.
  • int victimId: the victim id.
  • int spellId: the id of the spell item.

Returns bool

true if attack was successfully executed, otherwise false.