How to make a Npc Walk/Run
Hey there! Another tutorial! but this one is ingame commands
Basic Waypoint Commands
Add a Waypoint:
We will start by clicking the npc we want to add waypoint to.
Move at the location you want him to walk and write ".waypoint add"
You just added him a waypoint! You can do as many as you want!
Show the NPC's waypoints:
Click on the npc. Write ".waypoint show". Little npcs called WayPoint will appear. Their level is the WayPoint id. This will be used by many other waypoints commands. I will call this command the Show Command for this tutorial.
Hide the NPC's waypoints:
To hide the waypoints we showed with the previous command. Click on the npc and write ".Waypoint Hide".
Delete one/all Waypoint:
You need the Show Command activated for this. Click on the waypoint you want to delete and write ".Waypoint Delete". To delete all waypoints of a NPC hide his waypoints and click on the NPC. Write ".waypoint deleteall".
Move a Waypoint to your Location:
You need the Show Command activated for this. Click on the Waypoint and write ".waypoint movehere".
Change the time that your NPC will stay at a waypoint:
You need the Show Command activated for this. Click on the waypoint you wanna modify and write ".Waypoint Waittime [Time]".The time is in milliseconds (1000 = 1 second). It says that under 5 seconds it can make the server lag but it's only if your server is already running slow.
Save Waypoints:
It is suposed to save by itself but if you want to be sure click on the NPC and write .Waypoint Save.