Vietlubu Posted February 18, 2012 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 141 Reputation: 24 Joined: 01/19/12 Last Seen: March 30 Share Posted February 18, 2012 how to creat a ncp (Poring) can walk Quote Link to comment Share on other sites More sharing options...
Gennosuke Kouga Posted February 18, 2012 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 83 Reputation: 57 Joined: 01/21/12 Last Seen: September 15, 2014 Share Posted February 18, 2012 *npcspeed <speed value>; *npcwalkto <x>,<y>; *npcstop; These commands will make the NPC object in question move around the map. As they currently are, they are a bit buggy and are not useful for much more than making an NPC move randomly around the map. (see 'npc/custom/devnpc.txt' for an example of such usage) 'npcspeed' will set the NPCs walking speed to a specified value. As in the @speed GM command, 200 is the slowest possible speed while 0 is the fastest possible (instant motion). 100 is the default character walking speed. 'npcwalkto' will start the NPC sprite moving towards the specified coordinates on the same map as it is currently on. 'npcstop' will stop the motion. While in transit, the NPC will be clickable, but invoking it will cause it to stop motion, which will make it's coordinates different from what the client computed based on the speed and motion coordinates. The effect is rather unnerving. Only a few NPC sprites have walking animations, and those that do, do not get the animation invoked when moving the NPC, due to the problem in the NPC walking code, which looks a bit silly. You might have better success by defining a job- sprite based sprite id in 'db/mob-avail.txt' with this. example ( move random in maps - ôi việt nam ): prontera,100,100,0 script Poring Walk 1002,{ npcspeed 100; npcwalkto 0,0; end; } 1 Quote Link to comment Share on other sites More sharing options...
Vietlubu Posted February 18, 2012 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 141 Reputation: 24 Joined: 01/19/12 Last Seen: March 30 Author Share Posted February 18, 2012 Thanks Quote Link to comment Share on other sites More sharing options...
Question
Vietlubu
how to creat a ncp (Poring) can walk
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.