Jump to content
  • 0
Sign in to follow this  
chiba222

About Skid Trap effect

Question

Hi everyone,

I am working on a script which need to move player by OnTouch command.

Each time when player touch the npc, the player will be moved to the same direction.

Is anyone know how to make it works like skid trap?

Thank you. 

 

X1Adtzn.png


 

using command "unitskillusepos" and work fine.

unitskillusepos getnpcid(0),115,5,88,13;

and the last problem is how to change the player's pointing direction.

But I think the result of SC_RUN is much more better than using  unitskillusepos

Thank you.

Edited by chiba222

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

no, better use pushpc script command

prontera,155,185,5	script	sdfjhsdfk	FAKE_NPC,2,2,{	pushpc DIR_NORTH, 5;}
if want to change player's facing direction, can try setunitdir custom script command

Share this post


Link to post
Share on other sites
  • 0

 

no, better use pushpc script command

prontera,155,185,5	script	sdfjhsdfk	FAKE_NPC,2,2,{	pushpc DIR_NORTH, 5;}
if want to change player's facing direction, can try setunitdir custom script command

Thank you so much.

I just know this command from you.

Can you tell me how did you search this script command?

I had checked the category of Herc.ws but only few commands there.

Share this post


Link to post
Share on other sites
  • 0

setunitdir

 

prontera,155,185,5	script	sdfjhsdfk	4_NECORING,{	input .@d;	setunitdir getcharid(3), DIR_SOUTH;	setunitdir getcharid(3), DIR_SOUTH, .@d;//	setunitdir getnpcid(0), .@d;//	dispbottom getunitdir( getnpcid(0) ) +"";//	.@id = monster( "this",-1,-1, "--ja--", PORING, 1, "" );//	setunitdir .@id, .@d;}

prontera,155,185,5	script	sdfjhsdfk	FAKE_NPC,2,2,{	pushpc DIR_NORTH, 5;	setunitdir getcharid(3), DIR_NORTH, DIR_HEAD_FRONT;}

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.