Equip and effect

Try to use specialeffect and/or specialeffect2 script commands for that:

*specialeffect <effect number>{,<send_target>{,"<NPC Name>"}};

This command will display special effect with the given number, centered
on the specified NPCs coordinates, if any. For a full list of special
effect numbers known see 'doc/effect_list.txt'. Some effect numbers are
known not to work in some client releases. (Notably, rain is absent from
any client executables released after April 2005.)

<NPC name> parameter will display <effect number> on another NPC. If the
NPC specified does not exist, the command will do nothing. When specifying
an NPC, <send_target> must be specified when specifying an <NPC Name>,
specifying AREA will retain the default behavior of the command.

 // this will make the NPC "John Doe#1"
 // show the effect "EF_HIT1" specified by
 // Jane Doe. I wonder what John did...
 mes "[Jane Doe]";
 mes "Well, I never!";
 specialeffect EF_HIT1,AREA,"John Doe#1";
 close;

---------------------------------------

*specialeffect2 <effect number>{,<send_target>{,"<Player Name>"}};

This command behaves identically to the 'specialeffect', but the effect
will be centered on the invoking character's sprite.

<Player name> parameter will display <effect number> on another Player
than the one currently attached to the script. Like with specialeffect,
when specifying a player, <send_target> must be supplied, specifying AREA
will retain the default behavior of the command.
 
Back
Top