chiba222 0 Posted December 27, 2015 (edited) 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. 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 December 27, 2015 by chiba222 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted December 27, 2015 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 1 Angelmelody reacted to this Quote Share this post Link to post Share on other sites
0 chiba222 0 Posted December 27, 2015 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. Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted December 28, 2015 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;} Quote Share this post Link to post Share on other sites
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.
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 chiba222Share this post
Link to post
Share on other sites