About Skid Trap effect

chiba222

New member
Messages
20
Points
0
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.

 
Last edited by a moderator:
no, better use pushpc script command

Code:
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
 
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.

 
setunitdir

Code:
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;}
Code:
prontera,155,185,5	script	sdfjhsdfk	FAKE_NPC,2,2,{	pushpc DIR_NORTH, 5;	setunitdir getcharid(3), DIR_NORTH, DIR_HEAD_FRONT;}
 
Back
Top