Jump to content
  • 0
Sign in to follow this  
mrlongshen

Equip and effect

Question

1 answer to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.